Tstgt, Test for greater than zero (dalu), Instruction formats and opcodes – Freescale Semiconductor StarCore SC140 User Manual
Page 734: Instruction fields, Operation assembler syntax

A-420
SC140 DSP Core Reference Manual
TSTGT
TSTGT
Test for Greater Than Zero (DALU)
TSTGT
Description
Status and Conditions that Affect Instruction
None.
Status and Conditions Changed by Instruction
Example
tstgt d6
Instruction Formats and Opcodes
Note:
** indicates serial grouping encoding.
Instruction Fields
Dn
FFF
Single Source/Destination Data Register
Operation
Assembler Syntax
If Dn
> 0, then 1 → T, else 0 → Τ
TSTGT Dn
TSTGT Dn
Sets the T bit if the source data register (Dn) is greater than zero; otherwise, clears the T bit.
Register Address
Bit Name
Description
SR[1]
T
Set if the source operand is greater than zero and cleared if the source
operand is not greater than zero.
Register/Memory Address
Before
After
L6:D6
$1:$80 0000 0000
SR
$00E4 0002
$00E4 0000
Instruction
Words Cycles Type
Opcode
15
8
7
0
TSTGT
Dn
1
1
1
0
*
1
0
0
1
F
F
F
1
1
0
1
0
1
0
000
D0
010
D2
100
D4
110
D6
001
D1
011
D3
101
D5
111
D7
Note:
This instruction can specify D8-D15 as operands by using a prefix.