Question: Q-1: Write a program in Assembly language using MIPS instruction set that reads an integer number N from user and prints the numbers from 1
Q-1: Write a program in Assembly language using MIPS instruction set that reads an integer number N from user and prints the numbers from 1 to N and from N to 1 using two loop instructions Sample Input/Output: Enter an integer number(N): 25 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 25 24 23 22 21 20 19 18 17 16 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 Sample Input/Output: Enter an integer number(N): 19 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 19 18 17 16 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
