188
CHAPTER 6 DETAILED RULES FOR EXECUTION INSTRUCTIONS
6.71 SUBC (SUBtract Byte Data of Accumulator from Temporary
Accumulator with Carry to Accumulator)
Subtract the byte data of AL from that of TL, subtract a carry and then return the result
to AL. The contents of AH are not changed.
■ SUBC (SUBtract Byte Data of Accumulator from Temporary Accumulator with Carry to
Accumulator)
Operation
(AL) ← (TL) - (AL) - C (Byte subtraction with carry)
Assembler format
SUBC A
Condition code (CCR)
+: Changed by executing instruction
-: Not changed
N: Set to 1 if the MSB of AL is 1 as the result of operation and set to 0 in other cases.
Z: Set to 1 if the result of operation is 00
H
and set to 0 in other cases.
V: Set to 1 if an overflow occurs as the result of operation and set to 0 in other cases.
C: Set to 1 if a carry occurs as the result of operation and set to 0 in other cases.
Number of execution cycle: 1
Byte count: 1
OP code: 32
NZVC
++++