4. Write an ALP using the ARM instruction set to check if a number stored in a...
Fantastic news! We've Found the answer you've been seeking!
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 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.
Related Book For
Principles of Information Systems
ISBN: 978-1305971776
13th edition
Authors: Ralph Stair, George Reynolds
Posted Date: