Cmpui – Renesas M32R-FPU User Manual

Page 71

Advertising
background image

3

3-33

M32R-FPU Software Manual (Rev.1.01)

CMPUI

[Mnemonic]

CMPUI Rsrc,#imm16

[Function]

Compare

C = ( ( unsigned ) Rsrc < ( unsigned ) ( ( signed short ) imm16 ) ) ? 1:0;

[Description]

The condition bit (C) is set when Rsrc is less than the 16-bit immediate value. The operands

are treated as unsigned 32-bit values. The immediate value is sign-extended to 32-bit before the

operation.

[EIT occurrence]

None

[Encoding]

CMPUI

compare instruction

Compare unsigned immediate

1000

0000

0101

src

imm16

CMPUI Rsrc,#imm16

INSTRUCTIONS

3.2 Instruction description

Advertising