SHR SHIFT LOGICAL RIGHT SHR

Operation:

Flags Affected:

(temp) - COUNT do while (temp)::/= 0

(CF) ~ low-order bit of (EA) (EA) - (EA) I 2, where I is equivalent to unsigned

division (temp) - (temp)-1

if COUNT = 1 then

if high-order bit of (EA) ::/= next- to-high-order bit of (EA) then (OF)-1

else (OF) - 0 else (OF) undefined

CF, OF, PF, SF, ZF. AF undefined

Description:

SHR destination, source

SHR (Shift Logical Right) shifts the bits in the destination operand (byte or word) to the right by the number of bits specified in the count operand. Zeros are shifted in on the left. If the sign bit retains its original value, then OF is cleared.

2-150

Page 185
Image 185
Intel 210200-002 manual SHR Shift Logical Right SHR, SHR destination, source