Renesas R8C/Tiny Series Software Manual page 46

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 displacement (dsp)—
added not including the sign bits—
constitutes the effective address.
This addressing can be used in JMP
instruction.
• If the jump length specifier (.length) is
(.B) or (.W)...
the base address plus the value indicated
by displacement (dsp)—added including
the sign bits—constitutes the effective
address.
However, if the addition resulted in
exceeding 00000
above bit 21 are ignored, and the address
returns to 00000
This addressing can be used in JMP and
JSR instructions.
- FFFFF
, the bits
16
16
or FFFFF
.
16
16
29
2.4 Special Instruction Addressing
Base address
dsp
+0
dsp +7
*1 The base address is the (start address of instruction + 2).
If the dsp value is negative
dsp
Base address
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 with each instruction.
Memory
label
Memory
label
label

Advertisement

Table of Contents
loading

Table of Contents