Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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 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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started