Home » CEEFAX disks » telesoftware2.adl » SURVIVE

SURVIVE

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 » telesoftware2.adl
Filename: SURVIVE
Read OK:
File size: 0BC8 bytes
Load address: 1900
Exec address: 8023
File contents
   10REM
   20REM
   30REM
   40ONERRORGOTO1480
   50MODE7
   60PROC_ass
   70PROC_oneortwo
   80VDU23;&200A;0;0;0;
   90sc1%=0:sc2%=0:d=RND(-TIME)
  100REPEAT
  110PROC_init
  120FORd=0TO2000:NEXT
  130REPEAT
  140SOUND&11,-1,140,1
  150M%=M%+1
  160TIME=0
  170IFcomp% PROC_compdir2:IFd2%<>lastd2% prevd2%=lastd2%
  180lastd1%=d1%:lastd2%=d2%
  190REPEAT
  200PROC_dir1
  210IF NOT comp% PROC_dir2
  220UNTIL TIME>DL%
  230IF d1%=-lastd1% THEN d1%=lastd1%
  240IF d2%=-lastd2% THEN d2%=lastd2%
  250PROC_hit1
  260PROC_hit2
  270PROC_mov1
  280PROC_mov2
  290UNTIL hit1% OR hit2%
  300SOUND0,-10,85,2
  310IFhit1% winner$="Player O Wins !"ELSE winner$="Player X Wins !"
  320IF(hit1% AND hit2%) winner$=" It's a draw ! "
  330tb=?&7C00-16:IF tb<135 tf=tb+1 ELSE tf=129
  340bb=?&7FC0-16:IF bb<135 bf=bb+1 ELSE bf=129
  350PRINTTAB(0,0)CHR$(tb)CHR$(157)CHR$(tf)SPC(10)winner$;SPC(12)
  360sc1%=sc1%+ABS(hit2%)
  370sc2%=sc2%+ABS(hit1%)
  380PRINTTAB(0,24)CHR$(bb)CHR$(157)CHR$(bf)SPC(3)"Player X = ";sc1%;SPC(3)"Player O = ";sc2%;SPC(39-POS);:?&7FE7=32
  390REPEAT UNTIL INKEY-99
  400UNTIL FALSE
  410END
  420DEFPROC_init
  430CLS:pc=0
  440FORd=&7C00 TO &7FC0 STEP40
  450REPEAT:nc=RND(7)+144:UNTIL nc<>pc
  460pc=nc:?d=nc:NEXT
  470FORd=&7C01 TO &7C27:?d=&FF:NEXT
  480FORd=&7C01 TO &7FC0 STEP40:?d=&FF:NEXT
  490FORd=&7FC1 TO &7FFF:?d=&FF:NEXT
  500FORd=&7C27 TO &7FFF STEP40:?d=&FF:NEXT
  510p1%=&7C00+(40*(RND(22)+1))+RND(16)+1
  520p2%=&7C00+(40*(RND(22)+1))+RND(16)+22
  530d1%=1:lastd1%=1:hit1%=FALSE:hit2%=FALSE
  540d2%=-1:lastd2%=-1:prevd2%=-1:FF%=&FF
  550X%=ASC"X":O%=ASC"O":?p1%=X%:?p2%=O%
  560testm%=0:testp%=0:M%=0
  570ENDPROC
  580DEFPROC_dir1
  590IFINKEY-82THENd1%=-40
  600IFINKEY-98THENd1%=40
  610IFINKEY-2THENd1%=1
  620IFINKEY-65THENd1%=-1
  630ENDPROC
  640DEFPROC_dir2
  650IFINKEY-41THENd2%=-40
  660IFINKEY-89THENd2%=40
  670IFINKEY-104THENd2%=1
  680IFINKEY-103THENd2%=-1
  690ENDPROC
  700DEFPROC_hit1
  710IF?(p1%+d1%)=FF% THENhit1%=TRUE
  720ENDPROC
  730DEFPROC_hit2
  740IF?(p2%+d2%)=FF% THENhit2%=TRUE
  750ENDPROC
  760DEFPROC_mov1
  770?p1%=FF%:p1%=p1%+d1%:?p1%=X%
  780ENDPROC
  790DEFPROC_mov2
  800?p2%=FF%:p2%=p2%+d2%:?p2%=O%
  810ENDPROC
  820DEFPROC_compdir2
  830IF?(p2%+d2%)=FF% THEN PROC_crash:ENDPROC
  840IF?(p2%+d2%+d2%)=FF% AND M%>40 THEN PROC_change:ENDPROC
  850IFM%>50 ENDPROC
  860IFlastd1%<>d1%PROC_change:ENDPROC
  870ENDPROC
  880DEFPROC_change
  890PROC_space
  900IFtestp%=testm% THEN ENDPROC
  910IFtestp%>testm% THENd2%=DX% ELSEd2%=-DX%
  920ENDPROC
  930DEFPROC_crash
  940PROC_space
  950IFtestp%=1 THENd2%=-DX%:ENDPROC
  960IFtestm%=1 THENd2%=DX%:ENDPROC
  970IF(testp%=2)AND(testm%=2) THENd2%=prevd2%:ENDPROC
  980IFtestp%=testm% THENd2%=DX%:ENDPROC
  990IFtestp%>testm% THENd2%=DX% ELSEd2%=-DX%:ENDPROC
 1000DEFPROC_space
 1010?&70=p2% MOD 256:?&71=p2% DIV 256
 1020?&72=ABS(d2%)
 1030CALL spm%
 1040testp%=?&73:testm%=?&74:DX%=?&76
 1050ENDPROC
 1060DEFPROC_oneortwo
 1070CLS
 1080FORd=0TO1:PRINTCHR$157CHR$131TAB(11,0+d)CHR$141CHR$129"! Survival !":NEXT
 1090PRINT'''
 1100PRINTSPC(10)"S"SPC(17)"`"'
 1110PRINTSPC(4)"CLOC"CHR$136" x"CHR$137" CTRL"SPC(8)"<"CHR$136" o "CHR$137">"'
 1120PRINTSPC(10)"Z"SPC(17)"]"
 1130PRINTTAB(8,17)CHR$130"One or Two Players ? ";
 1140REPEAT UNTIL INKEY-49 OR INKEY-50
 1150IFINKEY-49 comp%=TRUE ELSE comp%=FALSE
 1160IFcomp% PRINT"1"'' ELSE PRINT"2"''
 1170PROC_skill
 1180ENDPROC
 1190DEFPROC_ass
 1200DIM spm% 200
 1210FORd=0TO2 STEP2
 1220P%=spm%
 1230[OPTd
 1240LDA&70:STA&77:LDA&71:STA&78
 1250LDY#0:STY&73:STY&74
 1260LDX#40:LDA&72:CMP#1:BEQ a:LDX#1
 1270.a STX&76:.LOOP1 LDA&76:CLC:ADC&77
 1280STA&77:BCC b:INC&78:.b INC&73
 1290LDA(&77),Y:CMP#&FF:BNE LOOP1
 1300LDA&70:STA&77:LDA&71:STA&78
 1310.LOOP2 LDA&77:SEC:SBC&76:STA&77
 1320BCS c:DEC&78:.c INC&74:LDA(&77),Y
 1330CMP#&FF:BNE LOOP2
 1340RTS
 1350]
 1360NEXT
 1370ENDPROC
 1380DEFPROC_skill
 1390PRINTTAB(8)CHR$130"Skill level  (1-5) ? ";
 1400a$="12345!#$%"+CHR$(34)
 1410REPEAT
 1420*FX15,0
 1430sk$=GET$
 1440UNTIL INSTR(a$,sk$)
 1450sk$=CHR$(ASC(sk$)OR&10)
 1460DL%=3*(5-VAL(sk$))
 1470ENDPROC
 1480IF ERR=17 THEN RUN
 1490MODE 6:REPORT:PRINT" at line"ERL
 1500END

�
�
�
(��dHE
2�7
<	�_ass
F�_oneortwo
P�23;&200A;0;0;0;
Zsc1%=0:sc2%=0:d=�(-�)
d�
n
�_init
x�d=0�2000:�
��
��&11,-1,140,1
�M%=M%+1
��=0
�3�comp% �_compdir2:�d2%<>lastd2% prevd2%=lastd2%
�lastd1%=d1%:lastd2%=d2%
��
�
�_dir1
�� � comp% �_dir2
�� �>DL%
� � d1%=-lastd1% � d1%=lastd1%
� � d2%=-lastd2% � d2%=lastd2%
�
�_hit1

�_hit2

�_mov1

�_mov2
"� hit1% � hit2%
,�0,-10,85,2
6?�hit1% winner$="Player O Wins !"� winner$="Player X Wins !"
@.�(hit1% � hit2%) winner$=" It's a draw ! "
J*tb=?&7C00-16:� tb<135 tf=tb+1 � tf=129
T*bb=?&7FC0-16:� bb<135 bf=bb+1 � bf=129
^,�0,0)�(tb)�(157)�(tf)�(10)winner$;�(12)
hsc1%=sc1%+�(hit2%)
rsc2%=sc2%+�(hit1%)
|[�0,24)�(bb)�(157)�(bf)�(3)"Player X = ";sc1%;�(3)"Player O = ";sc2%;�(39-�);:?&7FE7=32
�� � �-99
�� �
��
���_init
�
�:pc=0
��d=&7C00 � &7FC0 �40
��:nc=�(7)+144:� nc<>pc
�pc=nc:?d=nc:�
��d=&7C01 � &7C27:?d=&FF:�
�!�d=&7C01 � &7FC0 �40:?d=&FF:�
��d=&7FC1 � &7FFF:?d=&FF:�
�!�d=&7C27 � &7FFF �40:?d=&FF:�
�$p1%=&7C00+(40*(�(22)+1))+�(16)+1
%p2%=&7C00+(40*(�(22)+1))+�(16)+22
#d1%=1:lastd1%=1:hit1%=�:hit2%=�
(d2%=-1:lastd2%=-1:prevd2%=-1:FF%=&FF
&#X%=�"X":O%=�"O":?p1%=X%:?p2%=O%
0testm%=0:testp%=0:M%=0
:�
D��_dir1
N�-82�d1%=-40
X�-98�d1%=40
b�-2�d1%=1
l�-65�d1%=-1
v�
���_dir2
��-41�d2%=-40
��-89�d2%=40
��-104�d2%=1
��-103�d2%=-1
��
���_hit1
��?(p1%+d1%)=FF% �hit1%=�
��
���_hit2
��?(p2%+d2%)=FF% �hit2%=�
��
���_mov1
 ?p1%=FF%:p1%=p1%+d1%:?p1%=X%
�
��_mov2
  ?p2%=FF%:p2%=p2%+d2%:?p2%=O%
*�
4��_compdir2
>�?(p2%+d2%)=FF% � �_crash:�
H,�?(p2%+d2%+d2%)=FF% � M%>40 � �_change:�
R�M%>50 �
\�lastd1%<>d1%�_change:�
f�
p
��_change
z�_space
��testp%=testm% � �
�%�testp%>testm% �d2%=DX% �d2%=-DX%
��
���_crash
��_space
��testp%=1 �d2%=-DX%:�
��testm%=1 �d2%=DX%:�
�)�(testp%=2)�(testm%=2) �d2%=prevd2%:�
��testp%=testm% �d2%=DX%:�
�'�testp%>testm% �d2%=DX% �d2%=-DX%:�
���_space
�!?&70=p2% � 256:?&71=p2% � 256
�?&72=�(d2%)

� spm%
$testp%=?&73:testm%=?&74:DX%=?&76
�
$��_oneortwo
.�
84�d=0�1:�157�131�11,0+d)�141�129"! Survival !":�
B�'''
L�(10)"S"�(17)"`"'
V:�(4)"CLOC"�136" x"�137" CTRL"�(8)"<"�136" o "�137">"'
`�(10)"Z"�(17)"]"
j'�8,17)�130"One or Two Players ? ";
t� � �-49 � �-50
~�-49 comp%=� � comp%=�
��comp% �"1"'' � �"2"''
��_skill
��
�
��_ass
�� spm% 200
�
�d=0�2 �2
�P%=spm%
�	[OPTd
�LDA&70:STA&77:LDA&71:STA&78
�LDY#0:STY&73:STY&74
�#LDX#40:LDA&72:CMP#1:BEQ a:LDX#1
�&.a STX&76:.LOOP1 LDA&76:CLC:ADC&77
!STA&77:BCC b:INC&78:.b INC&73

 LDA(&77),Y:CMP#&FF:BNE LOOP1
LDA&70:STA&77:LDA&71:STA&78
#.LOOP2 LDA&77:SEC:SBC&76:STA&77
(%BCS c:DEC&78:.c INC&74:LDA(&77),Y
2CMP#&FF:BNE LOOP2
<RTS
F]
P�
Z�
d��_skill
n$�8)�130"Skill level  (1-5) ? ";
xa$="12345!#$%"+�(34)
��
�*FX15,0
�	sk$=�
�� �a$,sk$)
�sk$=�(�(sk$)�&10)
�DL%=3*(5-�(sk$))
��
�� �=17 � �
�� 6:�:�" at line"�
��
�
00000000  0d 00 0a 05 f4 0d 00 14  05 f4 0d 00 1e 05 f4 0d  |................|
00000010  00 28 0b ee 85 e5 8d 64  48 45 0d 00 32 06 eb 37  |.(.....dHE..2..7|
00000020  0d 00 3c 09 f2 5f 61 73  73 0d 00 46 0e f2 5f 6f  |..<.._ass..F.._o|
00000030  6e 65 6f 72 74 77 6f 0d  00 50 14 ef 32 33 3b 26  |neortwo..P..23;&|
00000040  32 30 30 41 3b 30 3b 30  3b 30 3b 0d 00 5a 19 73  |200A;0;0;0;..Z.s|
00000050  63 31 25 3d 30 3a 73 63  32 25 3d 30 3a 64 3d b3  |c1%=0:sc2%=0:d=.|
00000060  28 2d 91 29 0d 00 64 05  f5 0d 00 6e 0a f2 5f 69  |(-.)..d....n.._i|
00000070  6e 69 74 0d 00 78 0f e3  64 3d 30 b8 32 30 30 30  |nit..x..d=0.2000|
00000080  3a ed 0d 00 82 05 f5 0d  00 8c 11 d4 26 31 31 2c  |:...........&11,|
00000090  2d 31 2c 31 34 30 2c 31  0d 00 96 0b 4d 25 3d 4d  |-1,140,1....M%=M|
000000a0  25 2b 31 0d 00 a0 07 d1  3d 30 0d 00 aa 33 e7 63  |%+1.....=0...3.c|
000000b0  6f 6d 70 25 20 f2 5f 63  6f 6d 70 64 69 72 32 3a  |omp% ._compdir2:|
000000c0  e7 64 32 25 3c 3e 6c 61  73 74 64 32 25 20 70 72  |.d2%<>lastd2% pr|
000000d0  65 76 64 32 25 3d 6c 61  73 74 64 32 25 0d 00 b4  |evd2%=lastd2%...|
000000e0  1b 6c 61 73 74 64 31 25  3d 64 31 25 3a 6c 61 73  |.lastd1%=d1%:las|
000000f0  74 64 32 25 3d 64 32 25  0d 00 be 05 f5 0d 00 c8  |td2%=d2%........|
00000100  0a f2 5f 64 69 72 31 0d  00 d2 14 e7 20 ac 20 63  |.._dir1..... . c|
00000110  6f 6d 70 25 20 f2 5f 64  69 72 32 0d 00 dc 0b fd  |omp% ._dir2.....|
00000120  20 91 3e 44 4c 25 0d 00  e6 20 e7 20 64 31 25 3d  | .>DL%... . d1%=|
00000130  2d 6c 61 73 74 64 31 25  20 8c 20 64 31 25 3d 6c  |-lastd1% . d1%=l|
00000140  61 73 74 64 31 25 0d 00  f0 20 e7 20 64 32 25 3d  |astd1%... . d2%=|
00000150  2d 6c 61 73 74 64 32 25  20 8c 20 64 32 25 3d 6c  |-lastd2% . d2%=l|
00000160  61 73 74 64 32 25 0d 00  fa 0a f2 5f 68 69 74 31  |astd2%....._hit1|
00000170  0d 01 04 0a f2 5f 68 69  74 32 0d 01 0e 0a f2 5f  |....._hit2....._|
00000180  6d 6f 76 31 0d 01 18 0a  f2 5f 6d 6f 76 32 0d 01  |mov1....._mov2..|
00000190  22 13 fd 20 68 69 74 31  25 20 84 20 68 69 74 32  |".. hit1% . hit2|
000001a0  25 0d 01 2c 0f d4 30 2c  2d 31 30 2c 38 35 2c 32  |%..,..0,-10,85,2|
000001b0  0d 01 36 3f e7 68 69 74  31 25 20 77 69 6e 6e 65  |..6?.hit1% winne|
000001c0  72 24 3d 22 50 6c 61 79  65 72 20 4f 20 57 69 6e  |r$="Player O Win|
000001d0  73 20 21 22 8b 20 77 69  6e 6e 65 72 24 3d 22 50  |s !". winner$="P|
000001e0  6c 61 79 65 72 20 58 20  57 69 6e 73 20 21 22 0d  |layer X Wins !".|
000001f0  01 40 2e e7 28 68 69 74  31 25 20 80 20 68 69 74  |.@..(hit1% . hit|
00000200  32 25 29 20 77 69 6e 6e  65 72 24 3d 22 20 49 74  |2%) winner$=" It|
00000210  27 73 20 61 20 64 72 61  77 20 21 20 22 0d 01 4a  |'s a draw ! "..J|
00000220  2a 74 62 3d 3f 26 37 43  30 30 2d 31 36 3a e7 20  |*tb=?&7C00-16:. |
00000230  74 62 3c 31 33 35 20 74  66 3d 74 62 2b 31 20 8b  |tb<135 tf=tb+1 .|
00000240  20 74 66 3d 31 32 39 0d  01 54 2a 62 62 3d 3f 26  | tf=129..T*bb=?&|
00000250  37 46 43 30 2d 31 36 3a  e7 20 62 62 3c 31 33 35  |7FC0-16:. bb<135|
00000260  20 62 66 3d 62 62 2b 31  20 8b 20 62 66 3d 31 32  | bf=bb+1 . bf=12|
00000270  39 0d 01 5e 2c f1 8a 30  2c 30 29 bd 28 74 62 29  |9..^,..0,0).(tb)|
00000280  bd 28 31 35 37 29 bd 28  74 66 29 89 28 31 30 29  |.(157).(tf).(10)|
00000290  77 69 6e 6e 65 72 24 3b  89 28 31 32 29 0d 01 68  |winner$;.(12)..h|
000002a0  16 73 63 31 25 3d 73 63  31 25 2b 94 28 68 69 74  |.sc1%=sc1%+.(hit|
000002b0  32 25 29 0d 01 72 16 73  63 32 25 3d 73 63 32 25  |2%)..r.sc2%=sc2%|
000002c0  2b 94 28 68 69 74 31 25  29 0d 01 7c 5b f1 8a 30  |+.(hit1%)..|[..0|
000002d0  2c 32 34 29 bd 28 62 62  29 bd 28 31 35 37 29 bd  |,24).(bb).(157).|
000002e0  28 62 66 29 89 28 33 29  22 50 6c 61 79 65 72 20  |(bf).(3)"Player |
000002f0  58 20 3d 20 22 3b 73 63  31 25 3b 89 28 33 29 22  |X = ";sc1%;.(3)"|
00000300  50 6c 61 79 65 72 20 4f  20 3d 20 22 3b 73 63 32  |Player O = ";sc2|
00000310  25 3b 89 28 33 39 2d b1  29 3b 3a 3f 26 37 46 45  |%;.(39-.);:?&7FE|
00000320  37 3d 33 32 0d 01 86 0c  f5 20 fd 20 a6 2d 39 39  |7=32..... . .-99|
00000330  0d 01 90 07 fd 20 a3 0d  01 9a 05 e0 0d 01 a4 0b  |..... ..........|
00000340  dd f2 5f 69 6e 69 74 0d  01 ae 0a db 3a 70 63 3d  |.._init.....:pc=|
00000350  30 0d 01 b8 18 e3 64 3d  26 37 43 30 30 20 b8 20  |0.....d=&7C00 . |
00000360  26 37 46 43 30 20 88 34  30 0d 01 c2 1a f5 3a 6e  |&7FC0 .40.....:n|
00000370  63 3d b3 28 37 29 2b 31  34 34 3a fd 20 6e 63 3c  |c=.(7)+144:. nc<|
00000380  3e 70 63 0d 01 cc 11 70  63 3d 6e 63 3a 3f 64 3d  |>pc....pc=nc:?d=|
00000390  6e 63 3a ed 0d 01 d6 1d  e3 64 3d 26 37 43 30 31  |nc:......d=&7C01|
000003a0  20 b8 20 26 37 43 32 37  3a 3f 64 3d 26 46 46 3a  | . &7C27:?d=&FF:|
000003b0  ed 0d 01 e0 21 e3 64 3d  26 37 43 30 31 20 b8 20  |....!.d=&7C01 . |
000003c0  26 37 46 43 30 20 88 34  30 3a 3f 64 3d 26 46 46  |&7FC0 .40:?d=&FF|
000003d0  3a ed 0d 01 ea 1d e3 64  3d 26 37 46 43 31 20 b8  |:......d=&7FC1 .|
000003e0  20 26 37 46 46 46 3a 3f  64 3d 26 46 46 3a ed 0d  | &7FFF:?d=&FF:..|
000003f0  01 f4 21 e3 64 3d 26 37  43 32 37 20 b8 20 26 37  |..!.d=&7C27 . &7|
00000400  46 46 46 20 88 34 30 3a  3f 64 3d 26 46 46 3a ed  |FFF .40:?d=&FF:.|
00000410  0d 01 fe 24 70 31 25 3d  26 37 43 30 30 2b 28 34  |...$p1%=&7C00+(4|
00000420  30 2a 28 b3 28 32 32 29  2b 31 29 29 2b b3 28 31  |0*(.(22)+1))+.(1|
00000430  36 29 2b 31 0d 02 08 25  70 32 25 3d 26 37 43 30  |6)+1...%p2%=&7C0|
00000440  30 2b 28 34 30 2a 28 b3  28 32 32 29 2b 31 29 29  |0+(40*(.(22)+1))|
00000450  2b b3 28 31 36 29 2b 32  32 0d 02 12 23 64 31 25  |+.(16)+22...#d1%|
00000460  3d 31 3a 6c 61 73 74 64  31 25 3d 31 3a 68 69 74  |=1:lastd1%=1:hit|
00000470  31 25 3d a3 3a 68 69 74  32 25 3d a3 0d 02 1c 28  |1%=.:hit2%=....(|
00000480  64 32 25 3d 2d 31 3a 6c  61 73 74 64 32 25 3d 2d  |d2%=-1:lastd2%=-|
00000490  31 3a 70 72 65 76 64 32  25 3d 2d 31 3a 46 46 25  |1:prevd2%=-1:FF%|
000004a0  3d 26 46 46 0d 02 26 23  58 25 3d 97 22 58 22 3a  |=&FF..&#X%=."X":|
000004b0  4f 25 3d 97 22 4f 22 3a  3f 70 31 25 3d 58 25 3a  |O%=."O":?p1%=X%:|
000004c0  3f 70 32 25 3d 4f 25 0d  02 30 1a 74 65 73 74 6d  |?p2%=O%..0.testm|
000004d0  25 3d 30 3a 74 65 73 74  70 25 3d 30 3a 4d 25 3d  |%=0:testp%=0:M%=|
000004e0  30 0d 02 3a 05 e1 0d 02  44 0b dd f2 5f 64 69 72  |0..:....D..._dir|
000004f0  31 0d 02 4e 11 e7 a6 2d  38 32 8c 64 31 25 3d 2d  |1..N...-82.d1%=-|
00000500  34 30 0d 02 58 10 e7 a6  2d 39 38 8c 64 31 25 3d  |40..X...-98.d1%=|
00000510  34 30 0d 02 62 0e e7 a6  2d 32 8c 64 31 25 3d 31  |40..b...-2.d1%=1|
00000520  0d 02 6c 10 e7 a6 2d 36  35 8c 64 31 25 3d 2d 31  |..l...-65.d1%=-1|
00000530  0d 02 76 05 e1 0d 02 80  0b dd f2 5f 64 69 72 32  |..v........_dir2|
00000540  0d 02 8a 11 e7 a6 2d 34  31 8c 64 32 25 3d 2d 34  |......-41.d2%=-4|
00000550  30 0d 02 94 10 e7 a6 2d  38 39 8c 64 32 25 3d 34  |0......-89.d2%=4|
00000560  30 0d 02 9e 10 e7 a6 2d  31 30 34 8c 64 32 25 3d  |0......-104.d2%=|
00000570  31 0d 02 a8 11 e7 a6 2d  31 30 33 8c 64 32 25 3d  |1......-103.d2%=|
00000580  2d 31 0d 02 b2 05 e1 0d  02 bc 0b dd f2 5f 68 69  |-1..........._hi|
00000590  74 31 0d 02 c6 1c e7 3f  28 70 31 25 2b 64 31 25  |t1.....?(p1%+d1%|
000005a0  29 3d 46 46 25 20 8c 68  69 74 31 25 3d b9 0d 02  |)=FF% .hit1%=...|
000005b0  d0 05 e1 0d 02 da 0b dd  f2 5f 68 69 74 32 0d 02  |........._hit2..|
000005c0  e4 1c e7 3f 28 70 32 25  2b 64 32 25 29 3d 46 46  |...?(p2%+d2%)=FF|
000005d0  25 20 8c 68 69 74 32 25  3d b9 0d 02 ee 05 e1 0d  |% .hit2%=.......|
000005e0  02 f8 0b dd f2 5f 6d 6f  76 31 0d 03 02 20 3f 70  |....._mov1... ?p|
000005f0  31 25 3d 46 46 25 3a 70  31 25 3d 70 31 25 2b 64  |1%=FF%:p1%=p1%+d|
00000600  31 25 3a 3f 70 31 25 3d  58 25 0d 03 0c 05 e1 0d  |1%:?p1%=X%......|
00000610  03 16 0b dd f2 5f 6d 6f  76 32 0d 03 20 20 3f 70  |....._mov2..  ?p|
00000620  32 25 3d 46 46 25 3a 70  32 25 3d 70 32 25 2b 64  |2%=FF%:p2%=p2%+d|
00000630  32 25 3a 3f 70 32 25 3d  4f 25 0d 03 2a 05 e1 0d  |2%:?p2%=O%..*...|
00000640  03 34 0f dd f2 5f 63 6f  6d 70 64 69 72 32 0d 03  |.4..._compdir2..|
00000650  3e 1f e7 3f 28 70 32 25  2b 64 32 25 29 3d 46 46  |>..?(p2%+d2%)=FF|
00000660  25 20 8c 20 f2 5f 63 72  61 73 68 3a e1 0d 03 48  |% . ._crash:...H|
00000670  2c e7 3f 28 70 32 25 2b  64 32 25 2b 64 32 25 29  |,.?(p2%+d2%+d2%)|
00000680  3d 46 46 25 20 80 20 4d  25 3e 34 30 20 8c 20 f2  |=FF% . M%>40 . .|
00000690  5f 63 68 61 6e 67 65 3a  e1 0d 03 52 0c e7 4d 25  |_change:...R..M%|
000006a0  3e 35 30 20 e1 0d 03 5c  1b e7 6c 61 73 74 64 31  |>50 ...\..lastd1|
000006b0  25 3c 3e 64 31 25 f2 5f  63 68 61 6e 67 65 3a e1  |%<>d1%._change:.|
000006c0  0d 03 66 05 e1 0d 03 70  0d dd f2 5f 63 68 61 6e  |..f....p..._chan|
000006d0  67 65 0d 03 7a 0b f2 5f  73 70 61 63 65 0d 03 84  |ge..z.._space...|
000006e0  16 e7 74 65 73 74 70 25  3d 74 65 73 74 6d 25 20  |..testp%=testm% |
000006f0  8c 20 e1 0d 03 8e 25 e7  74 65 73 74 70 25 3e 74  |. ....%.testp%>t|
00000700  65 73 74 6d 25 20 8c 64  32 25 3d 44 58 25 20 8b  |estm% .d2%=DX% .|
00000710  64 32 25 3d 2d 44 58 25  0d 03 98 05 e1 0d 03 a2  |d2%=-DX%........|
00000720  0c dd f2 5f 63 72 61 73  68 0d 03 ac 0b f2 5f 73  |..._crash....._s|
00000730  70 61 63 65 0d 03 b6 19  e7 74 65 73 74 70 25 3d  |pace.....testp%=|
00000740  31 20 8c 64 32 25 3d 2d  44 58 25 3a e1 0d 03 c0  |1 .d2%=-DX%:....|
00000750  18 e7 74 65 73 74 6d 25  3d 31 20 8c 64 32 25 3d  |..testm%=1 .d2%=|
00000760  44 58 25 3a e1 0d 03 ca  29 e7 28 74 65 73 74 70  |DX%:....).(testp|
00000770  25 3d 32 29 80 28 74 65  73 74 6d 25 3d 32 29 20  |%=2).(testm%=2) |
00000780  8c 64 32 25 3d 70 72 65  76 64 32 25 3a e1 0d 03  |.d2%=prevd2%:...|
00000790  d4 1d e7 74 65 73 74 70  25 3d 74 65 73 74 6d 25  |...testp%=testm%|
000007a0  20 8c 64 32 25 3d 44 58  25 3a e1 0d 03 de 27 e7  | .d2%=DX%:....'.|
000007b0  74 65 73 74 70 25 3e 74  65 73 74 6d 25 20 8c 64  |testp%>testm% .d|
000007c0  32 25 3d 44 58 25 20 8b  64 32 25 3d 2d 44 58 25  |2%=DX% .d2%=-DX%|
000007d0  3a e1 0d 03 e8 0c dd f2  5f 73 70 61 63 65 0d 03  |:......._space..|
000007e0  f2 21 3f 26 37 30 3d 70  32 25 20 83 20 32 35 36  |.!?&70=p2% . 256|
000007f0  3a 3f 26 37 31 3d 70 32  25 20 81 20 32 35 36 0d  |:?&71=p2% . 256.|
00000800  03 fc 0f 3f 26 37 32 3d  94 28 64 32 25 29 0d 04  |...?&72=.(d2%)..|
00000810  06 0a d6 20 73 70 6d 25  0d 04 10 24 74 65 73 74  |... spm%...$test|
00000820  70 25 3d 3f 26 37 33 3a  74 65 73 74 6d 25 3d 3f  |p%=?&73:testm%=?|
00000830  26 37 34 3a 44 58 25 3d  3f 26 37 36 0d 04 1a 05  |&74:DX%=?&76....|
00000840  e1 0d 04 24 0f dd f2 5f  6f 6e 65 6f 72 74 77 6f  |...$..._oneortwo|
00000850  0d 04 2e 05 db 0d 04 38  34 e3 64 3d 30 b8 31 3a  |.......84.d=0.1:|
00000860  f1 bd 31 35 37 bd 31 33  31 8a 31 31 2c 30 2b 64  |..157.131.11,0+d|
00000870  29 bd 31 34 31 bd 31 32  39 22 21 20 53 75 72 76  |).141.129"! Surv|
00000880  69 76 61 6c 20 21 22 3a  ed 0d 04 42 08 f1 27 27  |ival !":...B..''|
00000890  27 0d 04 4c 16 f1 89 28  31 30 29 22 53 22 89 28  |'..L...(10)"S".(|
000008a0  31 37 29 22 60 22 27 0d  04 56 3a f1 89 28 34 29  |17)"`"'..V:..(4)|
000008b0  22 43 4c 4f 43 22 bd 31  33 36 22 20 78 22 bd 31  |"CLOC".136" x".1|
000008c0  33 37 22 20 43 54 52 4c  22 89 28 38 29 22 3c 22  |37" CTRL".(8)"<"|
000008d0  bd 31 33 36 22 20 6f 20  22 bd 31 33 37 22 3e 22  |.136" o ".137">"|
000008e0  27 0d 04 60 15 f1 89 28  31 30 29 22 5a 22 89 28  |'..`...(10)"Z".(|
000008f0  31 37 29 22 5d 22 0d 04  6a 27 f1 8a 38 2c 31 37  |17)"]"..j'..8,17|
00000900  29 bd 31 33 30 22 4f 6e  65 20 6f 72 20 54 77 6f  |).130"One or Two|
00000910  20 50 6c 61 79 65 72 73  20 3f 20 22 3b 0d 04 74  | Players ? ";..t|
00000920  13 f5 20 fd 20 a6 2d 34  39 20 84 20 a6 2d 35 30  |.. . .-49 . .-50|
00000930  0d 04 7e 1b e7 a6 2d 34  39 20 63 6f 6d 70 25 3d  |..~...-49 comp%=|
00000940  b9 20 8b 20 63 6f 6d 70  25 3d a3 0d 04 88 1a e7  |. . comp%=......|
00000950  63 6f 6d 70 25 20 f1 22  31 22 27 27 20 8b 20 f1  |comp% ."1"'' . .|
00000960  22 32 22 27 27 0d 04 92  0b f2 5f 73 6b 69 6c 6c  |"2"''....._skill|
00000970  0d 04 9c 05 e1 0d 04 a6  0a dd f2 5f 61 73 73 0d  |..........._ass.|
00000980  04 b0 0e de 20 73 70 6d  25 20 32 30 30 0d 04 ba  |.... spm% 200...|
00000990  0d e3 64 3d 30 b8 32 20  88 32 0d 04 c4 0b 50 25  |..d=0.2 .2....P%|
000009a0  3d 73 70 6d 25 0d 04 ce  09 5b 4f 50 54 64 0d 04  |=spm%....[OPTd..|
000009b0  d8 1f 4c 44 41 26 37 30  3a 53 54 41 26 37 37 3a  |..LDA&70:STA&77:|
000009c0  4c 44 41 26 37 31 3a 53  54 41 26 37 38 0d 04 e2  |LDA&71:STA&78...|
000009d0  17 4c 44 59 23 30 3a 53  54 59 26 37 33 3a 53 54  |.LDY#0:STY&73:ST|
000009e0  59 26 37 34 0d 04 ec 23  4c 44 58 23 34 30 3a 4c  |Y&74...#LDX#40:L|
000009f0  44 41 26 37 32 3a 43 4d  50 23 31 3a 42 45 51 20  |DA&72:CMP#1:BEQ |
00000a00  61 3a 4c 44 58 23 31 0d  04 f6 26 2e 61 20 53 54  |a:LDX#1...&.a ST|
00000a10  58 26 37 36 3a 2e 4c 4f  4f 50 31 20 4c 44 41 26  |X&76:.LOOP1 LDA&|
00000a20  37 36 3a 43 4c 43 3a 41  44 43 26 37 37 0d 05 00  |76:CLC:ADC&77...|
00000a30  21 53 54 41 26 37 37 3a  42 43 43 20 62 3a 49 4e  |!STA&77:BCC b:IN|
00000a40  43 26 37 38 3a 2e 62 20  49 4e 43 26 37 33 0d 05  |C&78:.b INC&73..|
00000a50  0a 20 4c 44 41 28 26 37  37 29 2c 59 3a 43 4d 50  |. LDA(&77),Y:CMP|
00000a60  23 26 46 46 3a 42 4e 45  20 4c 4f 4f 50 31 0d 05  |#&FF:BNE LOOP1..|
00000a70  14 1f 4c 44 41 26 37 30  3a 53 54 41 26 37 37 3a  |..LDA&70:STA&77:|
00000a80  4c 44 41 26 37 31 3a 53  54 41 26 37 38 0d 05 1e  |LDA&71:STA&78...|
00000a90  23 2e 4c 4f 4f 50 32 20  4c 44 41 26 37 37 3a 53  |#.LOOP2 LDA&77:S|
00000aa0  45 43 3a 53 42 43 26 37  36 3a 53 54 41 26 37 37  |EC:SBC&76:STA&77|
00000ab0  0d 05 28 25 42 43 53 20  63 3a 44 45 43 26 37 38  |..(%BCS c:DEC&78|
00000ac0  3a 2e 63 20 49 4e 43 26  37 34 3a 4c 44 41 28 26  |:.c INC&74:LDA(&|
00000ad0  37 37 29 2c 59 0d 05 32  15 43 4d 50 23 26 46 46  |77),Y..2.CMP#&FF|
00000ae0  3a 42 4e 45 20 4c 4f 4f  50 32 0d 05 3c 07 52 54  |:BNE LOOP2..<.RT|
00000af0  53 0d 05 46 05 5d 0d 05  50 05 ed 0d 05 5a 05 e1  |S..F.]..P....Z..|
00000b00  0d 05 64 0c dd f2 5f 73  6b 69 6c 6c 0d 05 6e 24  |..d..._skill..n$|
00000b10  f1 8a 38 29 bd 31 33 30  22 53 6b 69 6c 6c 20 6c  |..8).130"Skill l|
00000b20  65 76 65 6c 20 20 28 31  2d 35 29 20 3f 20 22 3b  |evel  (1-5) ? ";|
00000b30  0d 05 78 18 61 24 3d 22  31 32 33 34 35 21 23 24  |..x.a$="12345!#$|
00000b40  25 22 2b bd 28 33 34 29  0d 05 82 05 f5 0d 05 8c  |%"+.(34)........|
00000b50  0b 2a 46 58 31 35 2c 30  0d 05 96 09 73 6b 24 3d  |.*FX15,0....sk$=|
00000b60  be 0d 05 a0 0e fd 20 a7  61 24 2c 73 6b 24 29 0d  |...... .a$,sk$).|
00000b70  05 aa 15 73 6b 24 3d bd  28 97 28 73 6b 24 29 84  |...sk$=.(.(sk$).|
00000b80  26 31 30 29 0d 05 b4 14  44 4c 25 3d 33 2a 28 35  |&10)....DL%=3*(5|
00000b90  2d bb 28 73 6b 24 29 29  0d 05 be 05 e1 0d 05 c8  |-.(sk$))........|
00000ba0  0e e7 20 9f 3d 31 37 20  8c 20 f9 0d 05 d2 16 eb  |.. .=17 . ......|
00000bb0  20 36 3a f6 3a f1 22 20  61 74 20 6c 69 6e 65 22  | 6:.:." at line"|
00000bc0  9e 0d 05 dc 05 e0 0d ff                           |........|
00000bc8
SURVIVE.m0
SURVIVE.m1
SURVIVE.m2
SURVIVE.m4
SURVIVE.m5