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

Answer:

Yes


Table of Set Instructions

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.



Mnemonic Operands Description signed or
unsigned?
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  

QUESTION 10:

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

sltu $t4,$v0,45

and

sltiu $t4,$v0,45


go to previous page   go to home page   go to next page