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
-
-
-
-
Содержание 2000
Страница 2: ...ii Rabbit 2000 3000 Microprocessor...
Страница 4: ...iv Rabbit 2000 Microprocessor...
Страница 16: ...12 Rabbit 2000 3000 Microprocessor...
Страница 164: ...160 Instruction Reference Manual...
Страница 172: ...168 Rabbit 2000 3000 Microprocessor...
Страница 174: ...170 Rabbit 2000 3000 Microprocessor...