go to previous page   go to home page   hear noise   go to next page



Table of Set Instructions

Mnemonic Operands Description signed or
seqd,s,tset d if s==t  
sged,s,tset d if s>=t signed
sgeud,s,tset d if s>=t unsigned
sgtd,s,tset d if s> t signed
sgtud,s,tset d if s> t unsigned
sled,s,tset d if s<=t signed
sleud,s,tset d if s<=t unsigned
sltd,s,tset d if s< t signed
sltid,s,Immset d if s< Imm signed
sltud,s,tset d if s< t unsigned
sltiud,s,Immset d if s< Imm unsigned
sned,s,tset d if s != t  


Here is a table of set instructions. Most of them are pseudoinstructions. The t operand can be an immediate operand. The Imm operand must be an immediate operand.

The extended assembler outputs the correct basic instructions depending on the mnemonic and the operands. Sometimes there are several ways in which the same basic instructions can be specified.

Some of the instructions are intended for integers expressed in unsigned binary, other instructions are for integers in two's complement, and for others it makes no difference.


Do you think that the following two pseudoinstructions translate into the same basic instructions?

sltu $t4,$v0,45 and sltui $t4,$v0,45