Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Its sw $s1, 0($t0) not sw $s1, 4($t0) MIPS code (15 points) Trace the following assembly program. Assume that the registers initial values and memory

image text in transcribedimage text in transcribedimage text in transcribed

image text in transcribedimage text in transcribed

Its sw $s1, 0($t0) not sw $s1, 4($t0)

image text in transcribed

MIPS code (15 points) Trace the following assembly program. Assume that the registers initial values and memory contents are as shown in the following tables. a. (12 points) Show the final state of the processor including registers' content/data, and memory contents. Show the intermediate values as well for partial credit. Address Initial Value Final Value Register Initial Value Final Value 100d 1 Sto 0 1040 $t1 0 108d 112d $t2 0 116d $50 0 120d $s 1 0 124d li li li $12,50 $t1, od $t0, 100d loop: lw lw add SW addi addi bne $50, 0($t0) $sl, 4($t0) $sl, $80, $s 1 $sl, 0($t0) $t0,$t0,4 $tl, $tl, 1 $t1,$t2, loop exit: b. (3 points) The program starts from location 10000d (d stands for decimal form) in the instruction memory. What is the value of the instruction memory address when the program is complete

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

Financial Accounting Tools for Business Decision Making

Authors: Paul D. Kimmel, Jerry J. Weygandt, Donald E. Kieso, Barbara Trenholm, Wayne Irvine

6th Canadian edition

1118644948, 978-1118805084, 1118805089, 978-1118644942

More Books

Students also viewed these Accounting questions

Question

Date decision to be made (if known)

Answered: 1 week ago