IX <- IX + pp
ADD
IX,pp
b7 | b6 | b5 | b4 | b3 | b2 | b1 | b0 | |
---|---|---|---|---|---|---|---|---|
1 | 1 | 0 | 1 | 1 | 1 | 0 | 1 | $DD |
0 | 0 | pp | 1 | 0 | 0 | 1 |
The contents of register pair pp (any of register pairs BC, DE, IX, or SP) are added to the contents of Index Register IX, and the results are stored in IX. In the assembled object code, operand pp is specified as follows:
Register Pair | r | Hex |
---|---|---|
BC | 00 | $09 |
DE | 01 | $19 |
IX | 10 | $29 |
SP | 11 | $39 |
S | is not affected. |
Z | is not affected. |
H | is set if carry from bit 11, otherwise it is reset. |
P/V | is not affected. |
N | is reset. |
C | is set if carry from bit 15, otherwise it is reset. |
If Index Register IX contains $3333 and register pair BC contains $5555, then upon the execution of
ADD IX,BC
IX contains $8888.