home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Go64!
/
Go64_2001-04_2001_CSW_Side_A.d64
/
dcf-uhr
(
.txt
)
< prev
next >
Wrap
Commodore BASIC
|
2023-02-26
|
1KB
|
56 lines
1 rem open1,8,15,"s:dcf0.1.bas":close1:save"dcf0.1.bas",8
2 goto 2000
100 m=e(21)+e(22)*2+e(23)*4+e(24)*8
101 m=m+e(25)*10+e(26)*20+e(27)*40
110 s=e(29)+e(30)*2+e(31)*4+e(32)*8
111 s=s+e(33)*10+e(34)*20
120 t=e(36)+e(37)*2+e(38)*4+e(39)*8
121 t=t+e(40)*10+e(41)*20
130 w=e(42)+e(43)*2+e(44)*4
140 k=e(45)+e(46)*2+e(47)*4+e(48)*8
141 k=k+e(49)*10
150 j=e(50)+e(51)*2+e(52)*4+e(53)*8
210 rem prints":"m" "w" "t":"k":"j
230 :print:goto3000
2000 dim d(59),e(59),u(30)
2001 poke56578,59
2002 gosub4100
2010 fori=0to59
2020 ti$="000000"
2030 wait56576,4,4
2040 if ti>100 then d(i)=3:a=i
2050 ti$="000000"
2060 if a>38 theni=59
2070 wait56576,4
2080 ifti>7 then d(i)=1
2090 printchr$(d(i)+48);
2100 next
2110 fori=0toa-1:e(i+59-a)=d(i):next
2120 fori=ato59:e(i-a)=d(i):next
2200 rem print:fori=0to 59:printchr$(e(i)+48);:next:print:goto100
2201 goto100
3000 m=m-1
3010 ifw=7then w=0
3020 if s>12 then s=s-12:ap=1
3030 if s=0 then s=12:ap=0
3040 se=59-a
3070 f$="t-wd"+chr$(w)+chr$(j)+chr$(k)+chr$(t)+chr$(s)+chr$(m)+chr$(se)+chr$(ap)
3075 foru=4to29 :ifu(u)=0then3130
3080 open15,u,15,f$:close15
3100 open15,u,15,"t-ra" :printright$(" "+str$(u),2)" ";
3110 get#15,a$:printa$;:ifst-64goto3110
3130 close15:next:end
4000 print#15,"t-rd"
4010 get#15,wd$:if wd$="3"thenprinttab(20)"[145]no clock":return
4020 printtab(20)"[145]change clock?";
4030 input" y[157][157][157]";a$
4040 if a$<>"n"thenu(u)=1
4050 return
4100 foru=4to28
4110 open15,u,15:close15
4120 if st<>0then4160
4130 open15,u,15,"ui"
4140 input#15,a$,a$ :printright$(" "+str$(u),2)" "left$(a$,15)
4150 if left$(a$,3)="cmd"thengosub 4000
4160 close15: next :return