Question: please solve this program with comments This lab introduces Assembly Langunge (ASM) Programming for ARM CPUs. The ASM program created in this lab will demonstrate

please solve this program with comments please solve this program with comments This lab introduces Assembly Langunge (ASM)

This lab introduces Assembly Langunge (ASM) Programming for ARM CPUs. The ASM program created in this lab will demonstrate arithmetic and logical operations. Getting Started: 1. Begin by creating an ASM program called Lab5.8. 2. Add a data section to the program with four labels for variables. Two variables should be type byte, and two should be type ascii. 3. Create a start section that displays the addition and subtraction of the number variables in any order. 4. Example output: 2+3=5, 2-3-1 5. Use the ascii variables to hold the "+" and -" characters. 6. Next load two registers with 8-bit arbitrary values. 7. Print the originl values of these two registers to the screen. 8. Perform a quick multiplication on the number in the first register by performing a Logical Shift Left (LSL). Left shifts will multiply the contents of a register by 2, where is the shift amount. Set the shift amount to 3 (multiply by 8) and print the output to the screen. 9. Perform a quick division on the mumber in the second register by performing a Logical Shift Right (LSR). Right shifts will multiply the contents of a register by 2 where is the shift amount. Set the shift amount to 2 (divide by 4) and print the output to the screen

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!