Call (Call Subroutine) - Fujitsu FR Family Instruction Manual

32-bit microcontroller
Hide thumbs Also See for FR Family:
Table of Contents

Advertisement

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
PC + 2 → RP
Operation:
Ri → PC
Flag change:
N, Z, V, and C: Unchanged
Execution cycles:
2 cycles
Instruction format:
Example:
CALL @R1
186
N
Z
V
C
MSB
1
0
0
1
Instruction bit pattern : 1001 0111 0001 0001
R1
F F F F F 8 0 0
PC
8 0 0 0 F F F E
x x x x
x x x x
RP
Before execution
0
1
1
1
0
0
LSB
0
1
Ri
R1
F F F F F 8 0 0
PC
F F F F F 8 0 0
RP
8 0 0 1 0 0 0 0
After execution

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Fr series

Table of Contents