1690 VTAB 18: PRINT " SYSTEM DATE AND TIME UPDATED": PRINT
1700 FLAG = PEEK(49048): REM GET FLAG INDICATING IN THUNDERCLOCK PRESENT
1710 IF INT(FLAG/2) = FLAG/2 THEN 1870: REM IF BIT=OFF THEN NO CLOCK
1720 PRINT "UPDATE CLOCK/CALENDAR CARD? Y/N ";
1730 GET U$
1740 IF ASC(U$) >90 THEN U$ = CHR$( ASC(U$) -32)
1750 IF U$ < >"Y" AND U$ < >"N" THEN PRINT BELL$;: GOTO 1730
1755 IF U$ = "N" THEN 1940
1760 HOME : PRINT "SET THE PROTECT/ENABLE SWITCH ON THE CLOCK CARD TO THE SET-ENABLE POSITION"
1770 PRINT : INPUT "WHAT SLOT IS YOUR CLOCK CARD IN? ";CS$: IF LEN(CS$) >1 OR CS$ <"2" OR CS$ >"7" THEN PRINT BELL$;:"INVALID SLOT": GOTO 1770
1780 PRINT : PRINT "ENTER DATE AND TIME AS MM W DD HH MI SS,WHERE MM=MONTH, W=DAY OF THE WEEK (0=SUN1=MON, 2=TUES, 3=WED, 4=THU, 5=FRI, 6=SAT), DD=DAY, HH=HOUR, MI=MIN, SS=SEC"
1790 PRINT : PRINT " MM W DD HH MM SS": IF (A$ = "P") AND HH <12) THEN HH = HH +12
2330 IF LEFT$(REC$,12) = "BLOCKS FREE:" THEN BF$ = LEFT$(REC$,40):REC = 100: GOTO 2390
2340 IF MID$ (REC$,18,3) < >"DIR" THEN 2390
2350 SUB$(J2) = MID$ (REC$,2,15)
2360 IF RIGHT$(SUB$(J2),1) = " " THEN SUB$(J2) = LEFT$(SUB$(J2), LEN(SUB$(J2)) -1): GOTO 2360
2370 SUB$(J2) = SUB$(J2) +"/"
2380 J2 = J2 +1
2390 NEXT REC
2400 PRINT D$;"CLOSE ";PREFIX$
2410 SUB = J2 -1: REM NUMBER OF SUBDIRECTORIES
2420 RETURN
2430 REM
2440 REM DISPLAY SUBDIRECTORIES
2450 REM
2460 HOME : PRINT "PREFIX: ";PREFIX$
2470 VTAB 8: HTAB 1: PRINT BF$;: REM BLOCKS FREE
2480 FOR COL = 1 TO 40: PRINT "=";: NEXT COL
2490 PRINT " RETURN = DIRECTORY FOR CURRENT PREFIX"
2500 FOR J3 = INDEX TO INDEX +9
2510 IF J3 < = SUB THEN HTAB 7: PRINT RIGHT$( STR$(J3),1);" = ";SUB$(J3)
2520 NEXT J3
2530 VTAB 21: HTAB 1: FOR COL = 1 TO 40: PRINT "-";: NEXT COL
2540 PRINT " PRESS A NUMBER TO SEE ANOTHER DIRECTORY";
2550 IF NPG = 1 THEN PRINT : GOTO 2590
2560 HTAB 8: PRINT "OR --> TO SEE PAGE ";
2570 PG = INT(INDEX/10) +2: IF PG >NPG THEN PG = 1
2580 PRINT PG;" OF ";NPG
2590 HTAB 13: PRINT "OR ? FOR HELP";
2600 VTAB 24: HTAB 27: GET OP$
2610 IF OP$ = CHR$(13) OR OP$ = CHR$(27) THEN WINDEX = 0: RETURN
2620 IF OP$ = CHR$(21) THEN RETURN : REM NEXT PAGE
2630 IF OP$ = "?" OR OP$ = "/" THEN GOSUB 2700: GOTO 2430
2640 IF OP$ <"0" OR OP$ >"9" THEN PRINT BELL$;: GOTO 2600
2650 WINDEX = VAL(OP$): IF WINDEX = 0 THEN WINDEX = 10
2660 WINDEX = WINDEX +INDEX -1
2670 IF WINDEX >SUB THEN PRINT BELL$;: GOTO 2600
2680 RETURN
2690 REM
2700 REM DISPLAY HELP
2710 REM
2720 HOME : PRINT "THIS DISPLAY LISTS ALL SUBDIRECTORIES FOR THE CURRENT PREFIX AND ALLOWS YOU TOSELECT THE CURRENT DIRECTORY OR A SUB- DIRECTORY."
2730 PRINT : PRINT "TO SELECT THE DIRECTORY FOR THE CURRENT PREFIX (";PREFIX$;")": PRINT "PRESS THE ";: INVERSE : PRINT "RETURN";: NORMAL : PRINT " KEY."
2740 PRINT : PRINT "TO SELECT A SUBDIRECTORY PRESS THE NUMBER ASSOCIATED WITH THE DESIRED SUB- DIRECTORY (";: INVERSE : PRINT "1-0";: NORMAL : PRINT ")"
2750 PRINT : PRINT "IF THERE ARE MORE THAN 9 SUBDIRECTORIES PRESS THE ";: INVERSE : PRINT "-->";: NORMAL : PRINT " KEY TO SEE THE NEXT PAGE."
2760 PRINT : PRINT "PRESS THE ";: INVERSE : PRINT "ESC";: NORMAL
2770 IF PREFIX$ = L1$ THEN PRINT " KEY TO EXIT TO BASIC": GOTO 2790
2780 PRINT " KEY TO RETURN TO THE VOLUME DIRECTORY"
2790 VTAB 24: HTAB 10: INVERSE : PRINT "PRESS ANY KEY TO CONTINUE ";: NORMAL : GET GB$: PRINT
2800 RETURN
2810 REM
2820 REM DIRECTORY ROUTINE
2830 REM
2840 GOSUB 2980: REM READ DIRECTORY
2850 VTAB 4: HTAB 10: PRINT " PROGRAM DIRECTORY ";: HOME
2860 IF MPGM = 0 THEN DN = TRUE:PGM$ = "": RETURN : REM NO PROGRAMS IN DIRECTORY
2870 INDEX = 1:PG = 1:NPG = INT((MPGM +8)/9)
2880 IF INDEX >MPGM THEN INDEX = 1
2890 GOSUB 3200: REM DISPLAY PROGRAM DIRECTORY
2900 IF OP$ = CHR$(27) THEN DN = TRUE: RETURN : REM ESC
2910 IF OP$ = CHR$(21) THEN INDEX = INDEX +9: GOTO 2880: REM NEXT PAGE
2920 PGM$ = MID$ (PGM$(WINDEX),2,15)
2930 DN = TRUE
2940 RETURN
2950 REM
2960 REM READ A DIRECTORY AND SAVE PROGRAMS IN PGM$