DESCRIPTION OF INSTRUCTIONS
253
8. ADD A, Rr (Add carry plus register to accumulator)
00111r2 r1 r0
70
Instruction code
Operation
Number of bytes
Number of cycles
Flags
(PSW)
Description
Example ADDC A, R2
Instruction code
: Byte 1
(A)←(A)+(C)+(Rr) r=0 thru 7:
C AC F0 RS1 RS0 OV F1 P
•• • •
:
:
:
The carry flag is added to the accumulator,and the register r
contents are added to the result. The result is placed in the
accumulator, and the flags are updated.
:
00111010
70
Byte 1
Accumulator
01101000
70
1
1
Before execution
Accumulator
11010111
70
After execution
:
Register 2
01101110
70
Register 2
01101110
70
1
Carry flag
0
Carry flag