Hi All,
I often write programs to a dsik drive and then secure them so I wrote a little routine to aid in this.
01 LBL 'RWRTPS
02 UNSEC
03 LBL 'WRTPS
04 WRTP
05 SEC
06 END
Calling WRTPS writes and secures the program named in the ALPJA register. Calling RWRTPS updates a 'SECURED' program.
I have been using this little program for years. A few months ago I obtained a NOVRAM 64 and moved a lot of my utility programs (including this one) into HEPAX RAM. Unfortunately running this program out of HEPAX RAM does not work. The program as written to disk (at this point I am testing using PIL-BOX which is another variable since I don't want to trash a floppy with a lot of data on it) can not be read back in most cases (the file on disk is huge compared to the original program size) and in the few cases where you can read it back it is pretty much garbage.
Interestingly enough a little while ago I wrote a program to floppy and the floppy ended up being trashed beyond the point where I wrote the program. Can't read or write anything past that file (which was also trashed). At the time I thought that it was simply that the medium had worn out and thought nothing more about it. Now I am wondering if I used this rotuine out of HEPAX RAM and that was the cause. It has been too long ago now for me to be sure but that might have been the cause.
Has anyone encountered this bug or anything like it? Can anyone reproduce it (fair warning: *DON'T try this on a disk full of programs*)?
Cheers,
-Marwan