252
Rabbit 3000 Microprocessor
19.7 Exchange Instructions
Instruction clk A I S Z V C Operation
EX (SP),HL 15 r - - - - H <-> (SP+1); L <-> (SP)
EX (SP),IX 15 - - - - IXH <-> (SP+1); IXL <-> (SP)
EX (SP),IY 15 - - - - IYH <-> (SP+1); IYL <-> (SP)
EX AF,AF’ 2 - - - - AF <-> AF’
EX DE’,HL 2 s - - - - if (!ALTD) then DE’ <-> HL
else DE’ <-> HL’
EX DE’,HL’ 4 s - - - - DE’ <-> HL’
EX DE,HL 2 s - - - - if (!ALTD) then DE <-> HL
else DE <-> HL’
EX DE,HL’ 4 s - - - - DE <-> HL’
EXX 2 - - - - BC <-> BC’; DE <-> DE’;
HL <-> HL’
19.8 Stack Manipulation Instructions
Instruction clk A I S Z V C Operation
ADD SP,d 4 f - - - * SP = SP + d -- d=0 to 255
POP IP 7 - - - - IP = (SP); SP = SP+1
POP IX 9 - - - - IXL = (SP); IXH = (SP+1);
SP = SP+2
POP IY 9 - - - - IYL = (SP); IYH = (SP+1);
SP = SP+2
POP zz 7 r - - - - zzl = (SP); zzh = (SP+1);
SP=SP+2 -- zz= BC,DE,HL,AF
PUSH IP 9 - - - - (SP-1) = IP; SP = SP-1
PUSH IX 12 - - - - (SP-1) = IXH; (SP-2) = IXL;
SP = SP-2
PUSH IY 12 - - - - (SP-1) = IYH; (SP-2) = IYL;
SP = SP-2
PUSH zz 10 - - - - (SP-1) = zzh; (SP-2) = zzl;
SP=SP-2 --zz= BC,DE,HL,AF
19.9 16-bit Arithmetic and Logical Ops
Instruction clk A I S Z V C Operation
ADC HL,ss 4 fr * * V * HL = HL + ss + CF -- ss=BC,
DE, HL, SP
ADD HL,ss 2 fr - - - * HL = HL + ss
ADD IX,xx 4 f - - - * IX = IX + xx -- xx=BC,
DE, IX, SP
A
F
A’
F’
H
H’
D
D’
L
L’
E
E’
B
B’
C
C’
EX AF,AF’
EX DE’,HL
EX DE,HL’
EX DE’,HL’
EX DE,HL
EXX - exchange HL,HL’,DE,DE’,BC,BC’
Summary of Contents for Rabbit 2000
Page 2: ...Rabbit 3000 Microprocessor User s Manual 019 0108 040731 O ...
Page 9: ...Rabbit 3000 Microprocessor ...
Page 29: ...20 Rabbit 3000 Microprocessor ...
Page 64: ...User s Manual 55 5 PIN ASSIGNMENTS AND FUNCTIONS ...
Page 79: ...70 Rabbit 3000 Microprocessor ...
Page 80: ...User s Manual 71 6 RABBIT INTERNAL I O REGISTERS ...
Page 123: ...114 Rabbit 3000 Microprocessor ...
Page 137: ...128 Rabbit 3000 Microprocessor ...
Page 157: ...148 Rabbit 3000 Microprocessor ...
Page 207: ...198 Rabbit 3000 Microprocessor ...
Page 249: ...240 Rabbit 3000 Microprocessor ...
Page 255: ...246 Rabbit 3000 Microprocessor ...
Page 277: ...268 Rabbit 3000 Microprocessor ...
Page 343: ...334 Rabbit 3000 Microprocessor ...
Page 345: ......