CPU Registers
4-28
16-Bit MSP430X CPU
MSP430X Instruction with Symbolic Mode
When using an MSP430X instruction with Symbolic mode, the operand can
be located anywhere in the range of PC
±
19 bits.
Length:
Three or four words
Operation:
The operand address is the sum of the 20-bit PC and the
20-bit index. The four MSBs of the index are contained in the
extension word, the 16 LSBs are contained in the word
following the instruction.
Comment:
Valid for source and destination. The assembler calculates
the register index and inserts it.
Example:
ADDX.B EDE,TONI
;
The instruction adds the 8-bit data contained in source byte EDE and
destination byte TONI and places the result into the destination byte TONI.
Source:
Byte EDE located at address 3579Ch, pointed to by
PC
+
14766h, is the 20-bit result of
3579Ch - 21036h = 14766h. Address 21036h is the address
of the index in this example.
Destination:
Byte TONI located at address 77778h, pointed to by
PC
+
56740h, is the 20-bit result of
77778h - 21038h = 56740h. Address 21038h is the address
of the index in this example..
6740h
Address Space
4766h
50D0h
PC
21038h
21036h
21034h
21038h
+56740h
77778h
Before:
Address Space
After:
PC
xxxxh
xx45h
7777Ah
77778h
xxxxh
xx77h
7777Ah
77778h
32h
+45h
77h
src
dst
Sum
xxxxh
xx32h
3579Eh
3579Ch
xxxxh
xx32h
3579Eh
3579Ch
18C5h
21032h
xxxxh
2103Ah
6740h
4766h
50D0h
21038h
21036h
21034h
18C5h
21032h
xxxxh
2103Ah
21036h
+14766h
3579Ch
Содержание 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 ...