Question: Question 2 : ( Write in ASSEMBLY LANGUAGE ) Write a function printNumbers that take multiple numbers on stack as input and prints them on
Question :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 then call to printNumbers will be as follow
Start:
Push ; first number to be printed
Push ; second number to be printed
Push ; third number to be printed
Push ; 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 ie 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 inputs
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
