Question
Write a MIPS assembly language program that takes ANY decimal integer from a user and outputs a 32-bit binary number and then add them both
Write a MIPS assembly language program that takes ANY decimal integer from a user and outputs a 32-bit binary number and then add them both together and show the result in BINARY NUMBER. If possible can you also do the same thing for HEX NUMBER, all in one program. The program should run in MIPS32 simulator - QtSpim
Example:
Ask user for first number
User Enters: 5
Output: 0000000000000000000000000000101
Ask user for second number
User Enters: 10
Output: 0000000000000000000000000001010
=========================
Result (output): 0000000000000000000000000001111
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started