Hi, y'all.
This small utility, 'makeboot.prg' (... which has been added to the *.d64 of the MG batch suite ...), creates a boot loader, which first starts up MINIGRAFIK, and then a client program.
Code: Select all
10 DATA 1,18,12,18,-1,-2,158,32,52,54,50,50,0,0,0,169,1,166,186,160,0,32,186,255,169,10
11 DATA 162,88,160,18,32,189,255,169,0,162,61,160,32,32,213,255,134,43,132,44,32,240,32
12 DATA 169,1,166,186,160,0,32,186,255,169,-3,162,98,160,18,32,189,255,169,0,166,43,164
13 DATA 44,32,213,255,134,45,132,46,32,51,197,32,89,198,76,174,199,77,73,78,73,71,82,65
14 DATA 70,73,75:INPUT"NAME";N$:INPUT"YEAR";Y:DN=PEEK(186):S(3)=LEN(N$):S(2)=INT(Y/256)
15 S(1)=Y-256*S(2):OPEN2,DN,2,"BOOT,P,W":FORT=1TO99:READA:IFA<0THENA=S(-A)
16 PRINT#2,CHR$(A);:NEXT:PRINT#2,N$;:CLOSE2
The resulting file 'BOOT' should be placed first in the directory, so the main application can easily be run with 'LOAD"*",8/RUN' or autostarted in VICE. The year input appears as line number of a SYS statement, when the boot loader is LISTed. As an example of use, take a look into the *.d64 of '
', written by orion70.