Anyone can explain me how the assembly right shift operation works? An example is:
mov ax, 0BFA4h
mov cl, 0Fh
shr ax, cl
The result is: ax=5FD2
But if I put:
mov ax, 0BFA4h
mov cl, 02Fh
shr ax, cl
the result isn't ax=0000 but is 0001? Anyone can explain this?