home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Nibble Magazine
/
nib37a.dsk
/
AUGUST.1989
/
PFX.DEMO.bas
< prev
next >
Wrap
BASIC Source File
|
2023-02-26
|
2KB
|
45 lines
10 REM *************************
20 REM * PFX.DEMO *
30 REM * BY BILL TUDOR *
40 REM * COPYRIGHT(C) 1989 *
50 REM * MINDCRAFT PUBL. CORP *
60 REM * CONCORD, MA 01742 *
70 REM *************************
80 D$ = CHR$(4)
90 ONERR GOTO 340
100 PRINT D$;"BRUN PFX.BIN": REM -Install Command
110 HOME
120 PRINT "PFX demo by Bill Tudor"
130 PRINT "Copyright(c) 1989 MindCraft Publ. Corp "
140 PRINT "----------------------------------------"
150 PRINT " Arrows - Change selection"
160 PRINT " \ or < - Move back (pop) a level"
170 PRINT " / or > - Append a level"
180 PRINT " Rtn - Accept prefix"
190 PRINT " Esc - Cancel selection"
200 PRINT " Cntrl-X - Clear selection"
210 VTAB 22: PRINT "---------------------------------------"
220 PRINT D$;"PFX": REM - Execute PFX command
230 VTAB 10: PRINT : CALL -958
240 PRINT D$;"PREFIX": INPUT PF$
250 PRINT "You selected:";PF$
260 PRINT
270 PRINT "PRESS RETURN TO CONTINUE";: INVERSE : PRINT " ";: NORMAL : POKE -16368,0
280 X = PEEK( -16384): IF X <128 THEN 280
290 IF X < >155 THEN 110
300 HOME : END
310 REM ==================
320 REM Error Handler:
330 REM ==================
340 EC = PEEK(222): REM -Error code
350 EL = PEEK(219) *256 + PEEK(218): REM -Error line
360 HOME
370 PRINT "Error occurred!"
380 IF EL = 80 THEN 410
390 IF EC = 6 THEN 430
400 RESUME
410 PRINT "Cannot find the file:PFX.BIN"
420 END
430 PRINT "Prefix path not found."
440 CALL -3288
450 END