Question: Question #5 [5 marks]: Write a short ARM assembly program that evaluates the following expression. You should not destroy the value of any register other
![Question #5 [5 marks]: Write a short ARM assembly program that](https://dsd5zvtm8ll6.cloudfront.net/si.experts.images/questions/2024/09/66f39ffd274c2_23666f39ffcbe5f6.jpg)
Question #5 [5 marks]: 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). (Note: All numbers are in decimal.) ro := 400 - ( ( (r1 + r2) | 32) + 95 - 8*r3 + r4] Question #6 [5 marks]: Which one of the following are valid ARM immediate values, and which ones are not valid? For invalid immediate values, explain why they are invalid. #Ox0000104E #Ox7C000002 #Ox012E0000 #1432 #1680
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
