186
CHAPTER 7 DETAILED EXECUTION INSTRUCTIONS
7.89 CALL (Call Subroutine)
This is a branching instruction with no delay slot.
After storing the address of the next instruction in the return pointer (RP), a branch to
the address indicated by "Ri" occurs.
■ CALL (Call Subroutine)
Assembler format: CALL @Ri
Operation: PC + 2 → RP
Ri → PC
Flag change:
N, Z, V, and C: Unchanged
Execution cycles: 2 cycles
Instruction format:
Example: CALL @R1
NZVC
––––
MSB LSB
100101110001 Ri
R1
FFFF F800
8000 FFFE
FFFF F800
FFFF F800
PC
8001 0000
RP
R1
PC
RP
xxxx
Before execution After execution
xxxx
Instruction bit pattern : 1001 0111 0001 0001