1 REM PACK.UNPACK / (c) 1991 MindCraft Publ. Corp. / By Peter Stubbs
70 PRINT CHR$(21): LOMEM: 4630:F = 4621:P = 4352:M = 4541:U = 768:C = -958:D$ = CHR$(4):S$ = CHR$(32): DIM A$(5): FOR I = F TO F +8: READ B: POKE I,B: NEXT : FOR I = 1 TO 5: READ A$(I): NEXT
370 VTAB 19: HTAB 1: INVERSE : PRINT "PATH NOT FOUND - TRY AGAIN": NORMAL : GOTO 350
380 REM INPUT
390 A$ = "":L = 0
400 VTAB 20: HTAB 1: INVERSE : PRINT "->";: NORMAL : PRINT A$;: CALL C: GET B$:B = ASC(B$): ON L = 0 AND B = 13 GOTO 400: IF B = 32 THEN CALL F: GOTO 400
410 ON B = 13 GOTO 490: ON B = 27 GOTO 590: IF (B = 8 OR B = 127) AND (L >0) THEN L = L -1: ON L = 0 GOTO 390:A$ = LEFT$(A$,L): GOTO 400
420 ON B = 44 GOTO 430: ON (B >122 OR B <46 OR (B >57 AND B <65) OR (B >90 AND B <97)) GOTO 400: IF B >90 THEN B$ = CHR$(B -32)
430 A$ = A$ +B$:L = L +1: GOTO 400
440 HTAB 1: INVERSE : PRINT "PIC NOT FOUND - HIT A KEY FOR CATALOG";: NORMAL : CALL C
450 GET B$: ON B$ = CHR$(27) GOTO 590: IF B$ = S$ THEN CALL F: GOTO 450
460 HOME : PRINT D$"CAT": RETURN
470 PRINT " - HIT A KEY";: NORMAL : CALL C
480 WAIT -16384,128: GET B$: ON B$ = CHR$(27) GOTO 590: ON B$ < >S$ GOTO 490: CALL F: GOTO 480
490 RETURN
500 N$ = "Type pic name (CAT=CATALOG)"
510 VTAB 19: HTAB 1: CALL C: PRINT N$;: NORMAL : GOSUB 390: IF A$ = "CAT" THEN HOME : PRINT D$A$: GOTO 510
520 RETURN
530 INVERSE :E = PEEK(222): HTAB 1: IF E = 6 THEN PRINT "DISK NOT FOUND";: GOTO 560
540 IF E = 9 THEN PRINT "DISK FULL";: GOTO 560
550 PRINT "ERR: "E
560 GOSUB 470: GOTO 90
570 TEXT : HOME : END : DATA 173,41,192,73,192,141,41,192,96
580 DATA "LOAD AND UNPACK A PIC","LOAD A NON PACKED PIC","PACK & SAVE A PIC","SAVE A NON PACKED PIC","CHANGE PREFIX"