dynamic AUTOLOAD.DWL
Posted: Thu Nov 20, 2014 9:34 am
Here is the origin AUTOLOAD.DWL from tormod (from dwload-demo-files.tar.xz.zip -> viewtopic.php?f=5&t=4964#p12026 )
I would like to dynamic generate this file.
There are serveral questions:
* How to handle different "startup code" types?
* What's about pageing?
* What's about sub directories?
Ideas?
Code: Select all
5 'AAAA
7 PRINT
10 PRINT"1 PLASMA "
20 PRINT"2 STUDD"
30 PRINT"3 FLAGON BIRD"
40 PRINT"4 DONKEY KING"
50 PRINT"5 ZAXXON"
60 PRINT"6 ELCHANCE"
80 PRINT"8 INIT WP 80-COLS BOARD"
90 PRINT"9 ELISA"
100 PRINT"N NITROS-9"
110 PRINT"H HDB-DOS"
200 A$=INKEY$
205 IF A$="" GOTO 200
210 IF A$="1"THEN DLOAD"PLASMA"
220 IF A$="2"THEN DLOAD"STUDD"
230 IF A$="3"THEN DLOAD"FLAP"
240 IF A$="4"THEN DLOAD"KING"
250 IF A$="5"THEN DLOAD"ZAXXON"
260 IF A$="6" GOTO 500
280 IF A$="8"THEN CLEAR200,&H7DFF:DLOAD"WPT"
290 IF A$="9"THEN DLOAD"ELISA.BAS"
300 IF A$="N"THEN DLOAD"DOSN"
310 IF A$="H"THEN DLOAD"HDB"
390 IF A$<>" " GOTO 7
400 PRINT"TYPE 'RUN' FOR MENU"
410 END
500 PMODE4,1
510 DLOADN"ELCHANCE"
520 SCREEN1,1
530 IF INKEY$="" GOTO 530
540 GOTO 7
There are serveral questions:
* How to handle different "startup code" types?
* What's about pageing?
* What's about sub directories?
Ideas?