Home » Recent acquisitions » Acorn ADFS disks » adfs_ArchimedesWorld_199201.adf » January92 » !AWJan92/Goodies/ArcAut/Automatons/Viv

!AWJan92/Goodies/ArcAut/Automatons/Viv

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/Viv
Read OK:
File size: 01CB bytes
Load address: 0000
Exec address: 0000
File contents
AUTOMATON*

  Viv

  A simple 256 state Moore neighbourhood automaton. Try windows of size 70x50
  and larger.

INITIALISATION*

  10DEF PROCdo
  20*SetEval wrap on
  30ENDPROC

SCREEN*

  10DEF PROCdo
  20PROCsoup(0,256,1)
  30ENDPROC

CODE*

( READ_NEIG
  SUM_NEIG DUP              4 < IF (dead     ==)
               3 >> DUP CELL >= IF (CELL 1 + ==)
                     CELL 121 > IF (CELL 1 - ==)
                                         1 - ==  )

END*
00000000  41 55 54 4f 4d 41 54 4f  4e 2a 0a 0a 20 20 56 69  |AUTOMATON*..  Vi|
00000010  76 0a 0a 20 20 41 20 73  69 6d 70 6c 65 20 32 35  |v..  A simple 25|
00000020  36 20 73 74 61 74 65 20  4d 6f 6f 72 65 20 6e 65  |6 state Moore ne|
00000030  69 67 68 62 6f 75 72 68  6f 6f 64 20 61 75 74 6f  |ighbourhood auto|
00000040  6d 61 74 6f 6e 2e 20 54  72 79 20 77 69 6e 64 6f  |maton. Try windo|
00000050  77 73 20 6f 66 20 73 69  7a 65 20 37 30 78 35 30  |ws of size 70x50|
00000060  0a 20 20 61 6e 64 20 6c  61 72 67 65 72 2e 0a 0a  |.  and larger...|
00000070  49 4e 49 54 49 41 4c 49  53 41 54 49 4f 4e 2a 0a  |INITIALISATION*.|
00000080  0a 20 20 31 30 44 45 46  20 50 52 4f 43 64 6f 0a  |.  10DEF PROCdo.|
00000090  20 20 32 30 2a 53 65 74  45 76 61 6c 20 77 72 61  |  20*SetEval wra|
000000a0  70 20 6f 6e 0a 20 20 33  30 45 4e 44 50 52 4f 43  |p on.  30ENDPROC|
000000b0  0a 0a 53 43 52 45 45 4e  2a 0a 0a 20 20 31 30 44  |..SCREEN*..  10D|
000000c0  45 46 20 50 52 4f 43 64  6f 0a 20 20 32 30 50 52  |EF PROCdo.  20PR|
000000d0  4f 43 73 6f 75 70 28 30  2c 32 35 36 2c 31 29 0a  |OCsoup(0,256,1).|
000000e0  20 20 33 30 45 4e 44 50  52 4f 43 0a 0a 43 4f 44  |  30ENDPROC..COD|
000000f0  45 2a 0a 0a 28 20 52 45  41 44 5f 4e 45 49 47 0a  |E*..( READ_NEIG.|
00000100  20 20 53 55 4d 5f 4e 45  49 47 20 44 55 50 20 20  |  SUM_NEIG DUP  |
00000110  20 20 20 20 20 20 20 20  20 20 20 20 34 20 3c 20  |            4 < |
00000120  49 46 20 28 64 65 61 64  20 20 20 20 20 3d 3d 29  |IF (dead     ==)|
00000130  0a 20 20 20 20 20 20 20  20 20 20 20 20 20 20 20  |.               |
00000140  33 20 3e 3e 20 44 55 50  20 43 45 4c 4c 20 3e 3d  |3 >> DUP CELL >=|
00000150  20 49 46 20 28 43 45 4c  4c 20 31 20 2b 20 3d 3d  | IF (CELL 1 + ==|
00000160  29 0a 20 20 20 20 20 20  20 20 20 20 20 20 20 20  |).              |
00000170  20 20 20 20 20 20 20 43  45 4c 4c 20 31 32 31 20  |       CELL 121 |
00000180  3e 20 49 46 20 28 43 45  4c 4c 20 31 20 2d 20 3d  |> IF (CELL 1 - =|
00000190  3d 29 0a 20 20 20 20 20  20 20 20 20 20 20 20 20  |=).             |
000001a0  20 20 20 20 20 20 20 20  20 20 20 20 20 20 20 20  |                |
000001b0  20 20 20 20 20 20 20 20  20 20 20 20 31 20 2d 20  |            1 - |
000001c0  3d 3d 20 20 29 0a 0a 45  4e 44 2a                 |==  )..END*|
000001cb