a)not $t1, $t2 //bit-wise invert b)orn $t1, $t2, $t3 // bit-wise OR of $t2, !$t3
ID: 3650287 • Letter: A
Question
a)not $t1, $t2 //bit-wise invertb)orn $t1, $t2, $t3 // bit-wise OR of $t2, !$t3
1) Logical instructions above are not included in MIPS instruction set but are described in comment, If $t2 = 0x00FFA5A5, $t3 = 0xFFFF003C, what is the result of $t1 in a) and b)?
2) what is the minimal set of MIPS instruction that can be used in place of instructions in a) and b)?
3) For sequecnce instruction in prob 2, show the bit level representation of each instruction.
if possible, step by step will be helpful
Explanation / Answer
please rate - thanks
assuming the comment is just those comments you've put, message me if any questions
a)not $t1, $t2 //bit-wise invert
b)orn $t1, $t2, $t3 // bit-wise OR of $t2, !$t3
1) Logical instructions above are not included in MIPS instruction set but are described in comment, If $t2 = 0x00FFA5A5, $t3 = 0xFFFF003C, what is the result of $t1 in a) and b)?
a)assuming the instruction is $t1=!$t2
since $t2=00FFA5A5, if you reverse the bits, basically find the 1's complement get
0xFF005A5A
b) assuming the instruction is $t1=$t2 | $t3
0x00FFA5A5 | !0xFFFF003C = 0x00FFA5C3
2) what is the minimal set of MIPS instruction that can be used in place of instructions in a) and b)?
not with nor
nor $t1,$t2,$t2
orn can be
nor $t3,$t3,t3 !$t3
or $t1,$t2,$t3 $t1=t2|t3
3) For sequecnce instruction in prob 2, show the bit level representation of each instruction.
not
nor $t1,$t2,$t2 op code Rs Rt Rd function code
000000 01001 01010 01010 00000 100111
orn
nor $t3,$t3,t3 000000 01011 01011 01011 00000 100111
or $t1,$t2,$t3 000000 01010 01011 01001 00000 100101
Related Questions
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.