Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Hey all, looking for some help understanding this portion of my assignment. Thank you. A. Consider execution of the following program. All registers used contain

Hey all, looking for some help understanding this portion of my assignment. Thank you.

A. Consider execution of the following program. All registers used contain 0 initially.

Beg: or $15, $16, $17

add $16, $15, $17

DTI: lw $17, 1232($0)

The registers are represented by their corresponding numbers in the MIPS architecture. For example, register $zero is written as $0.

Assume that before the instruction labelled Beg is executed the state of the system was as followed:

- The values in memory location 1232 is 4000

- Every register used (except $0) has initial value 10ten plus the register number (e.g. $8 has initial value 18ten)

The code to set the initial state of the system is provided below:

addi $15, $0, 25

addi $16, $0, 26

addi $17, $0, 27

addi $10, $0, 4000

sw $10, 1232($0)

Ensure your MARS setting is as instructed in Part I.3

1. Modify the program segment so that the initial values are set in registers and memory location before the instruction labelled Beg is executed, by incorporating the code provided to set the initial state of the system

2. Assemble your new code Set a breakpoint on the instruction labelled Beg Run the program and verify those initial values. Take screenshot(s) and circle those values to show

3. Go to Tools > MIPS X-Ray Click on Connect to MIPS Run the instructions one step at a time from the MIPS R-Ray window Watch the execution of each instruction carefully on the animated screen. Provide the screenshots of the X-Ray window for each of the 3 instructions above (or, add, and lw).

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

Learning MySQL Get A Handle On Your Data

Authors: Seyed M M Tahaghoghi

1st Edition

0596529465, 9780596529468

More Books

Students also viewed these Databases questions

Question

How many Tables Will Base HCMSs typically have? Why?

Answered: 1 week ago

Question

What is the process of normalization?

Answered: 1 week ago