Jump if true (agu), Description, Example – Freescale Semiconductor StarCore SC140 User Manual
Page 531: Operation assembler syntax

JT
SC140 DSP Core Reference Manual
A-217
JT
Jump If True (AGU)
JT
Description
If the T bit is set, these operations continue program execution at a specified 32-bit memory destination
address. If the T bit is cleared, the PC is updated to point to the next execution set. Program execution
continues sequentially. The destination address cannot be in the middle of an execution set.
Status and Conditions that Affect Instruction
Status and Conditions Changed by Instruction
None.
Example
jt r0
Operation
Assembler Syntax
If T=1, then label
→ PC
JT label {0
≤ label < 2
32
,W}
If T=1, then Rn
→ PC
JT Rn
JT label
Jumps to the memory location specified by the label. The assembler and linker calculate the 32-bit
absolute address from the label.
JT Rn
Jumps to the memory location contained in an address register (Rn). The value in Rn must be
word-aligned.
Register Address
Bit Name
Description
SR[1]
T
True bit
Register/Memory Address
Before
After
R0
$0000 0010
SR
$00E4 0002
PC
$0000 0006
$0000 0010