Question: In EMU 8 0 8 6 . Write a program that will generate the first 5 0 even numbers, starting with 2 but then print

In EMU8086. Write a program that will generate the first 50 even numbers, starting with 2 but then print the
numbers out in reverse order, e.g.
100
98
.
.
.
12
10
8
6
4
2
DO NOT start at the last value (100) and count backwards if you want any points! I specifically
want you to start with the low value 2, store it either on a stack or in a one dimensional array
where you would place the value in element (0). You will then increment the value by 2 to 4 and
then store that value on either the stack or in the next array element. You will continue this
process until you have created all 50 even values. You will then print the values on the stack or
array in reverse order. If you used a stack, youll pop and print; if you used a 1-D array, youll
start printing from the last subscript, print and then move backward. Yes I know you can do this
with a single register and count backwards, but thats not the point -- you have to perform
memory manipulation in order to successfully complete this program. You may print your
output in either hex or decimal.

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 Programming Questions!