Question: Write a MIPS program using Mars that does the following. 1) Asks the user for a 8 bit two's complement binary number (must input all
Write a MIPS program using Mars that does the following.
1) Asks the user for a 8 bit two's complement binary number (must input all 8 binary numbers at once) and then print it
2) Convert the binary number to a signed extended integer and print the hexadecimal value of the signed extended integer.
Sample Output 1
The binary number entered is: 00000010
The Hexadecimal Value is: 0x00000002
Sample Output 2
The binary number entered is: 11111100
The hexadecimal value is: 0xFFFFFFFC
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
