User Manual
C166S V2
Central Processing Unit
User Manual
2-54
V 1.7, 2001-01
Some instructions only use the lowest four word GPRs (R3...R0) as indirect address
pointers, which are specified via short 2-bit addresses in that case.
Physical addresses are generated from indirect address pointers using the following
algorithm:
1)
Calculate the physical address of the word GPR, which is used as indirect
address pointer, using the specified short address (’Rw’) and
- the current global register bank
GPR Address = (CP) + 2
*
Short Address
- the current local register bank
GPR Address = 2
*
Short Address
.
2)
If required, pre-decremented indirect address pointer (‘-Rw’) by the data-type-
dependent value (D=1 for byte operations, D=2 for word operations) before
the long 16-bit address is generated:
(GPR Address) = (GPR Address) -
D ; [optional step!]
3)
Calculate the long 16-bit address by adding a constant value (’Rw+const16’ if
selected) to the contents of the indirect address pointer:
Long Address = (GPR Pointer) + Constant
; [+Constant is optional]
4)
Calculate the physical 24-bit address using the resulting long address and the
corresponding DPP register contents (see long 'mem' addressing modes).
Physical Address = (DPPi) + Page offset
5)
- If required, post-in/decrement indirect address pointers (‘Rw
±
’) by the data-
type-dependent value (D=1 for byte operations, D=2 for word operations).
- If required, post-in/decrement indirect address pointers (‘Rw
±
QRx’) by
D=QRx:
(GPR Pointer) = (GPR Pointer) ±
D ; [optional step!]
Summary of Contents for C166S V2
Page 102: ...User Manual C166S V2 C166S V2 Memory Organization User Manual 3 102 V 1 7 2001 01...
Page 116: ...User Manual C166S V2 Instruction Pipeline User Manual 4 116 V 1 7 2001 01...
Page 152: ...User Manual C166S V2 Interrupt and Exception Handling User Manual 5 152 V 1 7 2001 01...
Page 204: ...User Manual C166S V2 Instruction Set User Manual 7 204 V 1 7 2001 01...
Page 420: ...User Manual C166S V2 Detailed Instruction Description User Manual 8 420 V 1 7 2001 01...
Page 432: ...User Manual C166S V2 Summary of CPU Subsystem Registers User Manual 9 432 V 1 7 2001 01...
Page 437: ...437...