home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Compute! Gazette 1989 March
/
1989-03.d64
/
multiview
(
.txt
)
< prev
next >
Wrap
Commodore BASIC
|
2022-09-20
|
3KB
|
74 lines
10 rem copyright 1989 compute! publications, inc. - all rights reserved
20 ifml=.thenml=1:load"multiview.ml",8,1
30 poke52,68:poke56,68:clr
40 dimna$(12),s(12),p$(12),q$(12),l(12)
50 fori=1to10:readna$(i),s(i),l(i):next:fori=1to12:p$="":q$="":next
60 fori=1to10:na$(i)=" "+na$(i)+" ":next:na$(11)=" lores pictures "
70 na$(12)=" main menu ":f=49717:la=49720:rv$=chr$(18)+"[158]":h$=""
80 print"[147]";:gosub690:print" copyright 1989 compute! pub., inc."
90 printtab(11)"all rights reserved"
100 print""spc(15)"[159]multiview":printspc(15)"[150][163][163][163][163][163][163][163][163][163][163]"
110 print"[158]1) load & view picture":print"[158]2) directory"
120 print"[158]3) quit"
140 sys49302:e=peek(2):ife<49ore>51then140
150 one-48goto320,210,160
160 print"[147]"spc(10)"are you sure? (y/n)"
170 geta$:ifa$="y"thenend
180 ifa$="n"then80
190 goto170
200 end
210 print"[147]"spc(7)"insert disk, press <return>"
220 print""spc(6)"shift pauses, 'c=' key to end"
230 geta$:ifa$=chr$(13)then260
240 ifa$=""then230
250 goto80
260 gosub680:ifss=0then280
270 print"[147]"spc(10)"disk drive is not on":forb=1to2500:next:goto80
280 sys49323
290 forb=1to2000:next:print""spc(7)"[154]press any key for main menu"
300 geta$:ifa$=""then300
310 goto80
320 gosub690:p$(a-6anda<>0)="":print"[147]"spc(9)"[154]which picture format?"
330 a=7:p$(1)=rv$
340 forb=1to12:print""p$(b)na$(b):next
350 print"cursor up/down chooses, <return> selects"
360 geta$:ifa$=""then360
370 ifa$<>""anda$<>"[145]"then400
380 p$(a-6)="":gosub660:a=a-(a$="")+(a$="[145]")
390 a=a+12*(a>18)-12*(a<7):p$(a-6)=rv$:gosub660:goto360
400 ifa$=chr$(13)thenc=a-6:goto420
410 goto360
420 ifc=12then80
430 f$="":input"[147]filename";f$
440 iff$=""orlen(f$)>16then320
450 print""spc(7)"insert disk, press <return>"
460 geta$:ifa$=chr$(13)then490
470 ifa$=""then460
480 goto320
490 gosub680:ifss=0then500
495 print"[147]"spc(10)"disk drive is not on":forb=1to2500:next:goto320
500 ifc=11thenf$=f$+",s,r":goto570
510 print"'f1' changes background, any other quits"
520 pokela,l(c):sys49152,f$,8
530 open15,8,15:input#15,e:close15:ife=.then550
540 print"[147]disk error"e"has occurred":forb=1to2500:next:goto320
550 ifc=4orc=5thengosub620
560 print"[147]":syss(c):goto80
570 print"[147]";:open8,8,2,f$:open15,8,15:input#15,e
580 ifethenclose15:close8:goto610
590 get#8,a$:printa$;:ifst=0then590
600 print"":close15:close8:sys49261:goto80
610 print"[147]disk error"e"has occurred":forb=1to2500:next:goto320
620 d(1)=1:input"[147]foreground color (0-15)";d(1):ifd(1)<0ord(1)>15then320
630 d(2)=.:input"[147]background color (0-15)";d(2):ifd(2)<0ord(2)>15then320
640 d(3)=d(2)+(16*d(1)):pokef,d(3):return
650 end
660 printh$:ifa=7thenprint""p$(1)na$(1):return
670 forb=1toa-7:print:next:print""p$(b)na$(b):return
680 open15,8,15:close15:ss=st:return
690 poke53280,.:poke53281,.:return
700 datadoodle,49433,92,koala,49444,96,create with garfield,49485,96
710 dataprint shop,49493,96,paint now!,49493,96,art studio,49521,96
720 dataadvanced art studio,49533,96,rainbow painter,49580,92
730 datapaintbrush,49594,88,blazing paddles,49655,96