home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Loadstar 35
/
035.d81
/
multiwindows
(
.txt
)
< prev
next >
Wrap
Commodore BASIC
|
2022-08-26
|
3KB
|
78 lines
5 a=a+1
6 ifa=1thenload"multiwin.ml1",8,1
7 ifa=2thenload"multiwin.ml2",8,1
8 gosub60100:clr
9 :
10 rem you must move memsiz down for ml and screen storage by
11 rem copying line 20 to your own program!!!
15 :
20 poke51,0:poke52,148:poke55,0:poke56,148:clr
25 :
30 rem *** sys numbers for ml *** s1,s2,s3,w1,w2,w3,r1,r2,r3
35 :
40 s1=828:r1=889:w1=37888:w2=38083:w3=38278
42 s2=38473:r2=38534:s3=38595:r3=38656
45 :
70 za=23:zb=19:zc=24:zd=39:ze=59903
72 :
73 poke53280,6:poke53281,6
75 printchr$(142)"[147] multiwindows"
80 print" by kenny lawson"
99 :
105 print" [159]windows are used to display infor-"
110 print"mation over text or graphics on the"
115 print"screen. unfortunately, the commodore 64"
120 print"didn't come with windowing capabilities"
125 print"built-in. multiwindows gives you the"
130 print"windows that commodore left out!"
135 print" multiwindows lets you save data in"
140 print"three different places on the screen."
142 print" press any key to continue.":poke198,.
144 geta$:ifa$=""then144
148 print"[145] ":poke37889,.
150 syss1:sysw1:print"[144]multiwindow #1"
160 fora=1to2000:next
170 syss2:sysw2:print"[144][153]multiwindow #2"
180 fora=1to2000:next
190 syss3:sysw3:print"[152]multiwindow #3"
200 fora=1to2000:next
240 sysr3:fora=1to200:next:sysr2:fora=1to200:next:sysr1
250 print" press any key to continue.":poke198,.
260 geta$:ifa$=""then260
270 print"[145][159]note: your text will not scroll inside"
280 print" the window at any time. you must"
290 print" format all printing yourself."
300 print"[154] the following pokes will change the"
310 print"color of each window. these pokes must"
320 print"be done before the corresponding window"
330 print"is activated."
340 print"poke 37889,color [154]- window #1"
350 print"poke 38084,color [154]- window #2"
360 print"poke 38278,color [154]- window #3"
370 syss1:poke37889,7:sysw1:print"[158]press: d - see demo again"
372 print"q - quit"
375 poke198,.
380 geta$:ifa$<>"d"anda$<>"[196]"anda$<>"q"anda$<>"[209]"then380
390 sysr1:ifa$="d"ora$="[196]"thenfora=1to300:next:goto75
400 open15,8,15,"r0:hello connect=hello connect":input#15,er:close15
410 ifer<>63thenend
420 poke51,.:poke52,160:poke55,.:poke56,160:load"hello connect",8
59999 goto59999
60100 poke53280,14:poke53281,14
60110 print"[147][158][176][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][174]";
60120 fora=1to23:print"[221]"spc(38)"[221]";:next
60130 print"[173][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][189][157][148][192]"
60140 fora=217to242:pokea,peek(a)or128:next:rem reset screen line link table
60150 print" [204][207][193][196][211][212][193][210] [208]resents:"
60160 print" [149] "
60170 print" [149] [205]ultiwindows "
60180 print" [149] "
60190 print" [149] by [203]enny [204]awson "
60200 print" [149] "
60210 print" [149] ([195])opyright 1987 "
60220 print" [149] "
60230 print" "
60240 print" [208]ress [211][208][193][195][197] to continue."
60250 geta$:ifa$<>" "then60250
60260 return