I'm using a VIC-20 with extra memory in the 3K area, plus blocks 1, 2, 3 and 5.
I have a BASIC program at $1200, which is trying to load some machine code at $0400 and some data files at address $2000 onwards. The machine code file and each data file starts with the two bytes describing its target address. The very last data file is terminated with a zero byte. There are twenty data files, each 1250 + 2 bytes long.
The relevant bits of my BASIC are:
Reset top of BASIC memory (I think):
Code: Select all
10 poke51,0:poke52,32:poke55,0,poke56,32:clr
Speed up the floppy drive:EDIT: Apparently I have become a victim of "cargo cult programming" and I don't need the POKEs to 51 and 52. I shall purge them in the re-write.
Code: Select all
26 open 1,8,15,"UI-":close 1
Code: Select all
30 sys 57809("dac.prg"),8,1:poke780,0:sys65493
Code: Select all
410 read l$
420 if l$="end" then 500
430 sys 57809(l$),8,1:poke780,0:sys65493
440 next
What am I doing wrong?
Jon.