Question: 4. Write an ALP using the ARM instruction set to check if a number stored in a register is even or odd. If the stored
4. Write an ALP using the ARM instruction set to check if a number stored in a register is even or odd. If the stored number is even, store 00 in R0, else store FF in R0.
5. Based on the value of the number loaded in R0, write a program to store 1 in R1 if R0 is zero, Store 2 in R1 if R0 is positive, Store 3 in R1 if R0 is negative.
6. Write a program to evaluate the expression C = (A+B) + (5*B), where A and B are available in memory and store the final result in memory Location C.
Note: For Question # 4-6, submit .s file.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
