DESCRIPTION OF INSTRUCTIONS
249
4. ADD A, Rr (Add register)
00101r2 r1 r0
70
Instruction code
Operation
Number of bytes
Number of cycles
Flags
(PSW)
Description
Example ADD A, R6
Instruction code
: Byte 1
(A)←(A)+(Rr) r=0 thru 7:
C AC F0 RS1 RS0 OV F1 P
•• • •
:
:
:
The register r contents are added to the accumulator. The result
is placed in the accumulator, and the flags are updated.
:
00101110
70
Byte 1
Accumulator
01010100
70
1
1
Before execution
Accumulator
10110001
70
After execution
:
Register 6
01011101
70
Register 6
01011101
70