Question: Write a single line of ARM assembly code to set bits 7, 10, and 12 of register r9. Write a single line of ARM


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
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
