NEC 78K/0S Series User Manual page 94

8-bit single-chip microcontroller
Table of Contents

Advertisement

CALLT
[Instruction format]
[Operation]
[Operand]
Mnemonic
CALLT
[addr5]
[Flag]
Z
AC
[Description]
This is a subroutine call for call table reference.
The next instruction's start address (PC + 1) is saved in the stack and is branched to the address indicated
with the word data of a call table (the higher 8 bits of address are fixed to 00000000B and the following 5 bits
are specified with addr5).
[Description example]
CALLT [40H]; Subroutine call to the addresses indicated by word data of 0040H and 0041H.
94
CHAPTER 5 EXPLANATION OF INSTRUCTIONS
CALLT [addr5]
(SP – 1) ← (PC + 1)
,
H
(SP – 2) ← (PC + 1)
,
L
← SP – 2,
SP
← (00000000,addr5 + 1)
PC
H
← (00000000,addr5)
PC
L
Operand ([addr5])
CY
User's Manual U11047EJ3V0UM00
Subroutine Call (Call Table Reference)
Call Table

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents