input - How to prevent the user from inputting strings in MIPS -
I am trying to create a program where the user rounds up the input, not the string. The thing is, if the user actually puts a string, then I get an error. Is there any way to prevent the user from doing string input?
I am using to test here:
.data output_1: .asciiz "\ Enter a number:". Text .globl Main Main: La $ a0, Output_1 li $ v0, 4 syscall li $ v0, 5 syscall
Comments
Post a Comment