46 Rabbit 2000/3000 Microprocessor
Description
• EX DE,HL exchanges the data in DE with the data in HL. If the ALTD instruction is present
then the data in DE is exchanged with the data in the alternate register HL'.
• EX DE',HL exchanges the data in the alternate register DE' with the data in HL. If the ALTD
instruction is present then the data in DE' is exchanged with the data in the alternate 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 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
- - - - •