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
Step by step
Solved in 3 steps with 3 images