Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

3. (20 points) Answer the questions about the code on the right Show all values as 8 hexadecimal digits. a. What value is put

image

3. (20 points) Answer the questions about the code on the right Show all values as 8 hexadecimal digits. a. What value is put into the Sra at 0x00400008? 0x0040000 b. What value is put into the PC at Ox00400008? 0x00400048 c. Why is the instruction at Ox0040004C needed? Save tra d. What value is put into the $ra at 0x00400060? 0x00400064 e. What value is put into the PC at 0x00400060? 0x 00400028 f. What value is put into the PC at 0x00400030? 0x00400064 g. Why is the instruction at 0x0040006C needed? dean up stack h. What value is out into the PC at 0x00400070? 0x00400000 0x00400000 0x00400008 0x00400000 0x00400010 0x00400028 0x0040002C 0x00400030 0x00400048 0x00400040 0x00400050 0x00400054 Ox00400058 0x00400060 0x00400064. 0x00400068 0x0040006C 0x00400070 .data .text globl main main: ori $50, $0, 8 jal f1 ori $v0, $0, 10 syscall f2: ori $v0, $0, 1 #print value in $a0 syscall jr $ra f1: addi $sp,$sp, -8 sw $ra, O($sp) sw $50, 4($sp) or $20, $0, $50 ori $50, $0, 6 jal f2 Iw $ra,($sp) $50, 4($sp) add $sp,$sp,8 jr Sra

Step by Step Solution

There are 3 Steps involved in it

Step: 1

The image displays someones handwritten notes and questions regarding an assembly code listing on the righthand side of the page Since the notes and q... 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

Project Management The Managerial Process

Authors: Eric W Larson, Clifford F. Gray

8th Edition

1260570436, 978-1260570434

More Books

Students also viewed these Electrical Engineering questions

Question

How can I get my wife pregnant if I am impotent?

Answered: 1 week ago

Question

What is the wavelength of light if its frequency is 1.009 106 Hz?

Answered: 1 week ago

Question

600 lb 20 0.5 ft 30 30 5 ft

Answered: 1 week ago

Question

How important is a fun culture for innovation?

Answered: 1 week ago