User's Manual

DESCRIPTION OF INSTRUCTIONS
247
2. ADD A, #data (Add immediate data)
00100100
70
Instruction code
#data
Operation
Number of bytes
Number of cycles
Flags
(PSW)
Description
Example ADD A, #07H
Instruction code
: Byte 1
I7 I6 I5 I4 I3 I2 I1 I0
70
Byte 2
(A)(A)+#data:
C AC F0 RS1 RS0 OV F1 P
••
:
:
:
An 8-bit immediate data value is added to the accumulator. The
result is placed in the accumulator, and the flags are updated.
:
00100100
70
Byte 1
Accumulator
01100010
70
2
1
00000111
70
Byte 2
Before execution
Accumulator
01101001
70
After execution
: