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
Содержание MSP430x4xx Family
Страница 1: ...MSP430x4xx Family 2007 Mixed Signal Products User s Guide SLAU056G ...
Страница 2: ......
Страница 6: ...vi ...
Страница 114: ...3 76 RISC 16 Bit CPU ...
Страница 304: ...5 20 FLL Clock Module ...
Страница 340: ...7 8 Supply Voltage Supervisor ...
Страница 348: ...8 8 16 Bit Hardware Multiplier ...
Страница 372: ...9 24 32 Bit Hardware Multiplier ...
Страница 400: ...10 28 DMA Controller ...
Страница 428: ...13 10 Basic Timer1 ...
Страница 466: ...15 24 Timer_A ...
Страница 522: ...17 30 USART Peripheral Interface UART Mode ...
Страница 544: ...18 22 USART Peripheral Interface SPI Mode ...
Страница 672: ...23 12 Comparator_A ...
Страница 692: ...24 20 LCD Controller ...
Страница 746: ...26 28 ADC12 ...