Question: Question #1 [2 marks]: Write more efficient code consisting of two ARM assembly instructions that are equivalent to the following instructions sequence: MOV ri, r1,

Question #1 [2 marks]: Write more efficient code consisting of two ARM assembly instructions that are equivalent to the following instructions sequence: MOV ri, r1, LSR #2 ADD rl, r3, rl MOV r4, r4, ROR #7 SUB r4, r6, r4 Question #2 [2 marks]: Write a single ARM assembly instruction which will multiply an integer stored in r8 by 7 and store the product in r5. (Note: you cannot use any of the explicit multiplication instructions: MLA, MUL, UMLAL, UMULL, SMLAL, Or SMULL). Question #3 [2 marks]: Given a signed 32-bit integer stored in r10. Write a single ARM assembly instruction that loads the 2's complement of r10 in r4. Question #4 4 marks): Using bitwise logical instructions only, write a short ARM assembly program which loads the value OxA185CB08 into register r3. (Note: You should use valid ARM immediate values ONLY)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
