Question: Q1] Write an ARM assembly program that will implements the following equation of high 2.5/5 language pseudocode. B-4, C-4, D-3 and map B in rO,
![Q1] Write an ARM assembly program that will implements the following](https://s3.amazonaws.com/si.experts.images/answers/2024/08/66d0748ad213c_35466d0748a6ae14.jpg)
Q1] Write an ARM assembly program that will implements the following equation of high 2.5/5 language pseudocode. B-4, C-4, D-3 and map B in rO, C in r1, D in r3 C:(B44)/8-12C*D a) Copy the assembly code, and add its snapshot of the program from ARMSim.[1.5] b) Place a snapshot of the register content after the program execution c) Discuss how you implement the division process [0.5] [0.5] Solution Q2] Write an assembly program that prints the bit position from 7 to 1, (such as, if the value 2.5/5 of c-128, then the bit position b-7, and so on) Please map A-1 in rO, map B-0 in r1 and C-128 in r2 Hint: you CAN use the pseudo code to help you: while (a ! c) if (c & a)0) a) Copy the assembly code, and add its snapshot of the program from ARMSim. b) A screen shot to shows the contents of the CPSR (N, Z, C, and V) flags c) Please, put a screen shot for the results and discuss it. [1] 0.75 [0.75] Solution Q1] Write an ARM assembly program that will implements the following equation of high 2.5/5 language pseudocode. B-4, C-4, D-3 and map B in rO, C in r1, D in r3 C:(B44)/8-12C*D a) Copy the assembly code, and add its snapshot of the program from ARMSim.[1.5] b) Place a snapshot of the register content after the program execution c) Discuss how you implement the division process [0.5] [0.5] Solution Q2] Write an assembly program that prints the bit position from 7 to 1, (such as, if the value 2.5/5 of c-128, then the bit position b-7, and so on) Please map A-1 in rO, map B-0 in r1 and C-128 in r2 Hint: you CAN use the pseudo code to help you: while (a ! c) if (c & a)0) a) Copy the assembly code, and add its snapshot of the program from ARMSim. b) A screen shot to shows the contents of the CPSR (N, Z, C, and V) flags c) Please, put a screen shot for the results and discuss it. [1] 0.75 [0.75] Solution
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
