Answered step by step
Verified Expert Solution
Question
1 Approved Answer
I need fast help in this question, I have 30 minutes only, please help me fast, Its assembly language QUESTION Consider the following code, which
I need fast help in this question, I have 30 minutes only, please help me fast, Its assembly language
QUESTION Consider the following code, which is in two parts: a "primary" section and a "secondary" section which is a MIPS subroutine. The primary part is: addi $ao, Szero, 86 # line 1 addi sal, Szero, 55 # line 2 jal mystery # line 3 back: doesn't matter for this question> The secondary part is: mystery: sub Sto, Sao, $al # line 211 slt Sti, Sto, Szero # line 212 bne Sti, szero, 11 # line 213 addi Svo, Szero, 1 # line 214 j Exit # line 215 11: addi Svo, Szero, O # line 216 Exit: jr Sra # line 217 Suppose a breakpoint is set at line 217, so that the line has not yet executed. a. Describe as accurately as you can the value in register Sra. (You cannot know the actual number.) b. What does the subroutine mystery do? c. When the line of code at back executes, what are the values of $v0? (You do know the actual number.)
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