Question: Question 2 : ( Write in ASSEMBLY LANGUAGE ) Write a function printNumbers that take multiple numbers on stack as input and prints them on

Question 2:(Write in ASSEMBLY LANGUAGE)
Write a function printNumbers that take multiple numbers on stack as input and prints them on screen. The function also takes total numbers to be printed as input.
For example if numbers to be printed are 134,189,156 then call to printNumbers will be as follow
Start:
Push 134; first number to be printed
Push 189; second number to be printed
Push 156; third number to be printed
Push 3; total numbers to be printed
Call printNumbers
The screen should look like this after this call (be careful about the order in which numbers are printed, it should be same as shown on screen i.e number at end of stack is printed on first line and vice versa )
You can used printNumber routine given in book for this question, and call it multiple times in printNumbers function.
Your function should work with any number of inputs not just 3 inputs
Question 2 : ( Write in ASSEMBLY LANGUAGE ) Write

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!