29
Chapter 2 Addressing Modes
+0 dsp +7
Memory
label
Program counter relative
label
Base address
dsp
dsp
AAA
dsp
label
label
Memory
Base address
If the dsp value is positive
2.4 Special Instruction Addressing
If the dsp value is negative
• If the jump length specifier (.length)
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
16
- FFFFF
16
, the bits
above bit 21 are ignored, and the address
returns to 00000
16
or FFFFF
16
.
This addressing can be used in JMP and
JSR instructions.
*1 The base address is the (start address of instr 2).
*2 The base address varies with each instruction.
If the specifier is (.B), -128
≤
dsp
≤
+127
If the specifier is (.W), -32768
≤
dsp
≤
+32767
Содержание R8C/Tiny Series
Страница 50: ...Chapter 3 Functions 3 1 Guide to This Chapter 3 2 Functions...
Страница 151: ...134 Chapter 3 Functions 3 2 Functions Blank for page layout...
Страница 152: ...Chapter 4 Instruction Code Number of Cycles 4 1 Guide to This Chapter 4 2 Instruction Code Number of Cycles...
Страница 278: ...Chapter 6 Calculation Number of Cycles 6 1 Instruction queue buffer...
Страница 287: ...Glossary 1 Glossary Technical terms used in this software manual are explained below They are good in this manual only...
Страница 291: ...Symbol 1 Table of symbols Symbols used in this software manual are explained below They are good in this manual only...
Страница 295: ...REVISION HISTORY R8C Tiny Series SOFTWARE MANUAL Rev Date Description Page Summary B 1 1 00 Jun 19 03 First Edition...
Страница 297: ...R8C Tiny Series Software Manual 2 6 2 Ote machi Chiyoda ku Tokyo 100 0004 Japan...