Intel 210200-002 Baby Furniture User Manual


 
SHR
SHIFT
LOGICAL RIGHT
Operation:
(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
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
Flags Affected:
CF, OF,
PF,
SF, ZF.
AF
undefined
SHR