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

P/A/DEM2

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/DEM2
Read OK:
File size: 067F bytes
Load address: FFFF0E00
Exec address: FFFF8023
File contents
   10REM >Demo2 - Dancing fern
   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% MODE 4
   70IF PAGE>&1100 GOTO2000
   75IF M%:IF D% CALL&9EE
   80VDU 23;8202;0;0;0;
   90VDU 23;6,20,0;0;0;
  100VDU 23;7,29,0;0;0;
  110VDU 23;12,12,0;0;0;
  120VDU 23;13,&E0,0;0;0;
  130VDU 19,3,2;0;
  140HIMEM=&1F00
  150IF NOT M% OSCLI "LOAD CompM/C"
  160screen   = &70
  170mem      = &74
  180compress = &900
  190expand   = &903
  195IF D% GOTO1000
  200PROCbuild
  210PROCplayback
  220IF M% END ELSECHAIN"AMENU"
  230:
  240DEF PROCbuild
  250VDU 28,0,31,39,12
  260DIM a%(23)
  270!mem=&1F00
  280FOR frame%=1 TO 23
  290a%(frame%-1)=!mem
  300CLS
  310PRINT "Frame ";frame%
  320t=20*SINRAD(7.5*frame%+90)
  330PROCa(640,0,98,0)
  340PRINT CHR$30;SPC8
  350!screen=&6700
  360CALL compress
  370NEXT
  380ENDPROC
  390:
  400DEF PROCa(x%,y%,s,a%)
  410LOCAL b%,c%
  420IF s<=3 ENDPROC
  430b%=x%+s*SINRADa%
  440c%=y%+s*COSRADa%
  450MOVE x%,y%:DRAW b%,c%
  460PROCa(b%,c%,.85*s,a%+t)
  470PROCa(b%,c%,.35*s,a%-60)
  480PROCa(b%,c%,.35*s,a%+60)
  490ENDPROC
  500:
  510DEF PROCplayback
  520REPEAT
  530!mem=&1F00
  540FOR N%=0 TO 22:!screen=&6700:!mem=a%(N%):CALL expand:NEXT:FOR N%=22 TO 0 STEP -1:!screen=&6700:!mem=a%(N%):CALL expand:NEXT
  550UNTIL NOT INKEY0
  560ENDPROC
 1000DIM a%(23)
 1010FORn%=0TO22:READa%(n%):NEXT
 1020IF NOT M% OSCLI"LOAD DAT2 1F00"
 1030REPEAT
 1040!mem=&1F00
 1050FOR N%=0 TO 22:!screen=&6700:!mem=a%(N%):CALL expand:NEXT:FOR N%=22 TO 0 STEP -1:!screen=&6700:!mem=a%(N%):CALL expand:NEXT
 1060UNTIL NOT INKEY0
 1070IF M% END ELSECHAIN"AMENU"
 1080DATA &1F00,&21BB,&2476,&2731,&29FA,&2CDB,&2FCA,&32D3,&35E6,&3924,&3C5F,&3FB0,&4310,&468A,&4A06,&4D80,&50CB,&53F3,&56FB,&59FC,&5CE4,&5FBC,&627F
 2000M%=TRUE
 2010*FX200,3
 2020*LOAD CompM/C
 2030IF NOT D% GOTO2080
 2040HIMEM=&7D80
 2050VDU28,0,31,39,30
 2060!&70=&6700:!&74=&1F00:!&78=&2A00
 2070*LOAD DAT2 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

� >Demo2 - Dancing fern
� 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� 23;6,20,0;0;0;
d� 23;7,29,0;0;0;
n� 23;12,12,0;0;0;
x� 23;13,&E0,0;0;0;
�� 19,3,2;0;
��=&1F00
�� � M% � "LOAD CompM/C"
�screen   = &70
�mem      = &74
�compress = &900
�expand   = &903
�� D% �dhC
�
�build
�
�playback
�� M% � ��"AMENU"
�:
�� �build
�� 28,0,31,39,12
� a%(23)
!mem=&1F00
� frame%=1 � 23
"a%(frame%-1)=!mem
,�
6� "Frame ";frame%
@t=20*��(7.5*frame%+90)
J�a(640,0,98,0)
T� �30;�8
^!screen=&6700
h� compress
r�
|�
�:
�� �a(x%,y%,s,a%)
�� b%,c%
�� s<=3 �
�b%=x%+s*��a%
�c%=y%+s*��a%
�� x%,y%:� b%,c%
��a(b%,c%,.85*s,a%+t)
��a(b%,c%,.35*s,a%-60)
��a(b%,c%,.35*s,a%+60)
��
�:
�� �playback
�
!mem=&1F00
j� N%=0 � 22:!screen=&6700:!mem=a%(N%):� expand:�:� N%=22 � 0 � -1:!screen=&6700:!mem=a%(N%):� expand:�
&
� � �0
0�
�� a%(23)
��n%=0�22:�a%(n%):�
�� � M% �"LOAD DAT2 1F00"
�
!mem=&1F00
j� N%=0 � 22:!screen=&6700:!mem=a%(N%):� expand:�:� N%=22 � 0 � -1:!screen=&6700:!mem=a%(N%):� expand:�
$
� � �0
.� M% � ��"AMENU"
8�� &1F00,&21BB,&2476,&2731,&29FA,&2CDB,&2FCA,&32D3,&35E6,&3924,&3C5F,&3FB0,&4310,&468A,&4A06,&4D80,&50CB,&53F3,&56FB,&59FC,&5CE4,&5FBC,&627F
�M%=�
�*FX200,3
�*LOAD CompM/C
�� � D% �T`H
��=&7D80
�28,0,31,39,30
$!&70=&6700:!&74=&1F00:!&78=&2A00
*LOAD DAT2 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 1b f4 20 3e 44  65 6d 6f 32 20 2d 20 44  |..... >Demo2 - D|
00000010  61 6e 63 69 6e 67 20 66  65 72 6e 0d 00 14 1f f4  |ancing fern.....|
00000020  20 42 79 20 52 69 63 68  61 72 64 20 54 61 6c 62  | By Richard Talb|
00000030  6f 74 2d 57 61 74 6b 69  6e 73 0d 00 1e 18 f4 20  |ot-Watkins..... |
00000040  46 6f 72 20 38 2d 62 69  74 20 6d 61 63 68 69 6e  |For 8-bit machin|
00000050  65 73 0d 00 28 1b f4 20  28 43 29 20 42 41 55 20  |es..(.. (C) BAU |
00000060  44 65 63 65 6d 62 65 72  20 31 39 39 32 0d 00 32  |December 1992..2|
00000070  2a f4 20 4d 6f 64 69 66  69 65 64 20 62 79 20 52  |*. Modified by R|
00000080  69 63 68 61 72 64 20 44  69 6d 6f 6e 64 20 4a 75  |ichard Dimond Ju|
00000090  6c 79 20 31 39 39 35 0d  00 3c 0e e7 20 ac 20 4d  |ly 1995..<.. . M|
000000a0  25 20 eb 20 34 0d 00 46  13 e7 20 90 3e 26 31 31  |% . 4..F.. .>&11|
000000b0  30 30 20 e5 8d 64 50 47  0d 00 4b 13 e7 20 4d 25  |00 ..dPG..K.. M%|
000000c0  3a e7 20 44 25 20 d6 26  39 45 45 0d 00 50 14 ef  |:. D% .&9EE..P..|
000000d0  20 32 33 3b 38 32 30 32  3b 30 3b 30 3b 30 3b 0d  | 23;8202;0;0;0;.|
000000e0  00 5a 14 ef 20 32 33 3b  36 2c 32 30 2c 30 3b 30  |.Z.. 23;6,20,0;0|
000000f0  3b 30 3b 0d 00 64 14 ef  20 32 33 3b 37 2c 32 39  |;0;..d.. 23;7,29|
00000100  2c 30 3b 30 3b 30 3b 0d  00 6e 15 ef 20 32 33 3b  |,0;0;0;..n.. 23;|
00000110  31 32 2c 31 32 2c 30 3b  30 3b 30 3b 0d 00 78 16  |12,12,0;0;0;..x.|
00000120  ef 20 32 33 3b 31 33 2c  26 45 30 2c 30 3b 30 3b  |. 23;13,&E0,0;0;|
00000130  30 3b 0d 00 82 0f ef 20  31 39 2c 33 2c 32 3b 30  |0;..... 19,3,2;0|
00000140  3b 0d 00 8c 0b d3 3d 26  31 46 30 30 0d 00 96 1b  |;.....=&1F00....|
00000150  e7 20 ac 20 4d 25 20 ff  20 22 4c 4f 41 44 20 43  |. . M% . "LOAD C|
00000160  6f 6d 70 4d 2f 43 22 0d  00 a0 12 73 63 72 65 65  |ompM/C"....scree|
00000170  6e 20 20 20 3d 20 26 37  30 0d 00 aa 12 6d 65 6d  |n   = &70....mem|
00000180  20 20 20 20 20 20 3d 20  26 37 34 0d 00 b4 13 63  |      = &74....c|
00000190  6f 6d 70 72 65 73 73 20  3d 20 26 39 30 30 0d 00  |ompress = &900..|
000001a0  be 13 65 78 70 61 6e 64  20 20 20 3d 20 26 39 30  |..expand   = &90|
000001b0  33 0d 00 c3 0e e7 20 44  25 20 e5 8d 64 68 43 0d  |3..... D% ..dhC.|
000001c0  00 c8 0a f2 62 75 69 6c  64 0d 00 d2 0d f2 70 6c  |....build.....pl|
000001d0  61 79 62 61 63 6b 0d 00  dc 14 e7 20 4d 25 20 e0  |ayback..... M% .|
000001e0  20 8b d7 22 41 4d 45 4e  55 22 0d 00 e6 05 3a 0d  | .."AMENU"....:.|
000001f0  00 f0 0c dd 20 f2 62 75  69 6c 64 0d 00 fa 13 ef  |.... .build.....|
00000200  20 32 38 2c 30 2c 33 31  2c 33 39 2c 31 32 0d 01  | 28,0,31,39,12..|
00000210  04 0c de 20 61 25 28 32  33 29 0d 01 0e 0e 21 6d  |... a%(23)....!m|
00000220  65 6d 3d 26 31 46 30 30  0d 01 18 13 e3 20 66 72  |em=&1F00..... fr|
00000230  61 6d 65 25 3d 31 20 b8  20 32 33 0d 01 22 15 61  |ame%=1 . 23..".a|
00000240  25 28 66 72 61 6d 65 25  2d 31 29 3d 21 6d 65 6d  |%(frame%-1)=!mem|
00000250  0d 01 2c 05 db 0d 01 36  15 f1 20 22 46 72 61 6d  |..,....6.. "Fram|
00000260  65 20 22 3b 66 72 61 6d  65 25 0d 01 40 1a 74 3d  |e ";frame%..@.t=|
00000270  32 30 2a b5 b2 28 37 2e  35 2a 66 72 61 6d 65 25  |20*..(7.5*frame%|
00000280  2b 39 30 29 0d 01 4a 12  f2 61 28 36 34 30 2c 30  |+90)..J..a(640,0|
00000290  2c 39 38 2c 30 29 0d 01  54 0c f1 20 bd 33 30 3b  |,98,0)..T.. .30;|
000002a0  89 38 0d 01 5e 11 21 73  63 72 65 65 6e 3d 26 36  |.8..^.!screen=&6|
000002b0  37 30 30 0d 01 68 0e d6  20 63 6f 6d 70 72 65 73  |700..h.. compres|
000002c0  73 0d 01 72 05 ed 0d 01  7c 05 e1 0d 01 86 05 3a  |s..r....|......:|
000002d0  0d 01 90 14 dd 20 f2 61  28 78 25 2c 79 25 2c 73  |..... .a(x%,y%,s|
000002e0  2c 61 25 29 0d 01 9a 0b  ea 20 62 25 2c 63 25 0d  |,a%)..... b%,c%.|
000002f0  01 a4 0c e7 20 73 3c 3d  33 20 e1 0d 01 ae 10 62  |.... s<=3 .....b|
00000300  25 3d 78 25 2b 73 2a b5  b2 61 25 0d 01 b8 10 63  |%=x%+s*..a%....c|
00000310  25 3d 79 25 2b 73 2a 9b  b2 61 25 0d 01 c2 13 ec  |%=y%+s*..a%.....|
00000320  20 78 25 2c 79 25 3a df  20 62 25 2c 63 25 0d 01  | x%,y%:. b%,c%..|
00000330  cc 18 f2 61 28 62 25 2c  63 25 2c 2e 38 35 2a 73  |...a(b%,c%,.85*s|
00000340  2c 61 25 2b 74 29 0d 01  d6 19 f2 61 28 62 25 2c  |,a%+t).....a(b%,|
00000350  63 25 2c 2e 33 35 2a 73  2c 61 25 2d 36 30 29 0d  |c%,.35*s,a%-60).|
00000360  01 e0 19 f2 61 28 62 25  2c 63 25 2c 2e 33 35 2a  |....a(b%,c%,.35*|
00000370  73 2c 61 25 2b 36 30 29  0d 01 ea 05 e1 0d 01 f4  |s,a%+60)........|
00000380  05 3a 0d 01 fe 0f dd 20  f2 70 6c 61 79 62 61 63  |.:..... .playbac|
00000390  6b 0d 02 08 05 f5 0d 02  12 0e 21 6d 65 6d 3d 26  |k.........!mem=&|
000003a0  31 46 30 30 0d 02 1c 6a  e3 20 4e 25 3d 30 20 b8  |1F00...j. N%=0 .|
000003b0  20 32 32 3a 21 73 63 72  65 65 6e 3d 26 36 37 30  | 22:!screen=&670|
000003c0  30 3a 21 6d 65 6d 3d 61  25 28 4e 25 29 3a d6 20  |0:!mem=a%(N%):. |
000003d0  65 78 70 61 6e 64 3a ed  3a e3 20 4e 25 3d 32 32  |expand:.:. N%=22|
000003e0  20 b8 20 30 20 88 20 2d  31 3a 21 73 63 72 65 65  | . 0 . -1:!scree|
000003f0  6e 3d 26 36 37 30 30 3a  21 6d 65 6d 3d 61 25 28  |n=&6700:!mem=a%(|
00000400  4e 25 29 3a d6 20 65 78  70 61 6e 64 3a ed 0d 02  |N%):. expand:...|
00000410  26 0a fd 20 ac 20 a6 30  0d 02 30 05 e1 0d 03 e8  |&.. . .0..0.....|
00000420  0c de 20 61 25 28 32 33  29 0d 03 f2 16 e3 6e 25  |.. a%(23).....n%|
00000430  3d 30 b8 32 32 3a f3 61  25 28 6e 25 29 3a ed 0d  |=0.22:.a%(n%):..|
00000440  03 fc 1c e7 20 ac 20 4d  25 20 ff 22 4c 4f 41 44  |.... . M% ."LOAD|
00000450  20 44 41 54 32 20 31 46  30 30 22 0d 04 06 05 f5  | DAT2 1F00".....|
00000460  0d 04 10 0e 21 6d 65 6d  3d 26 31 46 30 30 0d 04  |....!mem=&1F00..|
00000470  1a 6a e3 20 4e 25 3d 30  20 b8 20 32 32 3a 21 73  |.j. N%=0 . 22:!s|
00000480  63 72 65 65 6e 3d 26 36  37 30 30 3a 21 6d 65 6d  |creen=&6700:!mem|
00000490  3d 61 25 28 4e 25 29 3a  d6 20 65 78 70 61 6e 64  |=a%(N%):. expand|
000004a0  3a ed 3a e3 20 4e 25 3d  32 32 20 b8 20 30 20 88  |:.:. N%=22 . 0 .|
000004b0  20 2d 31 3a 21 73 63 72  65 65 6e 3d 26 36 37 30  | -1:!screen=&670|
000004c0  30 3a 21 6d 65 6d 3d 61  25 28 4e 25 29 3a d6 20  |0:!mem=a%(N%):. |
000004d0  65 78 70 61 6e 64 3a ed  0d 04 24 0a fd 20 ac 20  |expand:...$.. . |
000004e0  a6 30 0d 04 2e 14 e7 20  4d 25 20 e0 20 8b d7 22  |.0..... M% . .."|
000004f0  41 4d 45 4e 55 22 0d 04  38 8f dc 20 26 31 46 30  |AMENU"..8.. &1F0|
00000500  30 2c 26 32 31 42 42 2c  26 32 34 37 36 2c 26 32  |0,&21BB,&2476,&2|
00000510  37 33 31 2c 26 32 39 46  41 2c 26 32 43 44 42 2c  |731,&29FA,&2CDB,|
00000520  26 32 46 43 41 2c 26 33  32 44 33 2c 26 33 35 45  |&2FCA,&32D3,&35E|
00000530  36 2c 26 33 39 32 34 2c  26 33 43 35 46 2c 26 33  |6,&3924,&3C5F,&3|
00000540  46 42 30 2c 26 34 33 31  30 2c 26 34 36 38 41 2c  |FB0,&4310,&468A,|
00000550  26 34 41 30 36 2c 26 34  44 38 30 2c 26 35 30 43  |&4A06,&4D80,&50C|
00000560  42 2c 26 35 33 46 33 2c  26 35 36 46 42 2c 26 35  |B,&53F3,&56FB,&5|
00000570  39 46 43 2c 26 35 43 45  34 2c 26 35 46 42 43 2c  |9FC,&5CE4,&5FBC,|
00000580  26 36 32 37 46 0d 07 d0  08 4d 25 3d b9 0d 07 da  |&627F....M%=....|
00000590  0c 2a 46 58 32 30 30 2c  33 0d 07 e4 11 2a 4c 4f  |.*FX200,3....*LO|
000005a0  41 44 20 43 6f 6d 70 4d  2f 43 0d 07 ee 10 e7 20  |AD CompM/C..... |
000005b0  ac 20 44 25 20 e5 8d 54  60 48 0d 07 f8 0b d3 3d  |. D% ..T`H.....=|
000005c0  26 37 44 38 30 0d 08 02  12 ef 32 38 2c 30 2c 33  |&7D80.....28,0,3|
000005d0  31 2c 33 39 2c 33 30 0d  08 0c 24 21 26 37 30 3d  |1,39,30...$!&70=|
000005e0  26 36 37 30 30 3a 21 26  37 34 3d 26 31 46 30 30  |&6700:!&74=&1F00|
000005f0  3a 21 26 37 38 3d 26 32  41 30 30 0d 08 16 13 2a  |:!&78=&2A00....*|
00000600  4c 4f 41 44 20 44 41 54  32 20 32 41 30 30 0d 08  |LOAD DAT2 2A00..|
00000610  20 07 ef 32 31 0d 08 2a  58 2a 4b 45 59 30 20 2a  | ..21..*X*KEY0 *|
00000620  54 41 50 45 7c 4d 46 4f  52 49 25 3d 30 20 54 4f  |TAPE|MFORI%=0 TO|
00000630  20 54 4f 50 2d 50 41 47  45 20 53 54 45 50 34 3a  | TOP-PAGE STEP4:|
00000640  49 25 21 26 45 30 30 3d  49 25 21 50 41 47 45 3a  |I%!&E00=I%!PAGE:|
00000650  4e 45 58 54 7c 4d 50 41  47 45 3d 26 45 30 30 7c  |NEXT|MPAGE=&E00||
00000660  4d 4f 4c 44 7c 4d 52 55  4e 7c 46 7c 4d 0d 08 34  |MOLD|MRUN|F|M..4|
00000670  10 2a 46 58 31 33 38 2c  30 2c 31 32 38 0d ff     |.*FX138,0,128..|
0000067f
P/A/DEM2.m0
P/A/DEM2.m1
P/A/DEM2.m2
P/A/DEM2.m4
P/A/DEM2.m5