Question 5 Write MIPS assembly program to print integer number from 1 to 100. Each number should be printed in a separate line. Note: • The system call code is 1 for printing an integer and is 11 for printing a character. For both cases, the argument (i.e., data to print) should be stored in $a0. • The character of "new line" is "\n. • You can use instruction li $r '\n' to load the character "\n' into a register $r.

C++ for Engineers and Scientists
4th Edition
ISBN:9781133187844
Author:Bronson, Gary J.
Publisher:Bronson, Gary J.
Chapter10: Pointers
Section10.1: Addresses And Pointers
Problem 3E
icon
Related questions
Question
Question 5
Write MIPS assembly program to print integer number from 1 to 100. Each number should
be printed in a separate line.
Note:
• The system call code is 1 for printing an integer and is 11 for printing a character. For
both cases, the argument (i.e., data to print) should be stored in $a0.
• The character of "new line" is "\n.
• You can use instruction li $r "\n' to load the character "\n' into a register $r.
Edit View Insert Format Tools Table
12pt v
Paragraph v B IUA
vev T? v :
Transcribed Image Text:Question 5 Write MIPS assembly program to print integer number from 1 to 100. Each number should be printed in a separate line. Note: • The system call code is 1 for printing an integer and is 11 for printing a character. For both cases, the argument (i.e., data to print) should be stored in $a0. • The character of "new line" is "\n. • You can use instruction li $r "\n' to load the character "\n' into a register $r. Edit View Insert Format Tools Table 12pt v Paragraph v B IUA vev T? v :
Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 2 steps

Blurred answer
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
C++ for Engineers and Scientists
C++ for Engineers and Scientists
Computer Science
ISBN:
9781133187844
Author:
Bronson, Gary J.
Publisher:
Course Technology Ptr