04-04-2019, 01:43 PM
Ok, consider that the IX register isn't a problem in my case, because the routines don't use it.
Instead, it's highly probable that the problem is about the low org address: I had the feeling that it was a STACK-related issue (there're many GOSUBs), that's why at the beginning all goes ok, and after reaching a certain score/level, it crashes (both in 16K and 48K modes)...
* * * SOLVED! * * *
Yes, my org address was too low! I pushed my routines a little further and I've nested some of them inside the character-set, finally I gained 710 bytes.
Now, starting at org 24710 the game works, no more memory issues :-)
Instead, it's highly probable that the problem is about the low org address: I had the feeling that it was a STACK-related issue (there're many GOSUBs), that's why at the beginning all goes ok, and after reaching a certain score/level, it crashes (both in 16K and 48K modes)...
* * * SOLVED! * * *
Yes, my org address was too low! I pushed my routines a little further and I've nested some of them inside the character-set, finally I gained 710 bytes.
Now, starting at org 24710 the game works, no more memory issues :-)