EX JK,HL
EX JK',HL
Exchange
Rabbit 4000 Instruction
|
|
B9
|
EX JK,HL
|
|
if (!ALTD) then JK <-> HL
else JK <-> HL'
|
|
ED 7C
|
EX JK',HL
|
|
if (!ALTD) then JK' <-> HL
else JK' <-> HL'
|
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:
-
EX JK',HL' ; equivalent to ALTD EX JK',HL
-
EX JK,HL' ; equivalent to ALTD EX JK',HL'