Why does shr eax, 32 not do anything?

39 Views Asked by At

When running this assembly code(nasm)

mov eax, 0x12345678
shr eax, 32

I noticed that this did not 0 out the eax register, and I am confused on why is that?

I tried shifting by other numbers and indeed that worked as expected.

0

There are 0 best solutions below