Home » Recent acquisitions » Acorn ADFS disks » adfs_ArchimedesWorld_199201.adf » January92 » !AWJan92/Goodies/ArcAut/Automatons/TM-Gas
!AWJan92/Goodies/ArcAut/Automatons/TM-Gas
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 » Recent acquisitions » Acorn ADFS disks » adfs_ArchimedesWorld_199201.adf » January92 |
Filename: | !AWJan92/Goodies/ArcAut/Automatons/TM-Gas |
Read OK: | ✔ |
File size: | 0203 bytes |
Load address: | 0000 |
Exec address: | 0000 |
File contents
AUTOMATON* TM-Gas This is a Margolus neighbourhood gas simulation. The particles travel along the horizontal & vertical; number & momentum are preserved in collisions. Compare with 'HPP-Gas'. INITIALISATION* 10DEF PROCdo 20*SetEval wrap on 30*SetEval neig margolus 40*SetEval flag 4 50ENDPROC SCREEN* 10DEF PROCdo 20PROCsoup(255,1,.1) 30ENDPROC CODE* ( READ_NEIG CELL OPP = IF (CW CCW = IF (CELL CW <> IF (CELL ==))) FLAG 0 <> IF (CW ==) CCW == ) END*
00000000 41 55 54 4f 4d 41 54 4f 4e 2a 0a 0a 20 20 54 4d |AUTOMATON*.. TM| 00000010 2d 47 61 73 0a 0a 20 20 54 68 69 73 20 69 73 20 |-Gas.. This is | 00000020 61 20 4d 61 72 67 6f 6c 75 73 20 6e 65 69 67 68 |a Margolus neigh| 00000030 62 6f 75 72 68 6f 6f 64 20 67 61 73 20 73 69 6d |bourhood gas sim| 00000040 75 6c 61 74 69 6f 6e 2e 20 54 68 65 20 70 61 72 |ulation. The par| 00000050 74 69 63 6c 65 73 20 74 72 61 76 65 6c 20 61 6c |ticles travel al| 00000060 6f 6e 67 0a 20 20 74 68 65 20 68 6f 72 69 7a 6f |ong. the horizo| 00000070 6e 74 61 6c 20 26 20 76 65 72 74 69 63 61 6c 3b |ntal & vertical;| 00000080 20 6e 75 6d 62 65 72 20 26 20 6d 6f 6d 65 6e 74 | number & moment| 00000090 75 6d 20 61 72 65 20 70 72 65 73 65 72 76 65 64 |um are preserved| 000000a0 20 69 6e 20 63 6f 6c 6c 69 73 69 6f 6e 73 2e 0a | in collisions..| 000000b0 20 20 43 6f 6d 70 61 72 65 20 77 69 74 68 20 27 | Compare with '| 000000c0 48 50 50 2d 47 61 73 27 2e 0a 0a 49 4e 49 54 49 |HPP-Gas'...INITI| 000000d0 41 4c 49 53 41 54 49 4f 4e 2a 0a 0a 20 20 31 30 |ALISATION*.. 10| 000000e0 44 45 46 20 50 52 4f 43 64 6f 0a 20 20 32 30 2a |DEF PROCdo. 20*| 000000f0 53 65 74 45 76 61 6c 20 77 72 61 70 20 6f 6e 0a |SetEval wrap on.| 00000100 20 20 33 30 2a 53 65 74 45 76 61 6c 20 6e 65 69 | 30*SetEval nei| 00000110 67 20 6d 61 72 67 6f 6c 75 73 0a 20 20 34 30 2a |g margolus. 40*| 00000120 53 65 74 45 76 61 6c 20 66 6c 61 67 20 34 0a 20 |SetEval flag 4. | 00000130 20 35 30 45 4e 44 50 52 4f 43 0a 0a 53 43 52 45 | 50ENDPROC..SCRE| 00000140 45 4e 2a 0a 0a 20 20 31 30 44 45 46 20 50 52 4f |EN*.. 10DEF PRO| 00000150 43 64 6f 0a 20 20 32 30 50 52 4f 43 73 6f 75 70 |Cdo. 20PROCsoup| 00000160 28 32 35 35 2c 31 2c 2e 31 29 0a 20 20 33 30 45 |(255,1,.1). 30E| 00000170 4e 44 50 52 4f 43 0a 0a 43 4f 44 45 2a 0a 0a 28 |NDPROC..CODE*..(| 00000180 20 52 45 41 44 5f 4e 45 49 47 0a 20 20 43 45 4c | READ_NEIG. CEL| 00000190 4c 20 4f 50 50 20 3d 20 49 46 20 28 43 57 20 43 |L OPP = IF (CW C| 000001a0 43 57 20 3d 20 49 46 20 28 43 45 4c 4c 20 43 57 |CW = IF (CELL CW| 000001b0 20 3c 3e 20 49 46 20 28 43 45 4c 4c 20 3d 3d 29 | <> IF (CELL ==)| 000001c0 29 29 20 0a 20 20 20 46 4c 41 47 20 30 20 3c 3e |)) . FLAG 0 <>| 000001d0 20 49 46 20 28 43 57 20 3d 3d 29 20 43 43 57 20 | IF (CW ==) CCW | 000001e0 3d 3d 20 20 20 20 20 20 20 20 20 20 20 20 20 20 |== | 000001f0 20 20 20 20 20 20 20 20 20 20 20 20 29 0a 0a 45 | )..E| 00000200 4e 44 2a |ND*| 00000203