CPSC250 Lab 2:  Conditions, Loops, I/O MIPS Assembly Programming solution




5/5 - (5 votes)


Learn to develop assembly language programs using standard I/O.


What to Hand In

Completed Larger.asm, SimpleSum.asm

  1. Write a MIPS assembly program (Larger.asm) that will read two numbers from the user, and print out the larger of the two to the console (“The larger number is: “)


  1. Write a MIPS assembly program (Sum.asm) with comments that calculates the sum of N integers: 1 + 2 + 3 + … N. Prompt the user for the value of N. and print-out the sum to the console (“The Sum of N integers is: “).


Create some null terminated strings to prompt the user and provide results.