How to I avoid user input integer that overflow in MIPS? Which over the range 2,147,483,647

42 views Asked by At
li $v0, 5
syscall
move $t1, $v0

bgt $t1, 2147483647, outOfRange

I already set if greater than 2,147,483,647, then jump to outOfRange, but when I run in mars, the system still show me the error (Invalid integer input) rather than jump to outOfRange and run the instruction I set.

0

There are 0 answers