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

3. (20 points) Answer the questions about the code on the right

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

1 Expert Approved Answer
Step: 1 Unlock

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... View full answer

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 Electrical Engineering Questions!