Home » Recent acquisitions » Acorn ADFS disks » adfs_ArchimedesWorld_199403_2.adf » Disk2Mar94 » !AWMar94/Goodies/yass/!Yass2/Savers/Pacman
!AWMar94/Goodies/yass/!Yass2/Savers/Pacman
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_199403_2.adf » Disk2Mar94 |
Filename: | !AWMar94/Goodies/yass/!Yass2/Savers/Pacman |
Read OK: | ✔ |
File size: | 060A bytes |
Load address: | 0000 |
Exec address: | 0000 |
File contents
10REM 20REM Yass 2 Screen Saver Module : Pacman 30REM 40REM LEN copyright Ian Palmer, 1993 50REM 60 70 80DEFFNpacman_start 90LOCAL F$,L%,A%,B%,P%,X%,Y%,Z%:pacman_n%=1:pacman_h%=48 100F$="<Yass2$Dir>.Resources.Pacman":SYS "OS_File",5,F$ TO A%,,,,L% 110IF A%<>1 THEN =TRUE 111pacman_area%=0:pacman_s%=0:pacman_done%=0:pacman_tab%=0 120pacman_area%=FNmalloc(L%+4):pacman_s%=FNmalloc(16):P%=pacman_area% 121IF pacman_s%=0 THEN A%=FNpacman_stop:=TRUE 130!pacman_area%=L%+4:SYS "OS_SpriteOp",265,P% 140SYS "OS_SpriteOp",266,P%,F$ 150SYS &35,-1,4 TO ,,X%:SYS &35,-1,5 TO ,,Y% 160!pacman_s%=1:pacman_s%!4=X%:pacman_s%!8=1:pacman_s%!12=Y% 170SYS "ColourTrans_SelectTable",P%,"1",-1,-1,0,2 TO ,,,,B%:L%=FNmalloc(B%):SYS "ColourTrans_SelectTable",P%,"1",-1,-1,L%,2 180pacman_tab%=L% 190IF L%=0 THEN A%=FNpacman_stop:=TRUE 200pacman_x%=-32:pacman_pic%=1:B%=max_y% DIV pacman_h%:pacman_done%=FNmalloc(B%) 201IF pacman_done%=0 THEN A%=FNpacman_stop:=TRUE 202FOR A%=0 TO B%-1:pacman_done%?A%=0:NEXT:A%=RND(B%)-1:pacman_done%?A%=1 203pacman_y%=pacman_h%*A%:pacman_togo%=B% 220=1 230 240DEFFNpacman_poll 250LOCAL F$,A%,B%,P%,x%,y%,X%,Y%:P%=pacman_area% 260pacman_x%+=2:F$=STR$(pacman_pic%):pacman_pic%=3-pacman_pic% 270SYS "OS_SpriteOp",308,P%,F$,pacman_x%,pacman_y%,8,pacman_s%,pacman_tab% 280IF pacman_x%>(max_x%+32) THEN 281 pacman_togo%-=1 290 REPEAT:A%=RND(max_y% DIV pacman_h%)-1:UNTIL pacman_done%?A%=0 OR pacman_togo%=0 291 pacman_x%=-32:pacman_y%=pacman_h%*A%:pacman_done%?A%=1 292 IF pacman_togo%=0 THEN =TRUE 300ENDIF 320=0 330 340DEFFNpacman_stop 350LOCAL A% 360PROCfree(pacman_area%):PROCfree(pacman_s%):PROCfree(pacman_tab%) 361PROCfree(pacman_done%) 370ENDIF 380=0 390
� *� Yass 2 Screen Saver Module : Pacman � (#� � copyright Ian Palmer, 1993 2� < F Pݤpacman_start Z6� F$,L%,A%,B%,P%,X%,Y%,Z%:pacman_n%=1:pacman_h%=48 dBF$="<Yass2$Dir>.Resources.Pacman":ș "OS_File",5,F$ � A%,,,,L% n� A%<>1 � =� o;pacman_area%=0:pacman_s%=0:pacman_done%=0:pacman_tab%=0 xDpacman_area%=�malloc(L%+4):pacman_s%=�malloc(16):P%=pacman_area% y&� pacman_s%=0 � A%=�pacman_stop:=� �.!pacman_area%=L%+4:ș "OS_SpriteOp",265,P% �ș "OS_SpriteOp",266,P%,F$ �)ș &35,-1,4 � ,,X%:ș &35,-1,5 � ,,Y% �=!pacman_s%=1:pacman_s%!4=X%:pacman_s%!8=1:pacman_s%!12=Y% �xș "ColourTrans_SelectTable",P%,"1",-1,-1,0,2 � ,,,,B%:L%=�malloc(B%):ș "ColourTrans_SelectTable",P%,"1",-1,-1,L%,2 �pacman_tab%=L% �� L%=0 � A%=�pacman_stop:=� �Npacman_x%=-32:pacman_pic%=1:B%=max_y% � pacman_h%:pacman_done%=�malloc(B%) �)� pacman_done%=0 � A%=�pacman_stop:=� �B� A%=0 � B%-1:pacman_done%?A%=0:�:A%=�(B%)-1:pacman_done%?A%=1 �*pacman_y%=pacman_h%*A%:pacman_togo%=B% �=1 � �ݤpacman_poll �-� F$,A%,B%,P%,x%,y%,X%,Y%:P%=pacman_area% <pacman_x%+=2:F$=�(pacman_pic%):pacman_pic%=3-pacman_pic% Jș "OS_SpriteOp",308,P%,F$,pacman_x%,pacman_y%,8,pacman_s%,pacman_tab% � pacman_x%>(max_x%+32) � pacman_togo%-=1 "G �:A%=�(max_y% � pacman_h%)-1:� pacman_done%?A%=0 � pacman_togo%=0 #< pacman_x%=-32:pacman_y%=pacman_h%*A%:pacman_done%?A%=1 $ � pacman_togo%=0 � =� ,� @=0 J Tݤpacman_stop ^� A% h;�free(pacman_area%):�free(pacman_s%):�free(pacman_tab%) i�free(pacman_done%) r� |=0 � �
00000000 0d 00 0a 05 f4 0d 00 14 2a f4 20 20 59 61 73 73 |........*. Yass| 00000010 20 32 20 53 63 72 65 65 6e 20 53 61 76 65 72 20 | 2 Screen Saver | 00000020 4d 6f 64 75 6c 65 20 3a 20 50 61 63 6d 61 6e 0d |Module : Pacman.| 00000030 00 1e 05 f4 0d 00 28 23 f4 20 20 a9 20 63 6f 70 |......(#. . cop| 00000040 79 72 69 67 68 74 20 49 61 6e 20 50 61 6c 6d 65 |yright Ian Palme| 00000050 72 2c 20 31 39 39 33 0d 00 32 05 f4 0d 00 3c 04 |r, 1993..2....<.| 00000060 0d 00 46 04 0d 00 50 12 dd a4 70 61 63 6d 61 6e |..F...P...pacman| 00000070 5f 73 74 61 72 74 0d 00 5a 36 ea 20 46 24 2c 4c |_start..Z6. F$,L| 00000080 25 2c 41 25 2c 42 25 2c 50 25 2c 58 25 2c 59 25 |%,A%,B%,P%,X%,Y%| 00000090 2c 5a 25 3a 70 61 63 6d 61 6e 5f 6e 25 3d 31 3a |,Z%:pacman_n%=1:| 000000a0 70 61 63 6d 61 6e 5f 68 25 3d 34 38 0d 00 64 42 |pacman_h%=48..dB| 000000b0 46 24 3d 22 3c 59 61 73 73 32 24 44 69 72 3e 2e |F$="<Yass2$Dir>.| 000000c0 52 65 73 6f 75 72 63 65 73 2e 50 61 63 6d 61 6e |Resources.Pacman| 000000d0 22 3a c8 99 20 22 4f 53 5f 46 69 6c 65 22 2c 35 |":.. "OS_File",5| 000000e0 2c 46 24 20 b8 20 41 25 2c 2c 2c 2c 4c 25 0d 00 |,F$ . A%,,,,L%..| 000000f0 6e 10 e7 20 41 25 3c 3e 31 20 8c 20 3d b9 0d 00 |n.. A%<>1 . =...| 00000100 6f 3b 70 61 63 6d 61 6e 5f 61 72 65 61 25 3d 30 |o;pacman_area%=0| 00000110 3a 70 61 63 6d 61 6e 5f 73 25 3d 30 3a 70 61 63 |:pacman_s%=0:pac| 00000120 6d 61 6e 5f 64 6f 6e 65 25 3d 30 3a 70 61 63 6d |man_done%=0:pacm| 00000130 61 6e 5f 74 61 62 25 3d 30 0d 00 78 44 70 61 63 |an_tab%=0..xDpac| 00000140 6d 61 6e 5f 61 72 65 61 25 3d a4 6d 61 6c 6c 6f |man_area%=.mallo| 00000150 63 28 4c 25 2b 34 29 3a 70 61 63 6d 61 6e 5f 73 |c(L%+4):pacman_s| 00000160 25 3d a4 6d 61 6c 6c 6f 63 28 31 36 29 3a 50 25 |%=.malloc(16):P%| 00000170 3d 70 61 63 6d 61 6e 5f 61 72 65 61 25 0d 00 79 |=pacman_area%..y| 00000180 26 e7 20 70 61 63 6d 61 6e 5f 73 25 3d 30 20 8c |&. pacman_s%=0 .| 00000190 20 41 25 3d a4 70 61 63 6d 61 6e 5f 73 74 6f 70 | A%=.pacman_stop| 000001a0 3a 3d b9 0d 00 82 2e 21 70 61 63 6d 61 6e 5f 61 |:=.....!pacman_a| 000001b0 72 65 61 25 3d 4c 25 2b 34 3a c8 99 20 22 4f 53 |rea%=L%+4:.. "OS| 000001c0 5f 53 70 72 69 74 65 4f 70 22 2c 32 36 35 2c 50 |_SpriteOp",265,P| 000001d0 25 0d 00 8c 1e c8 99 20 22 4f 53 5f 53 70 72 69 |%...... "OS_Spri| 000001e0 74 65 4f 70 22 2c 32 36 36 2c 50 25 2c 46 24 0d |teOp",266,P%,F$.| 000001f0 00 96 29 c8 99 20 26 33 35 2c 2d 31 2c 34 20 b8 |..).. &35,-1,4 .| 00000200 20 2c 2c 58 25 3a c8 99 20 26 33 35 2c 2d 31 2c | ,,X%:.. &35,-1,| 00000210 35 20 b8 20 2c 2c 59 25 0d 00 a0 3d 21 70 61 63 |5 . ,,Y%...=!pac| 00000220 6d 61 6e 5f 73 25 3d 31 3a 70 61 63 6d 61 6e 5f |man_s%=1:pacman_| 00000230 73 25 21 34 3d 58 25 3a 70 61 63 6d 61 6e 5f 73 |s%!4=X%:pacman_s| 00000240 25 21 38 3d 31 3a 70 61 63 6d 61 6e 5f 73 25 21 |%!8=1:pacman_s%!| 00000250 31 32 3d 59 25 0d 00 aa 78 c8 99 20 22 43 6f 6c |12=Y%...x.. "Col| 00000260 6f 75 72 54 72 61 6e 73 5f 53 65 6c 65 63 74 54 |ourTrans_SelectT| 00000270 61 62 6c 65 22 2c 50 25 2c 22 31 22 2c 2d 31 2c |able",P%,"1",-1,| 00000280 2d 31 2c 30 2c 32 20 b8 20 2c 2c 2c 2c 42 25 3a |-1,0,2 . ,,,,B%:| 00000290 4c 25 3d a4 6d 61 6c 6c 6f 63 28 42 25 29 3a c8 |L%=.malloc(B%):.| 000002a0 99 20 22 43 6f 6c 6f 75 72 54 72 61 6e 73 5f 53 |. "ColourTrans_S| 000002b0 65 6c 65 63 74 54 61 62 6c 65 22 2c 50 25 2c 22 |electTable",P%,"| 000002c0 31 22 2c 2d 31 2c 2d 31 2c 4c 25 2c 32 0d 00 b4 |1",-1,-1,L%,2...| 000002d0 12 70 61 63 6d 61 6e 5f 74 61 62 25 3d 4c 25 0d |.pacman_tab%=L%.| 000002e0 00 be 1f e7 20 4c 25 3d 30 20 8c 20 41 25 3d a4 |.... L%=0 . A%=.| 000002f0 70 61 63 6d 61 6e 5f 73 74 6f 70 3a 3d b9 0d 00 |pacman_stop:=...| 00000300 c8 4e 70 61 63 6d 61 6e 5f 78 25 3d 2d 33 32 3a |.Npacman_x%=-32:| 00000310 70 61 63 6d 61 6e 5f 70 69 63 25 3d 31 3a 42 25 |pacman_pic%=1:B%| 00000320 3d 6d 61 78 5f 79 25 20 81 20 70 61 63 6d 61 6e |=max_y% . pacman| 00000330 5f 68 25 3a 70 61 63 6d 61 6e 5f 64 6f 6e 65 25 |_h%:pacman_done%| 00000340 3d a4 6d 61 6c 6c 6f 63 28 42 25 29 0d 00 c9 29 |=.malloc(B%)...)| 00000350 e7 20 70 61 63 6d 61 6e 5f 64 6f 6e 65 25 3d 30 |. pacman_done%=0| 00000360 20 8c 20 41 25 3d a4 70 61 63 6d 61 6e 5f 73 74 | . A%=.pacman_st| 00000370 6f 70 3a 3d b9 0d 00 ca 42 e3 20 41 25 3d 30 20 |op:=....B. A%=0 | 00000380 b8 20 42 25 2d 31 3a 70 61 63 6d 61 6e 5f 64 6f |. B%-1:pacman_do| 00000390 6e 65 25 3f 41 25 3d 30 3a ed 3a 41 25 3d b3 28 |ne%?A%=0:.:A%=.(| 000003a0 42 25 29 2d 31 3a 70 61 63 6d 61 6e 5f 64 6f 6e |B%)-1:pacman_don| 000003b0 65 25 3f 41 25 3d 31 0d 00 cb 2a 70 61 63 6d 61 |e%?A%=1...*pacma| 000003c0 6e 5f 79 25 3d 70 61 63 6d 61 6e 5f 68 25 2a 41 |n_y%=pacman_h%*A| 000003d0 25 3a 70 61 63 6d 61 6e 5f 74 6f 67 6f 25 3d 42 |%:pacman_togo%=B| 000003e0 25 0d 00 dc 06 3d 31 0d 00 e6 04 0d 00 f0 11 dd |%....=1.........| 000003f0 a4 70 61 63 6d 61 6e 5f 70 6f 6c 6c 0d 00 fa 2d |.pacman_poll...-| 00000400 ea 20 46 24 2c 41 25 2c 42 25 2c 50 25 2c 78 25 |. F$,A%,B%,P%,x%| 00000410 2c 79 25 2c 58 25 2c 59 25 3a 50 25 3d 70 61 63 |,y%,X%,Y%:P%=pac| 00000420 6d 61 6e 5f 61 72 65 61 25 0d 01 04 3c 70 61 63 |man_area%...<pac| 00000430 6d 61 6e 5f 78 25 2b 3d 32 3a 46 24 3d c3 28 70 |man_x%+=2:F$=.(p| 00000440 61 63 6d 61 6e 5f 70 69 63 25 29 3a 70 61 63 6d |acman_pic%):pacm| 00000450 61 6e 5f 70 69 63 25 3d 33 2d 70 61 63 6d 61 6e |an_pic%=3-pacman| 00000460 5f 70 69 63 25 0d 01 0e 4a c8 99 20 22 4f 53 5f |_pic%...J.. "OS_| 00000470 53 70 72 69 74 65 4f 70 22 2c 33 30 38 2c 50 25 |SpriteOp",308,P%| 00000480 2c 46 24 2c 70 61 63 6d 61 6e 5f 78 25 2c 70 61 |,F$,pacman_x%,pa| 00000490 63 6d 61 6e 5f 79 25 2c 38 2c 70 61 63 6d 61 6e |cman_y%,8,pacman| 000004a0 5f 73 25 2c 70 61 63 6d 61 6e 5f 74 61 62 25 0d |_s%,pacman_tab%.| 000004b0 01 18 1d e7 20 70 61 63 6d 61 6e 5f 78 25 3e 28 |.... pacman_x%>(| 000004c0 6d 61 78 5f 78 25 2b 33 32 29 20 8c 0d 01 19 15 |max_x%+32) .....| 000004d0 20 20 70 61 63 6d 61 6e 5f 74 6f 67 6f 25 2d 3d | pacman_togo%-=| 000004e0 31 0d 01 22 47 20 20 f5 3a 41 25 3d b3 28 6d 61 |1.."G .:A%=.(ma| 000004f0 78 5f 79 25 20 81 20 70 61 63 6d 61 6e 5f 68 25 |x_y% . pacman_h%| 00000500 29 2d 31 3a fd 20 70 61 63 6d 61 6e 5f 64 6f 6e |)-1:. pacman_don| 00000510 65 25 3f 41 25 3d 30 20 84 20 70 61 63 6d 61 6e |e%?A%=0 . pacman| 00000520 5f 74 6f 67 6f 25 3d 30 0d 01 23 3c 20 20 70 61 |_togo%=0..#< pa| 00000530 63 6d 61 6e 5f 78 25 3d 2d 33 32 3a 70 61 63 6d |cman_x%=-32:pacm| 00000540 61 6e 5f 79 25 3d 70 61 63 6d 61 6e 5f 68 25 2a |an_y%=pacman_h%*| 00000550 41 25 3a 70 61 63 6d 61 6e 5f 64 6f 6e 65 25 3f |A%:pacman_done%?| 00000560 41 25 3d 31 0d 01 24 1b 20 20 e7 20 70 61 63 6d |A%=1..$. . pacm| 00000570 61 6e 5f 74 6f 67 6f 25 3d 30 20 8c 20 3d b9 0d |an_togo%=0 . =..| 00000580 01 2c 05 cd 0d 01 40 06 3d 30 0d 01 4a 04 0d 01 |.,....@.=0..J...| 00000590 54 11 dd a4 70 61 63 6d 61 6e 5f 73 74 6f 70 0d |T...pacman_stop.| 000005a0 01 5e 08 ea 20 41 25 0d 01 68 3b f2 66 72 65 65 |.^.. A%..h;.free| 000005b0 28 70 61 63 6d 61 6e 5f 61 72 65 61 25 29 3a f2 |(pacman_area%):.| 000005c0 66 72 65 65 28 70 61 63 6d 61 6e 5f 73 25 29 3a |free(pacman_s%):| 000005d0 f2 66 72 65 65 28 70 61 63 6d 61 6e 5f 74 61 62 |.free(pacman_tab| 000005e0 25 29 0d 01 69 17 f2 66 72 65 65 28 70 61 63 6d |%)..i..free(pacm| 000005f0 61 6e 5f 64 6f 6e 65 25 29 0d 01 72 05 cd 0d 01 |an_done%)..r....| 00000600 7c 06 3d 30 0d 01 86 04 0d ff ||.=0......| 0000060a