3. (20 points) Answer the questions about the code on the right Show all values as...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
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 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
Expert Answer:
Answer rating: 100% (QA)
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 the full answer
Related Book For
Project Management The Managerial Process
ISBN: 9781260570434
8th Edition
Authors: Eric W Larson, Clifford F. Gray
Posted Date:
Students also viewed these electrical engineering questions
-
Can someone help me with physics? I would appreciate any help someone can give me. An explanation would greatly help my understanding of the topic. At launch the space shuttle weighs 4.5 million...
-
How can I get my wife pregnant if I am impotent?
-
The article Can We Really Walk Straight? (American Journal of Physical Anthropology [1992]: 1927) reported on an experiment in which each of 20 healthy men was asked to walk as straight as possible...
-
What is the wavelength of light if its frequency is 1.009 106 Hz?
-
Harlem Tool & Die reported wage and salary expenses of $155,000 on its 20X1 income statement. It reported cash paid to employees of $136,000 on its statement of cash flows. The beginning balance of...
-
Determine the maximum weight W that can be supported in the position shown if each cable AC and AB can support a maximum tension of F before it fails. Given: θ = 30 deg F = 600 lb c = 12 d = 5...
-
When the plaintiff was 16, he was employed by Kmart as a cashier. At the end of his training, he was required to read Kmarts policy agreement, which included an agreement to submit all employment...
-
Picasso Restoration Company completed the following selected transactions during August 2012: Aug. 1. Established a petty cash fund of $750 10. The cash sales for the day, according to the cash...
-
A function and its graph are given. Find the domain. (Enter your answer using interval notation.) f(x) x-5 = X-8 (-0,8) U (8,00) y 10 K 5 -5 -10 X 2 4 8 10 12
-
A slipper-pad bearing (Fig. P1023) is often encountered in lubrication problems. Oil flows between two blocks; the upper one is stationary, and the lower one is moving in this case. The drawing is...
-
(15 pts) A certain polymer needs to be heated by a heat lamp for at least 1 minute to cure properly at 50 C. The optimum height of the heat lamp above the parts is 75 cm. The heat lamp can maintain...
-
Briefly explain the effects of "budgetary slack". Provide two examples Pam Worth used to create budget slack. (2 marks) 2) What are three dimensions of the fraud triangle? Using the identified...
-
List two ( 2 ) ( 2 ) consequences of breaching workplace code of conduct
-
Peacok Corporation has a target capital structure of 70% common stock, 5% preferred stock, and 25% debt. It cost of equity is 11%, and the cost of preferred stock is 5%, an the cost of the debt is...
-
Briefly describe one qualitative and one quantitative tool or technique that can be used to estimate activity durations in St. Dismas ALF Project.
-
What is the primary concern associated with investing in assets exhibiting negative skewness in returns?
-
Given z=-24-26x is a curve in the xz-plane. If the equation of the surface generated by revolving the curve about the z-axis is ax+az (Notice that you have to write the surface equation where the...
-
In the operation of an automated production line with storage buffers, what does it mean if a buffer is nearly always empty or nearly always full?
-
What benefits do small pharma firms accrue through outsourcing project work?
-
Place in order the following countries in terms of what you think would be the least to most corrupt: United States, Denmark, Saudi Arabia, Canada, Australia, France, China, Thailand, Botswana, Chile...
-
How important is a fun culture for innovation?
-
Why has subordinate legislation come to prominence?
-
What are the advantages of a settlement over a court trial?
-
Define appellant ; respondent ; counterclaim ; counsel ; bench ; writ ; settlement ; pleadings ; party and party costs ; res judicata .
Study smarter with the SolutionInn App