
CMPHIA
SC140 DSP Core Reference Manual A-131
CMPHIA Unsigned Compare for Higher (AGU) CMPHIA
Description
Status and Conditions that Affect Instruction
Status and Conditions Changed By Instruction
Example
cmphia r0,r1
Operation Assembler Syntax
Rx > rx → T
CMPHIA rx,Rx
CMPHIA rx,Rx
Compares the unsigned value in two AGU registers (rx and Rx) to determine which is greater. It sets the T
bit if the unsigned value of Rx is greater than the unsigned value of rx. It clears the T bit if the unsigned
value of Rx is not greater than the unsigned value of rx. Note that a register cannot be compared to itself
using this instruction.
Register Address Bit Name Description
SR[18] EXP Determines which stack pointer is used when the stack pointer is an
operand. Otherwise, the instruction is not affected by SR.
Register Address Bit Name Description
SR[1] T Sets the T bit if unsigned Rx > rx, otherwise cleared.
Register/Memory Address Before After
R0
$FFFF 8002
R1
$FFFF FFFF
SR
$00E4 0000 $00E4 0002
Komentáře k této Příručce