Question: Q 1 ) Encode the following instructions using appropriate format, refer to the register assignment table in lecture notes to translate $ locations

Q1) Encode the following instructions using appropriate format, refer to the register
assignment table in lecture notes to translate "$" locations to actual register location.
ADD R1, R6, R21
SUBiR5,R1,2
AND R3, R5, R2
ADDi$s0,$t3,2
SUB $s4,$t1,$s2
Q2) Let $s0=46, execute SLL $t0,$s0,5
Q3) Perform NOR $t0,$t1,$t2
$t1=00010110100100000011110011000101
$t2=00100100000101100010110111010001
Q4) Write assembly to perform f=(g+h)-(i+2)-6.
F=$s0,G=$s1,H=$s1 and I=$s2
Q5) Write assembly to perform f=g[2]+h[5].
F=$s0,G=$s1 and H=$s1
Q6) Write assembly to perform f[4]=g[2]+h[1].
F=$s0,G=$s1,H=$s1 and I=$s2
Q 1 ) Encode the following instructions using

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!