Home » Archimedes archive » Acorn User » AU 1997-02 B.adf » Regulars » StarInfo/circles/Jeffs/Bubbles
StarInfo/circles/Jeffs/Bubbles
This website contains an archive of files for the Acorn Electron, BBC Micro, Acorn Archimedes, Commodore 16 and Commodore 64 computers, which Dominic Ford has rescued from his private collection of floppy disks and cassettes.
Some of these files were originally commercial releases in the 1980s and 1990s, but they are now widely available online. I assume that copyright over them is no longer being asserted. If you own the copyright and would like files to be removed, please contact me.
Tape/disk: | Home » Archimedes archive » Acorn User » AU 1997-02 B.adf » Regulars |
Filename: | StarInfo/circles/Jeffs/Bubbles |
Read OK: | ✔ |
File size: | 0862 bytes |
Load address: | 0000 |
Exec address: | 0000 |
File contents
10REM Acorn User circle challenge 20REM Bubbles - by R W Jeffs 30: 40REM Routine tries to create a sort of whirlpool effect to keep bubbles together. 50REM Bubbles combine on collision and fall off screen when too big. 60: 70MODE 27:OFF 80B%=15:REM No. of bubbles 90DIM l%(B%),x(B%),y(B%),r(B%),xv(B%),yv(B%) 100l%()=0:REM All dead 110GCOL3,6 120REPEAT:WAIT 130 FOR L%=0 TO B% 140 IF l%(L%)=0 PROCnew 150 PROCcircle(L%) 160 A%=FNangle(x(L%),y(L%))-175-RND(10) 170 IF RND(4)=1 THEN xv(L%)+=SIN(RAD(A%))/8:yv(L%)+=COS(RAD(A%))/8 180 IF r(L%)>40 yv(L%)-=.06:IF y(L%)<-r(L%) l%(L%)=0 190 IF xv(L%)^2+yv(L%)^2>16 THEN PROClimit 200 x(L%)+=xv(L%):y(L%)+=yv(L%) 210 IF l%(L%)=1 PROCcircle(L%) 220 IF L%<B% AND l%(L%)=1 PROCcheck(L%) 230 NEXT 240UNTIL FALSE 250END 260: 270REM Find bearing from centre of screen to X,Y 280: 290DEF FNangle(X,Y) 300LOCAL x,y,angle 310X-=640:Y-=480 320x=ABS(X):y=ABS(Y) 330IF x>y THEN 340 IF x=0 angle=0 ELSE angle=90-DEG(ATN(y/x)) 350ELSE 360 IF y=0 angle=90 ELSE angle=DEG(ATN(x/y)) 370ENDIF 380IF Y<0 angle=180-angle 390IF X<0 angle=360-angle 400=INT(angle) 410: 420REM Find direction bubble is moving in and limit velocity. 430: 440DEF PROClimit 450LOCAL A% 460A%=FNangle(xv(L%)+640,yv(L%)+480) 470xv(L%)=SIN(RAD(A%))*4:yv(L%)=COS(RAD(A%))*4 480ENDPROC 490: 500REM Bubblegenesis - Place new bubbles in ring about centre of screen. 510: 520DEF PROCnew 530LOCAL A% 540l%(L%)=1 550A%=RND(360) 560x(L%)=SIN(RAD(A%))*400+640:y(L%)=COS(RAD(A%))*400+480 570xv(L%)=SIN(RAD(A%+90))*2:yv(L%)=COS(RAD(A%+90))*2 580r(L%)=20 590PROCcircle(L%) 600ENDPROC 610: 620DEF PROCcircle(L%) 630CIRCLE x(L%),y(L%),r(L%) 640ENDPROC 650: 660REM Check for collision between current bubble and all those following. 670REM Kill one and combine position, sizes and velocities 680REM Position of new bubble is relative to the sizes of its parents. 690: 700DEF PROCcheck(L%) 710LOCAL M%,dx,dy,dist 720FOR M%=L%+1 TO B% 730 IF l%(M%)=1 THEN 740 dx=x(L%)-x(M%):dy=y(L%)-y(M%):dist=dx^2+dy^2 750 IF dist<(r(L%)+r(M%))^2 THEN 760 PROCcircle(M%):PROCcircle(L%) 770 l%(M%)=0 780 x(L%)=(x(M%)*r(M%)/r(L%)+x(L%)*r(L%)/r(M%))/(r(M%)/r(L%)+r(L%)/r(M%)) 790 y(L%)=(y(M%)*r(M%)/r(L%)+y(L%)*r(L%)/r(M%))/(r(M%)/r(L%)+r(L%)/r(M%)) 800 r(L%)=INT(SQR(r(M%)^2+r(L%)^2)) DIV 2*2 810 xv(L%)=(xv(M%)+xv(L%))/2:yv(L%)=(yv(M%)+yv(L%))/2 820 PROCcircle(L%) 830 ENDIF 840 ENDIF 850NEXT 860ENDPROC
"� Acorn User circle challenge � Bubbles - by R W Jeffs : (S� Routine tries to create a sort of whirlpool effect to keep bubbles together. 2E� Bubbles combine on collision and fall off screen when too big. <: F � 27:� PB%=15:� No. of bubbles Z,� l%(B%),x(B%),y(B%),r(B%),xv(B%),yv(B%) dl%()=0:� All dead n�3,6 x�:Ȗ � � L%=0 � B% � � l%(L%)=0 �new � �circle(L%) �& A%=�angle(x(L%),y(L%))-175-�(10) �6 � �(4)=1 � xv(L%)+=�(�(A%))/8:yv(L%)+=�(�(A%))/8 �4 � r(L%)>40 yv(L%)-=.06:� y(L%)<-r(L%) l%(L%)=0 �% � xv(L%)^2+yv(L%)^2>16 � �limit �! x(L%)+=xv(L%):y(L%)+=yv(L%) � � l%(L%)=1 �circle(L%) �# � L%<B% � l%(L%)=1 �check(L%) � � �� � �� : 0� Find bearing from centre of screen to X,Y : "� �angle(X,Y) ,� x,y,angle 6X-=640:Y-=480 @x=�(X):y=�(Y) J� x>y � T' � x=0 angle=0 � angle=90-�(�(y/x)) ^� h% � y=0 angle=90 � angle=�(�(x/y)) r� |� Y<0 angle=180-angle �� X<0 angle=360-angle � =�(angle) �: �=� Find direction bubble is moving in and limit velocity. �: �� �limit �� A% �$A%=�angle(xv(L%)+640,yv(L%)+480) �'xv(L%)=�(�(A%))*4:yv(L%)=�(�(A%))*4 �� �: �H� Bubblegenesis - Place new bubbles in ring about centre of screen. �: � �new � A% l%(L%)=1 & A%=�(360) 01x(L%)=�(�(A%))*400+640:y(L%)=�(�(A%))*400+480 :-xv(L%)=�(�(A%+90))*2:yv(L%)=�(�(A%+90))*2 Dr(L%)=20 N�circle(L%) X� b: l� �circle(L%) vȏ x(L%),y(L%),r(L%) �� �: �J� Check for collision between current bubble and all those following. �:� Kill one and combine position, sizes and velocities �F� Position of new bubble is relative to the sizes of its parents. �: �� �check(L%) �� M%,dx,dy,dist �� M%=L%+1 � B% � � l%(M%)=1 � �2 dx=x(L%)-x(M%):dy=y(L%)-y(M%):dist=dx^2+dy^2 � � dist<(r(L%)+r(M%))^2 � � �circle(M%):�circle(L%) l%(M%)=0 L x(L%)=(x(M%)*r(M%)/r(L%)+x(L%)*r(L%)/r(M%))/(r(M%)/r(L%)+r(L%)/r(M%)) L y(L%)=(y(M%)*r(M%)/r(L%)+y(L%)*r(L%)/r(M%))/(r(M%)/r(L%)+r(L%)/r(M%)) ( r(L%)=�(�(r(M%)^2+r(L%)^2)) � 2*2 *8 xv(L%)=(xv(M%)+xv(L%))/2:yv(L%)=(yv(M%)+yv(L%))/2 4 �circle(L%) > � H � R� \� �
00000000 0d 00 0a 22 f4 20 20 41 63 6f 72 6e 20 55 73 65 |...". Acorn Use| 00000010 72 20 63 69 72 63 6c 65 20 63 68 61 6c 6c 65 6e |r circle challen| 00000020 67 65 0d 00 14 1d f4 20 20 42 75 62 62 6c 65 73 |ge..... Bubbles| 00000030 20 2d 20 62 79 20 52 20 57 20 4a 65 66 66 73 0d | - by R W Jeffs.| 00000040 00 1e 05 3a 0d 00 28 53 f4 20 20 52 6f 75 74 69 |...:..(S. Routi| 00000050 6e 65 20 74 72 69 65 73 20 74 6f 20 63 72 65 61 |ne tries to crea| 00000060 74 65 20 61 20 73 6f 72 74 20 6f 66 20 77 68 69 |te a sort of whi| 00000070 72 6c 70 6f 6f 6c 20 65 66 66 65 63 74 20 74 6f |rlpool effect to| 00000080 20 6b 65 65 70 20 62 75 62 62 6c 65 73 20 74 6f | keep bubbles to| 00000090 67 65 74 68 65 72 2e 0d 00 32 45 f4 20 20 42 75 |gether...2E. Bu| 000000a0 62 62 6c 65 73 20 63 6f 6d 62 69 6e 65 20 6f 6e |bbles combine on| 000000b0 20 63 6f 6c 6c 69 73 69 6f 6e 20 61 6e 64 20 66 | collision and f| 000000c0 61 6c 6c 20 6f 66 66 20 73 63 72 65 65 6e 20 77 |all off screen w| 000000d0 68 65 6e 20 74 6f 6f 20 62 69 67 2e 0d 00 3c 05 |hen too big...<.| 000000e0 3a 0d 00 46 0a eb 20 32 37 3a 87 0d 00 50 1a 42 |:..F.. 27:...P.B| 000000f0 25 3d 31 35 3a f4 20 4e 6f 2e 20 6f 66 20 62 75 |%=15:. No. of bu| 00000100 62 62 6c 65 73 0d 00 5a 2c de 20 6c 25 28 42 25 |bbles..Z,. l%(B%| 00000110 29 2c 78 28 42 25 29 2c 79 28 42 25 29 2c 72 28 |),x(B%),y(B%),r(| 00000120 42 25 29 2c 78 76 28 42 25 29 2c 79 76 28 42 25 |B%),xv(B%),yv(B%| 00000130 29 0d 00 64 15 6c 25 28 29 3d 30 3a f4 20 41 6c |)..d.l%()=0:. Al| 00000140 6c 20 64 65 61 64 0d 00 6e 08 e6 33 2c 36 0d 00 |l dead..n..3,6..| 00000150 78 08 f5 3a c8 96 0d 00 82 10 20 e3 20 4c 25 3d |x..:...... . L%=| 00000160 30 20 b8 20 42 25 0d 00 8c 15 20 20 e7 20 6c 25 |0 . B%.... . l%| 00000170 28 4c 25 29 3d 30 20 f2 6e 65 77 0d 00 96 11 20 |(L%)=0 .new.... | 00000180 20 f2 63 69 72 63 6c 65 28 4c 25 29 0d 00 a0 26 | .circle(L%)...&| 00000190 20 20 41 25 3d a4 61 6e 67 6c 65 28 78 28 4c 25 | A%=.angle(x(L%| 000001a0 29 2c 79 28 4c 25 29 29 2d 31 37 35 2d b3 28 31 |),y(L%))-175-.(1| 000001b0 30 29 0d 00 aa 36 20 20 e7 20 b3 28 34 29 3d 31 |0)...6 . .(4)=1| 000001c0 20 8c 20 78 76 28 4c 25 29 2b 3d b5 28 b2 28 41 | . xv(L%)+=.(.(A| 000001d0 25 29 29 2f 38 3a 79 76 28 4c 25 29 2b 3d 9b 28 |%))/8:yv(L%)+=.(| 000001e0 b2 28 41 25 29 29 2f 38 0d 00 b4 34 20 20 e7 20 |.(A%))/8...4 . | 000001f0 72 28 4c 25 29 3e 34 30 20 79 76 28 4c 25 29 2d |r(L%)>40 yv(L%)-| 00000200 3d 2e 30 36 3a e7 20 79 28 4c 25 29 3c 2d 72 28 |=.06:. y(L%)<-r(| 00000210 4c 25 29 20 6c 25 28 4c 25 29 3d 30 0d 00 be 25 |L%) l%(L%)=0...%| 00000220 20 20 e7 20 78 76 28 4c 25 29 5e 32 2b 79 76 28 | . xv(L%)^2+yv(| 00000230 4c 25 29 5e 32 3e 31 36 20 8c 20 f2 6c 69 6d 69 |L%)^2>16 . .limi| 00000240 74 0d 00 c8 21 20 20 78 28 4c 25 29 2b 3d 78 76 |t...! x(L%)+=xv| 00000250 28 4c 25 29 3a 79 28 4c 25 29 2b 3d 79 76 28 4c |(L%):y(L%)+=yv(L| 00000260 25 29 0d 00 d2 1c 20 20 e7 20 6c 25 28 4c 25 29 |%).... . l%(L%)| 00000270 3d 31 20 f2 63 69 72 63 6c 65 28 4c 25 29 0d 00 |=1 .circle(L%)..| 00000280 dc 23 20 20 e7 20 4c 25 3c 42 25 20 80 20 6c 25 |.# . L%<B% . l%| 00000290 28 4c 25 29 3d 31 20 f2 63 68 65 63 6b 28 4c 25 |(L%)=1 .check(L%| 000002a0 29 0d 00 e6 06 20 ed 0d 00 f0 07 fd 20 a3 0d 00 |).... ...... ...| 000002b0 fa 05 e0 0d 01 04 05 3a 0d 01 0e 30 f4 20 20 46 |.......:...0. F| 000002c0 69 6e 64 20 62 65 61 72 69 6e 67 20 66 72 6f 6d |ind bearing from| 000002d0 20 63 65 6e 74 72 65 20 6f 66 20 73 63 72 65 65 | centre of scree| 000002e0 6e 20 74 6f 20 58 2c 59 0d 01 18 05 3a 0d 01 22 |n to X,Y....:.."| 000002f0 11 dd 20 a4 61 6e 67 6c 65 28 58 2c 59 29 0d 01 |.. .angle(X,Y)..| 00000300 2c 0f ea 20 78 2c 79 2c 61 6e 67 6c 65 0d 01 36 |,.. x,y,angle..6| 00000310 11 58 2d 3d 36 34 30 3a 59 2d 3d 34 38 30 0d 01 |.X-=640:Y-=480..| 00000320 40 11 78 3d 94 28 58 29 3a 79 3d 94 28 59 29 0d |@.x=.(X):y=.(Y).| 00000330 01 4a 0b e7 20 78 3e 79 20 8c 0d 01 54 27 20 e7 |.J.. x>y ...T' .| 00000340 20 78 3d 30 20 61 6e 67 6c 65 3d 30 20 8b 20 61 | x=0 angle=0 . a| 00000350 6e 67 6c 65 3d 39 30 2d 9d 28 99 28 79 2f 78 29 |ngle=90-.(.(y/x)| 00000360 29 0d 01 5e 05 cc 0d 01 68 25 20 e7 20 79 3d 30 |)..^....h% . y=0| 00000370 20 61 6e 67 6c 65 3d 39 30 20 8b 20 61 6e 67 6c | angle=90 . angl| 00000380 65 3d 9d 28 99 28 78 2f 79 29 29 0d 01 72 05 cd |e=.(.(x/y))..r..| 00000390 0d 01 7c 19 e7 20 59 3c 30 20 61 6e 67 6c 65 3d |..|.. Y<0 angle=| 000003a0 31 38 30 2d 61 6e 67 6c 65 0d 01 86 19 e7 20 58 |180-angle..... X| 000003b0 3c 30 20 61 6e 67 6c 65 3d 33 36 30 2d 61 6e 67 |<0 angle=360-ang| 000003c0 6c 65 0d 01 90 0d 3d a8 28 61 6e 67 6c 65 29 0d |le....=.(angle).| 000003d0 01 9a 05 3a 0d 01 a4 3d f4 20 20 46 69 6e 64 20 |...:...=. Find | 000003e0 64 69 72 65 63 74 69 6f 6e 20 62 75 62 62 6c 65 |direction bubble| 000003f0 20 69 73 20 6d 6f 76 69 6e 67 20 69 6e 20 61 6e | is moving in an| 00000400 64 20 6c 69 6d 69 74 20 76 65 6c 6f 63 69 74 79 |d limit velocity| 00000410 2e 0d 01 ae 05 3a 0d 01 b8 0c dd 20 f2 6c 69 6d |.....:..... .lim| 00000420 69 74 0d 01 c2 08 ea 20 41 25 0d 01 cc 24 41 25 |it..... A%...$A%| 00000430 3d a4 61 6e 67 6c 65 28 78 76 28 4c 25 29 2b 36 |=.angle(xv(L%)+6| 00000440 34 30 2c 79 76 28 4c 25 29 2b 34 38 30 29 0d 01 |40,yv(L%)+480)..| 00000450 d6 27 78 76 28 4c 25 29 3d b5 28 b2 28 41 25 29 |.'xv(L%)=.(.(A%)| 00000460 29 2a 34 3a 79 76 28 4c 25 29 3d 9b 28 b2 28 41 |)*4:yv(L%)=.(.(A| 00000470 25 29 29 2a 34 0d 01 e0 05 e1 0d 01 ea 05 3a 0d |%))*4.........:.| 00000480 01 f4 48 f4 20 20 42 75 62 62 6c 65 67 65 6e 65 |..H. Bubblegene| 00000490 73 69 73 20 2d 20 50 6c 61 63 65 20 6e 65 77 20 |sis - Place new | 000004a0 62 75 62 62 6c 65 73 20 69 6e 20 72 69 6e 67 20 |bubbles in ring | 000004b0 61 62 6f 75 74 20 63 65 6e 74 72 65 20 6f 66 20 |about centre of | 000004c0 73 63 72 65 65 6e 2e 0d 01 fe 05 3a 0d 02 08 0a |screen.....:....| 000004d0 dd 20 f2 6e 65 77 0d 02 12 08 ea 20 41 25 0d 02 |. .new..... A%..| 000004e0 1c 0c 6c 25 28 4c 25 29 3d 31 0d 02 26 0d 41 25 |..l%(L%)=1..&.A%| 000004f0 3d b3 28 33 36 30 29 0d 02 30 31 78 28 4c 25 29 |=.(360)..01x(L%)| 00000500 3d b5 28 b2 28 41 25 29 29 2a 34 30 30 2b 36 34 |=.(.(A%))*400+64| 00000510 30 3a 79 28 4c 25 29 3d 9b 28 b2 28 41 25 29 29 |0:y(L%)=.(.(A%))| 00000520 2a 34 30 30 2b 34 38 30 0d 02 3a 2d 78 76 28 4c |*400+480..:-xv(L| 00000530 25 29 3d b5 28 b2 28 41 25 2b 39 30 29 29 2a 32 |%)=.(.(A%+90))*2| 00000540 3a 79 76 28 4c 25 29 3d 9b 28 b2 28 41 25 2b 39 |:yv(L%)=.(.(A%+9| 00000550 30 29 29 2a 32 0d 02 44 0c 72 28 4c 25 29 3d 32 |0))*2..D.r(L%)=2| 00000560 30 0d 02 4e 0f f2 63 69 72 63 6c 65 28 4c 25 29 |0..N..circle(L%)| 00000570 0d 02 58 05 e1 0d 02 62 05 3a 0d 02 6c 11 dd 20 |..X....b.:..l.. | 00000580 f2 63 69 72 63 6c 65 28 4c 25 29 0d 02 76 18 c8 |.circle(L%)..v..| 00000590 8f 20 78 28 4c 25 29 2c 79 28 4c 25 29 2c 72 28 |. x(L%),y(L%),r(| 000005a0 4c 25 29 0d 02 80 05 e1 0d 02 8a 05 3a 0d 02 94 |L%).........:...| 000005b0 4a f4 20 20 43 68 65 63 6b 20 66 6f 72 20 63 6f |J. Check for co| 000005c0 6c 6c 69 73 69 6f 6e 20 62 65 74 77 65 65 6e 20 |llision between | 000005d0 63 75 72 72 65 6e 74 20 62 75 62 62 6c 65 20 61 |current bubble a| 000005e0 6e 64 20 61 6c 6c 20 74 68 6f 73 65 20 66 6f 6c |nd all those fol| 000005f0 6c 6f 77 69 6e 67 2e 0d 02 9e 3a f4 20 20 4b 69 |lowing....:. Ki| 00000600 6c 6c 20 6f 6e 65 20 61 6e 64 20 63 6f 6d 62 69 |ll one and combi| 00000610 6e 65 20 70 6f 73 69 74 69 6f 6e 2c 20 73 69 7a |ne position, siz| 00000620 65 73 20 61 6e 64 20 76 65 6c 6f 63 69 74 69 65 |es and velocitie| 00000630 73 0d 02 a8 46 f4 20 20 50 6f 73 69 74 69 6f 6e |s...F. Position| 00000640 20 6f 66 20 6e 65 77 20 62 75 62 62 6c 65 20 69 | of new bubble i| 00000650 73 20 72 65 6c 61 74 69 76 65 20 74 6f 20 74 68 |s relative to th| 00000660 65 20 73 69 7a 65 73 20 6f 66 20 69 74 73 20 70 |e sizes of its p| 00000670 61 72 65 6e 74 73 2e 0d 02 b2 05 3a 0d 02 bc 10 |arents.....:....| 00000680 dd 20 f2 63 68 65 63 6b 28 4c 25 29 0d 02 c6 13 |. .check(L%)....| 00000690 ea 20 4d 25 2c 64 78 2c 64 79 2c 64 69 73 74 0d |. M%,dx,dy,dist.| 000006a0 02 d0 12 e3 20 4d 25 3d 4c 25 2b 31 20 b8 20 42 |.... M%=L%+1 . B| 000006b0 25 0d 02 da 11 20 e7 20 6c 25 28 4d 25 29 3d 31 |%.... . l%(M%)=1| 000006c0 20 8c 0d 02 e4 32 20 20 64 78 3d 78 28 4c 25 29 | ....2 dx=x(L%)| 000006d0 2d 78 28 4d 25 29 3a 64 79 3d 79 28 4c 25 29 2d |-x(M%):dy=y(L%)-| 000006e0 79 28 4d 25 29 3a 64 69 73 74 3d 64 78 5e 32 2b |y(M%):dist=dx^2+| 000006f0 64 79 5e 32 0d 02 ee 1e 20 20 e7 20 64 69 73 74 |dy^2.... . dist| 00000700 3c 28 72 28 4c 25 29 2b 72 28 4d 25 29 29 5e 32 |<(r(L%)+r(M%))^2| 00000710 20 8c 0d 02 f8 1e 20 20 20 f2 63 69 72 63 6c 65 | ..... .circle| 00000720 28 4d 25 29 3a f2 63 69 72 63 6c 65 28 4c 25 29 |(M%):.circle(L%)| 00000730 0d 03 02 0f 20 20 20 6c 25 28 4d 25 29 3d 30 0d |.... l%(M%)=0.| 00000740 03 0c 4c 20 20 20 78 28 4c 25 29 3d 28 78 28 4d |..L x(L%)=(x(M| 00000750 25 29 2a 72 28 4d 25 29 2f 72 28 4c 25 29 2b 78 |%)*r(M%)/r(L%)+x| 00000760 28 4c 25 29 2a 72 28 4c 25 29 2f 72 28 4d 25 29 |(L%)*r(L%)/r(M%)| 00000770 29 2f 28 72 28 4d 25 29 2f 72 28 4c 25 29 2b 72 |)/(r(M%)/r(L%)+r| 00000780 28 4c 25 29 2f 72 28 4d 25 29 29 0d 03 16 4c 20 |(L%)/r(M%))...L | 00000790 20 20 79 28 4c 25 29 3d 28 79 28 4d 25 29 2a 72 | y(L%)=(y(M%)*r| 000007a0 28 4d 25 29 2f 72 28 4c 25 29 2b 79 28 4c 25 29 |(M%)/r(L%)+y(L%)| 000007b0 2a 72 28 4c 25 29 2f 72 28 4d 25 29 29 2f 28 72 |*r(L%)/r(M%))/(r| 000007c0 28 4d 25 29 2f 72 28 4c 25 29 2b 72 28 4c 25 29 |(M%)/r(L%)+r(L%)| 000007d0 2f 72 28 4d 25 29 29 0d 03 20 28 20 20 20 72 28 |/r(M%)).. ( r(| 000007e0 4c 25 29 3d a8 28 b6 28 72 28 4d 25 29 5e 32 2b |L%)=.(.(r(M%)^2+| 000007f0 72 28 4c 25 29 5e 32 29 29 20 81 20 32 2a 32 0d |r(L%)^2)) . 2*2.| 00000800 03 2a 38 20 20 20 78 76 28 4c 25 29 3d 28 78 76 |.*8 xv(L%)=(xv| 00000810 28 4d 25 29 2b 78 76 28 4c 25 29 29 2f 32 3a 79 |(M%)+xv(L%))/2:y| 00000820 76 28 4c 25 29 3d 28 79 76 28 4d 25 29 2b 79 76 |v(L%)=(yv(M%)+yv| 00000830 28 4c 25 29 29 2f 32 0d 03 34 12 20 20 20 f2 63 |(L%))/2..4. .c| 00000840 69 72 63 6c 65 28 4c 25 29 0d 03 3e 07 20 20 cd |ircle(L%)..>. .| 00000850 0d 03 48 06 20 cd 0d 03 52 05 ed 0d 03 5c 05 e1 |..H. ...R....\..| 00000860 0d ff |..| 00000862