Question: Question in computer scienceee MIPS instructions ( some are pseudo - instructions ) op 1 , op 2 are registers, op 3 is register or

Question in computer scienceee
MIPS instructions (some are pseudo-instructions)
op1, op2 are registers, op3 is register or constant
cont[op1] means contents of op1
move op1, op2
add op1, op2, op3
sub op1, op2, op3
mul op1, op2, op3
div op1, op2, op3
rem op1, op2, op3
not op1, op2
and op1, op2, op3
or op1, op2, op3
nand op1, op2, op3
nor op1, op2, op3
xor op1, op2, op3
sll op1, op2, AMT
srl op1, op2, AMT
sra op1, op2, AMT
rol op1, op2, AMT
ror op1, op2, AMT
b label
j label
beq op1, op2, label
bne op1, op2, label
bgt op1, op2, label
bge op1, op2, label
blt op1, op2, label
ble op1, op2, label
beqz op1, label
bnez op1, label
bgtz op1, label
bgez op1, label
bltz op1, label
blez op1, label
cont[op1]= cont[op2]
cont[op1]= cont[op2]+ cont[op3]
cont[op1]= cont[op2]- cont[op3]
cont[op1]= cont[op2]* cont[op3]
cont[op1]= cont[op2]/ cont[op3]
cont[op1]= cont[op2]% cont[op3]
cont[op1]= not cont[op2](bitwise)
cont[op1]= cont[op2] and cont[op3](bitwise)
cont[op1]= cont[op2] or cont[op3](bitwise)
cont[op1]= cont[op2] nand cont[op3](bitwise)
cont[op1]= cont[op2] nor cont[op3](bitwise)
cont[op1]= cont[op2] xor cont[op3](bitwise)
cont[op1]= cont[op2] shift left logical
by AMT bits
cont[op1]= cont[op2] shift right logical
by AMT bits
cont[op1]= cont[op2] shift right arithmetic
by AMT bits
cont[op1]= cont[op2] rotate left by AMT bits
cont[op1]= cont[op2] rotate right by AMT bits
goto label
goto label
if (cont[op1]== cont[op2]) goto label
if (cont[op1]!= cont[op2]) goto label
if (cont[op1]> cont[op2]) goto label
if (cont[op1]>=cont[op2]) goto label
if (cont[op1] cont[op2]) goto label
if (cont[op1]=cont[op2]) goto label
if (cont[op1]==0) goto label
if (cont[op1]!=0) goto label
if (cont[op1]>0) goto label
if (cont[op1]>=0) goto label
if (cont[op1]0) goto label
if (cont[op1]=0) goto label
Question in computer scienceee MIPS instructions

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!