I'm having a problem with loading completely full ram banks from disk in BASIC. I've got a file that's 8194 bytes (2 location header bytes + 8192 data bytes) and when I try and load it up with:
POKE $9F61,1: load"bank1.prg",8,1,$a000
then it just loads memory with a bank full of zeros, seemingly ignoring the file completely.
If I trim 2 bytes off the "bank1.prg" file size, to exactly 8192 bytes (2 location header bytes +8190 data bytes) then it loads into the bank fine, leaving two empty bytes at the end of the bank.
Am I doing something wrong, or is this an emulator "feature" that needs addressing?
Question
JohnGill
Hi all,
I'm having a problem with loading completely full ram banks from disk in BASIC. I've got a file that's 8194 bytes (2 location header bytes + 8192 data bytes) and when I try and load it up with:
POKE $9F61,1: load"bank1.prg",8,1,$a000
then it just loads memory with a bank full of zeros, seemingly ignoring the file completely.
If I trim 2 bytes off the "bank1.prg" file size, to exactly 8192 bytes (2 location header bytes +8190 data bytes) then it loads into the bank fine, leaving two empty bytes at the end of the bank.
Am I doing something wrong, or is this an emulator "feature" that needs addressing?
thanks
Link to comment
Share on other sites
2 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.