home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Floppy Magazine 1987 #4
/
Floppy_Magazine_87-4_1987_Megasystems_Oy_fi_Side_A.d64
/
mx3
(
.txt
)
< prev
next >
Wrap
Commodore BASIC
|
2023-02-26
|
7KB
|
232 lines
100 rem kaikki materiaali (c) floppy magazine ja protocol productions oy
120 poke53269,.:sys49422:yz=1:gosub190:gosub920:x=-1:remdimsc(127),sc$(25,40)
140 reada$,a$,a:ifa>=.thenx=x+1:goto140
150 restore:x=x+15:dim n$(x),f$(x),e(x)
160 fort=0to7:n$(t)="":f$(t)="":e(t)=.:next
170 fort=8tox-7:readn$(t),f$(t),e(t):next
180 fort=x-6tox:n$(t)="":f$(t)="":e(t)=.:next
190 cd$=""
200 sys50432:sys49840:sys49984
201 print"[156]";
205 ifyz=1andsc=.thenprintleft$(cd$,13);"[212][197][210][214][197][212][213][204][207][193] [198][204][207][208][208][201][203][211][197][197][206] 4/87!"
240 printcd$;"[156]([195]) [208]rotocol [208]roductions [207]y"
260 ifsc=.ormu=1thengosub920
262 ifyz=1thenyz=0:sys50416:return
265 printleft$(cd$,4)
270 ifn0=.thenn0=8:t=.:goto290
272 t=n0-8
280 printtab(4)n$(t):ift=xort=n0+8then300
282 t=t+1:goto280
290 printtab(4)n$(t):ift=16then300
292 t=t+1:goto290
300 poke198,0:sys49467:sys50432:sc=.:ifmu=.thensys50665:sc=1
302 sys49920
304 geti$:print"":ifi$=""then304
310 i=asc(i$)
312 ifi=17thensys49920:goto360
320 ifi=145thensys49920:goto390
330 ifi=13thenpm=.:goto450
340 ifi=32thenpm=1:goto450
350 goto304
360 ifn0=x-7thensys49920:goto304
370 n0=n0+1:sys50288:ifn0+8>xthen302
380 printleft$(cd$,21)spc(4)n$(n0+8)
382 ife(n0)=.then360
384 goto302
390 ifn0=8thensys49920:goto304
400 n0=n0-1:sys50352:ifn0<8then302
410 print" "n$(n0-8)
420 ife(n0)=.then390
422 goto302
450 v=e(n0):f$=f$(n0):n$=n$(n0):sys49467
452 ifright$(f$,2)<>".n"thentu=1:goto460
455 poke816,165:poke817,244:f$=left$(f$,len(f$)-2):poke49875,0:tu=0
456 rem 0=nothing:1=help:2=music:3=load"",8:4=load"",8,1:5=easy script file
458 rem 6=newsroom photo:7=koalapainter picture:8=doodle picture:>8=load+sys
460 sys49920:ifv=1then640
462 if(n1<>n0)orpmthen468
464 sys50048:ifv>=6andv<=8then2006
466 on(v-1)goto896,570,600,512
468 n1=n0
469 sys50048:ifv<>2thengosub900
470 poke53269,.:ifv>=6andv<=8then2000
472 ifv>8then610
480 on(v-1)goto890,570,600,490
490 f$=f$+",s":gosub500:sys50416:goto200
500 ifv<>5thenreturn
505 ifpmthenpm=.:goto520
510 gosub860:open1,8,0,f$:sys16384:return
512 poke53269,0:sys17080:sys50416:goto200
520 sys49840:printleft$(cd$,13);"[212]ulostetaanko teksti (k/e) ? [146]":sys49920
522 sys50665
530 geta$:print"":ifa$=""ora$<>"e"anda$<>"k"then530
540 sys50048:ifa$="e"thensys49920:return
550 gosub860:open2,4,7:cmd2:open1,8,0,f$:sys50592:close1:close2:sys49920:return
570 gosub3000:ifza>0then200
580 gosub860:gosub630:print"";
582 iftu=.orpeek(49875)=.thenprint"sys53226";
584 iftu=1andpeek(49875)=1thenprint"sys53184";
585 remprint"sys53184";
586 print":clr:p[207]198,1:p[207]631,131"
590 print"load"chr$(34)f$chr$(34)",8":poke198,1:poke631,13:end
600 gosub3000:ifza>0then200:remload,8,1
602 gosub860:gosub630:print"";
603 iftu=.orpeek(49875)=.thenprint":sys53226";
604 iftu=1andpeek(49875)=1thenprint":sys53184";
606 print":clr:p[207]198,1:p[207]631,131"
608 print""chr$(34)f$chr$(34)",8,1":poke198,1:poke631,13:end
610 gosub3000:ifza>0then200:remload+sys
612 gosub860:gosub630:print"";
613 iftu=.orpeek(49875)=.thenprint":sys53226";
614 iftu=1andpeek(49875)=1thenprint":sys53184";
615 print":clr:p[207]198,2:p[207]631,13:p[207]632,13"
616 print"load"chr$(34)f$chr$(34)",8,1":poke198,1:poke631,13
618 print"sys";v;"":end
630 sys64789:sys65409:sys64931:sys49467:poke646,14:poke53272,20:return
640 sys49840:print"[156] [193][208][213][193]"
660 print" [195][210][211][210] [146] - [206][pp[in liikuttaa valikkoa"
670 print" [183][183][183][183][183][183] yl\s tai alas."
680 print"[175][175][175][175][175][175][175][175]"
690 print" [210][197][212][213][210][206] [146] - [206][pp[imell[ voit lukea"
700 print"[183][183][183][183][183][183][183][183] nuolen osoittaman artikkelin"
710 print" tai k[ynnist[[ ohjelman."
730 print" [175][175][175][175][175][175][175]"
740 print" [211][208][193][195][197] [146] - [206][pp[in toimii samoin kuin"
750 print" [183][183][183][183][183][183][183] [210][197][212][213][210][206] [146] mutta tulostaa"
760 print" artikkelin tai kuvan print-"
770 print" terille."
780 print" [193]rtikkelia lukiessasi saat"
790 print" lis[ohjeita [198] 8 [146] n[pp[i-"
800 print" mell[. [212]akaisin valikkoon"
810 print" p[[set [198] 6 [146] n[pp[imell[."
830 print"paina [210][197][212][213][210][206].[146]"
840 poke198,0:wait198,1:poke198,0:goto200
860 ifv<>1thenpoke53269,.
865 rk=rk+1:if rk>5then rk=1:gosub900
870 v$="mainos"+right$(str$(rk),1)
880 open1,8,2,v$+",s":sys16999:return
890 sys50416:ifmu=1thenmu=.:gosub900:goto300
892 mu=1:sys49920:gosub2030:sys49493:gosub920:sys49920:goto300
896 sys50416:ifmu=.thenmu=1:sys49920:sys49498:gosub920:sys49920:goto300
898 goto890
900 mu=.:sys49502:return
920 sys50416:sys50912
922 printcd$;"[156][198][204][207][208][208][217] [205][193][199][193][218][201][206][197], [197]lokuu, 4/87";:return
930 rem 0=nothing:1=help:2=music:3=load"",8:4=load"",8,1:5=easy script file
940 rem 6=newsroom photo:7=koalapainter picture:8=doodle picture:>8=load+sys
950 data "[154][193][208][213][193]",,1
960 data ,,0
970 data "[208][219][219][203][201][210][202][207][201][212][213][211]",paakirj4/87,5
971 data ,,0
972 data "[212]ekij[tiedot",otsake,5
980 data ,,0
990 data "[154][212][193][213][211][212][193][205][213][211][201][201][203][203][201]","? menue*",2
1000 data ,,0
1010 data "[193][210][212][201][203][203][197][204][201][212]",,0
1015 data ,,0
1044 data " [211]ci[198]i",scifi,5
1045 data " [193]ikuisten pelit",aikpel,5
1046 data " [199]rafikkaspecial",grafiikk*,3
1090 data ,,0
1100 data "[208][193][204][211][212][193][212]",,0
1101 data ,,0
1110 data " [206]iksipalsta",niksi*,5
1112 data " [203]onekieli osa 2",konekiel*,5
1114 remdata " [208]eliaseita",pokeja,3
1115 remdata " [214]ideot ja tietokonepelit",video palsta,5
1116 data " [211]nake [195]ult [201]",snake*,5
1117 remdata " [211]eikkailijoiden taverna",advpal3/87.pal,5
1125 data ,,0
1230 data "[207][200][202][197][197][212]",,0
1235 data ,,0
1242 data " [196]igitoija",digitoija.ohj,5
1300 data ,,0
1330 data "[205][193][201][206][207][203][211][201][193]",,0
1335 data ,,0
1336 data " [200]y\tyohjelmia",kivenalla,6
1337 data " [204]ampun henki",henki,6
1338 data " [204]askuja,laskuja",lasku,6
1400 data ,,0
1450 data "[207][200][202][197][204][205][193][212]: [193]-puolella!",,0
1455 data ,,0
1461 data " [203]uvademo",kuvademo.n,3
1500 data ,,0
1550 data "[207][200][202][197][204][205][193][212]: [194]-puolella!",,0
1555 data ,,0
1556 data " [198][205]-kooste",fmmai*,3
1557 data " [208]ic[211]how versio 2",pic.sho*,3
1560 data " [205]ozartimo",mozart*,4
1561 data " [196]igitoija",digitoija,4
1562 data " [201]so-[193]na",iso-ana.n,4
1563 data " [203]aivos",kaivos,3
1567 data " [205]uskettisoturit",musk*,3
1990 data ,,-1
2000 gosub2030:ifv=6then c1=7:c2=0:poke49872,c1:poke49873,c2
2002 ifpmthenpm=.:ifv<>7thenpoke49874,v-6:sys50927:n1=0:goto3100
2004 poke49874,v:sys49819:goto200
2006 ifv=6then c1=7:c2=0:poke49872,c1:poke49873,c2
2008 poke49874,v:sys49964:goto200
2010 rem: color 1&2 ( c1 & c2 ) newsroomissa, arvot 0-15
2030 iflen(f$)>16thenf$=left$(f$,16)
2032 n$=right$(n$,len(n$)-2):sys49952:iflen(n$)>32thenn$=left$(n$,32)
2040 poke49882,len(f$):poke49883,len(n$)
2050 fory=1tolen(f$):poke49903+y,asc(mid$(f$,y,1)):next
2052 ifv<6orv>8then2072
2060 fory=1tolen(n$):n=asc(mid$(n$,y,1)):remifn>192thenn=n-128:goto2070
2062 remifn>64andn<128thenn=n-64
2070 poke51471+y,n:next
2072 ifmu=.thengosub860
2080 return
3000 open15,8,15:open2,8,2,"0:"+f$+",p,r":input#15,za,zb$,zc,zd:close2:close15
3005 ifza=.thenreturn
3010 sys49840:sys49984:print"[207][200][202][197][204][205][193][193] [197][201] [204][220][217][212][217][206][217][212]. [212]arkista"
3015 print"onko oikea levynpuoli sis[ll[."
3020 print"[205]ik[li vika ei kuitenkaan ole"
3025 print"siin[, tarkista muut kytkenn[t."
3030 print"'_'-n[pp[imest[ takaisin valikkoon.":poke198,0
3035 print"[205]uista n[pp[imist[ lataus jatkuu.":sys50416:sys50672:sys50432
3040 getwc$:print"":ifwc$=""then3040
3042 ifwc$="_"thenreturn
3044 sys50048:poke53269,0:goto3000
3100 rem kuvan printtausrutskut
3102 sys50416:sys49984:sys50432
3104 sys49840:sys50665
3110 print"";tab(11);"[203][213][214][193][206] [208][210][201][206][212][212][193][213][211]":printtab(11);"[163][163][163][163][163][163][163][163][163][163][163][163][163][163][163]"
3112 print" 1 [146]801/1525 -[196]umppi"
3114 print" 2 [146][201][206][212][197][210][198][193][195][197]-[198]astdump"
3116 print" 3 [146]802 -[196]umppi"
3118 print" 4 [146][208][207][201][211]."
3120 print"[198][193][211][212][196][213][205][208] on tarkoitettu [201][206][212][197][210][198][193][195][197]-"
3122 print"printtereille. [203]uvien printtaus on"
3124 print"tehty [196][207][207][196][204][197]- ja [206][197][215][211][210][207][207][205]-kuville.":poke198,0
3130 getwc$:print"":ifwc$=""orwc$<"1"orwc$>"4"then3130
3132 on(val(wc$))goto3140,3150,3160,200
3134 print"[156] [208][210][201][206][212][193][212][212][193][214][193] [203][213][214][193]: ";n$:print" [212][217][217][208][208][201]: [196][207][207][196][204][197][157][157][157][157][157][157][157]";
3135 ifv=6thenprint"[206][197][215][211][210][207][207][205]";
3136 print:return
3137 print"<< [208][193][201][206][193] [202][207][212][193][201][206] [208][210][201][206][212][193][212][193][203][211][197][211][201] [203][213][214][193][206] >>":poke198,0:wait198,1
3138 poke198,0:return
3139 print" >>> [208][210][201][206][212][212][193][213][211] [203][219][217][206][206][201][211][211][219]. [200][197][212][203][201] <<<":return
3140 sys49840
3142 print"";tab(11);"801/1525 [196][213][205][208][208][201]":printtab(11);"[163][163][163][163][163][163][163][163][163][163][163][163][163][163][163]"
3144 remgosub3134:gosub3137:gosub3139:gosub4000:goto3104
3146 print" [214][193][204][201][212][197][212][212][193][214][193][211][212][201] 1525-[196][213][205][208][208][201] [207][206] [203][197][211][203][197][206]. ":ford=1to2000:next
3147 goto3104
3150 sys49840:print"";
3152 printtab(9);"[201][206][212][197][210][198][193][195][197] [198][193][211][212][196][213][205][208]":printtab(9);"[163][163][163][163][163][163][163][163][163][163][163][163][163][163][163][163][163][163]"
3154 gosub3134:gosub3137:gosub3139:sys51712:goto3104
3160 sys49840:print"";
3162 printtab(14);"802 [196][213][205][208][208][201]":printtab(14);"[163][163][163][163][163][163][163][163][163][163]"
3164 print"[193]nna oikean reunan marginaali";:inputma:poke255,ma
3166 gosub3134:gosub3137:gosub3139:sys52210:goto3104
4000 xx=x:rem mps-801/803,1525 ei toimi
4002 fori=1to25:forr=1to40:sc$(i,r)="":next:next:sl=24576
4008 fori=0to127:sc(i)=peek(53056+i):t=t+sc(i):next:ift<>24512thenstop
4030 open4,4:fori=7680+slto7992+slstep8:m=(i-7680-sl)/8+1
4032 forj=i-7680toistep320:n=(i-j)/320+1:fork=j+7tojstep-1:x=peek(k)
4034 ifx>127thenx=x-64:goto4034
4036 ifk=j+7thensc$(n,m)=sc$(n,m)+chr$(sc(xandpeek(k-1)+128)):goto4040
4038 sc$(n,m)=sc$(n,m)+chr$(sc(x))
4040 next:next:forl=1to25:print#4,chr$(8)sc$(l,m);:next:print#4,chr$(8):next
4042 print#4:close4:x=xx:return