DESCRIPTION OF INSTRUCTIONS
35797. SUBB A, #data (Substract immediate data from accumulator with borrow)
10010100
70
Instruction code
#data
Operation
Number of bytes
Number of cycles
Flags
(PSW)
Description
Example SUBB A, #05H
Instruction code
: Byte 1
I7I6I5I4I3I2I1I0
70
Byte 2
(A)(A)–((C)+#data):
C AC F0 RS1 RS0 OV F1 P
•• • •
:
:
:
The carry flag content and an immediate data value are
substracted from the accumulator contents. The result is placed
in the accumulator, and the flags are updated.
:
10010100
70
Byte 1
Accumulator
10101001
70
2
1
00000101
70
Byte 2
Before execution
Accumulator
10100011
70
After execution
:
1
Carry flag
0
Carry flag
0
Auxiliary carry flag
0
Auxiliary carry flag
1
Overflow flag
0
Overflow flag