Restricting BASIC to the +3K expanded RAM area
Posted: Sun Jan 14, 2024 8:49 am
I'm working with a fully expanded Vic, 35k (that's the 3K RAM at $400 and the full 32K in the other blocks).
What I'd like to achieve:
My BASIC program "loader" is loaded at $0400 as expected and it lowers end of BASIC to $1000 with which I guess I could put in the first program instead of here.
This is all working and it achieves what I need, but I wonder if I have missed anything or if there is a better way to do this? What are your thoughts?
What I'd like to achieve:
- Load a BASIC program (on disk) that reconfigures RAM so BASIC starts at $0400 and ends at $1000 with the screen starting at $1000
- The above loads a second BASIC program into $0400 and this then loads my game (a machine code prog) at address $1200 (about 24k) and $a000 (about 8k)
- Additional, just for information: My game re-uses memory at $0400 at runtime, and the game never needs to return to BASIC
Code: Select all
10 poke43,1:poke44,4:poke36869,192:clr
20 load"loader",8
Code: Select all
POKE55,0:POKE56,28:CLR
This is all working and it achieves what I need, but I wonder if I have missed anything or if there is a better way to do this? What are your thoughts?