EasyManua.ls Logo

Rabbit 2000 - Page 36

Rabbit 2000
174 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
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,wheremn is coded as a label.
CALL mn
Opcode Instruction Clocks Operation
CD nm 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
- - - -

Other manuals for Rabbit 2000