home *** CD-ROM | disk | FTP | other *** search
- 1 rem graphic analysis simulation c64
- 2 :
- 3 rem by ian adam
- 6 :
- 7 rem caution: run this program at your own risk!!
- 8 :
- 10 rem set sound chip:
- 20 x=54273:y=x+3
- 30 pokey+1,25:pokey+2,31
- 40 pokey+20,15
- 50 :
- 60 rem get screen ready:
- 70 print"[147][154]"
- 80 poke53280,3:poke53281,1
- 90 x1=56260:x2=1988
- 100 :
- 110 rem setup
- 120 i=rnd(-ti)
- 130 deffna(n)=int(rnd(i)*n)
- 140 fori=1to26
- 145 ifpeek(197)<>64then60000:rem added by loadstar
- 150 iffna(70)<1thena=-32
- 160 :
- 170 rem le is length of bar in graph
- 180 le=fna(18)+fna(18)+1
- 190 ifa<0thena=a+1:le=fna(7)+1
- 200 printchr$(i+64)le;
- 210 pokex,le+1
- 220 pokey,33
- 230 :
- 240 rem c is colour of bar
- 250 c=fna(15):ifc=1then250
- 260 :
- 270 rem ch is reverse character to be plotted
- 280 ch=fna(129)+127
- 290 :
- 300 rem plot bar
- 310 gosub1000
- 320 pokey,32
- 330 next
- 340 goto140
- 940 :
- 950 bar chart subroutine:
- 960 : le = length of bar
- 970 : c = colour of bar
- 980 : ch = character to plot
- 990 :
- 1000 forb=1tole
- 1010 pokex1+b,c
- 1020 pokex2+b,ch
- 1030 next
- 1040 print:return
- 60000 print"[147]load"chr$(34)"payload"chr$(34)",8":print"run"
- 60010 poke631,13:poke632,13:poke198,2:end
-