Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

A. Consider the following program segment (which consists of all instructions shown) for the MIPS architecture discussed in class. Initial values in registers pertinent to

A. Consider the following program segment (which consists of all instructions shown) for the MIPS architecture discussed in class. Initial values in registers pertinent to this problem are: $a0 = 4 and $t0 = 4032; the values in memory location 1232 is 4000; values are in decimal.

Beg: lw $t6, 1232($zero)

Top: beq $zero, $zero, Nex

Sec: sw $s7, 0($t6)

beq $zero, $zero, End

Nex: lw $s7, 0($t6)

add $t6, $t6, $a0

Key: beq $t6, $t0, Sec

beq $zero, $zero, Top

End: ...

1. Modify the program above, incorporating the code below so that the initial values are set in registers and memory location before the instruction labelled Beg is executed. Save the resulting file as lab5.2b.s addi $a0, $zero, 4 addi $t0, $zero, 4032 addi $s0, $zero, 4000 sw $s0, 1232($zero)

2. Assemble your new code Set a breakpoint on the instruction labelled Beg Run the program and verify those initial values. Take screenshot(s) showing (use a colored pencil to circle) the values in registers $a0 and $t0, and in memory location 1232.

Looking for help. I don't understand how to complete this.

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

Inductive Databases And Constraint Based Data Mining

Authors: Saso Dzeroski ,Bart Goethals ,Pance Panov

2010th Edition

1489982175, 978-1489982179

More Books

Students also viewed these Databases questions

Question

Understand the importance of organizational change.

Answered: 1 week ago