0

Maybe someone knows the function that reads an integer from a file?

Thanks a lot.

li   $v0, 14       ## system call for ReadFile##
move $a0, $s0
la   $a1, buffer1        # O
li   $a2, 70
syscall  
Thomas Jager
  • 4,836
  • 2
  • 16
  • 30
  • 1
    There is no syscall for that in MARS or SPIM. You will have to parse the bytes in the file into what you want. – Erik Eidt Jul 09 '20 at 20:03
  • The following link, certainly answers your question: https://stackoverflow.com/questions/4147952/reading-files-with-mips-assembly – Confidenc3 Jul 10 '20 at 16:41

0 Answers0