Complete this following MIPS assembly language program thattakes a decimal integer from a user and outputs a 8-bit binarynumber.
Basically, the only work to do on this code is to:
1– Print a space character betweeneach of the four (4) bits
2– Display a meaningful errormessage and terminate if the number is out of range. Recall thatthe largest signed one byte number is 0111 11112=27 – 1 = 127. The smallest possible number is 100000002 = -27 = -128.
The MIPS Code :
# gets user input
.data
msg: .asciiz “Enter a number: “
.text
li $v0, 4
la $a0, msg
syscall
# Reads integer
li $v0, 5 # take 5 times
syscall
add $t0, $zero, $v0
#
PayPal Gateway not configured
PayPal Gateway not configured