<< Previous | Next >>

EX JK,HL
EX JK',HL
    Exchange
    Rabbit 4000 Instruction
Opcode
Instruction
Clocks
Operation

B9

EX JK,HL

2

if (!ALTD) then JK <-> HL
else JK <-> HL'

ED 7C

EX JK',HL

4 (2,2)

if (!ALTD) then JK' <-> HL
else JK' <-> HL'


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

Description

Exchanges JK or 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 instructions, which are based on a combination of ALTD and the above exchange operations:


<< Previous | Next >>