Home » Personal collection » Acorn ADFS disks » Greaseweazled » adfs_Dominic_3B.adf » Files/Programs/Bang!
Files/Programs/Bang!
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 ADFS disks » Greaseweazled » adfs_Dominic_3B.adf |
Filename: | Files/Programs/Bang! |
Read OK: | ✔ |
File size: | 1897 bytes |
Load address: | FFFFFB44 |
Exec address: | 44DEB11D |
Duplicates
There are 4 duplicate copies of this file in the archive:
- Personal collection » Acorn ADFS disks » Archimedes » Dominic_3B.ADF » Files/Programs/Bang!
- Personal collection » Acorn ADFS disks » Archimedes » Dominic_3.ADF » Files/Programs/Bang!
- Personal collection » Acorn ADFS disks » Greaseweazled » adfs_Dominic_3.adf » Files/Programs/Bang!
- Personal collection » Acorn ADFS disks » Greaseweazled » adfs_Dominic_3B.adf » Files/Programs/Bang!
- Personal collection » Acorn hard disk » files » BASIC » Bang!
File contents
10REM >Bang! 20REM by David Llewellyn-Jones 30REM (the Flying Pig) 40REM for 32-bit machines 50REM (c) BAU February 1993 60: 70speed%=2<<16 80tracks%=8 90PRINTRND(-(TIME+1)*VALRIGHT$(TIME$,2)) 100MODE 13 110PRINT"Compiling..." 120PROCass 130PRINT"Press a key..." 140k=GET 150CLS 160OFF 170CALL start 180END 190: 200DEF PROCass 210DIM code% 50000 220link=14:pc=15 230x=5:y=6:h=7:v=8 240track=9:base=10:temp=11:add=12 250count=1:point=2:key=3:top=4 260amount%=900 270FOR pass%=0 TO 2 STEP 2 280P%=code% 290[OPTpass% 300.random FNrndplace 310.rndadd EQUD random 320.rndcnt EQUD random 330.xstart EQUD RND(320)<<16 340.ystart EQUD RND(256)<<16 350.which EQUD 1 360.colour EQUB RND(255) 370 EQUB RND(255) 380 EQUB RND(255) 390 EQUB RND(255) 400 EQUB RND(255) 410 EQUB RND(255) 420.colno1 EQUB RND(255) 430.colno2 EQUB RND(255) 440.coladd EQUB 0 450 ALIGN 460.vdu EQUD 148 470 EQUD -1 480 ALIGN 490 500.start STR link,return 510 LDR base,vdu 520 ADD top,base,#81920 530 SUB top,top,#640 540 MOV track,#1 550 MOV key,#1 560.loop SWI "OS_ReadEscapeState" 570 BCS end 580 MOV count,#0 590 ADD key,key,#1 600 CMP key,#100 610 BLGT set 620 ADR add,data+32 630.loop2 ADD count,count,#1 640 TEQ count,#(amount%/3) 650 BLEQ chng2 660 TEQ count,#(amount%/3*2) 670 BLEQ chng4 680 TEQ count,#1 690 BLEQ chng1 700 MOV temp,#0 710 ADD x,add,track,LSL#2 720 LDR point,[x,#-36] 730 CMP point,top 740 CMPLT base,point 750 STRLTB temp,[point] 760 LDMIA add,{x,y,h,v} 770 CMP x,#65536 780 CMPGT y,#131072 790 BLE skip1 800 CMP x,#(316<<16) 810 CMPLT y,#16646144 820 BGE skip1 830 MOV temp,y,LSR#16 840 ADD point,base,temp,LSL#8 850 ADD point,point,temp,LSL#6 860 ADD point,point,x,LSR#16 870 MOV temp,#0 880 STRB temp,[point],#640 890 STRB temp,[point],#-321 900 STRB temp,[point],#2 910 STRB temp,[point] 920.skip1 SUB x,x,h 930 SUB v,v,#1024 940 SUB y,y,v 950 CMP h,#0 960 ADDLT h,h,#64 970 SUBGT h,h,#64 980 MOV point,#0 990 TEQ key,#1 1000 BLEQ reset 1010 CMP x,#65536 1020 CMPGT y,#131072 1030 BLE skip2 1040 CMP x,#(316<<16) 1050 CMPLT y,#16646144 1060 BGE skip2 1070 MOV temp,y,LSR#16 1080 ADD point,base,temp,LSL#8 1090 ADD point,point,temp,LSL#6 1100 ADD point,point,x,LSR#16 1110 LDRB temp,colno1 1120 STRB temp,[point],#640 1130 STRB temp,[point],#-321 1140 STRB temp,[point],#2 1150 STRB temp,[point] 1160.skip2 STMIA add,{x,y,h,v} 1170 SUB temp,point,#1 1180 SUB add,add,#36 1190 ADD x,add,track,LSL#2 1200 STR temp,[x] 1210 LDRB temp,colno2 1220 FNplottracks 1230 ADD add,add,#52 1240 CMP count,#amount% 1250 BLE loop2 1260 ADD track,track,#1 1270 CMP track,#tracks% 1280 MOVGT track,#1 1290 B loop 1300.end LDR pc,return 1310.return EQUD 0 1320 1330.reset LDR temp,which 1340 CMP count,temp 1350 MOVLT pc,link 1360 ADD temp,temp,#(amount%/3) 1370 CMP count,temp 1380 MOVGT pc,link 1390 LDR x,xstart 1400 LDR y,ystart 1410 LDR temp,rndcnt 1420 ADR h,rndadd 1430 CMP temp,h 1440 LDRGE temp,rndadd 1450 LDR h,[temp],#4 1460 LDR v,[temp],#4 1470 STR temp,rndcnt 1480 STMIA add,{x,y,h,v} 1490 MOV pc,link 1500.set SUB key,key,#100 1510 LDR x,xstart 1520 LDR y,ystart 1530 ADD x,x,y,LSR#1 1540 ADD x,x,#16<<16 1550 CMP x,#320<<16 1560 SUBGE x,x,#300<<16 1570 STR x,xstart 1580 ADD y,y,x 1590 SUB y,y,#64<<16 1600 CMP y,#256<<16 1610 SUBGE y,y,#250<<16 1620 CMP y,#1<<16 1630 ADDLE y,y,#250<<16 1640 STR y,ystart 1650 LDR temp,which 1660 ADD temp,temp,#(amount%/3) 1670 CMP temp,#amount% 1680 MOVGT temp,#1 1690 STR temp,which 1700 LDRB temp,coladd 1710 ADD temp,temp,#2 1720 CMP temp,#6 1730 MOVGE temp,#0 1740 STRB temp,coladd 1750 ADR x,colour 1760 ADD temp,x,temp 1770 LDRB x,[temp] 1780 ADD x,x,#3 1790 CMP x,#255 1800 SUBGE x,x,#253 1810 STRB x,[temp] 1820 LDRB y,[temp,#1]! 1830 SUB y,y,#5 1840 CMP y,#1 1850 ADDGE y,y,#256 1860 STRB y,[temp] 1870 MOV pc,link 1880 1890.chng2 LDRB x,colour+2 1900 STRB x,colno1 1910 LDRB x,colour+3 1920 STRB x,colno2 1930 MOV pc,link 1940 1950.chng4 LDRB x,colour+4 1960 STRB x,colno1 1970 LDRB x,colour+5 1980 STRB x,colno2 1990 MOV pc,link 2000 2010.chng1 LDRB x,colour 2020 STRB x,colno1 2030 LDRB x,colour+1 2040 STRB x,colno2 2050 MOV pc,link 2060.data 2070] 2080NEXTpass% 2090SYS "OS_ReadVduVariables",vdu,vdu 2100PROCpoints 2110ENDPROC 2120 2130DEF PROCpoints 2140x%=RND(1280)<<14 2150y%=(256<<16)-(RND(1024)<<14) 2160n%=0 2170c=4*tracks% 2180FOR n=data+c TO data+amount%*(16+c)+c STEP 16+c 2190 n%+=1 2200 IF n% MOD (amount%/5)=0 x%=RND(1280)<<14:y%=(256<<16)-(RND(1024)<<14) 2210 a=RAD(RND(360000)/1000) 2220 d=1-1/(1+RND(10000)/1000) 2230 !n=x% 2240 n!4=y% 2250 n!8=speed%*COS(a)*d 2260 n!12=speed%*SIN(a)*d 2270 FOR l%=n+16 TO n+16+c STEP 4 2280 !l%=0 2290 NEXT 2300NEXT 2310ENDPROC 2320: 2330DEF FNplottracks 2340FOR n=1 TO tracks% 2350[OPT pass% 2360 LDR point,[add,#4]! 2370 CMP point,top 2380 CMPLT base,point 2390 STRLTB temp,[point] 2400] 2410NEXT 2420=0 2430: 2440DEF FNrndplace 2450FOR n=1 TO 700 2460a=RAD(RND(360000)/1000) 2470d=1-1/(1+RND(10000)/1000) 2480[OPT pass% 2490 EQUD speed%*COSa*d 2500 EQUD speed%*SINa*d 2510] 2520NEXT 2530=0
� >Bang! � by David Llewellyn-Jones � (the Flying Pig) (� for 32-bit machines 2� (c) BAU February 1993 <: Fspeed%=2<<16 P tracks%=8 Z�(-(�+1)*�$,2)) d� 13 n�"Compiling..." x�ass ��"Press a key..." �k=� �� �� �� start �� �: � � �ass �� code% 50000 �link=14:pc=15 �x=5:y=6:h=7:v=8 �"track=9:base=10:temp=11:add=12 �count=1:point=2:key=3:top=4 amount%=900 � pass%=0 � 2 � 2 P%=code% " [OPTpass% ,.random �rndplace 6.rndadd EQUD random @.rndcnt EQUD random J.xstart EQUD �(320)<<16 T.ystart EQUD �(256)<<16 ^.which EQUD 1 h.colour EQUB �(255) r EQUB �(255) | EQUB �(255) � EQUB �(255) � EQUB �(255) � EQUB �(255) �.colno1 EQUB �(255) �.colno2 EQUB �(255) �.coladd EQUB 0 � ALIGN �.vdu EQUD 148 � EQUD -1 � ALIGN � �.start STR link,return � LDR base,vdu # ADD top,base,#81920 SUB top,top,#640 MOV track,#1 & MOV key,#1 0(.loop SWI "OS_ReadEscapeState" : BCS end D MOV count,#0 N ADD key,key,#1 X CMP key,#100 b BLGT set l ADR add,data+32 v".loop2 ADD count,count,#1 �& TEQ count,#(amount%/3) � BLEQ chng2 �( TEQ count,#(amount%/3*2) � BLEQ chng4 � TEQ count,#1 � BLEQ chng1 � MOV temp,#0 �% ADD x,add,track,LSL#2 �" LDR point,[x,#-36] � CMP point,top � CMPLT base,point � STRLTB temp,[point] �! LDMIA add,{x,y,h,v} CMP x,#65536 CMPGT y,#131072 BLE skip1 CMP x,#(316<<16) * CMPLT y,#16646144 4 BGE skip1 >! MOV temp,y,LSR#16 H) ADD point,base,temp,LSL#8 R* ADD point,point,temp,LSL#6 \( ADD point,point,x,LSR#16 f MOV temp,#0 p% STRB temp,[point],#640 z& STRB temp,[point],#-321 �# STRB temp,[point],#2 � STRB temp,[point] �.skip1 SUB x,x,h � SUB v,v,#1024 � SUB y,y,v � CMP h,#0 � ADDLT h,h,#64 � SUBGT h,h,#64 � MOV point,#0 � TEQ key,#1 � BLEQ reset � CMP x,#65536 � CMPGT y,#131072 BLE skip2 CMP x,#(316<<16) CMPLT y,#16646144 $ BGE skip2 .! MOV temp,y,LSR#16 8) ADD point,base,temp,LSL#8 B* ADD point,point,temp,LSL#6 L( ADD point,point,x,LSR#16 V LDRB temp,colno1 `% STRB temp,[point],#640 j& STRB temp,[point],#-321 t# STRB temp,[point],#2 ~ STRB temp,[point] �!.skip2 STMIA add,{x,y,h,v} �! SUB temp,point,#1 � SUB add,add,#36 �% ADD x,add,track,LSL#2 � STR temp,[x] � LDRB temp,colno2 � �plottracks � ADD add,add,#52 �" CMP count,#amount% � BLE loop2 �" ADD track,track,#1 �" CMP track,#tracks% MOVGT track,#1 B loop .end LDR pc,return .return EQUD 0 ( 2.reset LDR temp,which < CMP count,temp F MOVLT pc,link P* ADD temp,temp,#(amount%/3) Z CMP count,temp d MOVGT pc,link n LDR x,xstart x LDR y,ystart � LDR temp,rndcnt � ADR h,rndadd � CMP temp,h � LDRGE temp,rndadd � LDR h,[temp],#4 � LDR v,[temp],#4 � STR temp,rndcnt �! STMIA add,{x,y,h,v} � MOV pc,link � .set SUB key,key,#100 � LDR x,xstart � LDR y,ystart � ADD x,x,y,LSR#1 ADD x,x,#16<<16 CMP x,#320<<16 SUBGE x,x,#300<<16 " STR x,xstart , ADD y,y,x 6 SUB y,y,#64<<16 @ CMP y,#256<<16 J SUBGE y,y,#250<<16 T CMP y,#1<<16 ^ ADDLE y,y,#250<<16 h STR y,ystart r LDR temp,which |* ADD temp,temp,#(amount%/3) �! CMP temp,#amount% � MOVGT temp,#1 � STR temp,which � LDRB temp,coladd � ADD temp,temp,#2 � CMP temp,#6 � MOVGE temp,#0 � STRB temp,coladd � ADR x,colour � ADD temp,x,temp � LDRB x,[temp] � ADD x,x,#3 � CMP x,#255 SUBGE x,x,#253 STRB x,[temp] LDRB y,[temp,#1]! & SUB y,y,#5 0 CMP y,#1 : ADDGE y,y,#256 D STRB y,[temp] N MOV pc,link X b.chng2 LDRB x,colour+2 l STRB x,colno1 v LDRB x,colour+3 � STRB x,colno2 � MOV pc,link � �.chng4 LDRB x,colour+4 � STRB x,colno1 � LDRB x,colour+5 � STRB x,colno2 � MOV pc,link � �.chng1 LDRB x,colour � STRB x,colno1 � LDRB x,colour+1 � STRB x,colno2 MOV pc,link .data ] �pass% *$ș "OS_ReadVduVariables",vdu,vdu 4�points >� H R � �points \x%=�(1280)<<14 fy%=(256<<16)-(�(1024)<<14) pn%=0 zc=4*tracks% �-� n=data+c � data+amount%*(16+c)+c � 16+c � n%+=1 �C � n% � (amount%/5)=0 x%=�(1280)<<14:y%=(256<<16)-(�(1024)<<14) � a=�(�(360000)/1000) � d=1-1/(1+�(10000)/1000) � !n=x% � n!4=y% � n!8=speed%*�(a)*d � n!12=speed%*�(a)*d � � l%=n+16 � n+16+c � 4 � !l%=0 � � �� � : � �plottracks $� n=1 � tracks% .[OPT pass% 8# LDR point,[add,#4]! B CMP point,top L CMPLT base,point V STRLTB temp,[point] `] j� t=0 ~: �� �rndplace �� n=1 � 700 �a=�(�(360000)/1000) �d=1-1/(1+�(10000)/1000) �[OPT pass% � EQUD speed%*�a*d � EQUD speed%*�a*d �] �� �=0 �
00000000 0d 00 0a 0c f4 20 3e 42 61 6e 67 21 0d 00 14 1e |..... >Bang!....| 00000010 f4 20 62 79 20 44 61 76 69 64 20 4c 6c 65 77 65 |. by David Llewe| 00000020 6c 6c 79 6e 2d 4a 6f 6e 65 73 0d 00 1e 16 f4 20 |llyn-Jones..... | 00000030 28 74 68 65 20 46 6c 79 69 6e 67 20 50 69 67 29 |(the Flying Pig)| 00000040 0d 00 28 19 f4 20 66 6f 72 20 33 32 2d 62 69 74 |..(.. for 32-bit| 00000050 20 6d 61 63 68 69 6e 65 73 0d 00 32 1b f4 20 28 | machines..2.. (| 00000060 63 29 20 42 41 55 20 46 65 62 72 75 61 72 79 20 |c) BAU February | 00000070 31 39 39 33 0d 00 3c 05 3a 0d 00 46 10 73 70 65 |1993..<.:..F.spe| 00000080 65 64 25 3d 32 3c 3c 31 36 0d 00 50 0d 74 72 61 |ed%=2<<16..P.tra| 00000090 63 6b 73 25 3d 38 0d 00 5a 16 f1 b3 28 2d 28 91 |cks%=8..Z...(-(.| 000000a0 2b 31 29 2a bb c2 91 24 2c 32 29 29 0d 00 64 08 |+1)*...$,2))..d.| 000000b0 eb 20 31 33 0d 00 6e 13 f1 22 43 6f 6d 70 69 6c |. 13..n.."Compil| 000000c0 69 6e 67 2e 2e 2e 22 0d 00 78 08 f2 61 73 73 0d |ing..."..x..ass.| 000000d0 00 82 15 f1 22 50 72 65 73 73 20 61 20 6b 65 79 |...."Press a key| 000000e0 2e 2e 2e 22 0d 00 8c 07 6b 3d a5 0d 00 96 05 db |..."....k=......| 000000f0 0d 00 a0 05 87 0d 00 aa 0b d6 20 73 74 61 72 74 |.......... start| 00000100 0d 00 b4 05 e0 0d 00 be 05 3a 0d 00 c8 0a dd 20 |.........:..... | 00000110 f2 61 73 73 0d 00 d2 11 de 20 63 6f 64 65 25 20 |.ass..... code% | 00000120 35 30 30 30 30 0d 00 dc 11 6c 69 6e 6b 3d 31 34 |50000....link=14| 00000130 3a 70 63 3d 31 35 0d 00 e6 13 78 3d 35 3a 79 3d |:pc=15....x=5:y=| 00000140 36 3a 68 3d 37 3a 76 3d 38 0d 00 f0 22 74 72 61 |6:h=7:v=8..."tra| 00000150 63 6b 3d 39 3a 62 61 73 65 3d 31 30 3a 74 65 6d |ck=9:base=10:tem| 00000160 70 3d 31 31 3a 61 64 64 3d 31 32 0d 00 fa 1f 63 |p=11:add=12....c| 00000170 6f 75 6e 74 3d 31 3a 70 6f 69 6e 74 3d 32 3a 6b |ount=1:point=2:k| 00000180 65 79 3d 33 3a 74 6f 70 3d 34 0d 01 04 0f 61 6d |ey=3:top=4....am| 00000190 6f 75 6e 74 25 3d 39 30 30 0d 01 0e 15 e3 20 70 |ount%=900..... p| 000001a0 61 73 73 25 3d 30 20 b8 20 32 20 88 20 32 0d 01 |ass%=0 . 2 . 2..| 000001b0 18 0c 50 25 3d 63 6f 64 65 25 0d 01 22 0d 5b 4f |..P%=code%..".[O| 000001c0 50 54 70 61 73 73 25 0d 01 2c 15 2e 72 61 6e 64 |PTpass%..,..rand| 000001d0 6f 6d 20 a4 72 6e 64 70 6c 61 63 65 0d 01 36 17 |om .rndplace..6.| 000001e0 2e 72 6e 64 61 64 64 20 45 51 55 44 20 72 61 6e |.rndadd EQUD ran| 000001f0 64 6f 6d 0d 01 40 17 2e 72 6e 64 63 6e 74 20 45 |dom..@..rndcnt E| 00000200 51 55 44 20 72 61 6e 64 6f 6d 0d 01 4a 1b 2e 78 |QUD random..J..x| 00000210 73 74 61 72 74 20 45 51 55 44 20 b3 28 33 32 30 |start EQUD .(320| 00000220 29 3c 3c 31 36 0d 01 54 1b 2e 79 73 74 61 72 74 |)<<16..T..ystart| 00000230 20 45 51 55 44 20 b3 28 32 35 36 29 3c 3c 31 36 | EQUD .(256)<<16| 00000240 0d 01 5e 12 2e 77 68 69 63 68 20 20 45 51 55 44 |..^..which EQUD| 00000250 20 31 0d 01 68 17 2e 63 6f 6c 6f 75 72 20 45 51 | 1..h..colour EQ| 00000260 55 42 20 b3 28 32 35 35 29 0d 01 72 17 20 20 20 |UB .(255)..r. | 00000270 20 20 20 20 20 45 51 55 42 20 b3 28 32 35 35 29 | EQUB .(255)| 00000280 0d 01 7c 17 20 20 20 20 20 20 20 20 45 51 55 42 |..|. EQUB| 00000290 20 b3 28 32 35 35 29 0d 01 86 17 20 20 20 20 20 | .(255).... | 000002a0 20 20 20 45 51 55 42 20 b3 28 32 35 35 29 0d 01 | EQUB .(255)..| 000002b0 90 17 20 20 20 20 20 20 20 20 45 51 55 42 20 b3 |.. EQUB .| 000002c0 28 32 35 35 29 0d 01 9a 17 20 20 20 20 20 20 20 |(255).... | 000002d0 20 45 51 55 42 20 b3 28 32 35 35 29 0d 01 a4 17 | EQUB .(255)....| 000002e0 2e 63 6f 6c 6e 6f 31 20 45 51 55 42 20 b3 28 32 |.colno1 EQUB .(2| 000002f0 35 35 29 0d 01 ae 17 2e 63 6f 6c 6e 6f 32 20 45 |55).....colno2 E| 00000300 51 55 42 20 b3 28 32 35 35 29 0d 01 b8 12 2e 63 |QUB .(255).....c| 00000310 6f 6c 61 64 64 20 45 51 55 42 20 30 0d 01 c2 11 |oladd EQUB 0....| 00000320 20 20 20 20 20 20 20 20 41 4c 49 47 4e 0d 01 cc | ALIGN...| 00000330 14 2e 76 64 75 20 20 20 20 45 51 55 44 20 31 34 |..vdu EQUD 14| 00000340 38 0d 01 d6 13 20 20 20 20 20 20 20 20 45 51 55 |8.... EQU| 00000350 44 20 2d 31 0d 01 e0 11 20 20 20 20 20 20 20 20 |D -1.... | 00000360 41 4c 49 47 4e 0d 01 ea 04 0d 01 f4 1f 2e 73 74 |ALIGN.........st| 00000370 61 72 74 20 20 53 54 52 20 20 20 20 20 6c 69 6e |art STR lin| 00000380 6b 2c 72 65 74 75 72 6e 0d 01 fe 1c 20 20 20 20 |k,return.... | 00000390 20 20 20 20 4c 44 52 20 20 20 20 20 62 61 73 65 | LDR base| 000003a0 2c 76 64 75 0d 02 08 23 20 20 20 20 20 20 20 20 |,vdu...# | 000003b0 41 44 44 20 20 20 20 20 74 6f 70 2c 62 61 73 65 |ADD top,base| 000003c0 2c 23 38 31 39 32 30 0d 02 12 20 20 20 20 20 20 |,#81920... | 000003d0 20 20 20 53 55 42 20 20 20 20 20 74 6f 70 2c 74 | SUB top,t| 000003e0 6f 70 2c 23 36 34 30 0d 02 1c 1c 20 20 20 20 20 |op,#640.... | 000003f0 20 20 20 4d 4f 56 20 20 20 20 20 74 72 61 63 6b | MOV track| 00000400 2c 23 31 0d 02 26 1a 20 20 20 20 20 20 20 20 4d |,#1..&. M| 00000410 4f 56 20 20 20 20 20 6b 65 79 2c 23 31 0d 02 30 |OV key,#1..0| 00000420 28 2e 6c 6f 6f 70 20 20 20 53 57 49 20 20 20 20 |(.loop SWI | 00000430 20 22 4f 53 5f 52 65 61 64 45 73 63 61 70 65 53 | "OS_ReadEscapeS| 00000440 74 61 74 65 22 0d 02 3a 17 20 20 20 20 20 20 20 |tate"..:. | 00000450 20 42 43 53 20 20 20 20 20 65 6e 64 0d 02 44 1c | BCS end..D.| 00000460 20 20 20 20 20 20 20 20 4d 4f 56 20 20 20 20 20 | MOV | 00000470 63 6f 75 6e 74 2c 23 30 0d 02 4e 1e 20 20 20 20 |count,#0..N. | 00000480 20 20 20 20 41 44 44 20 20 20 20 20 6b 65 79 2c | ADD key,| 00000490 6b 65 79 2c 23 31 0d 02 58 1c 20 20 20 20 20 20 |key,#1..X. | 000004a0 20 20 43 4d 50 20 20 20 20 20 6b 65 79 2c 23 31 | CMP key,#1| 000004b0 30 30 0d 02 62 17 20 20 20 20 20 20 20 20 42 4c |00..b. BL| 000004c0 47 54 20 20 20 20 73 65 74 0d 02 6c 1f 20 20 20 |GT set..l. | 000004d0 20 20 20 20 20 41 44 52 20 20 20 20 20 61 64 64 | ADR add| 000004e0 2c 64 61 74 61 2b 33 32 0d 02 76 22 2e 6c 6f 6f |,data+32..v".loo| 000004f0 70 32 20 20 41 44 44 20 20 20 20 20 63 6f 75 6e |p2 ADD coun| 00000500 74 2c 63 6f 75 6e 74 2c 23 31 0d 02 80 26 20 20 |t,count,#1...& | 00000510 20 20 20 20 20 20 54 45 51 20 20 20 20 20 63 6f | TEQ co| 00000520 75 6e 74 2c 23 28 61 6d 6f 75 6e 74 25 2f 33 29 |unt,#(amount%/3)| 00000530 0d 02 8a 19 20 20 20 20 20 20 20 20 42 4c 45 51 |.... BLEQ| 00000540 20 20 20 20 63 68 6e 67 32 0d 02 94 28 20 20 20 | chng2...( | 00000550 20 20 20 20 20 54 45 51 20 20 20 20 20 63 6f 75 | TEQ cou| 00000560 6e 74 2c 23 28 61 6d 6f 75 6e 74 25 2f 33 2a 32 |nt,#(amount%/3*2| 00000570 29 0d 02 9e 19 20 20 20 20 20 20 20 20 42 4c 45 |).... BLE| 00000580 51 20 20 20 20 63 68 6e 67 34 0d 02 a8 1c 20 20 |Q chng4.... | 00000590 20 20 20 20 20 20 54 45 51 20 20 20 20 20 63 6f | TEQ co| 000005a0 75 6e 74 2c 23 31 0d 02 b2 19 20 20 20 20 20 20 |unt,#1.... | 000005b0 20 20 42 4c 45 51 20 20 20 20 63 68 6e 67 31 0d | BLEQ chng1.| 000005c0 02 bc 1b 20 20 20 20 20 20 20 20 4d 4f 56 20 20 |... MOV | 000005d0 20 20 20 74 65 6d 70 2c 23 30 0d 02 c6 25 20 20 | temp,#0...% | 000005e0 20 20 20 20 20 20 41 44 44 20 20 20 20 20 78 2c | ADD x,| 000005f0 61 64 64 2c 74 72 61 63 6b 2c 4c 53 4c 23 32 0d |add,track,LSL#2.| 00000600 02 d0 22 20 20 20 20 20 20 20 20 4c 44 52 20 20 |.." LDR | 00000610 20 20 20 70 6f 69 6e 74 2c 5b 78 2c 23 2d 33 36 | point,[x,#-36| 00000620 5d 0d 02 da 1d 20 20 20 20 20 20 20 20 43 4d 50 |].... CMP| 00000630 20 20 20 20 20 70 6f 69 6e 74 2c 74 6f 70 0d 02 | point,top..| 00000640 e4 1e 20 20 20 20 20 20 20 20 43 4d 50 4c 54 20 |.. CMPLT | 00000650 20 20 62 61 73 65 2c 70 6f 69 6e 74 0d 02 ee 20 | base,point... | 00000660 20 20 20 20 20 20 20 20 53 54 52 4c 54 42 20 20 | STRLTB | 00000670 74 65 6d 70 2c 5b 70 6f 69 6e 74 5d 0d 02 f8 21 |temp,[point]...!| 00000680 20 20 20 20 20 20 20 20 4c 44 4d 49 41 20 20 20 | LDMIA | 00000690 61 64 64 2c 7b 78 2c 79 2c 68 2c 76 7d 0d 03 02 |add,{x,y,h,v}...| 000006a0 1c 20 20 20 20 20 20 20 20 43 4d 50 20 20 20 20 |. CMP | 000006b0 20 78 2c 23 36 35 35 33 36 0d 03 0c 1d 20 20 20 | x,#65536.... | 000006c0 20 20 20 20 20 43 4d 50 47 54 20 20 20 79 2c 23 | CMPGT y,#| 000006d0 31 33 31 30 37 32 0d 03 16 19 20 20 20 20 20 20 |131072.... | 000006e0 20 20 42 4c 45 20 20 20 20 20 73 6b 69 70 31 0d | BLE skip1.| 000006f0 03 20 20 20 20 20 20 20 20 20 20 43 4d 50 20 20 |. CMP | 00000700 20 20 20 78 2c 23 28 33 31 36 3c 3c 31 36 29 0d | x,#(316<<16).| 00000710 03 2a 1f 20 20 20 20 20 20 20 20 43 4d 50 4c 54 |.*. CMPLT| 00000720 20 20 20 79 2c 23 31 36 36 34 36 31 34 34 0d 03 | y,#16646144..| 00000730 34 19 20 20 20 20 20 20 20 20 42 47 45 20 20 20 |4. BGE | 00000740 20 20 73 6b 69 70 31 0d 03 3e 21 20 20 20 20 20 | skip1..>! | 00000750 20 20 20 4d 4f 56 20 20 20 20 20 74 65 6d 70 2c | MOV temp,| 00000760 79 2c 4c 53 52 23 31 36 0d 03 48 29 20 20 20 20 |y,LSR#16..H) | 00000770 20 20 20 20 41 44 44 20 20 20 20 20 70 6f 69 6e | ADD poin| 00000780 74 2c 62 61 73 65 2c 74 65 6d 70 2c 4c 53 4c 23 |t,base,temp,LSL#| 00000790 38 0d 03 52 2a 20 20 20 20 20 20 20 20 41 44 44 |8..R* ADD| 000007a0 20 20 20 20 20 70 6f 69 6e 74 2c 70 6f 69 6e 74 | point,point| 000007b0 2c 74 65 6d 70 2c 4c 53 4c 23 36 0d 03 5c 28 20 |,temp,LSL#6..\( | 000007c0 20 20 20 20 20 20 20 41 44 44 20 20 20 20 20 70 | ADD p| 000007d0 6f 69 6e 74 2c 70 6f 69 6e 74 2c 78 2c 4c 53 52 |oint,point,x,LSR| 000007e0 23 31 36 0d 03 66 1b 20 20 20 20 20 20 20 20 4d |#16..f. M| 000007f0 4f 56 20 20 20 20 20 74 65 6d 70 2c 23 30 0d 03 |OV temp,#0..| 00000800 70 25 20 20 20 20 20 20 20 20 53 54 52 42 20 20 |p% STRB | 00000810 20 20 74 65 6d 70 2c 5b 70 6f 69 6e 74 5d 2c 23 | temp,[point],#| 00000820 36 34 30 0d 03 7a 26 20 20 20 20 20 20 20 20 53 |640..z& S| 00000830 54 52 42 20 20 20 20 74 65 6d 70 2c 5b 70 6f 69 |TRB temp,[poi| 00000840 6e 74 5d 2c 23 2d 33 32 31 0d 03 84 23 20 20 20 |nt],#-321...# | 00000850 20 20 20 20 20 53 54 52 42 20 20 20 20 74 65 6d | STRB tem| 00000860 70 2c 5b 70 6f 69 6e 74 5d 2c 23 32 0d 03 8e 20 |p,[point],#2... | 00000870 20 20 20 20 20 20 20 20 53 54 52 42 20 20 20 20 | STRB | 00000880 74 65 6d 70 2c 5b 70 6f 69 6e 74 5d 0d 03 98 19 |temp,[point]....| 00000890 2e 73 6b 69 70 31 20 20 53 55 42 20 20 20 20 20 |.skip1 SUB | 000008a0 78 2c 78 2c 68 0d 03 a2 1d 20 20 20 20 20 20 20 |x,x,h.... | 000008b0 20 53 55 42 20 20 20 20 20 76 2c 76 2c 23 31 30 | SUB v,v,#10| 000008c0 32 34 0d 03 ac 19 20 20 20 20 20 20 20 20 53 55 |24.... SU| 000008d0 42 20 20 20 20 20 79 2c 79 2c 76 0d 03 b6 18 20 |B y,y,v.... | 000008e0 20 20 20 20 20 20 20 43 4d 50 20 20 20 20 20 68 | CMP h| 000008f0 2c 23 30 0d 03 c0 1b 20 20 20 20 20 20 20 20 41 |,#0.... A| 00000900 44 44 4c 54 20 20 20 68 2c 68 2c 23 36 34 0d 03 |DDLT h,h,#64..| 00000910 ca 1b 20 20 20 20 20 20 20 20 53 55 42 47 54 20 |.. SUBGT | 00000920 20 20 68 2c 68 2c 23 36 34 0d 03 d4 1c 20 20 20 | h,h,#64.... | 00000930 20 20 20 20 20 4d 4f 56 20 20 20 20 20 70 6f 69 | MOV poi| 00000940 6e 74 2c 23 30 0d 03 de 1a 20 20 20 20 20 20 20 |nt,#0.... | 00000950 20 54 45 51 20 20 20 20 20 6b 65 79 2c 23 31 0d | TEQ key,#1.| 00000960 03 e8 19 20 20 20 20 20 20 20 20 42 4c 45 51 20 |... BLEQ | 00000970 20 20 20 72 65 73 65 74 0d 03 f2 1c 20 20 20 20 | reset.... | 00000980 20 20 20 20 43 4d 50 20 20 20 20 20 78 2c 23 36 | CMP x,#6| 00000990 35 35 33 36 0d 03 fc 1d 20 20 20 20 20 20 20 20 |5536.... | 000009a0 43 4d 50 47 54 20 20 20 79 2c 23 31 33 31 30 37 |CMPGT y,#13107| 000009b0 32 0d 04 06 19 20 20 20 20 20 20 20 20 42 4c 45 |2.... BLE| 000009c0 20 20 20 20 20 73 6b 69 70 32 0d 04 10 20 20 20 | skip2... | 000009d0 20 20 20 20 20 20 43 4d 50 20 20 20 20 20 78 2c | CMP x,| 000009e0 23 28 33 31 36 3c 3c 31 36 29 0d 04 1a 1f 20 20 |#(316<<16).... | 000009f0 20 20 20 20 20 20 43 4d 50 4c 54 20 20 20 79 2c | CMPLT y,| 00000a00 23 31 36 36 34 36 31 34 34 0d 04 24 19 20 20 20 |#16646144..$. | 00000a10 20 20 20 20 20 42 47 45 20 20 20 20 20 73 6b 69 | BGE ski| 00000a20 70 32 0d 04 2e 21 20 20 20 20 20 20 20 20 4d 4f |p2...! MO| 00000a30 56 20 20 20 20 20 74 65 6d 70 2c 79 2c 4c 53 52 |V temp,y,LSR| 00000a40 23 31 36 0d 04 38 29 20 20 20 20 20 20 20 20 41 |#16..8) A| 00000a50 44 44 20 20 20 20 20 70 6f 69 6e 74 2c 62 61 73 |DD point,bas| 00000a60 65 2c 74 65 6d 70 2c 4c 53 4c 23 38 0d 04 42 2a |e,temp,LSL#8..B*| 00000a70 20 20 20 20 20 20 20 20 41 44 44 20 20 20 20 20 | ADD | 00000a80 70 6f 69 6e 74 2c 70 6f 69 6e 74 2c 74 65 6d 70 |point,point,temp| 00000a90 2c 4c 53 4c 23 36 0d 04 4c 28 20 20 20 20 20 20 |,LSL#6..L( | 00000aa0 20 20 41 44 44 20 20 20 20 20 70 6f 69 6e 74 2c | ADD point,| 00000ab0 70 6f 69 6e 74 2c 78 2c 4c 53 52 23 31 36 0d 04 |point,x,LSR#16..| 00000ac0 56 1f 20 20 20 20 20 20 20 20 4c 44 52 42 20 20 |V. LDRB | 00000ad0 20 20 74 65 6d 70 2c 63 6f 6c 6e 6f 31 0d 04 60 | temp,colno1..`| 00000ae0 25 20 20 20 20 20 20 20 20 53 54 52 42 20 20 20 |% STRB | 00000af0 20 74 65 6d 70 2c 5b 70 6f 69 6e 74 5d 2c 23 36 | temp,[point],#6| 00000b00 34 30 0d 04 6a 26 20 20 20 20 20 20 20 20 53 54 |40..j& ST| 00000b10 52 42 20 20 20 20 74 65 6d 70 2c 5b 70 6f 69 6e |RB temp,[poin| 00000b20 74 5d 2c 23 2d 33 32 31 0d 04 74 23 20 20 20 20 |t],#-321..t# | 00000b30 20 20 20 20 53 54 52 42 20 20 20 20 74 65 6d 70 | STRB temp| 00000b40 2c 5b 70 6f 69 6e 74 5d 2c 23 32 0d 04 7e 20 20 |,[point],#2..~ | 00000b50 20 20 20 20 20 20 20 53 54 52 42 20 20 20 20 74 | STRB t| 00000b60 65 6d 70 2c 5b 70 6f 69 6e 74 5d 0d 04 88 21 2e |emp,[point]...!.| 00000b70 73 6b 69 70 32 20 20 53 54 4d 49 41 20 20 20 61 |skip2 STMIA a| 00000b80 64 64 2c 7b 78 2c 79 2c 68 2c 76 7d 0d 04 92 21 |dd,{x,y,h,v}...!| 00000b90 20 20 20 20 20 20 20 20 53 55 42 20 20 20 20 20 | SUB | 00000ba0 74 65 6d 70 2c 70 6f 69 6e 74 2c 23 31 0d 04 9c |temp,point,#1...| 00000bb0 1f 20 20 20 20 20 20 20 20 53 55 42 20 20 20 20 |. SUB | 00000bc0 20 61 64 64 2c 61 64 64 2c 23 33 36 0d 04 a6 25 | add,add,#36...%| 00000bd0 20 20 20 20 20 20 20 20 41 44 44 20 20 20 20 20 | ADD | 00000be0 78 2c 61 64 64 2c 74 72 61 63 6b 2c 4c 53 4c 23 |x,add,track,LSL#| 00000bf0 32 0d 04 b0 1c 20 20 20 20 20 20 20 20 53 54 52 |2.... STR| 00000c00 20 20 20 20 20 74 65 6d 70 2c 5b 78 5d 0d 04 ba | temp,[x]...| 00000c10 1f 20 20 20 20 20 20 20 20 4c 44 52 42 20 20 20 |. LDRB | 00000c20 20 74 65 6d 70 2c 63 6f 6c 6e 6f 32 0d 04 c4 17 | temp,colno2....| 00000c30 20 20 20 20 20 20 20 20 a4 70 6c 6f 74 74 72 61 | .plottra| 00000c40 63 6b 73 0d 04 ce 1f 20 20 20 20 20 20 20 20 41 |cks.... A| 00000c50 44 44 20 20 20 20 20 61 64 64 2c 61 64 64 2c 23 |DD add,add,#| 00000c60 35 32 0d 04 d8 22 20 20 20 20 20 20 20 20 43 4d |52..." CM| 00000c70 50 20 20 20 20 20 63 6f 75 6e 74 2c 23 61 6d 6f |P count,#amo| 00000c80 75 6e 74 25 0d 04 e2 19 20 20 20 20 20 20 20 20 |unt%.... | 00000c90 42 4c 45 20 20 20 20 20 6c 6f 6f 70 32 0d 04 ec |BLE loop2...| 00000ca0 22 20 20 20 20 20 20 20 20 41 44 44 20 20 20 20 |" ADD | 00000cb0 20 74 72 61 63 6b 2c 74 72 61 63 6b 2c 23 31 0d | track,track,#1.| 00000cc0 04 f6 22 20 20 20 20 20 20 20 20 43 4d 50 20 20 |.." CMP | 00000cd0 20 20 20 74 72 61 63 6b 2c 23 74 72 61 63 6b 73 | track,#tracks| 00000ce0 25 0d 05 00 1c 20 20 20 20 20 20 20 20 4d 4f 56 |%.... MOV| 00000cf0 47 54 20 20 20 74 72 61 63 6b 2c 23 31 0d 05 0a |GT track,#1...| 00000d00 18 20 20 20 20 20 20 20 20 42 20 20 20 20 20 20 |. B | 00000d10 20 6c 6f 6f 70 0d 05 14 1d 2e 65 6e 64 20 20 20 | loop.....end | 00000d20 20 4c 44 52 20 20 20 20 20 70 63 2c 72 65 74 75 | LDR pc,retu| 00000d30 72 6e 0d 05 1e 12 2e 72 65 74 75 72 6e 20 45 51 |rn.....return EQ| 00000d40 55 44 20 30 0d 05 28 04 0d 05 32 1e 2e 72 65 73 |UD 0..(...2..res| 00000d50 65 74 20 20 4c 44 52 20 20 20 20 20 74 65 6d 70 |et LDR temp| 00000d60 2c 77 68 69 63 68 0d 05 3c 1e 20 20 20 20 20 20 |,which..<. | 00000d70 20 20 43 4d 50 20 20 20 20 20 63 6f 75 6e 74 2c | CMP count,| 00000d80 74 65 6d 70 0d 05 46 1b 20 20 20 20 20 20 20 20 |temp..F. | 00000d90 4d 4f 56 4c 54 20 20 20 70 63 2c 6c 69 6e 6b 0d |MOVLT pc,link.| 00000da0 05 50 2a 20 20 20 20 20 20 20 20 41 44 44 20 20 |.P* ADD | 00000db0 20 20 20 74 65 6d 70 2c 74 65 6d 70 2c 23 28 61 | temp,temp,#(a| 00000dc0 6d 6f 75 6e 74 25 2f 33 29 0d 05 5a 1e 20 20 20 |mount%/3)..Z. | 00000dd0 20 20 20 20 20 43 4d 50 20 20 20 20 20 63 6f 75 | CMP cou| 00000de0 6e 74 2c 74 65 6d 70 0d 05 64 1b 20 20 20 20 20 |nt,temp..d. | 00000df0 20 20 20 4d 4f 56 47 54 20 20 20 70 63 2c 6c 69 | MOVGT pc,li| 00000e00 6e 6b 0d 05 6e 1c 20 20 20 20 20 20 20 20 4c 44 |nk..n. LD| 00000e10 52 20 20 20 20 20 78 2c 78 73 74 61 72 74 0d 05 |R x,xstart..| 00000e20 78 1c 20 20 20 20 20 20 20 20 4c 44 52 20 20 20 |x. LDR | 00000e30 20 20 79 2c 79 73 74 61 72 74 0d 05 82 1f 20 20 | y,ystart.... | 00000e40 20 20 20 20 20 20 4c 44 52 20 20 20 20 20 74 65 | LDR te| 00000e50 6d 70 2c 72 6e 64 63 6e 74 0d 05 8c 1c 20 20 20 |mp,rndcnt.... | 00000e60 20 20 20 20 20 41 44 52 20 20 20 20 20 68 2c 72 | ADR h,r| 00000e70 6e 64 61 64 64 0d 05 96 1a 20 20 20 20 20 20 20 |ndadd.... | 00000e80 20 43 4d 50 20 20 20 20 20 74 65 6d 70 2c 68 0d | CMP temp,h.| 00000e90 05 a0 1f 20 20 20 20 20 20 20 20 4c 44 52 47 45 |... LDRGE| 00000ea0 20 20 20 74 65 6d 70 2c 72 6e 64 61 64 64 0d 05 | temp,rndadd..| 00000eb0 aa 1f 20 20 20 20 20 20 20 20 4c 44 52 20 20 20 |.. LDR | 00000ec0 20 20 68 2c 5b 74 65 6d 70 5d 2c 23 34 0d 05 b4 | h,[temp],#4...| 00000ed0 1f 20 20 20 20 20 20 20 20 4c 44 52 20 20 20 20 |. LDR | 00000ee0 20 76 2c 5b 74 65 6d 70 5d 2c 23 34 0d 05 be 1f | v,[temp],#4....| 00000ef0 20 20 20 20 20 20 20 20 53 54 52 20 20 20 20 20 | STR | 00000f00 74 65 6d 70 2c 72 6e 64 63 6e 74 0d 05 c8 21 20 |temp,rndcnt...! | 00000f10 20 20 20 20 20 20 20 53 54 4d 49 41 20 20 20 61 | STMIA a| 00000f20 64 64 2c 7b 78 2c 79 2c 68 2c 76 7d 0d 05 d2 1b |dd,{x,y,h,v}....| 00000f30 20 20 20 20 20 20 20 20 4d 4f 56 20 20 20 20 20 | MOV | 00000f40 70 63 2c 6c 69 6e 6b 0d 05 dc 20 2e 73 65 74 20 |pc,link... .set | 00000f50 20 20 20 53 55 42 20 20 20 20 20 6b 65 79 2c 6b | SUB key,k| 00000f60 65 79 2c 23 31 30 30 0d 05 e6 1c 20 20 20 20 20 |ey,#100.... | 00000f70 20 20 20 4c 44 52 20 20 20 20 20 78 2c 78 73 74 | LDR x,xst| 00000f80 61 72 74 0d 05 f0 1c 20 20 20 20 20 20 20 20 4c |art.... L| 00000f90 44 52 20 20 20 20 20 79 2c 79 73 74 61 72 74 0d |DR y,ystart.| 00000fa0 05 fa 1f 20 20 20 20 20 20 20 20 41 44 44 20 20 |... ADD | 00000fb0 20 20 20 78 2c 78 2c 79 2c 4c 53 52 23 31 0d 06 | x,x,y,LSR#1..| 00000fc0 04 1f 20 20 20 20 20 20 20 20 41 44 44 20 20 20 |.. ADD | 00000fd0 20 20 78 2c 78 2c 23 31 36 3c 3c 31 36 0d 06 0e | x,x,#16<<16...| 00000fe0 1e 20 20 20 20 20 20 20 20 43 4d 50 20 20 20 20 |. CMP | 00000ff0 20 78 2c 23 33 32 30 3c 3c 31 36 0d 06 18 20 20 | x,#320<<16... | 00001000 20 20 20 20 20 20 20 53 55 42 47 45 20 20 20 78 | SUBGE x| 00001010 2c 78 2c 23 33 30 30 3c 3c 31 36 0d 06 22 1c 20 |,x,#300<<16..". | 00001020 20 20 20 20 20 20 20 53 54 52 20 20 20 20 20 78 | STR x| 00001030 2c 78 73 74 61 72 74 0d 06 2c 19 20 20 20 20 20 |,xstart..,. | 00001040 20 20 20 41 44 44 20 20 20 20 20 79 2c 79 2c 78 | ADD y,y,x| 00001050 0d 06 36 1f 20 20 20 20 20 20 20 20 53 55 42 20 |..6. SUB | 00001060 20 20 20 20 79 2c 79 2c 23 36 34 3c 3c 31 36 0d | y,y,#64<<16.| 00001070 06 40 1e 20 20 20 20 20 20 20 20 43 4d 50 20 20 |.@. CMP | 00001080 20 20 20 79 2c 23 32 35 36 3c 3c 31 36 0d 06 4a | y,#256<<16..J| 00001090 20 20 20 20 20 20 20 20 20 53 55 42 47 45 20 20 | SUBGE | 000010a0 20 79 2c 79 2c 23 32 35 30 3c 3c 31 36 0d 06 54 | y,y,#250<<16..T| 000010b0 1c 20 20 20 20 20 20 20 20 43 4d 50 20 20 20 20 |. CMP | 000010c0 20 79 2c 23 31 3c 3c 31 36 0d 06 5e 20 20 20 20 | y,#1<<16..^ | 000010d0 20 20 20 20 20 41 44 44 4c 45 20 20 20 79 2c 79 | ADDLE y,y| 000010e0 2c 23 32 35 30 3c 3c 31 36 0d 06 68 1c 20 20 20 |,#250<<16..h. | 000010f0 20 20 20 20 20 53 54 52 20 20 20 20 20 79 2c 79 | STR y,y| 00001100 73 74 61 72 74 0d 06 72 1e 20 20 20 20 20 20 20 |start..r. | 00001110 20 4c 44 52 20 20 20 20 20 74 65 6d 70 2c 77 68 | LDR temp,wh| 00001120 69 63 68 0d 06 7c 2a 20 20 20 20 20 20 20 20 41 |ich..|* A| 00001130 44 44 20 20 20 20 20 74 65 6d 70 2c 74 65 6d 70 |DD temp,temp| 00001140 2c 23 28 61 6d 6f 75 6e 74 25 2f 33 29 0d 06 86 |,#(amount%/3)...| 00001150 21 20 20 20 20 20 20 20 20 43 4d 50 20 20 20 20 |! CMP | 00001160 20 74 65 6d 70 2c 23 61 6d 6f 75 6e 74 25 0d 06 | temp,#amount%..| 00001170 90 1b 20 20 20 20 20 20 20 20 4d 4f 56 47 54 20 |.. MOVGT | 00001180 20 20 74 65 6d 70 2c 23 31 0d 06 9a 1e 20 20 20 | temp,#1.... | 00001190 20 20 20 20 20 53 54 52 20 20 20 20 20 74 65 6d | STR tem| 000011a0 70 2c 77 68 69 63 68 0d 06 a4 1f 20 20 20 20 20 |p,which.... | 000011b0 20 20 20 4c 44 52 42 20 20 20 20 74 65 6d 70 2c | LDRB temp,| 000011c0 63 6f 6c 61 64 64 0d 06 ae 20 20 20 20 20 20 20 |coladd... | 000011d0 20 20 41 44 44 20 20 20 20 20 74 65 6d 70 2c 74 | ADD temp,t| 000011e0 65 6d 70 2c 23 32 0d 06 b8 1b 20 20 20 20 20 20 |emp,#2.... | 000011f0 20 20 43 4d 50 20 20 20 20 20 74 65 6d 70 2c 23 | CMP temp,#| 00001200 36 0d 06 c2 1b 20 20 20 20 20 20 20 20 4d 4f 56 |6.... MOV| 00001210 47 45 20 20 20 74 65 6d 70 2c 23 30 0d 06 cc 1f |GE temp,#0....| 00001220 20 20 20 20 20 20 20 20 53 54 52 42 20 20 20 20 | STRB | 00001230 74 65 6d 70 2c 63 6f 6c 61 64 64 0d 06 d6 1c 20 |temp,coladd.... | 00001240 20 20 20 20 20 20 20 41 44 52 20 20 20 20 20 78 | ADR x| 00001250 2c 63 6f 6c 6f 75 72 0d 06 e0 1f 20 20 20 20 20 |,colour.... | 00001260 20 20 20 41 44 44 20 20 20 20 20 74 65 6d 70 2c | ADD temp,| 00001270 78 2c 74 65 6d 70 0d 06 ea 1c 20 20 20 20 20 20 |x,temp.... | 00001280 20 20 4c 44 52 42 20 20 20 20 78 2c 5b 74 65 6d | LDRB x,[tem| 00001290 70 5d 0d 06 f4 1a 20 20 20 20 20 20 20 20 41 44 |p].... AD| 000012a0 44 20 20 20 20 20 78 2c 78 2c 23 33 0d 06 fe 1a |D x,x,#3....| 000012b0 20 20 20 20 20 20 20 20 43 4d 50 20 20 20 20 20 | CMP | 000012c0 78 2c 23 32 35 35 0d 07 08 1c 20 20 20 20 20 20 |x,#255.... | 000012d0 20 20 53 55 42 47 45 20 20 20 78 2c 78 2c 23 32 | SUBGE x,x,#2| 000012e0 35 33 0d 07 12 1c 20 20 20 20 20 20 20 20 53 54 |53.... ST| 000012f0 52 42 20 20 20 20 78 2c 5b 74 65 6d 70 5d 0d 07 |RB x,[temp]..| 00001300 1c 20 20 20 20 20 20 20 20 20 4c 44 52 42 20 20 |. LDRB | 00001310 20 20 79 2c 5b 74 65 6d 70 2c 23 31 5d 21 0d 07 | y,[temp,#1]!..| 00001320 26 1a 20 20 20 20 20 20 20 20 53 55 42 20 20 20 |&. SUB | 00001330 20 20 79 2c 79 2c 23 35 0d 07 30 18 20 20 20 20 | y,y,#5..0. | 00001340 20 20 20 20 43 4d 50 20 20 20 20 20 79 2c 23 31 | CMP y,#1| 00001350 0d 07 3a 1c 20 20 20 20 20 20 20 20 41 44 44 47 |..:. ADDG| 00001360 45 20 20 20 79 2c 79 2c 23 32 35 36 0d 07 44 1c |E y,y,#256..D.| 00001370 20 20 20 20 20 20 20 20 53 54 52 42 20 20 20 20 | STRB | 00001380 79 2c 5b 74 65 6d 70 5d 0d 07 4e 1b 20 20 20 20 |y,[temp]..N. | 00001390 20 20 20 20 4d 4f 56 20 20 20 20 20 70 63 2c 6c | MOV pc,l| 000013a0 69 6e 6b 0d 07 58 04 0d 07 62 1e 2e 63 68 6e 67 |ink..X...b..chng| 000013b0 32 20 20 4c 44 52 42 20 20 20 20 78 2c 63 6f 6c |2 LDRB x,col| 000013c0 6f 75 72 2b 32 0d 07 6c 1c 20 20 20 20 20 20 20 |our+2..l. | 000013d0 20 53 54 52 42 20 20 20 20 78 2c 63 6f 6c 6e 6f | STRB x,colno| 000013e0 31 0d 07 76 1e 20 20 20 20 20 20 20 20 4c 44 52 |1..v. LDR| 000013f0 42 20 20 20 20 78 2c 63 6f 6c 6f 75 72 2b 33 0d |B x,colour+3.| 00001400 07 80 1c 20 20 20 20 20 20 20 20 53 54 52 42 20 |... STRB | 00001410 20 20 20 78 2c 63 6f 6c 6e 6f 32 0d 07 8a 1b 20 | x,colno2.... | 00001420 20 20 20 20 20 20 20 4d 4f 56 20 20 20 20 20 70 | MOV p| 00001430 63 2c 6c 69 6e 6b 0d 07 94 04 0d 07 9e 1e 2e 63 |c,link.........c| 00001440 68 6e 67 34 20 20 4c 44 52 42 20 20 20 20 78 2c |hng4 LDRB x,| 00001450 63 6f 6c 6f 75 72 2b 34 0d 07 a8 1c 20 20 20 20 |colour+4.... | 00001460 20 20 20 20 53 54 52 42 20 20 20 20 78 2c 63 6f | STRB x,co| 00001470 6c 6e 6f 31 0d 07 b2 1e 20 20 20 20 20 20 20 20 |lno1.... | 00001480 4c 44 52 42 20 20 20 20 78 2c 63 6f 6c 6f 75 72 |LDRB x,colour| 00001490 2b 35 0d 07 bc 1c 20 20 20 20 20 20 20 20 53 54 |+5.... ST| 000014a0 52 42 20 20 20 20 78 2c 63 6f 6c 6e 6f 32 0d 07 |RB x,colno2..| 000014b0 c6 1b 20 20 20 20 20 20 20 20 4d 4f 56 20 20 20 |.. MOV | 000014c0 20 20 70 63 2c 6c 69 6e 6b 0d 07 d0 04 0d 07 da | pc,link.......| 000014d0 1c 2e 63 68 6e 67 31 20 20 4c 44 52 42 20 20 20 |..chng1 LDRB | 000014e0 20 78 2c 63 6f 6c 6f 75 72 0d 07 e4 1c 20 20 20 | x,colour.... | 000014f0 20 20 20 20 20 53 54 52 42 20 20 20 20 78 2c 63 | STRB x,c| 00001500 6f 6c 6e 6f 31 0d 07 ee 1e 20 20 20 20 20 20 20 |olno1.... | 00001510 20 4c 44 52 42 20 20 20 20 78 2c 63 6f 6c 6f 75 | LDRB x,colou| 00001520 72 2b 31 0d 07 f8 1c 20 20 20 20 20 20 20 20 53 |r+1.... S| 00001530 54 52 42 20 20 20 20 78 2c 63 6f 6c 6e 6f 32 0d |TRB x,colno2.| 00001540 08 02 1b 20 20 20 20 20 20 20 20 4d 4f 56 20 20 |... MOV | 00001550 20 20 20 70 63 2c 6c 69 6e 6b 0d 08 0c 09 2e 64 | pc,link.....d| 00001560 61 74 61 0d 08 16 05 5d 0d 08 20 0a ed 70 61 73 |ata....].. ..pas| 00001570 73 25 0d 08 2a 24 c8 99 20 22 4f 53 5f 52 65 61 |s%..*$.. "OS_Rea| 00001580 64 56 64 75 56 61 72 69 61 62 6c 65 73 22 2c 76 |dVduVariables",v| 00001590 64 75 2c 76 64 75 0d 08 34 0b f2 70 6f 69 6e 74 |du,vdu..4..point| 000015a0 73 0d 08 3e 05 e1 0d 08 48 05 20 0d 08 52 0d dd |s..>....H. ..R..| 000015b0 20 f2 70 6f 69 6e 74 73 0d 08 5c 12 78 25 3d b3 | .points..\.x%=.| 000015c0 28 31 32 38 30 29 3c 3c 31 34 0d 08 66 1e 79 25 |(1280)<<14..f.y%| 000015d0 3d 28 32 35 36 3c 3c 31 36 29 2d 28 b3 28 31 30 |=(256<<16)-(.(10| 000015e0 32 34 29 3c 3c 31 34 29 0d 08 70 08 6e 25 3d 30 |24)<<14)..p.n%=0| 000015f0 0d 08 7a 0f 63 3d 34 2a 74 72 61 63 6b 73 25 0d |..z.c=4*tracks%.| 00001600 08 84 2d e3 20 6e 3d 64 61 74 61 2b 63 20 b8 20 |..-. n=data+c . | 00001610 64 61 74 61 2b 61 6d 6f 75 6e 74 25 2a 28 31 36 |data+amount%*(16| 00001620 2b 63 29 2b 63 20 88 20 31 36 2b 63 0d 08 8e 0a |+c)+c . 16+c....| 00001630 20 6e 25 2b 3d 31 0d 08 98 43 20 e7 20 6e 25 20 | n%+=1...C . n% | 00001640 83 20 28 61 6d 6f 75 6e 74 25 2f 35 29 3d 30 20 |. (amount%/5)=0 | 00001650 78 25 3d b3 28 31 32 38 30 29 3c 3c 31 34 3a 79 |x%=.(1280)<<14:y| 00001660 25 3d 28 32 35 36 3c 3c 31 36 29 2d 28 b3 28 31 |%=(256<<16)-(.(1| 00001670 30 32 34 29 3c 3c 31 34 29 0d 08 a2 18 20 61 3d |024)<<14).... a=| 00001680 b2 28 b3 28 33 36 30 30 30 30 29 2f 31 30 30 30 |.(.(360000)/1000| 00001690 29 0d 08 ac 1c 20 64 3d 31 2d 31 2f 28 31 2b b3 |).... d=1-1/(1+.| 000016a0 28 31 30 30 30 30 29 2f 31 30 30 30 29 0d 08 b6 |(10000)/1000)...| 000016b0 0a 20 21 6e 3d 78 25 0d 08 c0 0b 20 6e 21 34 3d |. !n=x%.... n!4=| 000016c0 79 25 0d 08 ca 16 20 6e 21 38 3d 73 70 65 65 64 |y%.... n!8=speed| 000016d0 25 2a 9b 28 61 29 2a 64 0d 08 d4 17 20 6e 21 31 |%*.(a)*d.... n!1| 000016e0 32 3d 73 70 65 65 64 25 2a b5 28 61 29 2a 64 0d |2=speed%*.(a)*d.| 000016f0 08 de 1b 20 e3 20 6c 25 3d 6e 2b 31 36 20 b8 20 |... . l%=n+16 . | 00001700 6e 2b 31 36 2b 63 20 88 20 34 0d 08 e8 0b 20 20 |n+16+c . 4.... | 00001710 21 6c 25 3d 30 0d 08 f2 06 20 ed 0d 08 fc 05 ed |!l%=0.... ......| 00001720 0d 09 06 05 e1 0d 09 10 05 3a 0d 09 1a 11 dd 20 |.........:..... | 00001730 a4 70 6c 6f 74 74 72 61 63 6b 73 0d 09 24 13 e3 |.plottracks..$..| 00001740 20 6e 3d 31 20 b8 20 74 72 61 63 6b 73 25 0d 09 | n=1 . tracks%..| 00001750 2e 0e 5b 4f 50 54 20 70 61 73 73 25 0d 09 38 23 |..[OPT pass%..8#| 00001760 20 20 20 20 20 20 20 20 4c 44 52 20 20 20 20 20 | LDR | 00001770 70 6f 69 6e 74 2c 5b 61 64 64 2c 23 34 5d 21 0d |point,[add,#4]!.| 00001780 09 42 1d 20 20 20 20 20 20 20 20 43 4d 50 20 20 |.B. CMP | 00001790 20 20 20 70 6f 69 6e 74 2c 74 6f 70 0d 09 4c 1e | point,top..L.| 000017a0 20 20 20 20 20 20 20 20 43 4d 50 4c 54 20 20 20 | CMPLT | 000017b0 62 61 73 65 2c 70 6f 69 6e 74 0d 09 56 20 20 20 |base,point..V | 000017c0 20 20 20 20 20 20 53 54 52 4c 54 42 20 20 74 65 | STRLTB te| 000017d0 6d 70 2c 5b 70 6f 69 6e 74 5d 0d 09 60 05 5d 0d |mp,[point]..`.].| 000017e0 09 6a 05 ed 0d 09 74 06 3d 30 0d 09 7e 05 3a 0d |.j....t.=0..~.:.| 000017f0 09 88 0f dd 20 a4 72 6e 64 70 6c 61 63 65 0d 09 |.... .rndplace..| 00001800 92 0f e3 20 6e 3d 31 20 b8 20 37 30 30 0d 09 9c |... n=1 . 700...| 00001810 17 61 3d b2 28 b3 28 33 36 30 30 30 30 29 2f 31 |.a=.(.(360000)/1| 00001820 30 30 30 29 0d 09 a6 1b 64 3d 31 2d 31 2f 28 31 |000)....d=1-1/(1| 00001830 2b b3 28 31 30 30 30 30 29 2f 31 30 30 30 29 0d |+.(10000)/1000).| 00001840 09 b0 0e 5b 4f 50 54 20 70 61 73 73 25 0d 09 ba |...[OPT pass%...| 00001850 1c 20 20 20 20 20 20 20 20 45 51 55 44 20 73 70 |. EQUD sp| 00001860 65 65 64 25 2a 9b 61 2a 64 0d 09 c4 1c 20 20 20 |eed%*.a*d.... | 00001870 20 20 20 20 20 45 51 55 44 20 73 70 65 65 64 25 | EQUD speed%| 00001880 2a b5 61 2a 64 0d 09 ce 05 5d 0d 09 d8 05 ed 0d |*.a*d....]......| 00001890 09 e2 06 3d 30 0d ff |...=0..| 00001897