Write a single line of ARM assembly code to set bits 7, 10, and 12 of...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
Write a single line of ARM assembly code to set bits 7, 10, and 12 of register r9. Write a single line of ARM assembly code to invert the lower six bits of register r1. 9. a) What are the contents of register r9 after the following instructions have executed? Assume rland r6 contain 0x08 CB85A1 and 0x2 8EC75A9 respectively. BOR r9, r1, r6 b) Replace the following ARM assembly language instruction sequence with a single line of ARM assembly code. c) MVN 14, 14 AND r3, r3, r4 MVN 14, 14 Write a short program which implements the following line of high level language pseudocode. Assume all source registers may be used as scratch registers. ro: (r3+29)/8+ 17 r2 * r1 Write two lines of ARM assembly language equivalent to the following code segment. ADD ro, ro, #5 LDRH r9, [ro] SUB r9, 19, #3 Given the memory map shown below, determine the contents of r0 and r2 after the following ARM assembly language instructions have executed. Indicate all changes to the memory map after the program is complete. Assume that r0 and r2 initially contain 0x00008A0D and 0x0000000A respectively. The byte ordering is little endian. LDRSH r2, [ro, #1] STR r2, [ro , #-5] Address 0x00008A10 Contents OxE2855001 0x00008A0C 0xFFFCA37F 0x00008A08 0x4EA9C786 0x00008A04 OXAF015613 0x00008A04 0x00008A07 Write a single line of ARM assembly code to set bits 7, 10, and 12 of register r9. Write a single line of ARM assembly code to invert the lower six bits of register r1. 9. a) What are the contents of register r9 after the following instructions have executed? Assume rland r6 contain 0x08 CB85A1 and 0x2 8EC75A9 respectively. BOR r9, r1, r6 b) Replace the following ARM assembly language instruction sequence with a single line of ARM assembly code. c) MVN 14, 14 AND r3, r3, r4 MVN 14, 14 Write a short program which implements the following line of high level language pseudocode. Assume all source registers may be used as scratch registers. ro: (r3+29)/8+ 17 r2 * r1 Write two lines of ARM assembly language equivalent to the following code segment. ADD ro, ro, #5 LDRH r9, [ro] SUB r9, 19, #3 Given the memory map shown below, determine the contents of r0 and r2 after the following ARM assembly language instructions have executed. Indicate all changes to the memory map after the program is complete. Assume that r0 and r2 initially contain 0x00008A0D and 0x0000000A respectively. The byte ordering is little endian. LDRSH r2, [ro, #1] STR r2, [ro , #-5] Address 0x00008A10 Contents OxE2855001 0x00008A0C 0xFFFCA37F 0x00008A08 0x4EA9C786 0x00008A04 OXAF015613 0x00008A04 0x00008A07
Expert Answer:
Related Book For
Income Tax Fundamentals 2013
ISBN: 9781285586618
31st Edition
Authors: Gerald E. Whittenburg, Martha Altus Buller, Steven L Gill
Posted Date:
Students also viewed these computer network questions
-
can someone solve this Modern workstations typically have memory systems that incorporate two or three levels of caching. Explain why they are designed like this. [4 marks] In order to investigate...
-
The following auditors report was drafted by a staff accountant of Turner & Turner, CPAs, at the completion of the audit of the financial statements of Lyon Computers, Inc. (a non-public company) for...
-
A particle has a charge of q = 15.60 C and is located at the coordinate origin. As the drawing shows, an electric field of Ex = +245 N/C exists along the +x axis. A magnetic field also exists, and...
-
The Naples paid Keystone Building \($620,000\) to build a new home. It had major defects that Keystone failed to correct despite a warranty on the house. A qualified expert said repairs would cost...
-
Laura states "Our company's transactions with related parties are all at arm's length prices, so I do not see why we need to have related party disclosures".
-
Sarah plans to purchase a forward contract on 180-day bank bills, to be delivered at the end of 90 days, with face value of $200,000. The current spot rate for 270-day bank bills is 3.26% p.a....
-
The amount of realized gain to be recognized in a tax year is equal to the gross profit multiplied by the ratio of payments received in the current year divided by the total contract price. ...
-
In light of the successful turnaround do you think the federal bailout of GM was warranted What are the pros and cons after the fact Which factors that were pivotal to the sales rebound at GM were...
-
You want to buy 2 books each costing $2.89. How many dollar bills should you take to the store?
-
Imagine that you are a programming consultant. One of your smaller clients needs your help writing a program. Your client has an e-commerce Web site but wants to avoid being sued for allowing...
-
a) On the basis of a one-factor model, assume that the risk-free rate is 6% and the expected return on a portfolio with unit sensitivity to the factor is 8.5%. Consider a portfolio of two securities...
-
Calculate the following NPV. Calculate the discount rate (Rf=3%, B=1.0, Excess Return=10.2%) and apply to the following cash flows: CF0=$100,000 CF1=$20,000 CF2=$50,000 CF3=$45,000 CF4=$65,000 Show...
-
You can select any data of your choice, there are some data sets to download from SAS website and some in your my stat lab. After reading of chapters 5 & 6, review of power points and videos on my...
-
The Procurement Manager anticipated that the components industry would be facing a price hike due to unforeseeable economic conditions. He has sent a proposal to the Managing Director to proceed with...
-
A double-acting duplex pump with 6.5-in. liners, 2.5-in. rods, and 18-in. strokes was operated at 3,000 psig and 20 eycles/min. for 10 minutes with the suction pit isolated from the return mud flow....
-
Graph one period of each function. y = 4 cos x
-
Ken paid the following amounts for interest during 2012: Qualified interest on home mortgage...........................................$4,700 Auto loan...
-
Kathy Kennedy (age 44) is a single taxpayer and she lives at 212 North Pine Way, Payson, AZ 85541. Her Social Security number is 467-98-9784. Kathy's earnings and income tax withholding as the...
-
Ann hires a nanny to watch her two children while she works at a local hospital. She pays the 19-year-old nanny $125 per week for 48 weeks during the current year. a. What is the employer's portion...
-
Use a data dump program to study the format of data on a flash memory card used as a file system.
-
Define these signal types in a timing diagram: a. changing; b. stable.
-
Have someone else deliberately introduce a bug into one of your programs, and then use the appropriate debugging tools to find and correct the bug.
Study smarter with the SolutionInn App