Monday 20 June 2022

Assignment - Assembly language-based program for MIPS Architecture based MARS simulator..

Iqra University Computer Organization and Assembly Language Assignment 1.

Write an Assembly language-based program for MIPS Architecture based MARS simulator to take input from user and compare two float numbers. If number one is greater than number two multiply both, and if number one is lesser than number 2; add and subtract both numbers.  

# take 4 numbers input

# then perform multiplication

# and addition between each other 

.data

msgEnterN:   .asciiz "Enter N"

msgAnswer1:   .asciiz "\nMultiply: "

msgAnswer2:   .asciiz "\nAdd: "

msgAnswer3:   .asciiz "\nAverage: "

 click here to see full code.

No comments:

Post a Comment