Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started