Intel Microcontroller Microscope & Magnifier User Manual


 
A-43
INSTRUCTION SET REFERENCE
SUBB
(2 operands)
SUBTRACT BYTES. Subtracts the source
byte operand from the destination byte
operand, stores the result in the destination
operand, and sets the carry flag as the
complement of borrow.
(DEST)
(DEST) – (SRC)
DEST, SRC
SUBB breg, baop
(011110aa) (baop) (breg)
PSW Flag Settings
ZNCVVTST
✓✓✓✓
SUBB
(3 operands)
SUBTRACT BYTES. Subtracts the first
source byte operand from the second, stores
the result in the destination operand, and sets
the carry flag as the complement of borrow.
(DEST)
(SRC1) – (SRC2)
DEST, SRC1, SRC2
SUBB Dbreg, Sbreg, baop
(010110aa) (baop) (Sbreg) (Dbreg)
PSW Flag Settings
ZNCVVTST
✓✓✓✓
SUBC SUBTRACT WORDS WITH BORROW.
Subtracts the source word operand from the
destination word operand. If the carry flag
was clear, SUBC subtracts 1 from the result.
It stores the result in the destination operand
and sets the carry flag as the complement of
borrow.
(DEST)
(DEST) – (SRC) – (1–C)
DEST, SRC
SUBC wreg, waop
(101010aa) (waop) (wreg)
PSW Flag Settings
ZNCVVTST
✓✓✓
SUBCB SUBTRACT BYTES WITH BORROW.
Subtracts the source byte operand from the
destination byte operand. If the carry flag was
clear, SUBCB subtracts 1 from the result. It
stores the result in the destination operand
and sets the carry flag as the complement of
borrow.
(DEST)
(DEST) – (SRC) – (1–C)
DEST, SRC
SUBCB breg, baop
(101110aa) (baop) (breg)
PSW Flag Settings
ZNCVVTST
✓✓✓
Table A-6. Instruction Set (Continued)
Mnemonic Operation Instruction Format