Question: 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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!