<< Previous | Next >>

EX JK',HL     Exchange     Rabbit 4000/5000 Instruction

Opcode
Instruction
Operation
ED 7C EX JK',HL if (!ALTD) then JK' <-> HL
else JK' <-> HL'

8-Bit Access
16-Bit Unaligned
16-Bit Aligned
Rabbit 4000
4
n/a
n/a
Rabbit 5000
4
4
2

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

Description

Exchanges JK' with HL. If the instruction is preceded by ALTD, the alternate register HL' is used instead of HL.

The Dynamic C assembler recognizes the following instruction, which is based on a combination of ALTD and the above exchange operation:


Rabbit Instructions << Previous | Next >> rabbit.com