<< Previous | Next >>

> ADC A,(IX+d)
> ADC A,(IY+d) Add With Carry Rabbit 2000/3000/4000 Instruction

> Opcode | Instruction | Clocks | Operation
> DD 8E d | ADC A,(IX+d) | 9 (2,2,2,1,2) | A = A + (IX+d) + CF
> FD 8E d | ADC A,(IY+d) | 9 (2,2,2,1,2) | A = A + (IY+d) + CF

> Flags | ALTD | IOI/IOE
> S | Z | L/V | C | F | R | SP | S | D
> · | · | V | · | · | · |  | · |

> #### Description

> A is summed with the C flag and with the data whose address is:

> - the sum of IX and the 8-bit signed displacement value d, or
> - the sum of IY and the 8-bit signed displacement value d.

> The result is stored in A.

> The Rabbit 4000 assembler views "ADC A,(IX+d)" and "ADC (IX+d)" as equivalent instructions. In the latter case, A is used even though it is not explicitly stated. The same is true for "ADC A,(IY+d)" and "ADC (IY+d)."

<< Previous | Next >>