Loader
Posted: Mon Jul 12, 2021 7:21 am
I've made a game for the vic 20 "stardrifter"
it runs fine, but i need to work out how to load it properly.
at the moment i have 3 programs.
sd.prg - pokes a character set and prints a screen to display a title screen. then loads "data.prg"
data.prg - pokes the game character set and some assembly in memory. then loads "game.prg"
game.prg - actual game.
i created a .d64 to hold these three programs and emulated a disc drive with a SD2IEC.
when using vic i had to type
to work with alternative character set. this didn't work on the real vic, so i found something online that works, which i'm inputting first:
i then load the first prg:
the first prg runs fine, but runs into problems after loading "data.prg" - which seem like memory overwrite sort of errors. i'm trying to figure out why, and found that i might need to move the end of variable pointers at the beginning of the loaded program.
this however doesn't seem to work and results in a slightly different error state. the program loads ok, but the run command gives me a "syntax error"
would anyone have any tips on how to run these programs after each other?
i'm testing using vic 20 with penultimate+ cartidge at 24kb expanded.
i've attached my .bas files and the d64 with built prgs.
if anyone can help i would appreciate a lot, i know members of community have helped me before which was brilliant.
also, i was thinking that i'd love to have the game on tape, with the reverse side of the tape music to be played during gameplay in a regular stereo. for one, i was thinking how do go about saving something like this on tape? i know there are .tap files, but is there a prgs to tap convertor? i havnt found any.
it runs fine, but i need to work out how to load it properly.
at the moment i have 3 programs.
sd.prg - pokes a character set and prints a screen to display a title screen. then loads "data.prg"
data.prg - pokes the game character set and some assembly in memory. then loads "game.prg"
game.prg - actual game.
i created a .d64 to hold these three programs and emulated a disc drive with a SD2IEC.
when using vic i had to type
Code: Select all
poke 44,28:new
Code: Select all
poke43,0:poke44,24:poke6143,0:new
Code: Select all
load"sd.prg",8
Code: Select all
POKE 45,PEEK(174):POKE 46,PEEK(175)
would anyone have any tips on how to run these programs after each other?
i'm testing using vic 20 with penultimate+ cartidge at 24kb expanded.
i've attached my .bas files and the d64 with built prgs.
if anyone can help i would appreciate a lot, i know members of community have helped me before which was brilliant.
also, i was thinking that i'd love to have the game on tape, with the reverse side of the tape music to be played during gameplay in a regular stereo. for one, i was thinking how do go about saving something like this on tape? i know there are .tap files, but is there a prgs to tap convertor? i havnt found any.