Home » Personal collection » Commodore disks » disk50a2_progs1.d64 » life
life
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 » Commodore disks » disk50a2_progs1.d64 |
| Filename: | life |
| Read OK: | ✔ |
| File size: | 01AA bytes |
| Load address: | 0801 |
| Exec address: | 0000 |
File contents
1 REM LIFE
2 PRINT"<clr><white>"
5 PRINT"<cursor down><cursor down><cursor down><cursor down><cursor down><cursor down><cursor down><cursor down><cursor down><cursor down> <reverse on> <rev off>"
6 PRINT" <reverse on> <rev off> <reverse on> <rev off>"
7 PRINT" <reverse on> <rev off>"
10 FORR=$0400 TO $07E8
15 L=0
20 N=ABS(PEEK(R-1)=$A0)+ABS(PEEK(R+1)=$A0)+ABS(PEEK(R+40)=$A0)+ABS(PEEK(R-40)=$A0)
30 N=N+ABS(PEEK(R-41)=$A0)+ABS(PEEK(R-39)=$A0)+ABS(PEEK(R+41)=$A0)+ABS(PEEK(R+39)=$A0)
40 IF PEEK(R)=32 THEN 60
50 IF N=2 THEN L=1
60 IF N=3 THEN L=1
70 POKER+49152,32+L*128
80 NEXT
82 FORR=$C400TO$C800:POKER-$C000,PEEK(R):NEXT
85 POKE 53280,0
90 GET A$:IF A$="" THEN 90
95 POKE 53280,1
100 GOTO 10
� LIFE �"�"