Datasheet

www.ti.com
Instruction Set
3.4.3 Jumps
Figure 3-11 shows the conditional-jump instruction format.
15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0
Op-code C 10-Bit PC Offset
Figure 3-11. Jump Instruction Format
Table 3-13 lists and describes the jump instructions
Table 3-13. Jump Instructions
Mnemonic S-Reg, D-Reg Operation
Jump to label if zero bit is set
JEQ/JZ Label
Jump to label if zero bit is reset
JNE/JNZ Label
Jump to label if carry bit is set
JC Label
Jump to label if carry bit is reset
JNC Label
Jump to label if negative bit is set
JN Label
Jump to label if (N .XOR. V) = 0
JGE Label
Jump to label if (N .XOR. V) = 1
JL Label
Jump to label unconditionally
JMP Label
Conditional jumps support program branching relative to the PC and do not affect the status bits. The
possible jump range is from –511 to +512 words relative to the PC value at the jump instruction. The 10-
bit program-counter offset is treated as a signed 10-bit value that is doubled and added to the program
counter:
PC
new
= PC
old
+ 2 + PC
offset
× 2
59
SLAU144JDecember 2004Revised July 2013 CPU
Submit Documentation Feedback
Copyright © 2004–2013, Texas Instruments Incorporated