
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
4.4.6 Indirect Autoincrement Mode
The Indirect Autoincrement mode uses the contents of the CPU register Rsrc as the source operand. Rsrc
is then automatically incremented by 1 for byte instructions, by 2 for word instructions, and by 4 for
address-word instructions immediately after accessing the source operand. If the same register is used for
source and destination, it contains the incremented address for the destination access. Indirect
Autoincrement mode always uses 20-bit addresses.
Length:
One, two, or three words
Operation:
The operand is the content of the addressed memory location.
Comment:
Valid only for the source operand
ADD.B @R5+,0(R6)
Example:
This instruction adds the 8-bit data contained in the source and the destination
addresses and places the result into the destination.
Source:
Byte pointed to by R5. R5 contains address 3579Ch for this example.
Destination:
Byte pointed to by R6 + 0h, which results in address 0778h for this example
111
SLAU272C – May 2011 – Revised November 2013
CPUX
Copyright © 2011–2013, Texas Instruments Incorporated