beautypg.com

Callt – NEC 78K/0 Series User Manual

Page 96

background image

96

CHAPTER 5 EXPLANATION OF INSTRUCTIONS

User's Manual U12326EJ4V0UM

Call Table

CALLT

Subroutine Call (Refer to the Call Table)

[Instruction format]

CALLT [addr5]

[Operation]

(SP–1)

(PC+1)

H

,

(SP–2)

(PC+1)

L

,

SP

SP–2,

PC

H

(00000000, addr5+1)

PC

L

(00000000, addr5)

[Operand]

Mnemonic

Operand([addr5])

CALLT

[addr5]

[Flag]

Z

AC

CY

[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.