MSP430 and MSP430X Instructions
4-39
16-Bit MSP430X CPU
Jumps
Figure 4−24 shows the format for MSP430 and MSP430X jump instructions.
The signed 10-bit word offset of the jump instruction is multiplied by two,
sign-extended to a 20-bit address, and added to the 20-bit program counter.
This allows jumps in a range of -511 to +512 words relative to the program
counter in the full 20-bit address space Jumps do not affect the status bits.
Table 4−6 lists and describes the eight jump instructions.
Figure 4−24. Format of the Conditional Jump Instructions
15
Op-Code
13
12
10
9
8
0
Condition
S
10-Bit Signed PC Offset
Table 4−6. Conditional Jump Instructions
Mnemonic
S-Reg, D-Reg
Operation
JEQ/JZ
Label
Jump to label if zero bit is set
JNE/JNZ
Label
Jump to label if zero bit is reset
JC
Label
Jump to label if carry bit is set
JNC
Label
Jump to label if carry bit is reset
JN
Label
Jump to label if negative bit is set
JGE
Label
Jump to label if (N .XOR. V) = 0
JL
Label
Jump to label if (N .XOR. V) = 1
JMP
Label
Jump to label unconditionally
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 ...