xxxxh
Address
Space
2100h
55A6h
PC
21038h
21036h
21034h
3579Ch
45678h
R5
R6
45678h
+02100h
47778h
Register
Before:
Address
Space
Register
After:
xxxxh
2100h
55A6h
PC
21038h
21036h
21034h
3579Ch
45678h
R5
R6
xxxxh
2345h
4777Ah
47778h
xxxxh
7777h
4777Ah
47778h
5432h
+2345h
7777h
src
dst
Sum
xxxxh
5432h
3579Eh
3579Ch
xxxxh
5432h
3579Eh
3579Ch
R5
R5
Addressing Modes
137
SLAU367P – October 2012 – Revised April 2020
Copyright © 2012–2020, Texas Instruments Incorporated
CPUX
4.4.5 Indirect Register Mode
The indirect register mode uses the contents of the CPU register Rsrc as the source operand. The indirect
register mode always uses a 20-bit address.
Length:
1, 2, or 3 words
Operation:
The operand is the content the addressed memory location. The source register
Rsrc is not modified.
Comment:
Valid only for the source operand. The substitute for the destination operand is
0(Rdst).
Example:
ADDX.W @R5,2100h(R6)
This instruction adds the 2 16-bit operands contained in the source and the
destination addresses and places the result into the destination.
Source:
Word pointed to by R5. R5 contains address 3579Ch for this example.
Destination:
Word pointed to by R6 + 2100h, which results in address 2100h =
47778h