alright so i figured out how to get the 2 inputs. I also got some examples on looping through arrrays and stuff. Now i have to figure out how to convert them to binary and store the binary numbers into arrays which i have no clue how to do.
Here is what i have so far:
.text
main:
la $a0,prompt_in #print prompt on terminal
li $v0,4 #prints a string on the terminal
syscall
li $v0,5 #reads in an integer
syscall
#move $a0,$v0
#li $v0,1 #prints integer
#syscall
la $a0,prompt_ina #print prompt on terminal
li $v0,4 #prints a string on the terminal
syscall
li $v0,5 #reads in an integer
syscall
#move $a0,$v0
#li $v0,1 #prints integer
#syscall
#convert numbers entered to binary:
#div $v0,$v0,2 #divide by 2
#li $v0,1
#syscall
li $v0,10 #exit program
syscall
.data
prompt_in: .asciiz "Enter first integer: " # first integer
prompt_ina: .asciiz "Enter second integer: " #second integer
prompt_out: .asciiz "The hamming distance is "