CPU Registers
4-16
16-Bit MSP430X CPU
4.4.1
Register Mode
Operation: The operand is the 8-, 16-, or 20-bit content of the used CPU
register.
Length:
One, two, or three words
Comment:
Valid for source and destination
Byte operation: Byte operation reads only the 8 LSBs of the source register
Rsrc and writes the result to the 8 LSBs of the destination
register Rdst. The bits Rdst.19:8 are cleared. The register
Rsrc is not modified.
Word operation:Word operation reads the 16 LSBs of the source register Rsrc
and writes the result to the 16 LSBs of the destination register
Rdst. The bits Rdst.19:16 are cleared. The register Rsrc is not
modified.
Address-Word operation: Address-word operation reads the 20 bits of the
source register Rsrc and writes the result to the 20 bits of the
destination register Rdst. The register Rsrc is not modified
SXT Exception: The SXT instruction is the only exception for register
operation. The sign of the low byte in bit 7 is extended to the
bits Rdst.19:8.
Example:
BIS.W R5,R6 ;
This instruction logically ORs the 16-bit data contained in R5 with the 16-bit
contents of R6. R6.19:16 is cleared.
xxxxh
Address
Space
D506h
PC
21036h
21034h
AA550h
11111h
R5
R6
Register
Before:
xxxxh
Address
Space
D506h
PC
21036h
21034h
AA550h
0B551h
R5
R6
Register
After:
A550h.or.1111h = B551h
Summary of Contents for MSP430x4xx Family
Page 1: ...MSP430x4xx Family 2007 Mixed Signal Products User s Guide SLAU056G ...
Page 2: ......
Page 6: ...vi ...
Page 114: ...3 76 RISC 16 Bit CPU ...
Page 304: ...5 20 FLL Clock Module ...
Page 340: ...7 8 Supply Voltage Supervisor ...
Page 348: ...8 8 16 Bit Hardware Multiplier ...
Page 372: ...9 24 32 Bit Hardware Multiplier ...
Page 400: ...10 28 DMA Controller ...
Page 428: ...13 10 Basic Timer1 ...
Page 466: ...15 24 Timer_A ...
Page 522: ...17 30 USART Peripheral Interface UART Mode ...
Page 544: ...18 22 USART Peripheral Interface SPI Mode ...
Page 672: ...23 12 Comparator_A ...
Page 692: ...24 20 LCD Controller ...
Page 746: ...26 28 ADC12 ...