CPU Registers
4-27
16-Bit MSP430X CPU
Length:
Two or three words
Operation:
The sign-extended 16-bit index in the next word after the
instruction is added to the 20 bits of the PC. This delivers a
20-bit address, which points to an address in the range 0 to
FFFFFh. The operand is the content of the addressed
memory location.
Comment:
Valid for source and destination. The assembler calculates
the PC index and inserts it
Example:
ADD.W EDE,&TONI ;
This instruction adds the 16-bit data contained in source word EDE and
destination word TONI and places the 16-bit result into the destination word
TONI. For this example, the instruction is located at address 2,F034h.
Source:
Word EDE at address 3379Ch, pointed to by PC + 4766h
which is the 16-bit result of 3379Ch − 2F036h = 04766h.
Address 2F036h is the location of the index for this example.
Destination:
Word TONI located at address 00778h pointed to by the
absolute address 00778h.
xxxxh
Address
Space
0778h
4766h
PC
2F03Ah
2F038h
2F036h
2F036h
+04766h
3379Ch
Before:
Address
Space
After:
5092h
2F034h
xxxxh
0778h
4766h
PC
2F03Ah
2F038h
2F036h
5092h
2F034h
xxxxh
5432h
3379Eh
3379Ch
xxxxh
5432h
3379Eh
3379Ch
5432h
+2345h
7777h
src
dst
Sum
xxxxh
2345h
0077Ah
00778h
xxxxh
7777h
0077Ah
00778h
Содержание 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 ...