home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Compute! Gazette 1994 March
/
1994-03a.d64
/
menu.advert
(
.txt
)
< prev
next >
Wrap
Commodore BASIC
|
2022-09-20
|
4KB
|
108 lines
10 ifa=0thena=1:load"textreader64",8,1
30 poke56,56:poke55,0:clr
40 f=49153:fl=49170:fori=820to1023:pokei,0:next
42 read a$:if a$<>"marker" then 42
44 gosub 50000:clr
50 n=10:n=n-1:dim t$(n),a$(n),p$(n)
60 fori=0ton:readt$(i),a$(i),p$(i):next
70 sp$=" "
80 a$="gazette's march advertisers":cx=20-len(a$)/2
90 z$="":a$=left$(sp$,cx)+a$+sp$:fori=1to40
100 z$=z$+chr$(asc(mid$(a$,i))+128):next
110 np=int(n/8):cp=0:tt=183
120 poke53280,15:poke53281,15
130 poke53282,8:poke53283,1:poke53284,6
140 gosub610:rem opening advisory
150 print"[147]":poke53280,15:poke53281,15:poke53265,peek(53265)or64
160 printchr$(142)"[147][160][160][160][160][160][160][160][160][160][160][160][160][160][160][160][160][160][160][160][160][160][160][160][160][160][160][160][160][160][160][160][160][160][160][160][160][160][160][160][160]";
170 print""z$;
180 print"[160][160][168][195][169][160][177][185][185][180][160][195][207][205][208][213][212][197][160][208][213][194][204][174][160][201][206][212][167][204][172][160][204][212][196][174][160][160]";
190 print"[160][160][160][160][160][160][160][160][160][160][160][160][160][160][160][160][160][160][160][160][160][160][160][160][160][160][160][160][160][160][160][160][160][160][160][160][160][160][160][160][160][160][145]"
200 print"[146][144]----------------------------------------";
210 s=cp*8:e=cp*8+7:ife>nthene=n
220 fori=stoe:print"[160]";chr$(177+i-cp*8);"[160][151]";p$(i);
230 printleft$(sp$,36-len(p$(i)));
240 print"[146][144]----------------------------------------";:next
250 print"this is page #";cp+1;"of";np+1
260 print"press [210][197][212][213][210][206][146] for next page[145][145]"
265 gosub 900
266 :
270 print"[145][145][160][208][210][197][211][211][160][177][173]"chr$(tt);
280 print"[160][212][207][160][204][207][193][196][160][193][206][160][193][196][214][197][210][212][201][211][197][205][197][206][212][160][160][160][160][160]";
290 print"[160][160][160][160][160][160][208][210][197][211][211][160][216][160][212][207][160][197][216][201][212][160][212][207][160][205][193][201][206][160][205][197][206][213][160][160][160][160][160][160]";
300 geta$:ifa$<>chr$(13)and(a$<"1"ora$>"8"anda$<>"x")then300
310 ifa$="x"then 950
320 ifa$=chr$(13)thencp=cp+1:ifcp>npthencp=0
330 ifa$=chr$(13)then150
340 fv=(asc(a$)-48):fv=fv+7*(fv>8)
350 c=fv+cp*8-1
360 ifc>nthen300
365 if a$(c)="xx" goto 550
366 if p$(c)="xx" goto 580
370 print"[147]":poke53265,27:ifcp=1 and c=11 then 580
380 if a$(c)="gazscreen" then 430
390 if a$(c)="text" then 580
400 if a$(c)="program" then 550
410 :
420 :
430 b=0:poke52992+3,len(t$(c)):rem length of file name
440 for i=1 to len(t$(c)):poke 52992+3+i,asc(mid$(t$(c),i,1)):next
450 sys 52992:rem load and show the picture
460 run
470 ifc<>3then550
480 b=0:c=1
490 cx=21-len(q$(c))/2:b$=left$(sp$,cx)+q$(c)
500 print""b$
510 geta$:ifa$=""then510
520 ifa$=chr$(13)thenp$(c)=r$(c):goto550
530 ifb=0thenc=c+1:b=1:goto490
540 c=c-1:b=0:goto490
550 print"[147][146][155]load[146]";chr$(34);t$(c);chr$(34);",8":print"run"
560 d$=t$(c):gosub850
570 poke631,13:poke632,13:poke631,13:poke198,2:end
580 fori=1tolen(t$(c)):pokei+49153,asc(mid$(t$(c),i,1)):next:rem filename
590 poke49170,len(t$(c))+2:d$=p$(c):rem filename length
600 print"[147]":d$=t$(c):gosub850:sys49171:goto150
610 printchr$(14)"[147]"
680 return
700 data diskoplenty.ad,program,disk o'plenty
710 data bare bones.ad,gazscreen,bare bones software
720 data sunrise.ad,gazscreen,sunrise software
750 data fgm connction.ad,text,fgm connection
760 data sec.ad,program,s.e.c. check register
770 data compbargain.ad,text,computer bargain store
780 data gazette.ad,gazscreen,compute's gazette
790 data ad.ad,gazscreen,gazette advertising
795 data submission.ad,gazscreen,gazette submissions
800 data diskbonus.ad,text,disk bonus
850 poke53265,27:print"[146]";
860 ff$="loading "+chr$(34)+d$+chr$(34)
870 printtab((40-len(ff$))/2)ff$
880 print" please stand by[155]":return
900 tt=176+8
910 if (cp+1)*8 > (n+1) then tt=176+n+1-cp*8
920 return
950 print"[147]":poke53265,27:sys65409:poke56,160:poke55,0:clr
960 load"mn",8
50000 for x=52992 to 53186:read a:poke x,a:next:return
55000 data marker
60000 data 76,26,207,0,0,0,0,0,0,0,0
60001 data 0,0,0,0,0,0,0,0,0,0,0
60002 data 0,0,0,0,32,38,207,32,74,207,32
60003 data 228,255,240,251,96,169,4,133,251,169,207
60004 data 133,252,169,15,162,8,160,0,32,186,255
60005 data 173,3,207,166,251,164,252,32,189,255,169
60006 data 0,170,160,176,32,213,255,96,165,1,41
60007 data 254,133,1,169,0,133,251,169,180,133,252
60008 data 169,0,133,253,169,216,133,254,162,183,160
60009 data 239,32,151,207,169,0,133,251,169,176,133
60010 data 252,169,0,133,253,169,4,133,254,162,179
60011 data 160,254,32,151,207,173,253,179,141,24,208
60012 data 173,254,179,141,33,208,173,255,179,141,32
60013 data 208,165,1,9,1,133,1,96,142,25,207
60014 data 140,24,207,160,0,177,251,145,253,165,252
60015 data 205,25,207,208,8,165,251,205,24,207,208
60016 data 1,96,230,251,208,2,230,252,230,253,208
60017 data 227,230,254,169,0,240,221,251
61000 rem end of listing