Home » CEEFAX disks » telesoftware9.adl » 26-09-88/PENDULM

26-09-88/PENDULM

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 » CEEFAX disks » telesoftware9.adl
Filename: 26-09-88/PENDULM
Read OK:
File size: 04E3 bytes
Load address: FFFF1900
Exec address: FFFF8023
Duplicates

There is 1 duplicate copy of this file in the archive:

File contents
   10 REM PROJECTILE MOTION
   20 REM PROGRAM 2 - circular motion
   30 REM             in gravity.
   40 REM ROB ANDERSON 1986
   50:
   60 DIM param(3)
   70 FORa%=1TO3:READparam(a%):NEXT
   80 ONERROR GOTO 90
   90 REPEAT
  100 MODE7
  110 PRINTTAB(7,2)CHR$131;"ANIMATION TECHNIQUES"'TAB(7,3)CHR$131;STRING$(20,"_")
  120 PRINT'CHR$130;"Program 2 - circular motion & gravity."
  130 RESTORE 570
  140 FORa%=10 TO 12:READ a$:PRINTTAB(2,a%)CHR$130;CHR$(a%+39);") ";a$;"  ";FNvalue;:NEXT
  150 PRINTTAB(2,22)CHR$131;"Press SPACE-BAR to animate"
  160 REPEAT
  170 a=GET
  180 UNTIL (a>48 AND a<52) OR a=32
  190 IF a<>32 PRINTTAB(0,a-39)CHR$129;CHR$157;:param(a-48)=FNtoggle
  200 UNTIL a=32
  210:
  220 MODE1
  230 VDU5;23,129,24,60,126,255,255,126,60,24
  240 vel=0:gravity=0.5:pos=90
  250 PROCxy
  260 GCOL0,1
  270 MOVE X%-10,Y%-5:PRINTCHR$129;
  280 MOVE X%,Y%
  290 IF param(3) DRAW 500,500
  300:
  310 REPEAT
  320 IF NOT param(1) GCOL3,1:MOVE X%-10,Y%-5:PRINTCHR$129;:MOVEX%,Y%:IF param(3) DRAW500,500
  330 PROCxy
  340 IF vel>9 gravity=(gravity*-1)
  350 IF vel<-9 gravity=(gravity*-1)
  360 vel=vel+gravity
  370 GCOL0,1
  380 MOVE X%-10,Y%-5:PRINTCHR$129;
  390 MOVEX%,Y%
  400 IF param(3) DRAW 500,500
  410 IF param(2) GCOL0,3:MOVE0,Y%:DRAW1500,Y%:GCOL0,2:MOVEX%,0:DRAWX%,1000
  420 UNTIL FALSE
  430:
  440 DEFPROCxy
  450 pos=pos+vel
  460 X%=((SIN(RAD(pos))*400)+500)
  470 Y%=((SIN(RAD(pos+90))*400)+500)
  480 ENDPROC
  490:
  500 DEFFNvalue
  510 IF param(a%-9)=-1 ="ON" ELSE ="OFF"
  520:
  530 DEFFNtoggle
  540 IF param(a-48)=0 =-1 ELSE =0
  550:
  560 DATA -1,-1,-1
  570 DATA after image,line references,visible rod

 � PROJECTILE MOTION
" � PROGRAM 2 - circular motion
 �             in gravity.
( � ROB ANDERSON 1986
2:
< � param(3)
F �a%=1�3:�param(a%):�
P � � �DZ@
Z �
d �7
n9 �7,2)�131;"ANIMATION TECHNIQUES"'�7,3)�131;�20,"_")
x4 �'�130;"Program 2 - circular motion & gravity."
� � �TzB
�A �a%=10 � 12:� a$:�2,a%)�130;�(a%+39);") ";a$;"  ";�value;:�
�- �2,22)�131;"Press SPACE-BAR to animate"
� �
� a=�
� � (a>48 � a<52) � a=32
�4 � a<>32 �0,a-39)�129;�157;:param(a-48)=�toggle
� � a=32
�:
� �1
�* �5;23,129,24,60,126,255,255,126,60,24
� vel=0:gravity=0.5:pos=90
� �xy
	 �0,1
 � X%-10,Y%-5:�129;
 � X%,Y%
" � param(3) � 500,500
,:
6 �
@E � � param(1) �3,1:� X%-10,Y%-5:�129;:�X%,Y%:� param(3) �500,500
J �xy
T! � vel>9 gravity=(gravity*-1)
^" � vel<-9 gravity=(gravity*-1)
h vel=vel+gravity
r	 �0,1
| � X%-10,Y%-5:�129;
� �X%,Y%
� � param(3) � 500,500
�7 � param(2) �0,3:�0,Y%:�1500,Y%:�0,2:�X%,0:�X%,1000
� � �
�:
�	 ��xy
� pos=pos+vel
� X%=((�(�(pos))*400)+500)
�  Y%=((�(�(pos+90))*400)+500)
� �
�:
� ݤvalue
�$ � param(a%-9)=-1 ="ON" � ="OFF"
:

 ݤtoggle
 � param(a-48)=0 =-1 � =0
&:
0 � -1,-1,-1
:. � after image,line references,visible rod
�
00000000  0d 00 0a 18 20 f4 20 50  52 4f 4a 45 43 54 49 4c  |.... . PROJECTIL|
00000010  45 20 4d 4f 54 49 4f 4e  0d 00 14 22 20 f4 20 50  |E MOTION..." . P|
00000020  52 4f 47 52 41 4d 20 32  20 2d 20 63 69 72 63 75  |ROGRAM 2 - circu|
00000030  6c 61 72 20 6d 6f 74 69  6f 6e 0d 00 1e 1e 20 f4  |lar motion.... .|
00000040  20 20 20 20 20 20 20 20  20 20 20 20 20 69 6e 20  |             in |
00000050  67 72 61 76 69 74 79 2e  0d 00 28 18 20 f4 20 52  |gravity...(. . R|
00000060  4f 42 20 41 4e 44 45 52  53 4f 4e 20 31 39 38 36  |OB ANDERSON 1986|
00000070  0d 00 32 05 3a 0d 00 3c  0f 20 de 20 70 61 72 61  |..2.:..<. . para|
00000080  6d 28 33 29 0d 00 46 19  20 e3 61 25 3d 31 b8 33  |m(3)..F. .a%=1.3|
00000090  3a f3 70 61 72 61 6d 28  61 25 29 3a ed 0d 00 50  |:.param(a%):...P|
000000a0  0e 20 ee 85 20 e5 20 8d  44 5a 40 0d 00 5a 06 20  |. .. . .DZ@..Z. |
000000b0  f5 0d 00 64 07 20 eb 37  0d 00 6e 39 20 f1 8a 37  |...d. .7..n9 ..7|
000000c0  2c 32 29 bd 31 33 31 3b  22 41 4e 49 4d 41 54 49  |,2).131;"ANIMATI|
000000d0  4f 4e 20 54 45 43 48 4e  49 51 55 45 53 22 27 8a  |ON TECHNIQUES"'.|
000000e0  37 2c 33 29 bd 31 33 31  3b c4 32 30 2c 22 5f 22  |7,3).131;.20,"_"|
000000f0  29 0d 00 78 34 20 f1 27  bd 31 33 30 3b 22 50 72  |)..x4 .'.130;"Pr|
00000100  6f 67 72 61 6d 20 32 20  2d 20 63 69 72 63 75 6c  |ogram 2 - circul|
00000110  61 72 20 6d 6f 74 69 6f  6e 20 26 20 67 72 61 76  |ar motion & grav|
00000120  69 74 79 2e 22 0d 00 82  0b 20 f7 20 8d 54 7a 42  |ity.".... . .TzB|
00000130  0d 00 8c 41 20 e3 61 25  3d 31 30 20 b8 20 31 32  |...A .a%=10 . 12|
00000140  3a f3 20 61 24 3a f1 8a  32 2c 61 25 29 bd 31 33  |:. a$:..2,a%).13|
00000150  30 3b bd 28 61 25 2b 33  39 29 3b 22 29 20 22 3b  |0;.(a%+39);") ";|
00000160  61 24 3b 22 20 20 22 3b  a4 76 61 6c 75 65 3b 3a  |a$;"  ";.value;:|
00000170  ed 0d 00 96 2d 20 f1 8a  32 2c 32 32 29 bd 31 33  |....- ..2,22).13|
00000180  31 3b 22 50 72 65 73 73  20 53 50 41 43 45 2d 42  |1;"Press SPACE-B|
00000190  41 52 20 74 6f 20 61 6e  69 6d 61 74 65 22 0d 00  |AR to animate"..|
000001a0  a0 06 20 f5 0d 00 aa 08  20 61 3d a5 0d 00 b4 1b  |.. ..... a=.....|
000001b0  20 fd 20 28 61 3e 34 38  20 80 20 61 3c 35 32 29  | . (a>48 . a<52)|
000001c0  20 84 20 61 3d 33 32 0d  00 be 34 20 e7 20 61 3c  | . a=32...4 . a<|
000001d0  3e 33 32 20 f1 8a 30 2c  61 2d 33 39 29 bd 31 32  |>32 ..0,a-39).12|
000001e0  39 3b bd 31 35 37 3b 3a  70 61 72 61 6d 28 61 2d  |9;.157;:param(a-|
000001f0  34 38 29 3d a4 74 6f 67  67 6c 65 0d 00 c8 0b 20  |48)=.toggle.... |
00000200  fd 20 61 3d 33 32 0d 00  d2 05 3a 0d 00 dc 07 20  |. a=32....:.... |
00000210  eb 31 0d 00 e6 2a 20 ef  35 3b 32 33 2c 31 32 39  |.1...* .5;23,129|
00000220  2c 32 34 2c 36 30 2c 31  32 36 2c 32 35 35 2c 32  |,24,60,126,255,2|
00000230  35 35 2c 31 32 36 2c 36  30 2c 32 34 0d 00 f0 1d  |55,126,60,24....|
00000240  20 76 65 6c 3d 30 3a 67  72 61 76 69 74 79 3d 30  | vel=0:gravity=0|
00000250  2e 35 3a 70 6f 73 3d 39  30 0d 00 fa 08 20 f2 78  |.5:pos=90.... .x|
00000260  79 0d 01 04 09 20 e6 30  2c 31 0d 01 0e 18 20 ec  |y.... .0,1.... .|
00000270  20 58 25 2d 31 30 2c 59  25 2d 35 3a f1 bd 31 32  | X%-10,Y%-5:..12|
00000280  39 3b 0d 01 18 0c 20 ec  20 58 25 2c 59 25 0d 01  |9;.... . X%,Y%..|
00000290  22 19 20 e7 20 70 61 72  61 6d 28 33 29 20 df 20  |". . param(3) . |
000002a0  35 30 30 2c 35 30 30 0d  01 2c 05 3a 0d 01 36 06  |500,500..,.:..6.|
000002b0  20 f5 0d 01 40 45 20 e7  20 ac 20 70 61 72 61 6d  | ...@E . . param|
000002c0  28 31 29 20 e6 33 2c 31  3a ec 20 58 25 2d 31 30  |(1) .3,1:. X%-10|
000002d0  2c 59 25 2d 35 3a f1 bd  31 32 39 3b 3a ec 58 25  |,Y%-5:..129;:.X%|
000002e0  2c 59 25 3a e7 20 70 61  72 61 6d 28 33 29 20 df  |,Y%:. param(3) .|
000002f0  35 30 30 2c 35 30 30 0d  01 4a 08 20 f2 78 79 0d  |500,500..J. .xy.|
00000300  01 54 21 20 e7 20 76 65  6c 3e 39 20 67 72 61 76  |.T! . vel>9 grav|
00000310  69 74 79 3d 28 67 72 61  76 69 74 79 2a 2d 31 29  |ity=(gravity*-1)|
00000320  0d 01 5e 22 20 e7 20 76  65 6c 3c 2d 39 20 67 72  |..^" . vel<-9 gr|
00000330  61 76 69 74 79 3d 28 67  72 61 76 69 74 79 2a 2d  |avity=(gravity*-|
00000340  31 29 0d 01 68 14 20 76  65 6c 3d 76 65 6c 2b 67  |1)..h. vel=vel+g|
00000350  72 61 76 69 74 79 0d 01  72 09 20 e6 30 2c 31 0d  |ravity..r. .0,1.|
00000360  01 7c 18 20 ec 20 58 25  2d 31 30 2c 59 25 2d 35  |.|. . X%-10,Y%-5|
00000370  3a f1 bd 31 32 39 3b 0d  01 86 0b 20 ec 58 25 2c  |:..129;.... .X%,|
00000380  59 25 0d 01 90 19 20 e7  20 70 61 72 61 6d 28 33  |Y%.... . param(3|
00000390  29 20 df 20 35 30 30 2c  35 30 30 0d 01 9a 37 20  |) . 500,500...7 |
000003a0  e7 20 70 61 72 61 6d 28  32 29 20 e6 30 2c 33 3a  |. param(2) .0,3:|
000003b0  ec 30 2c 59 25 3a df 31  35 30 30 2c 59 25 3a e6  |.0,Y%:.1500,Y%:.|
000003c0  30 2c 32 3a ec 58 25 2c  30 3a df 58 25 2c 31 30  |0,2:.X%,0:.X%,10|
000003d0  30 30 0d 01 a4 08 20 fd  20 a3 0d 01 ae 05 3a 0d  |00.... . .....:.|
000003e0  01 b8 09 20 dd f2 78 79  0d 01 c2 10 20 70 6f 73  |... ..xy.... pos|
000003f0  3d 70 6f 73 2b 76 65 6c  0d 01 cc 1d 20 58 25 3d  |=pos+vel.... X%=|
00000400  28 28 b5 28 b2 28 70 6f  73 29 29 2a 34 30 30 29  |((.(.(pos))*400)|
00000410  2b 35 30 30 29 0d 01 d6  20 20 59 25 3d 28 28 b5  |+500)...  Y%=((.|
00000420  28 b2 28 70 6f 73 2b 39  30 29 29 2a 34 30 30 29  |(.(pos+90))*400)|
00000430  2b 35 30 30 29 0d 01 e0  06 20 e1 0d 01 ea 05 3a  |+500).... .....:|
00000440  0d 01 f4 0c 20 dd a4 76  61 6c 75 65 0d 01 fe 24  |.... ..value...$|
00000450  20 e7 20 70 61 72 61 6d  28 61 25 2d 39 29 3d 2d  | . param(a%-9)=-|
00000460  31 20 3d 22 4f 4e 22 20  8b 20 3d 22 4f 46 46 22  |1 ="ON" . ="OFF"|
00000470  0d 02 08 05 3a 0d 02 12  0d 20 dd a4 74 6f 67 67  |....:.... ..togg|
00000480  6c 65 0d 02 1c 1d 20 e7  20 70 61 72 61 6d 28 61  |le.... . param(a|
00000490  2d 34 38 29 3d 30 20 3d  2d 31 20 8b 20 3d 30 0d  |-48)=0 =-1 . =0.|
000004a0  02 26 05 3a 0d 02 30 0f  20 dc 20 2d 31 2c 2d 31  |.&.:..0. . -1,-1|
000004b0  2c 2d 31 0d 02 3a 2e 20  dc 20 61 66 74 65 72 20  |,-1..:. . after |
000004c0  69 6d 61 67 65 2c 6c 69  6e 65 20 72 65 66 65 72  |image,line refer|
000004d0  65 6e 63 65 73 2c 76 69  73 69 62 6c 65 20 72 6f  |ences,visible ro|
000004e0  64 0d ff                                          |d..|
000004e3
26-09-88/PENDULM.m0
26-09-88/PENDULM.m1
26-09-88/PENDULM.m2
26-09-88/PENDULM.m4
26-09-88/PENDULM.m5