2
votes

I'm writing some mips code that reads in ~4kb per iteration of a loop. The problem is that the mp3 file that I'm reading from contains multiple instances of 1A, so syscall 14 stops and won't read anymore without reaching the actual end of the file. Is there any way around this? Also, does anyone have a complete list of the flags that can be added to syscall 13?

Thanks

2
What emulator are you using? Are you programming on a board? If so, what o.s. is it running. Syscalls vary from s.o to s.o / emulator to emulator.Tom
Apologize for my spanglish, thats " from o.s to o.s "Tom

2 Answers

1
votes

If you're using the MARS simulator, I don't think this is possible (unless someone's extended the syscall interface in your particular install). From the docs here:

MARS implements two modes: 0 for read and 1 for write, and ignores flags.

If you're using a simulator other than MARS, you need to tell us which one. Not all of them implement the same syscalls.

0
votes

Try opening the file in binary mode.