Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Your program will find the sum of numbers input and display all of the input values. You will be writing an assembly language project (
Your program will find the sum of numbers input and display all of the input values. You will be writing
an assembly language project using the virtual machine described in class and available on Canvas to
perform a series of three tasks. These tasks will build on each other, starting with the simplest program
and progressing to the full program. The full program will read in numbers from the keyboard until the
value is entered, then display all of the numbers that were entered, followed by their sum.
Task :
Write a program that will read in numbers until the value is entered on the keyboard. Call this
program taskasmuse the txt suffix if you are using eclipse to write the program
Task :
Make a copy of your taskasm file called taskasm using cp taskasm taskasm on the shell
command line. This program should read in numbers until is entered and then display the sum of all
single digit numbers and that were entered. is used a flag to end the program, do not
use in the sum.
Task :
Make a copy of taskasm and call it taskasm The stack must be used for this program. This final
version should read in numbers until is entered, it should display all of the numbers entered not just
single digit ones followed by printing out the total of these numbers following these rules:
If a single digit number then multiply the single digit number to the accumulator.
All other numbers then add the number to the accumulator.
Do not display as being entered, nor include it in the total.
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