Hi,
I have a simple code written in MIPS assembly that reads an integer from a user and displays it to the screen. The code is as follows:
main:
la $a0, in_msg
li $v0, 4
syscall
li $v0, 5
syscall
move $t0, $v0
la $a0, out_msg
li $v0, 4
syscall
move $a0, $t0
li $v0, 1
syscall
li $v0, 10
syscall
.data
in_msg: .asciiz "Input: "
out_msg: .asciiz "\nOutput:\n-------\n"
How can I convert this decimal value to a binary?
Thank you in advance.