Answered step by step
Verified Expert Solution
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
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...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