Fujitsu F2MC-8L F202RA Hardware Manual page 406

F2mc-8l 8-bit microcontroller
Hide thumbs Also See for F2MC-8L F202RA:
Table of Contents

Advertisement

APPENDIX B Overview of the Instructions
● CALLV #vct
This addressing is used for branching to one of the subroutine addresses registered in the table. After the
return address (the contents of PC) is saved to the address indexed by SP (stack pointer), the control is
branched to the address listed in the vector table via the vector addressing. This instruction is one byte, so
using it for the frequently used subroutines enables the entire program size to be smaller.
Figure B.2-7 shows the overview.
When this instruction is executed, the contents of the PC to be saved in the stack area are not the address
holding the operation code of this instruction. Instead, they comprise the address holding the next
instruction. In Figure B.2-7 , therefore, the value saved in the stack (1232
address holding the operation code next to CALLV #vct (return address), i.e. 5679
390
Figure B.2-7 Executing Example of CALLV #3
(Before execution)
5678
PC
H
1234
)
(- 2
S P
H
1232
H
X X
H
1233
X X
H
H
FFC6
H
F E
H
FFC7
D C
H
H
(After execution)
FEDC
PC
H
1232
S P
H
1232
5 6
H
H
1233
7 9
H
H
FFC6
F E
H
H
DC
FFC7
H
H
and 1233
) is the same as the
H
H
.
H

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

F2mc-8l mb89202Mb89202/f202ra series

Table of Contents