Jump to navigation Jump to search
|You are here:|
The rol instruction is similar to shl except the shifted bits are rotated to the other end.
rol destination, count
mov eax, 0xA ; set EAX to 0xA (00001010 in binary) rol eax, 2 ; rotate 2 bits left in EAX, now equal to 0x28 (00101000 in binary)