<< Previous | Next >>

> EX (SP),IX
> EX (SP),IY Exchange Rabbit 2000/3000/4000 Instruction

> Opcode | Instruction | Clocks | Operation
> DD E3 | EX (SP),IX | 15 (2,2,1,2,2,3,3) | IXhigh <-> (SP+1) IXlow <-> (SP)
> FD E3 | EX (SP),IY | 15 (2,2,1,2,2,3,3) | IYhigh <-> (SP+1) IYlow <-> (SP)

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

> #### Description

> Exchanges 16 bits at the top of the stack (whose address is SP) with IX or IY.

<< Previous | Next >>