Renesas R8C/Tiny Series Software Manual page 102

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
location in the memory, specify the address at which the low-order address is stored.
• If (.W) is selected as the jump distance specifier (.length), control jumps to the subroutine at the start
address of the instruction plus the address indicated by
a location in the memory, the required memory capacity is 2 bytes.
src
• If
is a location in the memory and (.A) is selected as the jump distance specifier (.length), the
required memory capacity is 3 bytes.
[ Selectable src ]
If (.W) is selected as 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 (.A) is selected as 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 ]
Rev.2.00 Oct 17, 2005
REJ09B0001-0200
Indirect subroutine call
Jump SubRoutine Indirect
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
page 84 of 263
[ Instruction Code/Number of Cycles ]
W , A
When jump distance specifier (.length) is (.A)
SP
M(SP)
SP
M(SP)
PC
src
(added including the sign bits). If
3.2 Functions
SP
1
(PC
+
n)
H
SP
2
(PC
+
n)
H
src
src
JSRI
Page: 188
src
. If
is a
src
is

Advertisement

Table of Contents
loading

Table of Contents