Call Subroutine
CALL
13-85
Assembly Language Instructions
Syntax CALL
src
Operation Next PC *++SP
src
PC
Operands
src
long-immediate addressing mode
Opcode
31 2423 16 8 7 015
01100 0
10
src
Description A call is performed. The next PC value is pushed onto the system stack. The
src
operand is loaded into the PC. The
src
operand is assumed to be a 24-bit
unsigned-immediate operand. Since the CALL instruction takes 4 cycles to
execute, the pipeline is flushed.
Cycles 4
Status Bits LUF Unaffected
LV Unaffected
UF Unaffected
NUnaffected
ZUnaffected
VUnaffected
CUnaffected
OVM Operation is not affected by OVM bit value.
Example CALL 123456h
Before Instruction After Instruction
PC 0005 PC 123456
SP 809801 SP 809802
LUF 0LUF 0
LV 0LV 0
UF 0UF 0
N0N0
Z0Z0
V0V0
C0C0
Data memory
809802h 6
Mode Bit