Address Instructions
4-158
16-Bit MSP430X CPU
* BRA
Branch to destination
Syntax
BRA
dst
Operation
dst
→
PC
Emulation
MOVA dst,PC
Description
An unconditional branch is taken to a 20-bit address anywhere in the full
address space. All seven source addressing modes can be used. The branch
instruction is an address-word instruction. If the destination address is
contained in a memory location X, it is contained in two ascending words: X
(LSBs) and (X + 2) (MSBs).
Status Bits
N: Not
affected
Z:
Not affected
C: Not
affected
V: Not
affected
Mode Bits
OSCOFF, CPUOFF, and GIE are not affected.
Examples
Examples for all addressing modes are given.
Immediate Mode: Branch to label EDE located anywhere in the 20-bit address
space or branch directly to address.
BRA
#EDE
; MOVA
#imm20,PC
BRA
#01AA04h
Symbolic Mode: Branch to the 20-bit address contained in addresses EXEC
(LSBs) and EXEC+2 (MSBs). EXEC is located at the address (PC + X) where
X is within
±
32 K. Indirect addressing.
BRA
EXEC
; MOVA
z16(PC),PC
Note: if the 16-bit index is not sufficient, a 20-bit index may be used with the
following instruction.
MOVX.A
EXEC,PC
; 1M byte range with 20-bit index
Absolute Mode: Branch to the 20-bit address contained in absolute addresses
EXEC (LSBs) and EXEC+2 (MSBs). Indirect addressing.
BRA
&EXEC
; MOVA
&abs20,PC
Register Mode: Branch to the 20-bit address contained in register R5. Indirect
R5.
BRA
R5
; MOVA
R5,PC
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 ...