Home » Personal collection » Acorn tapes » Electron_User » Electron_User_tape26a_acorn_eu_1991_august.wav » R.Circles

R.Circles

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 » Personal collection » Acorn tapes » Electron_User » Electron_User_tape26a_acorn_eu_1991_august.wav
Filename: R.Circles
Read OK:
File size: 01AC bytes
Load address: FFFF1A00
Exec address: FFFF8023
File contents
   10REM Circles
   20REM by Pete Goodliffe
   30REM (c) The Micro User
   40MODE 0:GCOL 3,1:VDU 23,1,0;0;0;0;
   50FOR M=100 TO 400 STEP 50:PROC_FCIRCLE(640,510,M):NEXT:FOR M=100 TO 400 STEP50:PROC_CIRCLE(640,510,M-10):PROC_CIRCLE(640,510,M+10):NEXT
   60M=420:REPEAT PROC_CIRCLE(640,510,M):M=M+(M^2/10000):UNTIL M>700:END
   70DEF PROC_CIRCLE(X,Y,R)
   80MOVE X,Y+R:FOR N=0 TO 12.3 STEP.3
   90DRAW X+R*SIN(N/6*PI),Y+R*COS(N/6*PI):NEXT:ENDPROC
  100DEF PROC_FCIRCLE(X,Y,R)
  110FOR N=-R TO R STEP 4:MOVE X-SQR(R^2-N^2),Y+N:DRAW X+SQR(R^2-N^2),Y+N
  120NEXT:ENDPROC


� Circles
� by Pete Goodliffe
� (c) The Micro User
(� 0:� 3,1:� 23,1,0;0;0;0;
2o� M=100 � 400 � 50:�_FCIRCLE(640,510,M):�:� M=100 � 400 �50:�_CIRCLE(640,510,M-10):�_CIRCLE(640,510,M+10):�
<9M=420:� �_CIRCLE(640,510,M):M=M+(M^2/10000):� M>700:�
F� �_CIRCLE(X,Y,R)
P� X,Y+R:� N=0 � 12.3 �.3
Z#� X+R*�(N/6*�),Y+R*�(N/6*�):�:�
d� �_FCIRCLE(X,Y,R)
n8� N=-R � R � 4:� X-�(R^2-N^2),Y+N:� X+�(R^2-N^2),Y+N
x�:�
�
00000000  0d 00 0a 0d f4 20 43 69  72 63 6c 65 73 0d 00 14  |..... Circles...|
00000010  17 f4 20 62 79 20 50 65  74 65 20 47 6f 6f 64 6c  |.. by Pete Goodl|
00000020  69 66 66 65 0d 00 1e 18  f4 20 28 63 29 20 54 68  |iffe..... (c) Th|
00000030  65 20 4d 69 63 72 6f 20  55 73 65 72 0d 00 28 1d  |e Micro User..(.|
00000040  eb 20 30 3a e6 20 33 2c  31 3a ef 20 32 33 2c 31  |. 0:. 3,1:. 23,1|
00000050  2c 30 3b 30 3b 30 3b 30  3b 0d 00 32 6f e3 20 4d  |,0;0;0;0;..2o. M|
00000060  3d 31 30 30 20 b8 20 34  30 30 20 88 20 35 30 3a  |=100 . 400 . 50:|
00000070  f2 5f 46 43 49 52 43 4c  45 28 36 34 30 2c 35 31  |._FCIRCLE(640,51|
00000080  30 2c 4d 29 3a ed 3a e3  20 4d 3d 31 30 30 20 b8  |0,M):.:. M=100 .|
00000090  20 34 30 30 20 88 35 30  3a f2 5f 43 49 52 43 4c  | 400 .50:._CIRCL|
000000a0  45 28 36 34 30 2c 35 31  30 2c 4d 2d 31 30 29 3a  |E(640,510,M-10):|
000000b0  f2 5f 43 49 52 43 4c 45  28 36 34 30 2c 35 31 30  |._CIRCLE(640,510|
000000c0  2c 4d 2b 31 30 29 3a ed  0d 00 3c 39 4d 3d 34 32  |,M+10):...<9M=42|
000000d0  30 3a f5 20 f2 5f 43 49  52 43 4c 45 28 36 34 30  |0:. ._CIRCLE(640|
000000e0  2c 35 31 30 2c 4d 29 3a  4d 3d 4d 2b 28 4d 5e 32  |,510,M):M=M+(M^2|
000000f0  2f 31 30 30 30 30 29 3a  fd 20 4d 3e 37 30 30 3a  |/10000):. M>700:|
00000100  e0 0d 00 46 15 dd 20 f2  5f 43 49 52 43 4c 45 28  |...F.. ._CIRCLE(|
00000110  58 2c 59 2c 52 29 0d 00  50 1c ec 20 58 2c 59 2b  |X,Y,R)..P.. X,Y+|
00000120  52 3a e3 20 4e 3d 30 20  b8 20 31 32 2e 33 20 88  |R:. N=0 . 12.3 .|
00000130  2e 33 0d 00 5a 23 df 20  58 2b 52 2a b5 28 4e 2f  |.3..Z#. X+R*.(N/|
00000140  36 2a af 29 2c 59 2b 52  2a 9b 28 4e 2f 36 2a af  |6*.),Y+R*.(N/6*.|
00000150  29 3a ed 3a e1 0d 00 64  16 dd 20 f2 5f 46 43 49  |):.:...d.. ._FCI|
00000160  52 43 4c 45 28 58 2c 59  2c 52 29 0d 00 6e 38 e3  |RCLE(X,Y,R)..n8.|
00000170  20 4e 3d 2d 52 20 b8 20  52 20 88 20 34 3a ec 20  | N=-R . R . 4:. |
00000180  58 2d b6 28 52 5e 32 2d  4e 5e 32 29 2c 59 2b 4e  |X-.(R^2-N^2),Y+N|
00000190  3a df 20 58 2b b6 28 52  5e 32 2d 4e 5e 32 29 2c  |:. X+.(R^2-N^2),|
000001a0  59 2b 4e 0d 00 78 07 ed  3a e1 0d ff              |Y+N..x..:...|
000001ac
R.Circles.m0
R.Circles.m1
R.Circles.m2
R.Circles.m4
R.Circles.m5