390
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.
Figure B.2-7 Executing Example of CALLV #3
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
H
and 1233
H
) is the same as the
address holding the operation code next to CALLV #vct (return address), i.e. 5679
H
.
PC
S P
PC
S P
X X
H
X X
H
F E
H
D C
H
5 6
H
7 9
H
F E
H
DC
H
(- 2
(Before execution)
(After execution)
)
5678
H
1234
H
FEDC
H
1232
H
1232
H
1233
H
FFC6
H
FFC7
H
1232
H
1233
H
FFC6
H
FFC7
H
Summary of Contents for F2MC-8L F202RA
Page 2: ......
Page 4: ......
Page 32: ...16 CHAPTER 1 OVERVIEW ...
Page 90: ...74 CHAPTER 3 CPU ...
Page 142: ...126 CHAPTER 5 TIME BASE TIMER POPW A RETI ENDS END ...
Page 150: ...134 CHAPTER 6 WATCHDOG TIMER ...
Page 176: ...160 CHAPTER 7 8 BIT PWM TIMER ...
Page 220: ...204 CHAPTER 8 8 16 BIT CAPTURE TIMER COUNTER ...
Page 240: ...224 CHAPTER 9 12 BIT PPG TIMER ...
Page 274: ...258 CHAPTER 11 EXTERNAL INTERRUPT CIRCUIT 2 LEVEL ...
Page 362: ...346 CHAPTER 15 BUZZER OUTPUT ...
Page 390: ...374 CHAPTER 17 FLASH MEMORY ...
Page 419: ...403 INDEX INDEX The index follows on the next page This is listed in alphabetic order ...
Page 434: ...418 INDEX ...
Page 436: ......