<< Previous | Next >>

EX JK,HL     Exchange     Rabbit 4000/5000 Instruction

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

8-Bit Access
16-Bit Unaligned
16-Bit Aligned
Rabbit 4000
2
n/a
n/a
Rabbit 5000
2
2
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:


EX JK,HL'       ; equivalent to ALTD EX JK',HL' 

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