Call (Call Subroutine) - Fujitsu FR Family Instruction Manual

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

Advertisement

7.88

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), branch to the
address indicated by "lavel12" relative to the value of the program counter (PC). When
calculating the address, double the value of "rel11" as a signed extension.
■ CALL (Call Subroutine)
Assembler format:
CALL label12
PC + 2 → RP
Operation:
PC +2 + exts (rel11 × 2) → PC
Flag change:
N, Z, V, and C: Unchanged
Execution cycles:
2 cycles
Instruction format:
Example:
CALL label
...
label: ; CALL instruction address + 122
N
Z
V
C
MSB
1
1
0
1
Instruction bit pattern : 1101 0000 1001 0000
PC
F F 8 0 0 0 0 0
RP
x x x x
x x x x
Before execution
CHAPTER 7 DETAILED EXECUTION INSTRUCTIONS
0
rel11
H
LSB
PC
F F 8 0 0 1 2 2
RP
F F 8 0 0 0 0 4
After execution
185

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Fr series

Table of Contents