BUG IN LOAD WHEN APPROACHING LIMIT OF BASIC RAM
Posted: Sat Oct 21, 2023 3:16 am
I've been having intermittent bugs in Hangman using Load("BVSAVE700.BIN),1,8
When the memory usage on my program was low it worked fine BVSAVE700.BIN is loaded at $0700 and implements a save screen routine.
As my Memory Usage has gotten higher (I'm at about 18k BASIC Ram after loading my program, Just under 13k after variable initialization and resetting MEMTOP to load ZSMKIT). LOAD started to go into a endless loop. I initially fixed it by moving load to the top of the code and doing it before Variable Initialization, but my code keeps growing and it happened again.
I don't need this bug fixed to finish my program. I used a hex editor and snipped the two byte load header and I'm now using BLOAD and specifying the $0700 load address. BLOAD doesn't seem to have the same problem as LOAD and the Machine Language routine has survived my surgery , it still works .
When the memory usage on my program was low it worked fine BVSAVE700.BIN is loaded at $0700 and implements a save screen routine.
As my Memory Usage has gotten higher (I'm at about 18k BASIC Ram after loading my program, Just under 13k after variable initialization and resetting MEMTOP to load ZSMKIT). LOAD started to go into a endless loop. I initially fixed it by moving load to the top of the code and doing it before Variable Initialization, but my code keeps growing and it happened again.
I don't need this bug fixed to finish my program. I used a hex editor and snipped the two byte load header and I'm now using BLOAD and specifying the $0700 load address. BLOAD doesn't seem to have the same problem as LOAD and the Machine Language routine has survived my surgery , it still works .