|
|
|
|
ADDC
| Description |
|
The ADD instruction adds a byte value to the
accumulator and stores the results back in the accumulator.
Several of the flag registers are affected.
|
| See Also |
|
ADDC |
| Bytes |
|
2 |
| Cycles |
|
1 |
|
Encoding |
|
00100100, immediate |
| Operation |
|
A = A + immediate
|
|
Example |
|
ADD A, #03h
|
| Bytes |
|
1 |
| Cycles |
|
1 |
|
Encoding |
|
0010011n |
| Operation |
|
A = A + (Rn)
|
|
Example |
|
ADD A, @R1
|
| Bytes |
|
2 |
| Cycles |
|
1 |
|
Encoding |
|
00100101, direct_address |
| Operation |
|
A = A + (direct_address)
|
|
Example |
|
ADD A, 20h
|
| Bytes |
|
1 |
| Cycles |
|
1 |
|
Encoding |
|
00101nnn |
| Operation |
|
A = A + Rn
|
|
Example |
|
ADD A, R0
|
Add with carry
| Description |
|
The ADDC instruction adds a byte value and the value
of the carry flag to the accumulator. The results of the
addition are stored back in the accumulator. Several of the
flag registers are affected.
|
| See Also |
|
ADD |
| Bytes |
|
2 |
| Cycles |
|
1 |
|
Encoding |
|
00110100, immediate |
| Operation |
|
A = A + C + immediate
|
|
Example |
|
ADDC A, #23h
|
| Bytes |
|
1 |
| Cycles |
|
1 |
|
Encoding |
|
0011011n |
| Operation |
|
A = A + C + (Rn)
|
|
Example |
|
ADDC A, @R0
|
| Bytes |
|
2 |
| Cycles |
|
1 |
|
Encoding |
|
00110101, direct_address |
| Operation |
|
A = A + C + (direct_address)
|
|
Example |
|
ADDC A, 30h
|
| Bytes |
|
1 |
| Cycles |
|
1 |
|
Encoding |
|
00111nnn |
| Operation |
|
A = A + C + Rn
|
|
Example |
|
ADDC A, R5
|
|
|
|