For the next three questions, refer to this assembly program, and assume little endian. Note that...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
For the next three questions, refer to this assembly program, and assume little endian. Note that each instruction takes 4-bytes. Address 0x00000000 0x00000004 0x000000 | loop: 0x0000000C | 0x00000010 | 0x00000014 | end: B 0x00000018 | fun1: SUB 0x0000001C | PUSH {LR} 0x00000020 BL fun2 0x00000024 | POP {LR} 0x00000028 | BX LR 0x0000002C | fun2: MOV R8, #0x0000 0x00000030 MOVT R8, #0x2000 0x00000034 | LSL R1, RO, #2 0x00000038 ADD R8, R1 0x0000003C 1 STR RO, [R8] 0x00000040 BX LR | Code | main: MOVS RO, #0x3 | BEQ end BL CMP BGT fun1 RO, #0x0 loop end RO, #0x1 Assume PC is set to: 0x00000008 On the next time step (in other words, after the instruction at PC=0x00000008 executes), what will the contents of the following registers be? Enter all 32 bits for each, written in hexadecimal with the Ox included. PC: LR: Assume PC is set to: 0x00000024 Assume SP is set to: 0x20017FFC On the next time step (in other words, after the instruction at PC=0x00000024 executes), what will the contents of the following registers be? Enter all 32 bits for each, written in hexadecimal with the Ox included. SP: LR: Assume the program has finished running and has entered the infinite loop with PC set to: 0x00000014. What are the contents of these memory locations? Enter the 1-byte value for each address as an 8-bit hexadecimal number with the Ox included. Address: Ox2000000B 0x2000000A 0x20000009 0x20000008 0x20000007 0x20000006 0x20000005 0x20000004 0x20000003 0x20000002 Ox20000001 0x20000000 Contents For the next three questions, refer to this assembly program, and assume little endian. Note that each instruction takes 4-bytes. Address 0x00000000 0x00000004 0x000000 | loop: 0x0000000C | 0x00000010 | 0x00000014 | end: B 0x00000018 | fun1: SUB 0x0000001C | PUSH {LR} 0x00000020 BL fun2 0x00000024 | POP {LR} 0x00000028 | BX LR 0x0000002C | fun2: MOV R8, #0x0000 0x00000030 MOVT R8, #0x2000 0x00000034 | LSL R1, RO, #2 0x00000038 ADD R8, R1 0x0000003C 1 STR RO, [R8] 0x00000040 BX LR | Code | main: MOVS RO, #0x3 | BEQ end BL CMP BGT fun1 RO, #0x0 loop end RO, #0x1 Assume PC is set to: 0x00000008 On the next time step (in other words, after the instruction at PC=0x00000008 executes), what will the contents of the following registers be? Enter all 32 bits for each, written in hexadecimal with the Ox included. PC: LR: Assume PC is set to: 0x00000024 Assume SP is set to: 0x20017FFC On the next time step (in other words, after the instruction at PC=0x00000024 executes), what will the contents of the following registers be? Enter all 32 bits for each, written in hexadecimal with the Ox included. SP: LR: Assume the program has finished running and has entered the infinite loop with PC set to: 0x00000014. What are the contents of these memory locations? Enter the 1-byte value for each address as an 8-bit hexadecimal number with the Ox included. Address: Ox2000000B 0x2000000A 0x20000009 0x20000008 0x20000007 0x20000006 0x20000005 0x20000004 0x20000003 0x20000002 Ox20000001 0x20000000 Contents
Expert Answer:
Answer rating: 100% (QA)
1 After the instruction at PC0x00000008 executes PC 0x00000008 4 0x0000000C LR ... View the full answer
Related Book For
Computer Organization And Design The Hardware Software Interface
ISBN: 9780123747501
4th Revised Edition
Authors: David A. Patterson, John L. Hennessy
Posted Date:
Students also viewed these programming questions
-
Suppose a company's cash flow oscillates for 5 years and then it starts to grow and mature after that. W is the company worth? Use some real parameters to estimate the value per share.
-
Ornithologists have determined that some species of birds tend to avoid flights over large bodies of water during daylight hours. It is believed that more energy is required to fly over water than...
-
Follow the outline presented in Problem 67 to determine the probability of being dealt exactly one pair.
-
Why, do you think, was the UKs performance in overall industrial production in the 1980s and 1990s better than in manufacturing production, but worse in the past few years?
-
The following data are for Huang Wong Ping Retail Outlet Stores. The account balances (in thousands) are for 2017. 1. Compute (a) the cost of goods purchased and (b) the cost of goods sold. 2....
-
(Issuance, Exercise, and Termination of Stock Options) On January 1, 2010, Magilla Inc. granted stock options to officers and key employees for the purchase of 20,000 shares of the companys $10 par...
-
A 25-year-old Latin, G1P1, cisfemale presents to the office with a 6-month history of amenorrhea; reports having regular menstrual cycles every month up until about 1 year ago when her menstrual...
-
On December 1, 20x1 Pimlico made sales to a customer in India and recorded Accounts Receivable of 10,000,000 rupees. The customer has until March 1, 20x2 to pay. On December 1, 20x1, Pimlico paid...
-
When a wave travels through a medium, individual particles execute a periodic motion given by the following equation: y = 4.0 sin{4(2t+x/8)}, where x and y and are in meters and is in seconds. What...
-
2. Ms. Melody decided to invest 800 dollars per month in her pension fund at the beginning of each month (6% annual rate), for thirty years, before her retirement. Ms. Melody also decided that, at...
-
Summarize the extract given below FAO-Funded Aquaponics Project Launched In Barbados Barbados GIS The United Nations Food and Agriculture Organization (FAO) has collaborated with the Ministry of...
-
Suppose you have $6,000 in savings when the price level index is at 100. a. What is the real value of your savings if the price level increases by 12 percent for the year? b. What is the real value...
-
Examine key criteria related to stock investments. Understand a company's business, operating strategy, and financial performance, as well as the industry within which a company operates Evaluate a...
-
You working on a project in your company. You cannot get proper attention from your team members because they are involved on completing process related jobs and you have little or no authority in...
-
Modify the CYK algorithm so that it applies to any CFG, not just those in CNF.
-
Assuming there are no stalls or hazards, what is the utilization of the data memory? The remaining problems in this exercise assume that instructions executed by the processor are broken down as...
-
Calculate the MTBF for each of the devices in the table. Mean Time Between Failures (MTBF), Mean Time To Replacement (MTTR), and Mean Time To Failure (MTTF) are useful metrics for evaluating the...
-
Find the word or phrase from the list below that best matches the description in the following questions. Use the numbers to the left of words in the answer. Each answer should be used only once....
-
A firm in Saudi Arabia uses capital and labor in its production process. The hourly cost of labor is SR30 and the initial rental rate of capital is SR60 per hour. What is the firm's isocost line? How...
-
Canada removed all duties and quotas on imports from Bangladesh in 2003. Since that time, Bangladesh has become the second largest source (after India) of Canadian merchandise imports from South...
-
A firm has the cost curve \(C(q)=100+150 q-\) \(46 q^{2}+5 q^{3}\). What are the equations of the firm's marginal cost, average variable cost, and average cost curves? What are the minimum values of...
Study smarter with the SolutionInn App