Question: Q1. Write a program in MIPS assembly language that adds the content of register S1 with the constant number 40, while i is less than


Q1. Write a program in MIPS assembly language that adds the content of register S1 with the constant number 40, while i is less than 10, where the initial value of i is zero and it is incremented by 1 every iteration. Q2. Draw the instruction format for each instruction in Q1. (Specify the instruction format type, size, and the content of each field). Q3. What is the content of register so after executing the instructions in line 2 and 4 in case of the contents of registers s3 and s4 are equal. (s1 = 4, s2 = 3) Q2. Draw the instruction format for each instruction in Q1. (Specify the instruction format type, size, and the content of each field). Q3. What is the content of register so after executing the instructions in line 2 and 4 in case of the contents of registers s3 and s4 are equal. (s1 = 4, s2 = 3) bne $s3, $s4, Else ...1 add $50, $sl, $s2 ...2 j Exit ...3 $50, $sl, $s2 Else: sub
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
