Home » Personal collection » Commodore disks » disk50a2_progs1.d64 » lifecode
lifecode
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: | lifecode |
Read OK: | ✔ |
File size: | 043F bytes |
Load address: | 0801 |
Exec address: | 0000 |
File contents
10 ; LIFE 20 ; 30 *=$C800 10000 ; LIFE 10010 LDA #$03 10020 STA $FC 10030 LDA #$C3 10040 STA $FE 10050 LDA #$D8 10060 STA $FB 10070 STA $FD 10080 LOOP LDY #$00 10090 LDX #$00 10100 JSR NEIGHBOUR 10110 INY 10120 JSR NEIGHBOUR 10130 INY 10140 JSR NEIGHBOUR 10150 LDY #$28 10160 JSR NEIGHBOUR 10170 LDY #$2A 10180 JSR NEIGHBOUR 10190 LDY #$50 10200 JSR NEIGHBOUR 10210 INY 10220 JSR NEIGHBOUR 10230 INY 10240 JSR NEIGHBOUR 10250 LDY #$29 10260 LDA ($FB),Y 10270 CMP #$A0 10280 BNE CH3 10290 CPX #$02 10300 BEQ LIVEON 10310 CH3 CPX #$03 10320 BEQ LIVEON 10330 LDA #$20 10340 RETLIVE STA ($FD),Y 10350 INC $FB 10360 INC $FD 10370 LDA $FB 10380 BNE LOOP 10390 INC $FC 10400 INC $FE 10410 LDA $FC 10420 CMP #$08 10430 BNE LOOP 11010 LDA #$04 11020 STA $FC 11030 LDA #$C4 11040 STA $FE 11050 LDY #$00 11060 STY $FB 11070 STY $FD 11080 CLOP LDA ($FD),Y 11090 STA ($FB),Y 11100 INY 11110 BNE CLOP 11120 INC $FC 11130 INC $FE 11140 LDA $FC 11150 CMP #$08 11160 BNE CLOP 11170 RTS 20000 ; NEIGHBOUR CALCULATOR 20010 NEIGHBOUR LDA ($FB),Y 20020 CMP #$A0 20030 BNE NNM 20040 INX 20050 NNM RTS 21000 LIVEON LDA #$A0 21010 JMP RETLIVE 30000 END 40000 REM CONTROLLER 40010 PRINT"<clr><white>" 40020 GET A$:IF A$="" THEN 40020 40030 SYS $C800 40040 GET A$:IF A$="" THEN 40020 40050 GOTO 40030
; L�E ; ��$C800 ''; L�E 4'LDA #$03 @$'STA $FC M.'LDA #$C3 Y8'STA $FE fB'LDA #$D8 rL'STA $FB ~V'STA $FD �`'LOOP LDY #$00 �j'LDX #$00 �t'JSR NEIGHBOUR �~'INY ��'JSR NEIGHBOUR ��'INY ��'JSR NEIGHBOUR ��'LDY #$28 �'JSR NEIGHBOUR �'LDY #$2A ! �'JSR NEIGHBOUR . �'LDY #$50 @ �'JSR NEIGHBOUR H �'INY Z �'JSR NEIGHBOUR b �'INY t (JSR NEIGHBOUR � (LDY #$29 � (LDA ($FB),Y � (CMP #$A0 � ((BNE CH3 � 2(CPX #$02 � <(BEQ LIVE� � F(CH3 CPX #$03 � P(BEQ LIVE� � Z(LDA #$20 d(RETLIVE STA ($FD),Y n(INC $FB ! x(INC $FD - �(LDA $FB : �(BNE LOOP F �(INC $FC R �(INC $FE ^ �(LDA $FC k �(CMP #$08 x �(BNE LOOP � +LDA #$04 � +STA $FC � +LDA #$C4 � +STA $FE � *+LDY #$00 � 4+STY $FB � >+STY $FD � H+CLOP LDA ($FD),Y � R+STA ($FB),Y � \+INY f+BNE CLOP p+INC $FC !z+INC $FE -�+LDA $FC :�+CMP #$08 G�+BNE CLOP O�+RTS i N; NEIGHBOUR CALCULA�R �*NNEIGHBOUR LDA ($FB),Y �4NCMP #$A0 �>NBNE NNM �HNINX �RNNNM RTS �RLIVE� LDA #$A0 �RJMP RETLIVE �0u� �@�� CONTROLLER �J��"�"