I try to write a simple MIPS program that accepts user input which is a string, then checks if the user does not input anything to quit the program. I try to use beq to compare the user's input and an empty string, but I do not know how to assign an empty string to a register.
.data
userinput: .space 8
.txet
loop:
li $v0,8
la $a0,userinput
syscall
li $v0, 4
la $a1, // try to assgin an empty string to $a1
beq $a0,$a1, exit
j loop
exit: li $v0 10
syscall