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?
-
Refer to the information in QS 6-5 and assume the periodic inventory system is used. Determine the costs assigned to ending inventory when costs are assigned based on specific identification....
-
A random sample of n = 1483 adults in the US were asked whether they consider a car a necessity or a luxury, and we find that a 95% confidence interval for the proportion saying that it is a...
-
Indicate by letters which of the following control activities match with the following descriptions: Separation of duties (SD) Restricted access (RA) Proper authorization (PA) Adequate documents and...
-
The following information for Lesky Corporation covers the year ended December 31, 2010: Required Change this statement to a multiple-step format, as illustrated in this chapter. LESKY CORPORATION...
-
Let u= (3, 5, 1) and v = (2, -2, 3). Find 8u + 7v = i 8u + 7v. i ).
-
Which series has the highest beta. BraveNewCoin Liquid Index for Bitcoin 1D BNC Trading Brave Ne Yellow Green Blue Orange
-
Lola is in charge of monitoring environmental impact at a medical devices manufacturer. In order to identify, manage, monitor and control the companys environmental risks and opportunities, she...
-
Using the given equation, (a) find the intercepts of its graph and (b) graph the equation. 1 1 6x+3y=1
-
An add-and shift multiplier Is shown in Figure B1 which computes the product of two 4-bit integer numbers and is comprised of a control circuit and data path. a) The control circuit may be organised...
-
Record closing of credit balances in temporary accounts. Record closing of debit balances in temporary accounts. Record closing of income summary account. Record closing of dividends account....
-
3. A motorcyclist with a mass of 75.0 kg does a stunt where he drives through a vertical loop of radius 18.0 m. He controls his speed and maintains a constant speed of 15.0 m/s the entire time he is...
-
You are selling the HALL OF FAME CLUB experience to a prospect that WANTS TO INCREASE SALES. YOU are a Corporate account representative for the Tampa Bay Buccaneers. You work with organizations to...
-
Add more details to explain why and how to fix it. Thank you so much. 5. Write a detailed description of the error(s) in these class definitions. Do not fix the code. public class Test Class {...
-
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?
-
Clausius-Clayperon equation is applicable to (a) Solid-vapour (b) Solid-liquid (c) Liquid-vapour (d) All of these.
-
The reaction \(A(\mathrm{l}) ightarrow R(\mathrm{~g})\) is allowed to reach equilibrium condition in an autoclave. At equilibrium there are two phases - one a pure liquid phase of \(A\) and the other...
-
The equilibrium constant for the reaction \(\mathrm{N}_{2}(\mathrm{~g})+3 \mathrm{H}_{2}(\mathrm{~g}) ightarrow 2 \mathrm{NH}_{3}\) is 0.1084 . Under the same conditions, the equilibrium constant for...
Study smarter with the SolutionInn App