sar eax, 6
...
sar eax, 0x1f
This arithmetic shift operation confuses me. Understand that it's taking the value of eax
in hex then shifting it to the right by 6
and the same for the next operation by 0x1f
. See what the end result is, but still looking to better understand what's happening with these Shift Operations.
Say eax was 0x3338e3e0
, how exactly does it get to 0x00cce38f
step by step?