8XC196NP, 80C196NU USER’S MANUAL
A-32
NORML NORMALIZE LONG-INTEGER. Normalizes
the source (leftmost) long-integer operand.
(That is, it shifts the operand to the left until
its most significant bit is “1” or until it has
performed 31 shifts). If the most significant
bit is still “0” after 31 shifts, the instruction
stops the process and sets the zero flag. The
instruction stores the actual number of shifts
performed in the destination (rightmost)
operand.
(COUNT)
← 0
do while
(MSB (DEST) = 0) AND (COUNT) < 31)
(DEST)
← (DEST) × 2
(COUNT)
← (COUNT) + 1
end_while
SRC, DEST
NORML lreg, breg
(00001111) (breg) (lreg)
PSW Flag Settings
ZNCVVTST
✓?0———
NOT COMPLEMENT WORD. Complements the
value of the word operand (replaces each “1”
with a “0” and each “0” with a “1”).
(DEST)
← NOT (DEST)
NOT wreg
(00000010) (wreg)
PSW Flag Settings
ZNCVVTST
✓✓00——
NOTB COMPLEMENT BYTE. Complements the
value of the byte operand (replaces each “1”
with a “0” and each “0” with a “1”).
(DEST)
← NOT (DEST)
NOTB breg
(00010010) (breg)
PSW Flag Settings
ZNCVVTST
✓✓00——
Table A-6. Instruction Set (Continued)
Mnemonic Operation Instruction Format