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 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 ]
Rev.2.00 Oct 17, 2005
REJ09B0001-0200
Jump SubRoutine
SP
–
1
(PC
+
n)
H
SP
–
2
(PC
+
n)
ML
label
label
*1
label
PC
+32768
B
S
Z
D
C
JSRI
page 83 of 263
Subroutine call
[ Instruction Code/Number of Cycles ]
W , A (Can be specified)
3.2 Functions
JSR
Page: 187