CPU Registers
4-33
16-Bit MSP430X CPU
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.
Example:
ADD.B @R5+,0(R6)
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 3,579Ch for this
example.
Destination:
Byte pointed to by R6 + 0h which results in address 0778h for
this example.
xxxxh
Address
Space
0000h
55F6h
PC
21038h
21036h
21034h
3579Ch
00778h
R5
R6
00778h
+0000h
00778h
Register
Before:
Address
Space
Register
After:
xxxxh
0000h
55F6h
PC
21038h
21036h
21034h
3579Dh
00778h
R5
R6
xxxxh
xx45h
0077Ah
00778h
xxxxh
xx77h
0077Ah
00778h
32h
+45h
77h
src
dst
Sum
xxh
32h
3579Dh
3579Ch
xxh
xx32h
3579Dh
3579Ch
R5
R5
Summary of Contents for MSP430x4xx Family
Page 1: ...MSP430x4xx Family 2007 Mixed Signal Products User s Guide SLAU056G ...
Page 2: ......
Page 6: ...vi ...
Page 114: ...3 76 RISC 16 Bit CPU ...
Page 304: ...5 20 FLL Clock Module ...
Page 340: ...7 8 Supply Voltage Supervisor ...
Page 348: ...8 8 16 Bit Hardware Multiplier ...
Page 372: ...9 24 32 Bit Hardware Multiplier ...
Page 400: ...10 28 DMA Controller ...
Page 428: ...13 10 Basic Timer1 ...
Page 466: ...15 24 Timer_A ...
Page 522: ...17 30 USART Peripheral Interface UART Mode ...
Page 544: ...18 22 USART Peripheral Interface SPI Mode ...
Page 672: ...23 12 Comparator_A ...
Page 692: ...24 20 LCD Controller ...
Page 746: ...26 28 ADC12 ...