Altera Nios II User Manual page 216

Hide thumbs Also See for Nios II:
Table of Contents

Advertisement

8–36
cmpgtui
Operation:
Assembler Syntax:
Example:
Description:
Usage:
Pseudo-instruction:
Nios II Processor Reference Handbook
if ((unsigned) rA > (unsigned) IMMED)
then rB ← 1
else rB ← 0
cmpgtui rB, rA, IMMED
cmpgtui r6, r7, 100
Zero-extends the immediate value IMMED to 32 bits and compares it to the value of rA. If rA >
IMMED, then cmpgtui stores 1 to rB; otherwise stores 0 to rB.
cmpgtui performs the unsigned > operation of the C programming language. The maximum
allowed value of IMMED is 65534. The minimum allowed value is 0.
cmpgtui is implemented using a cmpgeui instruction with an IMM16 immediate value of
IMMED + 1.
Chapter 8: Instruction Set Reference
compare greater than unsigned immediate
Instruction Set Reference
February 2014 Altera Corporation

Advertisement

Table of Contents
loading

Table of Contents