Answered step by step
Verified Expert Solution
Link Copied!

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

image text in transcribed

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

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Transactions On Large Scale Data And Knowledge Centered Systems Iv Special Issue On Database Systems For Biomedical Applications Lncs 6990

Authors: Abdelkader Hameurlain ,Josef Kung ,Roland Wagner ,Christian Bohm ,Johann Eder ,Claudia Plant

2011th Edition

3642237398, 978-3642237393

More Books

Students also viewed these Databases questions