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