Posted By
 JamesC on 2017-03-27 20:21:27
| Re: "Ram under Rom"
@Evx - a quick boot program would change the start of BASIC, then load the main program using the Dynamic Keyboard technique. Something like this:
10 HI = DEC("1C") : REM New start of BASIC, $1C00/7168 20 print [Shift/Home] and LOAD"MAIN FILE",8,1 to the screen 30 print RUN to the screen 40 shove a couple CHR$(13)'s into the keyboard buffer 50 POKE44,HI : POKE HI*256,0 : NEW
For development purposes, POKE44,28:POKE7168,0:NEW before writing your main program (or reloading your partially written main program). This way your memory pointers line up when you LOAD,8,1 from the boot program.
EDIT TO ADD: BASIC programs can extend past $8000. The system knows how to handle them, allocate variable memory, etc. So don't worry about keeping your BASIC code below $7FFF. :)
|