NEC 78K/0 Series User Manual page 96

Nec computer hardware user's manual
Hide thumbs Also See for 78K/0 Series:
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 start address (PC+1) of the next instruction 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 next 5 bits
are specified by addr5).
[Description example]
CALLT [40H]; Subroutine call to the word data addresses 0040H and 0041H.
96
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 U12326EJ4V0UM
Subroutine Call (Refer to the Call Table)
Call Table

Advertisement

Table of Contents
loading

Table of Contents