Renesas R8C/Tiny Series Software Manual page 47

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

Advertisement

Chapter 2 Addressing Modes
Program counter relative
• If the jump length specifier (.length)
label
is (.S), the base address plus the
value indicated by the displacement
(dsp)—added without the sign bits—is
the effective address.
This addressing mode can be used
with the JMP instruction.
• If the jump length specifier (.length) is
(.B) or (.W), the base address plus the
value indicated by the displacement
(dsp)—added including the sign bits—is
the effective address.
However, if the addition results in a value
outside the range 00000
bits 21 and above are ignored, and the
address returns to 00000
This addressing mode can be used with
the JMP and JSR instructions.
Rev.2.00 Oct 17, 2005
REJ09B0001-0200
to FFFFF
16
or FFFFF
16
page 29 of 263
2.4 Special Instruction Addressing
Base address
dsp
+0
*1 The base address is (start address of instruction + 2).
If the dsp value is negative
dsp
,
Base address
16
.
16
dsp
If the dsp value is positive
If the specifier is (.B), -128 dsp +127
If the specifier is (.W), -32768 dsp +32767
*2 The base address varies depending on the instruction.
Memory
label
dsp +7
Memory
label
label

Advertisement

Table of Contents
loading

Table of Contents