Home » Personal collection » Acorn ADFS disks » Electron_User_Group » EUG_21B.ADF » P/A/DEM1

P/A/DEM1

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 ADFS disks » Electron_User_Group » EUG_21B.ADF
Filename: P/A/DEM1
Read OK:
File size: 0551 bytes
Load address: FFFF1D00
Exec address: FFFF8023
File contents
   10REM >Demo1 - TrigProg
   20REM by Richard Talbot-Watkins
   30REM for 8-bit machines
   40REM (c) BAU December 1992
   50REM Modified by Richard Dimond July 1995
   60IF NOT M% MODE4
   70IF PAGE>&1100 GOTO2000
   75IF M%:IF D% CALL&9EE
   80VDU 23;8202;0;0;0;
   90HIMEM=&1A00
  100IF NOT M% OSCLI "LOAD CompM/C"
  110screen   = &70
  120mem      = &74
  130compress = &900
  140expand   = &903
  150gxrrom%  = INKEY-256=253 OR INKEY-256=245
  155IF D% GOTO1000
  160PROCbuild
  170PROCplayback
  180IF M% END ELSECHAIN"AMENU"
  190:
  200DEF PROCbuild
  210VDU 29,640;512;
  220b=0:l=1
  230!mem=&1A00
  240FOR frame%=1 TO 24
  250CLS
  260b=b+PI/144
  270ang=b+1
  280FOR ball%=1 TO 12
  290g=SIN(ang):h=COS(ang)
  300PROCcirc(g^3*h*350,h*g*350,h*50)
  310PLOT 65,g^5*h^3*1280,h*112
  320PLOT 65,g^5*g^2*1280,h*112
  330PROCcirc(g^3*580,h*450,h*20)
  340ang=ang+PI/6
  350NEXT
  360!screen=&5800
  370CALL compress
  380NEXT
  390ENDPROC
  400:
  410DEF PROCplayback
  420REPEAT
  430!mem=&1A00
  440FOR N%=1 TO 24:!screen=&5800:CALL expand:NEXT
  450UNTIL NOT INKEY0
  460ENDPROC
  470:
  480DEF PROCcirc(x%,y%,r%)
  490IF gxrrom% MOVE x%,y%:PLOT 145,0,r%:ENDPROC
  500LOCAL n
  510MOVE x%,y%+r%
  520FOR n=0 TO 2*PI STEP PI/20
  530DRAW SINn*r%+x%+2,COSn*r%+y%+2
  540NEXT
  550MOVE x%,y%+r%
  560ENDPROC
 1000IF NOT M% OSCLI"LOAD DAT1 1A00"
 1010REPEAT
 1020!mem=&1A00
 1030FOR N%=1 TO 24:!screen=&5800:CALL expand:NEXT
 1040UNTIL NOT INKEY0
 1050IF M% END ELSECHAIN"AMENU"
 2000M%=TRUE
 2010*FX200,3
 2020*LOAD CompM/C
 2030IF NOT D% GOTO2080
 2040HIMEM=&7D80
 2050VDU28,0,31,39,30
 2060!&70=&5800:!&74=&1A00:!&78=&2A00
 2070*LOAD DAT1 2A00
 2080VDU21
 2090*KEY0 *TAPE|MFORI%=0 TO TOP-PAGE STEP4:I%!&E00=I%!PAGE:NEXT|MPAGE=&E00|MOLD|MRUN|F|M
 2100*FX138,0,128

� >Demo1 - TrigProg
� by Richard Talbot-Watkins
� for 8-bit machines
(� (c) BAU December 1992
2*� Modified by Richard Dimond July 1995
<
� � M% �4
F� �>&1100 �dPG
K� M%:� D% �&9EE
P� 23;8202;0;0;0;
Z�=&1A00
d� � M% � "LOAD CompM/C"
nscreen   = &70
xmem      = &74
�compress = &900
�expand   = &903
�$gxrrom%  = �-256=253 � �-256=245
�� D% �dhC
�
�build
�
�playback
�� M% � ��"AMENU"
�:
�� �build
�� 29,640;512;
�b=0:l=1
�!mem=&1A00
�� frame%=1 � 24
��

b=b+�/144
ang=b+1
� ball%=1 � 12
"g=�(ang):h=�(ang)
,!�circ(g^3*h*350,h*g*350,h*50)
6� 65,g^5*h^3*1280,h*112
@� 65,g^5*g^2*1280,h*112
J�circ(g^3*580,h*450,h*20)
Tang=ang+�/6
^�
h!screen=&5800
r� compress
|�
��
�:
�� �playback
��
�!mem=&1A00
�(� N%=1 � 24:!screen=&5800:� expand:�
�
� � �0
��
�:
�� �circ(x%,y%,r%)
�"� gxrrom% � x%,y%:� 145,0,r%:�
�� n
�� x%,y%+r%
� n=0 � 2*� � �/20
� �n*r%+x%+2,�n*r%+y%+2
�
&� x%,y%+r%
0�
�� � M% �"LOAD DAT1 1A00"
��
�!mem=&1A00
(� N%=1 � 24:!screen=&5800:� expand:�

� � �0
� M% � ��"AMENU"
�M%=�
�*FX200,3
�*LOAD CompM/C
�� � D% �T`H
��=&7D80
�28,0,31,39,30
$!&70=&5800:!&74=&1A00:!&78=&2A00
*LOAD DAT1 2A00
 �21
*X*KEY0 *TAPE|MFORI%=0 TO TOP-PAGE STEP4:I%!&E00=I%!PAGE:NEXT|MPAGE=&E00|MOLD|MRUN|F|M
4*FX138,0,128
�
00000000  0d 00 0a 17 f4 20 3e 44  65 6d 6f 31 20 2d 20 54  |..... >Demo1 - T|
00000010  72 69 67 50 72 6f 67 0d  00 14 1f f4 20 62 79 20  |rigProg..... by |
00000020  52 69 63 68 61 72 64 20  54 61 6c 62 6f 74 2d 57  |Richard Talbot-W|
00000030  61 74 6b 69 6e 73 0d 00  1e 18 f4 20 66 6f 72 20  |atkins..... for |
00000040  38 2d 62 69 74 20 6d 61  63 68 69 6e 65 73 0d 00  |8-bit machines..|
00000050  28 1b f4 20 28 63 29 20  42 41 55 20 44 65 63 65  |(.. (c) BAU Dece|
00000060  6d 62 65 72 20 31 39 39  32 0d 00 32 2a f4 20 4d  |mber 1992..2*. M|
00000070  6f 64 69 66 69 65 64 20  62 79 20 52 69 63 68 61  |odified by Richa|
00000080  72 64 20 44 69 6d 6f 6e  64 20 4a 75 6c 79 20 31  |rd Dimond July 1|
00000090  39 39 35 0d 00 3c 0d e7  20 ac 20 4d 25 20 eb 34  |995..<.. . M% .4|
000000a0  0d 00 46 13 e7 20 90 3e  26 31 31 30 30 20 e5 8d  |..F.. .>&1100 ..|
000000b0  64 50 47 0d 00 4b 13 e7  20 4d 25 3a e7 20 44 25  |dPG..K.. M%:. D%|
000000c0  20 d6 26 39 45 45 0d 00  50 14 ef 20 32 33 3b 38  | .&9EE..P.. 23;8|
000000d0  32 30 32 3b 30 3b 30 3b  30 3b 0d 00 5a 0b d3 3d  |202;0;0;0;..Z..=|
000000e0  26 31 41 30 30 0d 00 64  1b e7 20 ac 20 4d 25 20  |&1A00..d.. . M% |
000000f0  ff 20 22 4c 4f 41 44 20  43 6f 6d 70 4d 2f 43 22  |. "LOAD CompM/C"|
00000100  0d 00 6e 12 73 63 72 65  65 6e 20 20 20 3d 20 26  |..n.screen   = &|
00000110  37 30 0d 00 78 12 6d 65  6d 20 20 20 20 20 20 3d  |70..x.mem      =|
00000120  20 26 37 34 0d 00 82 13  63 6f 6d 70 72 65 73 73  | &74....compress|
00000130  20 3d 20 26 39 30 30 0d  00 8c 13 65 78 70 61 6e  | = &900....expan|
00000140  64 20 20 20 3d 20 26 39  30 33 0d 00 96 24 67 78  |d   = &903...$gx|
00000150  72 72 6f 6d 25 20 20 3d  20 a6 2d 32 35 36 3d 32  |rrom%  = .-256=2|
00000160  35 33 20 84 20 a6 2d 32  35 36 3d 32 34 35 0d 00  |53 . .-256=245..|
00000170  9b 0e e7 20 44 25 20 e5  8d 64 68 43 0d 00 a0 0a  |... D% ..dhC....|
00000180  f2 62 75 69 6c 64 0d 00  aa 0d f2 70 6c 61 79 62  |.build.....playb|
00000190  61 63 6b 0d 00 b4 14 e7  20 4d 25 20 e0 20 8b d7  |ack..... M% . ..|
000001a0  22 41 4d 45 4e 55 22 0d  00 be 05 3a 0d 00 c8 0c  |"AMENU"....:....|
000001b0  dd 20 f2 62 75 69 6c 64  0d 00 d2 11 ef 20 32 39  |. .build..... 29|
000001c0  2c 36 34 30 3b 35 31 32  3b 0d 00 dc 0b 62 3d 30  |,640;512;....b=0|
000001d0  3a 6c 3d 31 0d 00 e6 0e  21 6d 65 6d 3d 26 31 41  |:l=1....!mem=&1A|
000001e0  30 30 0d 00 f0 13 e3 20  66 72 61 6d 65 25 3d 31  |00..... frame%=1|
000001f0  20 b8 20 32 34 0d 00 fa  05 db 0d 01 04 0d 62 3d  | . 24.........b=|
00000200  62 2b af 2f 31 34 34 0d  01 0e 0b 61 6e 67 3d 62  |b+./144....ang=b|
00000210  2b 31 0d 01 18 12 e3 20  62 61 6c 6c 25 3d 31 20  |+1..... ball%=1 |
00000220  b8 20 31 32 0d 01 22 15  67 3d b5 28 61 6e 67 29  |. 12..".g=.(ang)|
00000230  3a 68 3d 9b 28 61 6e 67  29 0d 01 2c 21 f2 63 69  |:h=.(ang)..,!.ci|
00000240  72 63 28 67 5e 33 2a 68  2a 33 35 30 2c 68 2a 67  |rc(g^3*h*350,h*g|
00000250  2a 33 35 30 2c 68 2a 35  30 29 0d 01 36 1b f0 20  |*350,h*50)..6.. |
00000260  36 35 2c 67 5e 35 2a 68  5e 33 2a 31 32 38 30 2c  |65,g^5*h^3*1280,|
00000270  68 2a 31 31 32 0d 01 40  1b f0 20 36 35 2c 67 5e  |h*112..@.. 65,g^|
00000280  35 2a 67 5e 32 2a 31 32  38 30 2c 68 2a 31 31 32  |5*g^2*1280,h*112|
00000290  0d 01 4a 1d f2 63 69 72  63 28 67 5e 33 2a 35 38  |..J..circ(g^3*58|
000002a0  30 2c 68 2a 34 35 30 2c  68 2a 32 30 29 0d 01 54  |0,h*450,h*20)..T|
000002b0  0f 61 6e 67 3d 61 6e 67  2b af 2f 36 0d 01 5e 05  |.ang=ang+./6..^.|
000002c0  ed 0d 01 68 11 21 73 63  72 65 65 6e 3d 26 35 38  |...h.!screen=&58|
000002d0  30 30 0d 01 72 0e d6 20  63 6f 6d 70 72 65 73 73  |00..r.. compress|
000002e0  0d 01 7c 05 ed 0d 01 86  05 e1 0d 01 90 05 3a 0d  |..|...........:.|
000002f0  01 9a 0f dd 20 f2 70 6c  61 79 62 61 63 6b 0d 01  |.... .playback..|
00000300  a4 05 f5 0d 01 ae 0e 21  6d 65 6d 3d 26 31 41 30  |.......!mem=&1A0|
00000310  30 0d 01 b8 28 e3 20 4e  25 3d 31 20 b8 20 32 34  |0...(. N%=1 . 24|
00000320  3a 21 73 63 72 65 65 6e  3d 26 35 38 30 30 3a d6  |:!screen=&5800:.|
00000330  20 65 78 70 61 6e 64 3a  ed 0d 01 c2 0a fd 20 ac  | expand:...... .|
00000340  20 a6 30 0d 01 cc 05 e1  0d 01 d6 05 3a 0d 01 e0  | .0.........:...|
00000350  15 dd 20 f2 63 69 72 63  28 78 25 2c 79 25 2c 72  |.. .circ(x%,y%,r|
00000360  25 29 0d 01 ea 22 e7 20  67 78 72 72 6f 6d 25 20  |%)...". gxrrom% |
00000370  ec 20 78 25 2c 79 25 3a  f0 20 31 34 35 2c 30 2c  |. x%,y%:. 145,0,|
00000380  72 25 3a e1 0d 01 f4 07  ea 20 6e 0d 01 fe 0e ec  |r%:...... n.....|
00000390  20 78 25 2c 79 25 2b 72  25 0d 02 08 16 e3 20 6e  | x%,y%+r%..... n|
000003a0  3d 30 20 b8 20 32 2a af  20 88 20 af 2f 32 30 0d  |=0 . 2*. . ./20.|
000003b0  02 12 1b df 20 b5 6e 2a  72 25 2b 78 25 2b 32 2c  |.... .n*r%+x%+2,|
000003c0  9b 6e 2a 72 25 2b 79 25  2b 32 0d 02 1c 05 ed 0d  |.n*r%+y%+2......|
000003d0  02 26 0e ec 20 78 25 2c  79 25 2b 72 25 0d 02 30  |.&.. x%,y%+r%..0|
000003e0  05 e1 0d 03 e8 1c e7 20  ac 20 4d 25 20 ff 22 4c  |....... . M% ."L|
000003f0  4f 41 44 20 44 41 54 31  20 31 41 30 30 22 0d 03  |OAD DAT1 1A00"..|
00000400  f2 05 f5 0d 03 fc 0e 21  6d 65 6d 3d 26 31 41 30  |.......!mem=&1A0|
00000410  30 0d 04 06 28 e3 20 4e  25 3d 31 20 b8 20 32 34  |0...(. N%=1 . 24|
00000420  3a 21 73 63 72 65 65 6e  3d 26 35 38 30 30 3a d6  |:!screen=&5800:.|
00000430  20 65 78 70 61 6e 64 3a  ed 0d 04 10 0a fd 20 ac  | expand:...... .|
00000440  20 a6 30 0d 04 1a 14 e7  20 4d 25 20 e0 20 8b d7  | .0..... M% . ..|
00000450  22 41 4d 45 4e 55 22 0d  07 d0 08 4d 25 3d b9 0d  |"AMENU"....M%=..|
00000460  07 da 0c 2a 46 58 32 30  30 2c 33 0d 07 e4 11 2a  |...*FX200,3....*|
00000470  4c 4f 41 44 20 43 6f 6d  70 4d 2f 43 0d 07 ee 10  |LOAD CompM/C....|
00000480  e7 20 ac 20 44 25 20 e5  8d 54 60 48 0d 07 f8 0b  |. . D% ..T`H....|
00000490  d3 3d 26 37 44 38 30 0d  08 02 12 ef 32 38 2c 30  |.=&7D80.....28,0|
000004a0  2c 33 31 2c 33 39 2c 33  30 0d 08 0c 24 21 26 37  |,31,39,30...$!&7|
000004b0  30 3d 26 35 38 30 30 3a  21 26 37 34 3d 26 31 41  |0=&5800:!&74=&1A|
000004c0  30 30 3a 21 26 37 38 3d  26 32 41 30 30 0d 08 16  |00:!&78=&2A00...|
000004d0  13 2a 4c 4f 41 44 20 44  41 54 31 20 32 41 30 30  |.*LOAD DAT1 2A00|
000004e0  0d 08 20 07 ef 32 31 0d  08 2a 58 2a 4b 45 59 30  |.. ..21..*X*KEY0|
000004f0  20 2a 54 41 50 45 7c 4d  46 4f 52 49 25 3d 30 20  | *TAPE|MFORI%=0 |
00000500  54 4f 20 54 4f 50 2d 50  41 47 45 20 53 54 45 50  |TO TOP-PAGE STEP|
00000510  34 3a 49 25 21 26 45 30  30 3d 49 25 21 50 41 47  |4:I%!&E00=I%!PAG|
00000520  45 3a 4e 45 58 54 7c 4d  50 41 47 45 3d 26 45 30  |E:NEXT|MPAGE=&E0|
00000530  30 7c 4d 4f 4c 44 7c 4d  52 55 4e 7c 46 7c 4d 0d  |0|MOLD|MRUN|F|M.|
00000540  08 34 10 2a 46 58 31 33  38 2c 30 2c 31 32 38 0d  |.4.*FX138,0,128.|
00000550  ff                                                |.|
00000551
P/A/DEM1.m0
P/A/DEM1.m1
P/A/DEM1.m2
P/A/DEM1.m4
P/A/DEM1.m5