Acorn Arcade forums: Programming: Flushing writes to disk
|
Flushing writes to disk |
|
sirbod (19:43 19/4/2012) jeff-doggett (06:51 20/4/2012) sirbod (07:35 20/4/2012) sirbod (16:07 21/4/2012)
|
|
Jon Abbott |
Message #120150, posted by sirbod at 19:43, 19/4/2012 |
Member
Posts: 563
|
Is there a clean way to flush writes to disk?
OS_Args 255 seems to write crap after the final write, up to a 256 byte boundary. I guess that's an undocumented feature! |
|
[ Log in to reply ] |
|
Jeff Doggett |
Message #120157, posted by jeff-doggett at 06:51, 20/4/2012, in reply to message #120150 |
Member
Posts: 21
|
I think that it IS documented somewhere in the filing system docs. It actually always writes to the next block size, which on anything other than floppy media is 512 bytes. |
|
[ Log in to reply ] |
|
Jon Abbott |
Message #120158, posted by sirbod at 07:35, 20/4/2012, in reply to message #120157 |
Member
Posts: 563
|
I found a vague reference to it in one of the PRM's - which is where the 256 bytes came from. Guess that's incorrect. The OS_Args 255 documentation doesn't mention it though.
Looks like I need to write my own disk flush code then. |
|
[ Log in to reply ] |
|
Jon Abbott |
Message #120176, posted by sirbod at 16:07, 21/4/2012, in reply to message #120158 |
Member
Posts: 563
|
Interestingly you don't get rubbish at the end when flushing to the RAM drive. |
|
[ Log in to reply ] |
|
|
Acorn Arcade forums: Programming: Flushing writes to disk |