Home » Personal collection » Acorn hard disk » files » DomFord » PM

PM

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 » Acorn hard disk » files » DomFord
Filename: PM
Read OK:
File size: 0716 bytes
Load address: 0000
Exec address: 0000
Duplicates

There are 3 duplicate copies of this file in the archive:

File contents
   10DIMs%(15,15),c%(3)
   20VDU 23,255,255,255,255,255,255,255,255,255
   30MODE 1
   40s=0:x=8:y=8:l=3:d=0:yx=7:yy=9
   50FORR=0TO3
   60READ c%(R)
   70NEXT
   80FORX=0TO14
   90FORY=0TO14
  100READs%(Y,X)
  110NEXT,
  120PRINT"Score               Lives"
  130PROCinit
  140REPEAT
  150dead=FALSE
  160REPEAT
  170PRINTTAB(0,1);s;TAB(20,1);l
  180PROCyou
  190PROCghosts
  200UNTIL dead=TRUE OR d=100
  210l=l-1
  220UNTIL l=0
  230PRINTTAB(15,16);"Game Over";TAB(17,17);"<SPACE>"
  240REPEAT
  250K$=GET$
  260UNTIL K$=" "
  270MODE0:END
  280:
  290DEFPROCinit
  300FORX=0TO14
  310FORY=0TO14
  320PRINTTAB(X+5,Y+5)CHR$(c%(s%(X,Y)))
  330NEXT,
  340ENDPROC
  350:
  360DEFPROCyou
  370K$=INKEY$(0)
  380IF RND(5)=2 THEN SOUND 1,-15,RND(255),5
  390VDU 19,3,RND(7),0;0;0;0;
  400IF K$="Z" AND (s%(yx-1,yy)<>1) THEN PROCleft
  410IF K$="X" AND (s%(yx+1,yy)<>1) THEN PROCright
  420IF K$="'" AND (s%(yx,yy-1)<>1) THEN PROCup
  430IF K$="/" AND (s%(yx,yy+1)<>1) THEN PROCdown
  440ENDPROC
  450:
  460DEFPROCleft
  470PRINTTAB(yx+5,yy+5);CHR$(c%(2))
  480PRINTTAB(yx+4,yy+5);CHR$(c%(3))
  490yx=yx-1
  500IF yx=-1 THEN yx=15
  510IF s%(yx,yy)=0 THEN s%(yx,yy)=2:d=d+1:s=s+1
  520ENDPROC
  530:
  540DEFPROCright
  550PRINTTAB(yx+5,yy+5);CHR$(c%(2))
  560PRINTTAB(yx+6,yy+5);CHR$(c%(3))
  570yx=yx+1
  580IF yx=16 THEN yy=0
  590IF s%(yx,yy)=0 THEN s%(yx,yy)=2:d=d+1:s=s+1
  600ENDPROC
  610:
  620DEFPROCup
  630PRINTTAB(yx+5,yy+5);CHR$(c%(2))
  640PRINTTAB(yx+5,yy+4);CHR$(c%(3))
  650yy=yy-1
  660IF s%(yx,yy)=0 THEN s%(yx,yy)=2:d=d+1:s=s+1
  670ENDPROC
  680:
  690DEFPROCdown
  700PRINTTAB(yx+5,yy+5);CHR$(c%(2))
  710PRINTTAB(yx+5,yy+6);CHR$(c%(3))
  720yy=yy+1
  730IF s%(yx,yy)=0 THEN s%(yx,yy)=2:d=d+1:s=s+1
  740ENDPROC
  750:
  760DEFPROCghosts
  770ENDPROC
  780:
  790DATA 43,255,32,79
  800:
  810DATA 1,1,1,1,1,1,1,1,1,1,1,1,1,1,1
  820DATA 1,0,0,0,0,1,0,0,0,1,0,0,0,0,1
  830DATA 1,0,1,1,0,1,0,1,0,1,0,1,1,0,1
  840DATA 1,0,1,1,0,0,0,0,0,0,0,1,1,0,1
  850DATA 1,0,0,0,0,1,1,2,1,1,0,0,0,0,1
  860DATA 1,1,1,1,0,1,2,2,2,1,0,1,1,1,1
  870DATA 0,0,0,0,0,1,2,2,2,1,0,0,0,0,0
  880DATA 1,1,1,1,0,1,2,2,2,1,0,1,1,1,1
  890DATA 1,0,0,0,0,1,1,1,1,1,0,0,0,0,1
  900DATA 1,0,1,1,0,0,0,3,0,0,0,1,1,0,1
  910DATA 1,0,1,1,0,1,0,1,0,1,0,1,1,0,1
  920DATA 1,0,0,0,0,1,0,0,0,1,0,0,0,0,1
  930DATA 1,1,1,0,1,1,1,1,1,1,1,0,1,1,1
  940DATA 1,0,0,0,0,0,0,0,0,0,0,0,0,0,1
  950DATA 1,1,1,1,1,1,1,1,1,1,1,1,1,1,1
  960:

�s%(15,15),c%(3)
,� 23,255,255,255,255,255,255,255,255,255
� 1
(!s=0:x=8:y=8:l=3:d=0:yx=7:yy=9
2
�R=0�3
<� c%(R)
F�
P�X=0�14
Z�Y=0�14
d�s%(Y,X)
n�,
x �"Score               Lives"
�	�init
��
�
dead=�
��
��0,1);s;�20,1);l
��you
��ghosts
�� dead=� � d=100
�	l=l-1
�	� l=0
�*�15,16);"Game Over";�17,17);"<SPACE>"
��
�K$=�
� K$=" "
�0:�
:
"
��init
,�X=0�14
6�Y=0�14
@�X+5,Y+5)�(c%(s%(X,Y)))
J�,
T�
^:
h	��you
rK$=�(0)
|� �(5)=2 � � 1,-15,�(255),5
�� 19,3,�(7),0;0;0;0;
�'� K$="Z" � (s%(yx-1,yy)<>1) � �left
�(� K$="X" � (s%(yx+1,yy)<>1) � �right
�%� K$="'" � (s%(yx,yy-1)<>1) � �up
�'� K$="/" � (s%(yx,yy+1)<>1) � �down
��
�:
�
��left
��yx+5,yy+5);�(c%(2))
��yx+4,yy+5);�(c%(3))
�yx=yx-1
�� yx=-1 � yx=15
�+� s%(yx,yy)=0 � s%(yx,yy)=2:d=d+1:s=s+1
�
:
��right
&�yx+5,yy+5);�(c%(2))
0�yx+6,yy+5);�(c%(3))
:yx=yx+1
D� yx=16 � yy=0
N+� s%(yx,yy)=0 � s%(yx,yy)=2:d=d+1:s=s+1
X�
b:
l��up
v�yx+5,yy+5);�(c%(2))
��yx+5,yy+4);�(c%(3))
�yy=yy-1
�+� s%(yx,yy)=0 � s%(yx,yy)=2:d=d+1:s=s+1
��
�:
�
��down
��yx+5,yy+5);�(c%(2))
��yx+5,yy+6);�(c%(3))
�yy=yy+1
�+� s%(yx,yy)=0 � s%(yx,yy)=2:d=d+1:s=s+1
��
�:
���ghosts
�
:
� 43,255,32,79
 :
*#� 1,1,1,1,1,1,1,1,1,1,1,1,1,1,1
4#� 1,0,0,0,0,1,0,0,0,1,0,0,0,0,1
>#� 1,0,1,1,0,1,0,1,0,1,0,1,1,0,1
H#� 1,0,1,1,0,0,0,0,0,0,0,1,1,0,1
R#� 1,0,0,0,0,1,1,2,1,1,0,0,0,0,1
\#� 1,1,1,1,0,1,2,2,2,1,0,1,1,1,1
f#� 0,0,0,0,0,1,2,2,2,1,0,0,0,0,0
p#� 1,1,1,1,0,1,2,2,2,1,0,1,1,1,1
z#� 1,0,0,0,0,1,1,1,1,1,0,0,0,0,1
�#� 1,0,1,1,0,0,0,3,0,0,0,1,1,0,1
�#� 1,0,1,1,0,1,0,1,0,1,0,1,1,0,1
�#� 1,0,0,0,0,1,0,0,0,1,0,0,0,0,1
�#� 1,1,1,0,1,1,1,1,1,1,1,0,1,1,1
�#� 1,0,0,0,0,0,0,0,0,0,0,0,0,0,1
�#� 1,1,1,1,1,1,1,1,1,1,1,1,1,1,1
�:
�
00000000  0d 00 0a 14 de 73 25 28  31 35 2c 31 35 29 2c 63  |.....s%(15,15),c|
00000010  25 28 33 29 0d 00 14 2c  ef 20 32 33 2c 32 35 35  |%(3)...,. 23,255|
00000020  2c 32 35 35 2c 32 35 35  2c 32 35 35 2c 32 35 35  |,255,255,255,255|
*
00000040  0d 00 1e 07 eb 20 31 0d  00 28 21 73 3d 30 3a 78  |..... 1..(!s=0:x|
00000050  3d 38 3a 79 3d 38 3a 6c  3d 33 3a 64 3d 30 3a 79  |=8:y=8:l=3:d=0:y|
00000060  78 3d 37 3a 79 79 3d 39  0d 00 32 0a e3 52 3d 30  |x=7:yy=9..2..R=0|
00000070  b8 33 0d 00 3c 0b f3 20  63 25 28 52 29 0d 00 46  |.3..<.. c%(R)..F|
00000080  05 ed 0d 00 50 0b e3 58  3d 30 b8 31 34 0d 00 5a  |....P..X=0.14..Z|
00000090  0b e3 59 3d 30 b8 31 34  0d 00 64 0c f3 73 25 28  |..Y=0.14..d..s%(|
000000a0  59 2c 58 29 0d 00 6e 06  ed 2c 0d 00 78 20 f1 22  |Y,X)..n..,..x ."|
000000b0  53 63 6f 72 65 20 20 20  20 20 20 20 20 20 20 20  |Score           |
000000c0  20 20 20 20 4c 69 76 65  73 22 0d 00 82 09 f2 69  |    Lives".....i|
000000d0  6e 69 74 0d 00 8c 05 f5  0d 00 96 0a 64 65 61 64  |nit.........dead|
000000e0  3d a3 0d 00 a0 05 f5 0d  00 aa 15 f1 8a 30 2c 31  |=............0,1|
000000f0  29 3b 73 3b 8a 32 30 2c  31 29 3b 6c 0d 00 b4 08  |);s;.20,1);l....|
00000100  f2 79 6f 75 0d 00 be 0b  f2 67 68 6f 73 74 73 0d  |.you.....ghosts.|
00000110  00 c8 14 fd 20 64 65 61  64 3d b9 20 84 20 64 3d  |.... dead=. . d=|
00000120  31 30 30 0d 00 d2 09 6c  3d 6c 2d 31 0d 00 dc 09  |100....l=l-1....|
00000130  fd 20 6c 3d 30 0d 00 e6  2a f1 8a 31 35 2c 31 36  |. l=0...*..15,16|
00000140  29 3b 22 47 61 6d 65 20  4f 76 65 72 22 3b 8a 31  |);"Game Over";.1|
00000150  37 2c 31 37 29 3b 22 3c  53 50 41 43 45 3e 22 0d  |7,17);"<SPACE>".|
00000160  00 f0 05 f5 0d 00 fa 08  4b 24 3d be 0d 01 04 0c  |........K$=.....|
00000170  fd 20 4b 24 3d 22 20 22  0d 01 0e 08 eb 30 3a e0  |. K$=" ".....0:.|
00000180  0d 01 18 05 3a 0d 01 22  0a dd f2 69 6e 69 74 0d  |....:.."...init.|
00000190  01 2c 0b e3 58 3d 30 b8  31 34 0d 01 36 0b e3 59  |.,..X=0.14..6..Y|
000001a0  3d 30 b8 31 34 0d 01 40  1c f1 8a 58 2b 35 2c 59  |=0.14..@...X+5,Y|
000001b0  2b 35 29 bd 28 63 25 28  73 25 28 58 2c 59 29 29  |+5).(c%(s%(X,Y))|
000001c0  29 0d 01 4a 06 ed 2c 0d  01 54 05 e1 0d 01 5e 05  |)..J..,..T....^.|
000001d0  3a 0d 01 68 09 dd f2 79  6f 75 0d 01 72 0b 4b 24  |:..h...you..r.K$|
000001e0  3d bf 28 30 29 0d 01 7c  1f e7 20 b3 28 35 29 3d  |=.(0)..|.. .(5)=|
000001f0  32 20 8c 20 d4 20 31 2c  2d 31 35 2c b3 28 32 35  |2 . . 1,-15,.(25|
00000200  35 29 2c 35 0d 01 86 18  ef 20 31 39 2c 33 2c b3  |5),5..... 19,3,.|
00000210  28 37 29 2c 30 3b 30 3b  30 3b 30 3b 0d 01 90 27  |(7),0;0;0;0;...'|
00000220  e7 20 4b 24 3d 22 5a 22  20 80 20 28 73 25 28 79  |. K$="Z" . (s%(y|
00000230  78 2d 31 2c 79 79 29 3c  3e 31 29 20 8c 20 f2 6c  |x-1,yy)<>1) . .l|
00000240  65 66 74 0d 01 9a 28 e7  20 4b 24 3d 22 58 22 20  |eft...(. K$="X" |
00000250  80 20 28 73 25 28 79 78  2b 31 2c 79 79 29 3c 3e  |. (s%(yx+1,yy)<>|
00000260  31 29 20 8c 20 f2 72 69  67 68 74 0d 01 a4 25 e7  |1) . .right...%.|
00000270  20 4b 24 3d 22 27 22 20  80 20 28 73 25 28 79 78  | K$="'" . (s%(yx|
00000280  2c 79 79 2d 31 29 3c 3e  31 29 20 8c 20 f2 75 70  |,yy-1)<>1) . .up|
00000290  0d 01 ae 27 e7 20 4b 24  3d 22 2f 22 20 80 20 28  |...'. K$="/" . (|
000002a0  73 25 28 79 78 2c 79 79  2b 31 29 3c 3e 31 29 20  |s%(yx,yy+1)<>1) |
000002b0  8c 20 f2 64 6f 77 6e 0d  01 b8 05 e1 0d 01 c2 05  |. .down.........|
000002c0  3a 0d 01 cc 0a dd f2 6c  65 66 74 0d 01 d6 19 f1  |:......left.....|
000002d0  8a 79 78 2b 35 2c 79 79  2b 35 29 3b bd 28 63 25  |.yx+5,yy+5);.(c%|
000002e0  28 32 29 29 0d 01 e0 19  f1 8a 79 78 2b 34 2c 79  |(2))......yx+4,y|
000002f0  79 2b 35 29 3b bd 28 63  25 28 33 29 29 0d 01 ea  |y+5);.(c%(3))...|
00000300  0b 79 78 3d 79 78 2d 31  0d 01 f4 13 e7 20 79 78  |.yx=yx-1..... yx|
00000310  3d 2d 31 20 8c 20 79 78  3d 31 35 0d 01 fe 2b e7  |=-1 . yx=15...+.|
00000320  20 73 25 28 79 78 2c 79  79 29 3d 30 20 8c 20 73  | s%(yx,yy)=0 . s|
00000330  25 28 79 78 2c 79 79 29  3d 32 3a 64 3d 64 2b 31  |%(yx,yy)=2:d=d+1|
00000340  3a 73 3d 73 2b 31 0d 02  08 05 e1 0d 02 12 05 3a  |:s=s+1.........:|
00000350  0d 02 1c 0b dd f2 72 69  67 68 74 0d 02 26 19 f1  |......right..&..|
00000360  8a 79 78 2b 35 2c 79 79  2b 35 29 3b bd 28 63 25  |.yx+5,yy+5);.(c%|
00000370  28 32 29 29 0d 02 30 19  f1 8a 79 78 2b 36 2c 79  |(2))..0...yx+6,y|
00000380  79 2b 35 29 3b bd 28 63  25 28 33 29 29 0d 02 3a  |y+5);.(c%(3))..:|
00000390  0b 79 78 3d 79 78 2b 31  0d 02 44 12 e7 20 79 78  |.yx=yx+1..D.. yx|
000003a0  3d 31 36 20 8c 20 79 79  3d 30 0d 02 4e 2b e7 20  |=16 . yy=0..N+. |
000003b0  73 25 28 79 78 2c 79 79  29 3d 30 20 8c 20 73 25  |s%(yx,yy)=0 . s%|
000003c0  28 79 78 2c 79 79 29 3d  32 3a 64 3d 64 2b 31 3a  |(yx,yy)=2:d=d+1:|
000003d0  73 3d 73 2b 31 0d 02 58  05 e1 0d 02 62 05 3a 0d  |s=s+1..X....b.:.|
000003e0  02 6c 08 dd f2 75 70 0d  02 76 19 f1 8a 79 78 2b  |.l...up..v...yx+|
000003f0  35 2c 79 79 2b 35 29 3b  bd 28 63 25 28 32 29 29  |5,yy+5);.(c%(2))|
00000400  0d 02 80 19 f1 8a 79 78  2b 35 2c 79 79 2b 34 29  |......yx+5,yy+4)|
00000410  3b bd 28 63 25 28 33 29  29 0d 02 8a 0b 79 79 3d  |;.(c%(3))....yy=|
00000420  79 79 2d 31 0d 02 94 2b  e7 20 73 25 28 79 78 2c  |yy-1...+. s%(yx,|
00000430  79 79 29 3d 30 20 8c 20  73 25 28 79 78 2c 79 79  |yy)=0 . s%(yx,yy|
00000440  29 3d 32 3a 64 3d 64 2b  31 3a 73 3d 73 2b 31 0d  |)=2:d=d+1:s=s+1.|
00000450  02 9e 05 e1 0d 02 a8 05  3a 0d 02 b2 0a dd f2 64  |........:......d|
00000460  6f 77 6e 0d 02 bc 19 f1  8a 79 78 2b 35 2c 79 79  |own......yx+5,yy|
00000470  2b 35 29 3b bd 28 63 25  28 32 29 29 0d 02 c6 19  |+5);.(c%(2))....|
00000480  f1 8a 79 78 2b 35 2c 79  79 2b 36 29 3b bd 28 63  |..yx+5,yy+6);.(c|
00000490  25 28 33 29 29 0d 02 d0  0b 79 79 3d 79 79 2b 31  |%(3))....yy=yy+1|
000004a0  0d 02 da 2b e7 20 73 25  28 79 78 2c 79 79 29 3d  |...+. s%(yx,yy)=|
000004b0  30 20 8c 20 73 25 28 79  78 2c 79 79 29 3d 32 3a  |0 . s%(yx,yy)=2:|
000004c0  64 3d 64 2b 31 3a 73 3d  73 2b 31 0d 02 e4 05 e1  |d=d+1:s=s+1.....|
000004d0  0d 02 ee 05 3a 0d 02 f8  0c dd f2 67 68 6f 73 74  |....:......ghost|
000004e0  73 0d 03 02 05 e1 0d 03  0c 05 3a 0d 03 16 12 dc  |s.........:.....|
000004f0  20 34 33 2c 32 35 35 2c  33 32 2c 37 39 0d 03 20  | 43,255,32,79.. |
00000500  05 3a 0d 03 2a 23 dc 20  31 2c 31 2c 31 2c 31 2c  |.:..*#. 1,1,1,1,|
00000510  31 2c 31 2c 31 2c 31 2c  31 2c 31 2c 31 2c 31 2c  |1,1,1,1,1,1,1,1,|
00000520  31 2c 31 2c 31 0d 03 34  23 dc 20 31 2c 30 2c 30  |1,1,1..4#. 1,0,0|
00000530  2c 30 2c 30 2c 31 2c 30  2c 30 2c 30 2c 31 2c 30  |,0,0,1,0,0,0,1,0|
00000540  2c 30 2c 30 2c 30 2c 31  0d 03 3e 23 dc 20 31 2c  |,0,0,0,1..>#. 1,|
00000550  30 2c 31 2c 31 2c 30 2c  31 2c 30 2c 31 2c 30 2c  |0,1,1,0,1,0,1,0,|
00000560  31 2c 30 2c 31 2c 31 2c  30 2c 31 0d 03 48 23 dc  |1,0,1,1,0,1..H#.|
00000570  20 31 2c 30 2c 31 2c 31  2c 30 2c 30 2c 30 2c 30  | 1,0,1,1,0,0,0,0|
00000580  2c 30 2c 30 2c 30 2c 31  2c 31 2c 30 2c 31 0d 03  |,0,0,0,1,1,0,1..|
00000590  52 23 dc 20 31 2c 30 2c  30 2c 30 2c 30 2c 31 2c  |R#. 1,0,0,0,0,1,|
000005a0  31 2c 32 2c 31 2c 31 2c  30 2c 30 2c 30 2c 30 2c  |1,2,1,1,0,0,0,0,|
000005b0  31 0d 03 5c 23 dc 20 31  2c 31 2c 31 2c 31 2c 30  |1..\#. 1,1,1,1,0|
000005c0  2c 31 2c 32 2c 32 2c 32  2c 31 2c 30 2c 31 2c 31  |,1,2,2,2,1,0,1,1|
000005d0  2c 31 2c 31 0d 03 66 23  dc 20 30 2c 30 2c 30 2c  |,1,1..f#. 0,0,0,|
000005e0  30 2c 30 2c 31 2c 32 2c  32 2c 32 2c 31 2c 30 2c  |0,0,1,2,2,2,1,0,|
000005f0  30 2c 30 2c 30 2c 30 0d  03 70 23 dc 20 31 2c 31  |0,0,0,0..p#. 1,1|
00000600  2c 31 2c 31 2c 30 2c 31  2c 32 2c 32 2c 32 2c 31  |,1,1,0,1,2,2,2,1|
00000610  2c 30 2c 31 2c 31 2c 31  2c 31 0d 03 7a 23 dc 20  |,0,1,1,1,1..z#. |
00000620  31 2c 30 2c 30 2c 30 2c  30 2c 31 2c 31 2c 31 2c  |1,0,0,0,0,1,1,1,|
00000630  31 2c 31 2c 30 2c 30 2c  30 2c 30 2c 31 0d 03 84  |1,1,0,0,0,0,1...|
00000640  23 dc 20 31 2c 30 2c 31  2c 31 2c 30 2c 30 2c 30  |#. 1,0,1,1,0,0,0|
00000650  2c 33 2c 30 2c 30 2c 30  2c 31 2c 31 2c 30 2c 31  |,3,0,0,0,1,1,0,1|
00000660  0d 03 8e 23 dc 20 31 2c  30 2c 31 2c 31 2c 30 2c  |...#. 1,0,1,1,0,|
00000670  31 2c 30 2c 31 2c 30 2c  31 2c 30 2c 31 2c 31 2c  |1,0,1,0,1,0,1,1,|
00000680  30 2c 31 0d 03 98 23 dc  20 31 2c 30 2c 30 2c 30  |0,1...#. 1,0,0,0|
00000690  2c 30 2c 31 2c 30 2c 30  2c 30 2c 31 2c 30 2c 30  |,0,1,0,0,0,1,0,0|
000006a0  2c 30 2c 30 2c 31 0d 03  a2 23 dc 20 31 2c 31 2c  |,0,0,1...#. 1,1,|
000006b0  31 2c 30 2c 31 2c 31 2c  31 2c 31 2c 31 2c 31 2c  |1,0,1,1,1,1,1,1,|
000006c0  31 2c 30 2c 31 2c 31 2c  31 0d 03 ac 23 dc 20 31  |1,0,1,1,1...#. 1|
000006d0  2c 30 2c 30 2c 30 2c 30  2c 30 2c 30 2c 30 2c 30  |,0,0,0,0,0,0,0,0|
000006e0  2c 30 2c 30 2c 30 2c 30  2c 30 2c 31 0d 03 b6 23  |,0,0,0,0,0,1...#|
000006f0  dc 20 31 2c 31 2c 31 2c  31 2c 31 2c 31 2c 31 2c  |. 1,1,1,1,1,1,1,|
00000700  31 2c 31 2c 31 2c 31 2c  31 2c 31 2c 31 2c 31 0d  |1,1,1,1,1,1,1,1.|
00000710  03 c0 05 3a 0d ff                                 |...:..|
00000716