![background image](http://html1.mh-extra.com/html/rabbit/2000/2000_instruction-and-reference-manual_3112735036.webp)
32
Rabbit 2000/3000 Microprocessor
Description
This instruction is used to call a subroutine. First the data in PC is pushed onto the stack. The high-order byte
of PC is pushed first, then the low-order byte. PC is then loaded with mn,16-bit address of the first instruction
of the subroutine. SP is updated to reflect the two bytes pushed onto the stack.
The Dynamic C assembler recognizes
CALL label
, where mn is coded as a
label
.
CALL
mn
Opcode
Instruction
Clocks
Operation
CD
n m
CALL
mn
12 (2,2,2,3,3)
(SP - 1) = PC
(high)
;
(SP - 2) = PC
(low)
;
PC =
mn;
SP = SP - 2
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 164: ...160 Instruction Reference Manual...