ADC A,r
Add With Carry
Rabbit 4000 Instruction
|
| ---- |
ADC A,r |
|
A = A + r + CF |
|
7F 8F
|
ADC A,A
|
|
A = A + A + CF
|
|
7F 88
|
ADC A,B
|
|
A = A + B + CF
|
|
7F 89
|
ADC A,C
|
|
A = A + C + CF
|
|
7F 8A
|
ADC A,D
|
|
A = A + D + CF
|
|
7F 8B
|
ADC A,E
|
|
A = A + E + CF
|
|
7F 8C
|
ADC A,H
|
|
A = A + H + CF
|
|
7F 8D
|
ADC A,L
|
|
A = A + L + CF
|
Description
A is summed with the C flag and with r (any of the registers A, B, C, D, E, H, or L). The result is stored in
A. The Rabbit 4000 assembler views "ADC A,r" and "ADC r" as equivalent instructions. In the latter case,
A is used even though it is not explicitly stated.
The opcodes for these instructions are different than the same instructions in the Rabbit 2000, 3000 and
3000A.