Question: Easy68K help, assembler - thank you. Using a for loop 10 times. Write a program in Easy68K to fulfill the following functions: Repeat the following
Easy68K help, assembler - thank you. Using a for loop 10 times.
Write a program in Easy68K to fulfill the following functions:
Repeat the following steps 10 times using a loop
Read a number from the input.
Add the number to the accumulator (Hint: the initial value for the accumulator should be 0).
Show the accumulator value (i.e. total sum) in the output.
The output cab be like this:
Please input a number: 7
Please input a number: 3
Please input a number: 2
Please input a number: 0
Please input a number: 1
Please input a number: 2
Please input a number: 5
Please input a number: 4
Please input a number: 6
Please input a number: 8
Total sum is: 38
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
