Question Write a single ARM assembly instruction equivalent to the following MOV
ID: 3725473 • Letter: Q
Question
Question Write a single ARM assembly instruction equivalent to the following MOV r10, #0x22 SUB r11, r10, r8 Question 4 Write a short ARM assembly program which loads the value 0x08CB85A1 into register rO. You may only use the instructions AND and OR, as well as the barrel shifter. Assume all source registers may be used as scratch registers. Question 5 Write a short ARM assembly program that evaluates the following expression. You should not destroy the value of any register other than rO which will get the computed expression value (and of course R15, which is the PC) rO(r3r45) 8+156-4"r1) Question 6 Which ones of the following are valid ARM immediates and which ones are not valid? For invalid immediates, explain why they are invalid. #0xC000000A #0x0ab 10000 #0x00002D80 #0x0000030E #9536Explanation / Answer
Question 3
You can write the given instructions in a single instruction by uing RSB which lets you subtract the contents of a regiter from a constant
RSB r11,r8,#0x22
subtract 0x22 from r8 and store it in r11, usig reverse subtract
Related Questions
Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.