Renesas R8C/Tiny Series Software Manual page 101

16-bit single-chip microcomputer
Hide thumbs Also See for R8C/Tiny Series:
Table of Contents

Advertisement

Chapter 3
Functions
JSRI
[ Syntax ]
JSRI.length src
[ Operation ]
When jump distance specifier (.length) is (.W)
SP
SP
M(SP)
(PC
SP
SP
M(SP)
(PC
PC
PC
*1
n denotes the number of instruction bytes.
[ Function ]
• This instruction causes control to jump to a subroutine at the address indicated by
memory, specify the address at which the low-order address is stored.
• If you selected (.W) for the jump distance specifier (.length), control jumps to a subroutine at the start
address of the instruction plus the address indicated by
memory, the required memory capacity is 2 bytes.
src
• If
is memory when you selected (.A) for the jump distance specifier (.length), the required memory
capacity is 3 bytes.
[ Selectable src ]
If you selected (.W) for the jump distance specifier (.length)
R0L/R0
R0H/R1
A0/A0
A1/A1
dsp:8[A0]
dsp:8[A1]
dsp:16[A0] dsp:16[A1]
dsp:20[A0] dsp:20[A1]
R2R0
R3R1
If you selected (.A) for the jump distance specifier (.length)
R0L/R0
R0H/R1
A0/A0
A1/A1
dsp:8[A0]
dsp:8[A1]
dsp:16[A0] dsp:16[A1]
dsp:20[A0] dsp:20[A1]
R2R0
R3R1
[ Flag Change ]
U
I
O
Flag
Change
[ Description Example ]
JSRI.A
A1A0
JSRI.W
R0
[ Related Instructions ]
Indirect subroutine call
Jump SubRoutine Indirect
W , A
1
+
n)
H
2
+
n)
ML
src
src
R1L/R2
R1H/R3
[A0]
[A1]
dsp:8[SB]
dsp:8[FB]
dsp:16[SB]
abs16
abs20
A1A0
src
R1L/R2
R1H/R3
[A0]
[A1]
dsp:8[SB]
dsp:8[FB]
dsp:16[SB]
abs16
abs20
A1A0
B
S
Z
D
C
JSR
[ Instruction Code/Number of Cycles ]
When jump distance specifier (.length) is (.A)
SP
SP
M(SP)
(PC
SP
SP
M(SP)
(PC
PC
src
src
(added including the sign bits). If
84
3.2 Functions
JSRI
Page=188
1
+
n)
H
2
+
n)
H
src
. If
src
is
src
is

Advertisement

Table of Contents
loading

Table of Contents