home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Floppy Magazine 1987 #5
/
Floppy_Magazine_87-5_1987_Megasystems_Oy_fi_Side_A.d64
/
mx
(
.txt
)
< prev
next >
Wrap
Commodore BASIC
|
2023-02-26
|
7KB
|
206 lines
100 rem:valikon ja sen apuohjelmien (c) copyright protocol productions ltd oy.
101 rem:kaikenlaiset kopiointi ym. 102 rem:oikeudet pidatetty.
110 sys51676:rem: valikon ja aliohjelmat111 rem: teki toni luode 1987.
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] 5/87!"
240 printcd$;"[156]([195]) [208]rotocol [208]roductions [207]y"
260 ifsc=.ormu=1thengosub920
262 ifyz=1thenyz=0:sys50416:return
265 sys51662: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=.andzz=.thensys50880:sc=1:zz=1:goto302
301 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:off=.:ifpeek(49875)=1thenoff=1
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 sys51648:sys49920
462 if(n1<>n0)orpmthen468
464 sys50048:ifv>=6andv<=8then2006
466 onvgoto650,896,570,600,512
468 n1=n0
469 sys50048:ifv<>2thengosub900
470 poke53269,.:ifv>=6andv<=8then2000
472 ifv>8then610
480 onvgoto640,890,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
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>0thengosub620:goto200
580 gosub860:gosub630:print"";:gosub624
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>0thengosub620:goto200:rem:load"",8,1
602 gosub860:gosub630:print"";:gosub624
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>0thengosub620:goto200:rem:load"",8,1+sys...?
612 gosub860:gosub630:print"";:gosub624
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
620 if off then poke49875,off
622 return
624 iftu=.orpeek(49875)=.thenprint"sys53226";
626 iftu=1andpeek(49875)=1thenprint"sys53184";
628 return
630 sys64789:sys65409:sys64931:sys49467:poke646,14:poke53272,20:return
640 f$="apua":gosub660:gosub2030:sys50032:goto200
650 gosub660:sys50037:goto200
660 poke53269,.:mu=.:zz=1:sys50886:return
860 poke53269,.
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], [204]okakuu, 5/87";:return
925 rem********************************
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
945 rem********************************
950 data "[154][193][208][213][193]",apua,1
960 data ,,0
970 data "[208][219][219][203][201][210][202][207][201][212][213][211]",paakirj,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]","music",2
1000 data ,,0
1230 data "[193][210][212][201][203][203][197][204][201][212]",,0
1235 data ,,0
1242 data " [195]reate [215]ith [199]arfield.",create.art,5
1243 data " [200]\pin\it[",hopinoita*,5
1244 data " [195]+[214][199]",c+vg*,5
1245 data " [199]rafiikkaspecial osa 2",graf*,5
1246 data " [194]ond",bond*,5
1247 data " [211]nakecult [201][201]",snak*,5
1300 data ,,0
1330 data "[208][193][204][211][212][193][212]",,0
1335 data ,,0
1342 data " [210]oolipelit",roolip5/87a*,5
1343 data " [210]oolipelit osa 2",roolip5/87b*,5
1344 data " [206]iksit",niksi*,5
1345 data " [214]ideot",video*,5
1346 data " [210]uusut ja risut",ruusu*,5
1347 data " [203]onekieli",konek*,5
1400 data ,,0
1430 data "[207][200][202][197][197][212]",,0
1435 data ,,0
1442 data " [211]hadowrun",sha.ohj,5
1500 data ,,0
1530 data "[207][200][202][197][204][205][193][212]: [193]-puolella!",,0
1535 data ,,0
1540 data " [203]arvinen -show 1!",karvinen -show 1,3
1546 data ,,0
1550 data "[207][200][202][197][204][205][193][212]: [194]-puolella!",,0
1555 data ,,0
1570 data " [211]hadowrun",shadowrun.n,3
1571 data " [196]ark",dark,4
1572 data " 3 [215]ild [194]alls",3 wild balls,4
1573 data " [193]xel [198]",axel f,4
1574 data " [208]upu",pupu,3
1575 data " [201]lpo [208]iipponen",ilp*,4
1605 remdata ,,0
1990 data ,,-1
1999 rem*******************************
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=15: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))
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" 1525-[196][213][205][208][208][201] [207][206] [203][207][203][197][201][204][213][214][193][201][200][197][197][211][211][193]. ":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