Question: Exercise 4 : Comments these instructions and write them in machine language a. add $t1,$t2,$t3 b. sub $t1, $s1, $s 2 c. srl$s2,$s1,14 Part II:

Exercise 4 : Comments these instructions and write them in machine language a. add $t1,$t2,$t3 b. sub \$t1, \$s1, \$s 2 c. srl$s2,$s1,14 Part II: I-format instructions Exercise1: Assume that, f, g and h are assigned to $s0,$s1 and $s2 respectively. Assume that the base registers of A and B are assigned to $t0 and $11 respectively. Translate these High level codes to MIPS instructions: a. f=g+h+B[10] b. B[4]=gA[16] c. f=gh4 Exercise 2: Assume the following register content: $t0=0xAAAAAAAA What is the value of $t2 in binary after executing the following instruction? andi $t2,$t0,0xABC Exercise 3: Comments these instructions and write them in machine language a. addi $t1,$t2,31 b. lw $s2,20($s1) c. sw $t2,4($s0)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
