Question: Make an Assembly Program to finish the following tasks (Linux Language): 1. Use Loop control statement to sum the following numbers up, and store the
Make an Assembly Program to finish the following tasks (Linux Language):
1. Use Loop control statement to sum the following numbers up, and store the result in a 8-byte qSum variable. Each number has 8 bytes. 5+10+15+20++100
2. Use Loop control statement to push each number onto the stack (Steps 1 and 2 can be in the same loop)
3. After steps 1 and 2, use another loop to pop each number from the stack to an array (qArray). The array should contain a reversed order of numbers, such as 100, 95, 90,15,10,5.
4. Show the compilation process with screenshots.
5. Find out debugging commands to show the following values (with screenshots).
a. qSum
b. After step 2, the memory address on the top of stack
c. After step 2, the value on the top of stack
d. qArray[0]
e. qArray[5]
f. qArray[9]
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
