Digit recognition in MIPS