home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
8bitfiles.net/archives
/
archives.tar
/
archives
/
genie-commodore-file-library
/
C64Software
/
CLOCK-64
(
.txt
)
< prev
next >
Wrap
Commodore BASIC
|
2019-04-13
|
896b
|
46 lines
100 PRINT"[147]":POKE53280,8:POKE53281,0:PRINTTAB(11)"A STRIKING CLOCK
110 [129]R[178]0[164]3000:[130]:[153]"LOADLIST
130 PRINT"[147]SET CLOCK:":INPUT" HOUR (0-23)";H:INPUT" MINUTE (0-59)";M:PRINT"[147]
170 CT[178]TI
190 [153][163]13)"CLR(null)";
200 [129]X[178]1[164]10:[153]"TAB(";:[130]
210 [153]"(null)
220 PRINTTAB(13)"[204]";
230 FORX=1TO10:PRINT"[164]";:NEXT
240 PRINT"[186][145][145]"
250 GOSUB400
270 GETX$:IFX$=" "THEN130
273 IFX$<>""THEN510
280 NT=TI
290 IF(NT-CT)<60THEN270
310 CT=NT
320 S=S+1
330 IFS<60THEN370
340 M=M+1:S=0
345 IFS=0ANDM=30THENC=1:V=54272:GOSUB560
350 IFM>59THENM=0:H=H+1:C=H
360 IFH>23THENH=0
370 GOSUB400
375 IFC>0THENV=54272:GOSUB560
380 GOTO270
400 H$=STR$(H)
410 IFLEN(H$)=2THENH$=" "+H$
420 M$=STR$(M)
430 IFLEN(M$)=2THENM$="0"+RIGHT$(M$,1)
440 M$=":"+RIGHT$(M$,2)
450 S$=STR$(S)
460 IFLEN(S$)=2THENS$="0"+RIGHT$(S$,1)
470 S$="[144][198][153]"+RIGHT$(S$,2)+" [158]"
480 T$=CHR$(165)+H$+M$+S$+CHR$(167)
490 PRINTTAB(13)"[158]"T$"[145]
495 [139]C[178]0[167][151]54296,0
500 [142]
510 [153]"LOAD CLOCK STOPPED !STOP":[128]
560 [151]V[170]1,90:[151]V[170]15,37
570 [151]V[170]5,11:[151]V[170]24,15
580 [151]V[170]4,21
590 [129]X[178]1[164]380:[130]
600 [151]V[170]4,20
610 C[178]C[171]1
620 [142]