Write code in MIPS ,read tow number
from the user that do the
following:
1-
multiply
2-
Dividing
3- sum
4-
average
5-
minimum
6-...
90.2K
Verified Solution
Link Copied!
Question
Programming
Write code in MIPS ,read tow numberfrom the userthat do thefollowing:
1-multiply
2-Dividing
3- sum
4-average
5-minimum
6- maximum
7- printmessage to thank the user for using my program
Answer & Explanation
Solved by verified expert
4.1 Ratings (666 Votes)
GreetingsCodedataprompt asciiz nSelect the operation n1 X x Yn2 X Yn3 X Yn4 AVERAGEn5 MINIMUMn6 MAXIMUMn7 EXITnprompt1 asciiz Enter first number Xn prompt2 asciiz Enter second number Yn out asciiz Result thank asciiz Thank Youtextmain DISPLAY PROMPT la a0prompt li v04 syscall READ OPTION li v05 syscall move t0v0 save the value to t0 beq t07exit if the option is
See Answer
Get Answers to Unlimited Questions
Join us to gain access to millions of questions and expert answers. Enjoy exclusive benefits tailored just for you!
Membership Benefits:
Unlimited Question Access with detailed Answers
Zin AI - 3 Million Words
10 Dall-E 3 Images
20 Plot Generations
Conversation with Dialogue Memory
No Ads, Ever!
Access to Our Best AI Platform: Flex AI - Your personal assistant for all your inquiries!