I'm trying to get a user to enter in a string of characters and then parse each character and save them into each of their own registers. So far i have the user entering the string, but i don't know where the string is stored.
li $v0, 8
la $a0, expr
li $a1, 20
syscall
For example if someone enters in the string '56+'. In ASCII, the string is represented by 3 sets of 2 numbers. i want to store the 56 and + in their own registers. How can i do this? I know there's a sb and lb instruction, but I'm not sure how to implement since I don't even know how to load the input string!
li $v0, 8
la $a0, expr
li $a1, 20
syscall
For example if someone enters in the string '56+'. In ASCII, the string is represented by 3 sets of 2 numbers. i want to store the 56 and + in their own registers. How can i do this? I know there's a sb and lb instruction, but I'm not sure how to implement since I don't even know how to load the input string!