
CMPHI
SC140 DSP Core Reference Manual A-129
CMPHI Unsigned Compare for Higher (DALU) CMPHI
Description
Status and Conditions that Affect Instruction
None.
Status and Conditions Changed by Instruction
Example
cmphi d1,d0
Instruction Formats and Opcodes
Note: ** indicates serial grouping encoding.
Instruction Fields
Da JJJ Single Source Data Register
Operation Assembler Syntax
Dn > Da → T
CMPHI Da,Dn
CMPHI Da,Dn
Compares the unsigned value in bits 31:0 of two data registers (Da and Dn) to determine which is greater.
It sets the T bit if the unsigned value of Dn[31:0] is greater than the unsigned value of Da[31:0]. Otherwise,
it clears the T bit.
Register Address Bit Name Description
SR[1] T Sets the T bit if 32-bit unsigned Dn > Da, otherwise cleared.
Register/Memory Address Before After
D1
$00 26A2 44F3
D0
$00 2781 21A2
SR
$00E4 0000 $00E4 0002
Instruction Words Cycles Type Opcode
15 8 7 0
CMPHI Da,Dn 1 1 1 0*1100FFF1111JJJ
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.
Comentarios a estos manuales