I've been learning a bit about MIPS and I'm required to write a Factorial program that takes in input and prints out nth Factorial. Positive integers are not a problem, and their spec requires me to print 1 for negative input which is fine since branch operation blez does the job.
The twist here is that I'm also required to accept text as input as well in which case I'd also print 1 instead of the usual factorial. Is there any way I can simultaneously read something then process it depending on the data type, or perhaps I can do something about the Invalid Integer Input exception I get when I type in "first" instead of an int. I'm kind of lost here so any advice would be greatly appreciated.