CMPHI

 

 

 

CMPHI

Unsigned Compare for Higher (DALU) CMPHI

Operation

Assembler Syntax

Dn > Da → T

CMPHI Da,Dn

Description

 

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.

Status and Conditions that Affect Instruction

None.

Status and Conditions Changed by Instruction

Register Address

Bit Name

Description

SR[1]

T

Sets the T bit if 32-bit unsigned Dn > Da, otherwise cleared.

Example

cmphi d1,d0

Register/Memory Address

D1

D0

SR

Before

$00 26A2 44F3

$00 2781 21A2

$00E4 0000

After

$00E4 0002

Instruction Formats and Opcodes

Instruction

Words

Cycles

Type

CMPHI Da,Dn

1

1

1

Note: ** indicates serial grouping encoding.

Opcode

158 70

0 * 1 1 0 0 F F F 1 1 1 1 J J J

Instruction Fields

Da

JJJ

 

Single Source Data Register

 

 

 

 

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.

 

 

SC140 DSP Core Reference Manual

A-129

Page 443
Image 443
Freescale Semiconductor SC140 specifications Unsigned Compare for Higher Dalu Cmphi, Cmphi d1,d0, Cmphi Da,Dn