NEC 78K/0 Series User Manual page 95

Nec computer hardware user's manual
Hide thumbs Also See for 78K/0 Series:
Table of Contents

Advertisement

CALLF
[Instruction format]
[Operation]
[Operand]
Mnemonic
CALLF
!addr11
[Flag]
Z
AC
[Description]
• This is a subroutine call which can only be branched to addresses 0800H to 0FFFH.
• The start address (PC+2) of the next instruction is saved in the stack and is branched in the range of
addresses 0800H to 0FFFH.
• Only the lower 11 bits of an address are specified (with the higher 5 bits fixed to 00001B).
• The program size can be compressed by locating the subroutine at 0800H to 0FFFH and using this
instruction.
If the program is in the external memory, the execution time can be decreased.
[Description example]
CALLF !0C2AH; Subroutine call to 0C2AH
CHAPTER 5 EXPLANATION OF INSTRUCTIONS
CALLF Target
(SP–1) ← (PC+2)
,
H
(SP–2) ← (PC+2)
,
L
← SP–2,
SP
← target
PC
Operand(target)
CY
User's Manual U12326EJ4V0UM
Subroutine Call (11 Bit Direct Specification)
Call Flag
95

Advertisement

Table of Contents
loading

Table of Contents