
86
Chapter 3 Functions
3.2 Functions
Jump SubRoutine Special page
Special page subroutine call
JSRS JSRS
[ Syntax ]
JSRS src
[ Function ]
• This instruction causes control to jump to a subroutine at the address set in each table of the special
page vector table plus F000016. The area across which program flow can jump to a subroutine is from
address F000016 to address FFFFF16.
•
The special page vector table is allocated to an area from address FFE0016 to address FFFDA16.
•
src
represents a special page number. The special page number is 255 for address FFE0016, and 18
for address FFFDA16.
[ Operation ]
SP SP – 1
M(SP) (PC + 2)H
SP SP – 2
M(SP) (PC + 2)ML
PCH 0F16
PCML M ( FFFFE16 – src 2 )
[ Flag Change ]
[ Selectable src ]
src
#IMM
*1*2
UIOBSZDC
Flag
*1 #IMM denotes a special page number.
*2 The range of values that can be taken on is 18 < #IMM < 255.
Change
[ Related Instructions ] JSR,JSRI
[ Description Example ]
JSRS #18
[ Instruction Code/Number of Cycles ]
Page=
191
Comentarios a estos manuales