home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Commodore Disc 24
/
Commodore_Disc_24_19xx_-_de.d64
/
helligkeit
(
.txt
)
< prev
next >
Wrap
Commodore BASIC
|
2022-10-26
|
744b
|
22 lines
10 rem helligkeit ==============c64
20 rem (p) commodore welt team ==
30 rem ============================
40 rem (c) by schmid-fabian ==
50 rem heidelberg ==
60 rem ==
70 rem ==
80 rem fotowiderstand + 200 ohm ==
85 rem port 1 (pin 7 - pin 9) ==
90 rem ============================
100 print"[147]";:input"uhrzeit";ti$:t0=ti
110 input"messbeginn (hhmmss)";ts$
120 input"zeitdifferenz";zd
130 n=24*60/zd:dim z$(n),w%(n):n=1
140 i=i+1:a=a+peek(54297):sp=a/i
150 if ti$<ts$ then printchr$(147)ti$,sp
160 dt=(ti-t0)/3600
170 if dt>=zd then print ti$,sp:t0=ti:z$(n)=ti$:w%(n)=sp*10:n=n+1:a=0:i=0
180 geta$:ifa$="" goto140
200 input"druckerausgabe? (j)";q$:if q$="j" then open4,4:cmd4
210 for i=1 to n:printleft$(z$(i),2)+":"+mid$(z$(i),3,2),w%(i):next:close4