Addressing Modes
3-11
RISC 16-Bit CPU
3.3.2
Indexed Mode
The indexed mode is described in Table 3−5.
Table 3−5. Indexed Mode Description
Assembler Code
Content of ROM
MOV 2(R5),6(R6)
MOV X(R5),Y(R6)
X = 2
Y = 6
Length:
Two or three words
Operation:
Move the contents of the source address (contents of R5 + 2)
to the destination address (contents of R6 + 6). The source
and destination registers (R5 and R6) are not affected. In
indexed mode, the program counter is incremented
automatically so that program execution continues with the
next instruction.
Comment:
Valid for source and destination
Example:
MOV 2(R5),6(R6);
00006h
Address
Space
00002h
04596h
PC
0FF16h
0FF14h
0FF12h
0xxxxh
05555h
01094h
01092h
01090h
0xxxxh
0xxxxh
01234h
01084h
01082h
01080h
0xxxxh
01080h
0108Ch
R5
R6
0108Ch
+0006h
01092h
01080h
+0002h
01082h
Register
Before:
00006h
Address
Space
00002h
04596h
PC
0FF16h
0FF14h
0FF12h
0xxxxh
01234h
01094h
01092h
01090h
0xxxxh
0xxxxh
01234h
01084h
01082h
01080h
0xxxxh
01080h
0108Ch
R5
R6
Register
After:
0xxxxh
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 ...