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

Popular posts from this blog

java - Can't add JTree to JPanel of a JInternalFrame -

javascript - data.match(var) not working it seems -

javascript - How can I pause a jQuery .each() loop, while waiting for user input? -