Answered step by step
Verified Expert Solution
Question
1 Approved Answer
1. Trace the following MIPS: start: # 1000 lw Sto, 0(Ssp) li t1, 3 mul Sto, $t0, $t1 a: # 1012 bne $a0, $a1, c
1. Trace the following MIPS: start: # 1000 lw Sto, 0(Ssp) li t1, 3 mul Sto, $t0, $t1 a: # 1012 bne $a0, $a1, c b: # 1016 c: # 1020 li $a0, 42 li a1, 5 jal xyz d: # 1022 li SvO, 10 syscall # exit xyz: # 1030 add vO, $a0, $a1 addi Svo, Svo, 2 jr Sra The initial state (location/registers/memory) is given in the table below. As you execute the above assembly, whenever you encounter a label (i.e., immediately before you execute the instruction right after the label), write down the label's name, and the current register and memory values. You may not encounter all labels. The instruction addresses for each label are given in a comment on the same line as each label, if you find you need them. egisters emory Label S Sa StoSt1 SpSra 7770 7774 start 1142 8 858 8888 9999 7770 34 42
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