home *** CD-ROM | disk | FTP | other *** search
- 10 OPTION RUN
- 20 ON ERROR GOTO 360
- 30 RESET
- 40 PRINT:PRINT "CLOCK installer - v1.00"
- 50 PRINT:PRINT"Which drive is CLOCK.COM on?";
- 60 i$=UPPER$(INPUT$(1))
- 70 IF INSTR("ABCDEFGHIJKLMNOP",i$) THEN 80 ELSE 60
- 80 PRINT i$;":"
- 90 LET f$=FIND$(i$+":CLOCK.COM")
- 100 IF f$="" THEN 330
- 110 IF MID$(f$,10,1)<>STRIP$(MID$(f$,10,1)) THEN 350
- 120 OPEN "r",1,i$+":CLOCK.COM",1
- 130 FIELD #1,1 AS clrec$
- 140 LET scb=256*PEEK(2)-100
- 150 LET userf=256*PEEK(2)+90
- 160 LET time=scb+88
- 170 LET lowtime=256*(time/256-INT(time/256))
- 180 LET hitime=INT(time/256)
- 190 LET lowuserf=256*(userf/256-INT(userf/256))
- 200 LET hiuserf=INT(userf/256)
- 210 LSET clrec$=CHR$(lowtime)
- 220 PUT #1,529
- 230 LSET clrec$=CHR$(hitime)
- 240 PUT #1,530
- 250 LSET clrec$=CHR$(lowuserf)
- 260 PUT #1,511
- 270 PUT #1,594
- 280 LSET clrec$=CHR$(hiuserf)
- 290 PUT #1,512
- 300 PUT #1,595
- 310 CLOSE #1
- 320 PRINT:PRINT"OK. Please remember to reinstall this program if you ever change the PCW and/or version ofCP/M that you are using.":SYSTEM
- 330 PRINT"File not found - Restart or End?"
- 340 k$=UPPER$(INPUT$(1)):k=INSTR("RE",k$):IF k=2 THEN SYSTEM ELSE ON k+1 GOTO 330,20
- 350 PRINT"File is protected - Restart or End?":GOTO 340
- 360 PRINT"Error no.";ERR;" reported in line";ERL;"- Restart or End?":RESUME 340
- ile is protected - Restart or End?":GOTO 340
- 360 PRINT"Error no.";ERR;" reported in line";ERL;"- Restart or End?":RESUME 340
-