home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
64'er 1993 March
/
64er_Magazin_93-03_1993_Markt__Technik_de_Side_B.d64
/
alarmanlage
(
.txt
)
< prev
next >
Wrap
Commodore BASIC
|
2022-10-26
|
726b
|
23 lines
10 rem ** 64'er magazin 3/93 hardware
20 rem ** von nikolaus heusler
30 rem ** zwengauerweg 18, 8000 muenchen 71
40 rem -- alarmanlage --
50 rem sensoren (alarm = low) an pb0..7
60 rem sirene (high = ein) an pa2
100 poke56578,63:rem pa2 ausgang
110 poke56579,0:rem pb0..pb7 eingaenge
120 print"[147]alarmanlage aktiv nh/64'er 1993
130 [153]"tototototototototototototototototototototototototototototototototototototototo
140 print"ruhestellung - alle sensoren aktiv
150 [151]56576,[194](56576)[175]251:[143] sirene aus
160 a[178][194](56577):[143] sensoren testen
170 [139]a[178]255[167]160:[143] ruhe
180 [153]"onalarmzustand!
190 fori=.to7
200 if(aand2^i)=0thenprint"*** alarm durch sensor nr."i+1"***
210 [130]
220 [151]56576,[194](56576)[176]4:[143] sirene ein
230 [153]"sirene durch leertaste loeschen
240 poke198,.:wait198,1:geta$:ifa$<>" "then240
250 run