Shift array by 1 bit

Viewed 108

So, I have byte array from 5 elements like this:

00000000 00000000 10000001 00000001 10000010

Suppose that adress of the array is in esi. So, I do this command: shr dword ptr [esi + 1],1 and I want to get this result:

00000000 00000000 01000000 10000000 11000001

But I get this result:

00000000 10000000 11000000 00000000 01000001

So, can somebody explain me how can I get what I want to get, and what am I doing wrong?

0 Answers
Related