MIPS: Append to text file

1.2k Views Asked by At

I need to append a string to a text file. Is there a way to open the file for append in MIPS, (I use Mars simulator) ? And if it it what flag should I use, I presume that should be 4 but it doesn't work and I cannot find a list of available flags for service 13 anywhere ?

1

There are 1 best solutions below

1
On BEST ANSWER

I cannot find a list of available flags for service 13 anywhere

They're listed here. According to that page "MARS implements three flag values: 0 for read-only, 1 for write-only with create, and 9 for write-only with create and append. "