You will write a program in MIPS to do the following. a) Your program should ask the user to input a hexadecimal number. All numbers will be positive. b) The hexadecimal number should be input as a string. c) The hexadecimal string should only be made up of the letters 0-9 and A-F. If any other letters are in the string your program should
-
You will write a program in MIPS to do the following.
a) Your program should ask the user to input a hexadecimal number. All numbers will be positive.
b) The hexadecimal number should be input as a string.
c) The hexadecimal string should only be made up of the letters 0-9 and A-F. If any other letters are in
the string your program should report bad hexadecimal value.
d) The hexadecimal value should be converted to it base 10 value and stored in a register.
e) The base 10 value should be output to the screen.Extra:
a) Take the base 10 number that was computed above and add 256 to that value.
b) Convert the new base 10 number to a hexadecimal string.
c) Print out the new hexadecimal value.Example runs:
Input hex-> 123Good
Bad data
Input hex-> ABCDEF
Base 10 -> 11259375Input hex-> 38
Base 10 -> 56
![](/static/compass_v2/shared-icons/check-mark.png)
Step by step
Solved in 3 steps with 3 images
![Blurred answer](/static/compass_v2/solution-images/blurred-answer.jpg)
![Computer Networking: A Top-Down Approach (7th Edi…](https://www.bartleby.com/isbn_cover_images/9780133594140/9780133594140_smallCoverImage.gif)
![Computer Organization and Design MIPS Edition, Fi…](https://www.bartleby.com/isbn_cover_images/9780124077263/9780124077263_smallCoverImage.gif)
![Network+ Guide to Networks (MindTap Course List)](https://www.bartleby.com/isbn_cover_images/9781337569330/9781337569330_smallCoverImage.gif)
![Computer Networking: A Top-Down Approach (7th Edi…](https://www.bartleby.com/isbn_cover_images/9780133594140/9780133594140_smallCoverImage.gif)
![Computer Organization and Design MIPS Edition, Fi…](https://www.bartleby.com/isbn_cover_images/9780124077263/9780124077263_smallCoverImage.gif)
![Network+ Guide to Networks (MindTap Course List)](https://www.bartleby.com/isbn_cover_images/9781337569330/9781337569330_smallCoverImage.gif)
![Concepts of Database Management](https://www.bartleby.com/isbn_cover_images/9781337093422/9781337093422_smallCoverImage.gif)
![Prelude to Programming](https://www.bartleby.com/isbn_cover_images/9780133750423/9780133750423_smallCoverImage.jpg)
![Sc Business Data Communications and Networking, T…](https://www.bartleby.com/isbn_cover_images/9781119368830/9781119368830_smallCoverImage.gif)