assembly program 2

assembly program 2

Write an assembly program titled”YourLastName_Program2″ that asks the user for an integer value five times saving each value to a separate register. Then using those five registers, your program should be able to correctly calculate the average of those values using integer division.

A run of your program may look like the following (user input is shown in bold):

Please enter an integer: 5

Please enter another integer: 3

Please enter another integer: 5

Please enter another integer: 9

Please enter another integer: 10

The average of your numbers is: 6


Remember, this course will use the SPIM emulator for MIPS processors. Make sure your programs work on these emulated machines.

the program should be a .s file

"You need a similar assignment done from scratch? Our qualified writers will help you with a guaranteed AI-free & plagiarism-free A+ quality paper, Confidentiality, Timely delivery & Livechat/phone Support.


Discount Code: CIPD30



Click ORDER NOW..

order custom paper