
32
Rabbit 2000/3000 Microprocessor
Description
Exchanges the data in word register AF with the data in the alternate word register AF'.
Description
•
EX DE,HL
exchanges the data in word register DE with the data in word register HL. If the
ALTD instruction is present then the data in DE is exchanged with the data in the alternate word
register HL'. This instruction is implemented for the Rabbit and is not available for the Z180.
•
EX DE',HL
exchanges the data in the alternate word register DE' with the data in word register
HL. If the ALTD instruction is present then the data in DE' is exchanged with the data in the
alternate word register HL'.
The Dynamic C assembler recognizes the following instructions, which are based on a combination of ALTD
and the above exchange operations:
•
EX DE’,HL’ ; equivalent to ALTD EX DE’,HL
•
EX DE,HL’ ; equivalent to ALTD EX DE’,HL’
EX AF,AF'
Opcode
Instruction
Clocks
Operation
08
EX AF,AF'
2
AF
<−>
AF'
Flags
ALTD
I/O
S
Z
L/V
C
F
R
SP
S
D
-
-
-
-
EX DE,HL
EX DE',HL
Opcode
Instruction
Clocks
Operation
EB
EX DE,HL
2
if (!ALTD) then DE
<−>
HL
else DE
<−>
HL'
E3
EX DE',HL
2
if (!ALTD) then DE'
<−>
HL
else DE'
<−>
HL'
Flags
ALTD
I/O
S
Z
L/V
C
F
R
SP
S
D
-
-
-
-
•
Summary of Contents for 2000
Page 2: ...ii Rabbit 2000 3000 Microprocessor...
Page 4: ...iv Rabbit 2000 Microprocessor...
Page 16: ...12 Rabbit 2000 3000 Microprocessor...
Page 112: ...108 Rabbit 2000 3000 Microprocessor...
Page 120: ...ii Rabbit 2000 3000 Microprocessor...