CPU Registers
4-32
16-Bit MSP430X CPU
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:
One, two, or three 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 two 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 3,579Ch for this
example.
Destination:
Word pointed to by R6 + 2100h which results in address
2100h = 7778h.
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
Содержание 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 ...