Answered step by step
Verified Expert Solution
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
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 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 completeStep by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started