![Rabbit 3000 User Manual Download Page 43](http://html2.mh-extra.com/html/rabbit/3000/3000_user-manual_3114034043.webp)
User’s Manual
35
3.3.4 Register-to-Register Move
Any of the 8-bit registers, A, B, C, D, E, H, and L, can be moved to any other 8-bit regis-
ter, for example:
LD A,c
LD d,b
LD e,l
The alternate 8-bit registers can be a destination, for example:
LD a’,c
LD d’,b
These instructions are unique to the Rabbit and require 2 bytes and four clocks because of
the required prefix byte. Instructions such as
LD A,d’
or
LD d’,e’
are not allowed.
Several 16-bit register-to-register move instructions are available. Except as noted, these
instructions all require 2 bytes and four clocks. The instructions are listed below.
LD dd’,BC ; where dd’ is any of HL’, DE’, BC’ (2 bytes, 4 clocks)
LD dd’,DE
LD IX,HL
LD IY,HL
LD HL,IY
LD HL,IX
LD SP,HL ; 1-byte, 2 clocks
LD SP,IX
LD SP,IY
Other 16-bit register moves can be constructed by using 2-byte moves.
3.3.5 Register Exchanges
Exchange instructions are very powerful because two (or more) moves are accomplished
with one instruction. The following register exchange instructions are implemented.
EX af,af’ ; exchange af with af’
EXX ; exchange HL, DE, BC with HL’, DE’, BC’
EX DE,HL ; exchange DE and HL
The following instructions are unique to the Rabbit.
EX DE’,HL ; 1 byte, 2 clocks
EX DE, HL’ ; 2 bytes, 4 clocks
EX DE’, HL’ ; 2 bytes, 4 clocks
The following special instructions (Rabbit and Z180/Z80) exchange the 16-bit word on
the top of the stack with the HL register. These three instructions are each 2 bytes and 15
clocks.
EX (SP),HL
EX (SP),IX
EX (SP),IY
Summary of Contents for 3000
Page 1: ...Rabbit 3000 Microprocessor User s Manual 019 0108 020426 A...
Page 8: ...Rabbit 3000 Microprocessor...
Page 28: ...20 Rabbit 3000 Microprocessor...
Page 73: ...User s Manual 65 6 RABBIT INTERNAL I O REGISTERS...
Page 122: ...114 Rabbit 3000 Microprocessor...
Page 138: ...130 Rabbit 3000 Microprocessor...
Page 150: ...142 Rabbit 3000 Microprocessor...
Page 188: ...180 Rabbit 3000 Microprocessor...
Page 208: ...200 Rabbit 3000 Microprocessor...
Page 228: ...220 Rabbit 3000 Microprocessor...
Page 232: ...224 Rabbit 3000 Microprocessor...
Page 238: ...230 Rabbit 3000 Microprocessor...
Page 260: ...252 Rabbit 3000 Microprocessor...
Page 266: ......