I have code that loads a file, changes the loaded data, and writes it back into the same file. I noticed when I moved to R46, it will save the file if it doesn't exist, but doesn't appear to overwrite the file if it does. (R45 behaves the same as R46, but I haven't tried with earlier versions.) I've attached a small .asm that shows what I'm seeing.
In R41, I see something like this when I run the PRG multiple times (assuming there is no HISCORE.BIN in the directory when I start). First run makes the file; the second run loads, changes, and saves; the third run sees the second's output, etc:
Code: Select all
LOAD"SAVETEST.PRG",8,1
RUN
00000000 -> 00001000
RUN
00001000 -> 00002000
RUN
00002000 -> 00003000
RUN
00003000 -> 00004000
In R45, R46 (again, I haven't tested R42, R43, or R44), it seems like the file will get created, but subsequent attempts to update it do not work:
Code: Select all
LOAD"SAVETEST.PRG",8,1
RUN
00000000 -> 00001000
RUN
00001000 -> 00002000
RUN
00001000 -> 00002000
RUN
00001000 -> 00002000
I checked through the release notes and didn't see anything specifically about this. So, I wanted to see if this was expected and/or what I'm doing wrong.
Cheers!