
84
Chapter 3 Functions
3.2 Functions
Jump SubRoutine
Subroutine call
[ Syntax ]
JSR(.length) label
[ Flag Change ]
[ Description Example ]
[ Related Instructions ] JSRI,JSRS
JSR JSR
JSR.W func
JSR.A func
[ Function ]
• This instruction causes control to jump to a subroutine indicated by label.
[ Selectable label ]
.length label
.W
PC
*1
–32767 label PC
*1
+32768
.A abs20
W , A (Can be specified)
UIOBSZDC
*1 The PC indicates the start address of the instruction.
[ Instruction Code/Number of Cycles ]
Page=
189
Flag
Change
[ Operation ]
SP SP – 1
M(SP) (PC + n)H
SP SP – 2
M(SP) (PC + n)ML
PC label
*1 n denotes the number of instruction bytes.
Comentarios a estos manuales