<< Previous | Next >>

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

B3

EX BC,HL

2

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

ED 74

EX BC',HL

4 (2,2)

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


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

Description

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


<< Previous | Next >>