CPU Registers
4-15
16-Bit MSP430X CPU
4.4
Addressing Modes
Seven addressing modes for the source operand and four addressing modes
for the destination operand use 16-bit or 20-bit addresses. The MSP430 and
MSP430X instructions are usable throughout the entire 1-MB memory range.
Table 4−3. Source/Destination Addressing
As/Ad
Addressing Mode
Syntax
Description
00/0
Register mode
Rn
Register contents are operand
01/1
Indexed mode
X(Rn)
(Rn + X) points to the operand. X
is stored in the next word, or
stored in combination of the
preceding extension word and the
next word.
01/1
Symbolic mode
ADDR
(PC + X) points to the operand. X
is stored in the next word, or
stored in combination of the
preceding extension word and the
next word. Indexed mode X(PC) is
used.
01/1
Absolute mode
&ADDR
The word following the instruction
contains the absolute address. X
is stored in the next word, or
stored in combination of the
preceding extension word and the
next word. Indexed mode X(SR) is
used.
10/−
Indirect register
mode
@Rn
Rn is used as a pointer to the
operand.
11/−
Indirect
autoincrement
@Rn+
Rn is used as a pointer to the
operand. Rn is incremented
afterwards by 1 for .B instructions.
by 2 for .W instructions, and by 4
for .A instructions.
11/−
Immediate mode
#N
N is stored in the next word, or
stored in combination of the
preceding extension word and the
next word. Indirect autoincrement
mode @PC+ is used.
The seven addressing modes are explained in detail in the following sections.
Most of the examples show the same addressing mode for the source and
destination, but any valid combination of source and destination addressing
modes is possible in an instruction.
Note:
Use of Labels EDE, TONI, TOM, and LEO
Throughout MSP430 documentation EDE, TONI, TOM, and LEO are used
as generic labels. They are only labels. They have no special meaning.
Содержание 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 ...