home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Loadstar 99
/
099.d81
/
profiler
(
.txt
)
< prev
next >
Wrap
Commodore BASIC
|
2022-08-26
|
3KB
|
93 lines
100 rem ******************************
110 rem profile - (c) copyright 1990
120 rem by rick nash
130 rem all rights reserved.
140 rem ******************************
150 rem
160 rem
170 printchr$(14):flag=0
180 n=36864:ifpeek(n)=76andpeek(n+3)=76andpeek(n+8)=169thenbase=n:goto290
190 n=49152:ifpeek(n)=76andpeek(n+3)=76andpeek(n+8)=169thenbase=n:goto290
200 print"[147] [208]rofile information was not found. "
210 print" [217]ou must run ([204]/[200])-[208][210][207][198][201][204][197] first!":end
220 tq%=a%(0):sys(peek(71)+peek(72)*256):return
230 print#2,right$(" "+mid$(str$(ln),2),5);sp$;:return
240 print#2,"":print#2,"[194]asic [208]rofile ";
250 print#2," [208]age";pg
260 print#2,"[204]ine# [195]ount [199]raph"
270 print#2,"-----------------------------------------------------------------";
280 print#2,"--------------":pg=pg+1:return
290 def fndp(n) = peek(n)+peek(n+1)*256
300 s$="[164][164][164][164][164][164][164][164][164][164][164][164][164][164][164][164][164][164][164][164][164][164][164][164][164][164][164][164][164][164][164][164][164][164][164][164][164][164][164][164]"
310 s$=s$+s$:dima%(6),tq%
320 fori=0to5:reada%(i):next
330 cc(0)=108:cc(1)=123:cc(2)=126:cc(3)=124:xc=0
340 poke53280,0:poke53281,0:printchr$(147)chr$(14)
350 print""tab(10)"[183][183][183][183][183][183][183][183][183][183][183][183][183][183][183][183][183][183][183][183]"
360 printtab(10)"[153] "
370 printtab(10)" [194][193][211][201][195] [208][210][207][198][201][204][197][210] "
380 printtab(10)" (c) 1992 "
390 printtab(10)" [194]y [210]ick [206]ash "
400 printtab(10)" "
410 printtab(10)"[175][175][175][175][175][175][175][175][175][175][175][175][175][175][175][175][175][175][175][175]"
420 ifflag=1then550
430 print""tab(14)"[215]orking...."
440 nm=fndp(base+6):min=65535:max=0:ad=base+850
450 ifnm=0then200
460 poke55801,5
470 fori=0tonm
480 : ct=fndp(ad)
490 : ifct < min then min=ct
500 : ifct > max then max=ct
510 : ad = ad + 4
520 : poke1529,cc(xc)
530 : xc=(xc+1)and3
540 next
550 poke198,0
560 print"[153] ([211])creen, ([208])rinter or ([209])uit? [157][157][157][157]";
570 geta$:ifa$<>"s"anda$<>"p"anda$<>"q"then570
590 ifa$="s" then a$="[211]"
600 ifa$="p" then a$="[208]"
610 ifa$="q"ora$="[209]"thenprint:goto1010
620 ifa$="[208]"thendv=4:ll=58:sz=66:sp$=" ":goto650
630 ifa$="[211]"then dv=3:ll=22:sz=27:sp$=" ":goto650
640 goto560
650 nrm = (sz/(max-min)):flag=1
660 ifdv=3then open2,dv
670 ifdv<>4then720
680 open2,dv,7:pg=1
690 print:print"[208]repare printer, then press a key..."
700 poke198,0:wait198,1:poke198,0
710 gosub240:goto740
720 print"[147][204]ine# [195]ount [199]raph"
730 print"[192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192]";
740 ad=base+848:lc=0
750 fori=0tonm
760 : ln=fndp(ad)
770 : ct=fndp(ad+2)
780 : gosub230
790 : ln=ct:gosub230
800 : print#2,""left$(s$,int(ct*nrm))
810 : ad=ad+4:lc=lc+1
820 : iflc<>llthen930
830 : ifdv=3then890
840 : forj=1to4
850 : print#2,""
860 : next
870 : lc=0:gosub240
880 : goto930
890 : print" [208]ress any key to ";
900 : print"continue...";
910 : poke198,0:wait198,1:poke198,0
920 : lc=0:gosub220:print"";
930 next
940 print""tab(13)"[193]gain? (y/n) ";
950 poke56282,5
960 : poke2010,cc(xc)
970 : xc=(xc+1)and3
980 geta$:ifa$=""then960
990 printa$;
1000 ifa$="y"ora$="[217]"thenclose1:close2:run
1010 close1:close2:end
1020 data -24062,8447,-5656,-8167,-28424,24576