Home » Archimedes archive » Acorn User » Acorn User - Updated Shareware Collection (1994).adf » Programs » !Mangify/MangCode
!Mangify/MangCode
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 » Archimedes archive » Acorn User » Acorn User - Updated Shareware Collection (1994).adf » Programs |
Filename: | !Mangify/MangCode |
Read OK: | ✔ |
File size: | 1740 bytes |
Load address: | 0000 |
Exec address: | 0000 |
File contents
10DIMcode%16384:FORpass=0TO2STEP2:P%=code%:[OPTpass 20 30\in, 0 = source, 1 = dest, 2 = shift, 3 = vsections, 4 = hsections, 5 = vcopies, 6 = magn 40 50.screenwidth:&1152/4:.hsizesections:&0:\>>6 60 70.code 80STMFD13!,{14}:ADR14,branchtable:LDR14,[14,6,LSL#2]:ADR6,branchstart:ADD14,14,6 90 .code4lp:STMFD13!,{0-5}:LDMIA0!,{12}:.code4lp1:STMFD13!,{2,4}:TEQ0,#&2000000 100 MOV3,12,LSR 2:RSB4,2,#32:LDMNEIA0!,{12}:ORR2,3,12,LSL4:MOV15,14:.return4 110 LDMFD13!,{2,4}:SUBS4,4,#1:BNE code4lp1 120 LDMFD13,{0-1}:LDR2,[13,#20]:LDR11,hsizesections:LDR12,screenwidth:.code4lp2:STMFD13!,{1-2} 130 ADD0,1,12:TST11,#4:LDMNEIA1!,{3-6}:STMNEIA0!,{3-6} 140 TST11,#2:LDMNEIA1!,{3-4}:STMNEIA0!,{3-4}:TST11,#1:LDMNEIA1!,{3}:STMNEIA0!,{3} 150 BICS2,11,#7:BEQ c4d3:.c4lp3:LDMIA1!,{3-10}:STMIA0!,{3-10}:SUBS2,2,#8:BGT c4lp3:.c4d3 160 LDMFD13!,{1-2}:ADD1,1,12:SUBS2,2,#1:BNE code4lp2:MOV6,1 170 LDMFD13!,{0-5}:ADD0,0,12:ADD1,6,12:SUBS3,3,#1:BNE code4lp 180LDMFD13!,{15} 190 200.branchtable:&0:&0:&0:&0:&0:&0:&0:&0:&0:&0:&0:&0:&0:&0:&0:&0:&0:&0 210 &0:&0:&0:&0:&0:&0:&0:&0:&0:&0:&0:&0:&0:&0:&0:&0:&0:&0:.branchstart:B return4 220 230] 240 250FORlogbpp%=0TO3:bpp%=1<<logbpp%:mask%=(1<<bpp%)-1:shift%=1<<logbpp% 260 zoom%=6:by%=bpp%*zoom%-bpp% 270 branchtable!(9*logbpp%+zoom%<<2)=P%-branchstart 280 CASElogbpp%OF 290 WHEN3 300 [OPTpass:AND3,2,#&FF:ORR3,3,3,ROR#8:ORR3,3,3,ROR#16:MOV4,3,LSR#16 310 AND5,2,#&FF<<8:ORR5,5,5,ROR#8:ORR5,5,5,ROR#16:ORR4,4,5,LSL#16 320 AND6,2,#&FF<<16:ORR6,6,6,ROR#8:ORR6,6,6,ROR#16:MOV7,6,LSR#16 330 AND8,2,#&FF<<24:ORR8,8,8,ROR#8:ORR8,8,8,ROR#16:ORR7,7,8,LSL#16:] 340 WHEN0,1,2 350 FORlop%=0TO1:reg%=lop%*3+3:nex%=lop%*3+4:las%=lop%*3+5:tmp%=lop%*3+6 360 CASElogbpp%OF 370 WHEN2 380 [OPTpass:AND reg%,2,#&F:AND nex%,2,#&F<<4:ORR reg%,reg%,nex%,LSL#20 390 ORR reg%,reg%,reg%,LSL#4:ORR reg%,reg%,reg%,LSL#8:ORR reg%,reg%,reg%,LSL#8 400 AND nex%,2,#&F<<8:MOV nex%,nex%,LSL#8:ORR nex%,nex%,reg%,LSR#28 410 ORR nex%,nex%,nex%,LSL#4:ORR nex%,nex%,nex%,LSL#8 420 AND las%,2,#&F<<12:ORR las%,las%,las%,LSR#4:ORR las%,las%,las%,LSL#8 430 ORR las%,las%,las%,LSL#8:ORR las%,las%,nex%,LSR#24:] 440 WHEN1 450 [OPTpass:AND reg%,2,#3:AND tmp%,2,#3<<2:ORR reg%,reg%,tmp%,LSL#10 460 AND tmp%,2,#3<<4:ORR reg%,reg%,tmp%,LSL#20:ORR reg%,reg%,reg%,LSL#2 470 ORR reg%,reg%,reg%,LSL#4:ORR reg%,reg%,reg%,LSL#4 480 AND nex%,2,#3<<6:AND tmp%,2,#3<<8:ORR nex%,nex%,tmp%,LSL#10 490 AND tmp%,2,#3<<10:ORR nex%,nex%,tmp%,LSL#20:ORR nex%,nex%,nex%,LSR#2 500 ORR nex%,nex%,nex%,LSL#4:ORR nex%,nex%,nex%,LSL#4:ORR nex%,nex%,reg%,LSR#28 510 AND las%,2,#3<<12:AND tmp%,2,#3<<14:ORR las%,las%,tmp%,LSL#10 520 ORR las%,las%,las%,LSL#2:ORR las%,las%,las%,LSR#4:ORR las%,las%,nex%,LSR#28 530 ORR las%,las%,las%,LSL#4:] 540 WHEN0 550 [OPTpass:AND reg%,2,#1:AND tmp%,2,#1<<1:ORR reg%,reg%,tmp%,LSL#5 560 AND tmp%,2,#1<<2:ORR reg%,reg%,tmp%,LSL#10:AND tmp%,2,#1<<3:ORR reg%,reg%,tmp%,LSL#15 570 AND tmp%,2,#1<<4:ORR reg%,reg%,tmp%,LSL#20:AND tmp%,2,#1<<5:ORR reg%,reg%,tmp%,LSL#25 580 ORR reg%,reg%,reg%,LSL#1:ORR reg%,reg%,reg%,LSL#2:ORR reg%,reg%,reg%,LSL#2 590 AND nex%,2,#1<<6:AND tmp%,2,#1<<7:ORR nex%,nex%,tmp%,LSL#5 600 AND tmp%,2,#1<<8:ORR nex%,nex%,tmp%,LSL#10:AND tmp%,2,#1<<9:ORR nex%,nex%,tmp%,LSL#15 610 AND tmp%,2,#1<<10:ORR nex%,nex%,tmp%,LSL#20:ORR nex%,nex%,nex%,LSL#1 620 ORR nex%,nex%,nex%,LSR#2:ORR nex%,nex%,reg%,LSR#30:ORR nex%,nex%,nex%,LSL#2 630 AND las%,2,#1<<11:MOVlas%,las%,LSR#9:AND tmp%,2,#1<<12:ORR las%,las%,tmp%,LSR#4 631 AND tmp%,2,#1<<13:ORR las%,las%,tmp%,LSL#1:AND tmp%,2,#1<<14:ORR las%,las%,tmp%,LSL#6 632 AND tmp%,2,#1<<15:ORR las%,las%,tmp%,LSL#11:ORR las%,las%,las%,LSL#1 633 ORR las%,las%,las%,LSL#2:ORR las%,las%,las%,LSL#2:ORR las%,las%,nex%,LSR#30:] 650 ENDCASE 660 IFlop%=0:[OPTpass:MOV2,2,LSR#16:] 670 NEXT 680 ENDCASE 690 [OPTpass:STMIA1!,{3-8}:B return4:] 700NEXT 710 720FORlogbpp%=0TO3:bpp%=1<<logbpp%:mask%=(1<<bpp%)-1:shift%=1<<logbpp% 730 zoom%=3:by%=bpp%*zoom%-bpp% 740 branchtable!(9*logbpp%+zoom%<<2)=P%-branchstart 750 IFlogbpp%=3THEN 760 [OPTpass:AND3,2,#&FF:AND6,2,#&FF<<8:ORR3,3,6,LSL#16:ORR3,3,3,LSL#8:ORR3,3,3,LSL#8 770 AND7,2,#&FF<<16:ORR4,7,6,LSR#8:ORR4,4,4,LSL#8 780 AND5,2,#&FF<<24:ORR5,5,5,LSR#8:ORR5,5,5,LSR#8:ORR5,5,7,LSR#16:] 790 ELSE 800 FORlop%=0TO2:reg%=lop%+3:cor%=reg%+3:thisshift%=shift%*lop% 810 [OPTpass:AND reg%,2,#mask%<<thisshift%:] 820 end%=(1<<5-logbpp%)/zoom%-(reg%<5) 830 FORpixel%=1TOend%-1:thisshift%=(pixel%+lop%)*shift%:thisby%=pixel%*by% 840 [OPTpass:AND cor%,2,#mask%<<thisshift%:ORR reg%,reg%,cor%,LSL#thisby%:] 850 NEXT 860 CASEreg%OF 870 WHEN3:lose%=5+(logbpp%=2)<<1 880 [OPTpass:ORR 3,3,3,LSL#bpp%:ORR 3,3,3,LSL#bpp%:MOV2,2,LSR#lose%:] 890 WHEN4:lose%=4-(logbpp%=0)<<1 900 [OPTpass:ORR 4,4,4,LSL#bpp%:ORR 4,4,4,LSL#bpp%:ORR4,4,6,LSR#thatshift%:MOV2,2,LSR#lose%:] 910 WHEN5:[OPTpass:ORR 5,5,5,LSL#bpp%:ORR5,5,7,LSR#thatshift%:ORR 5,5,5,LSL#bpp%:] 920 ENDCASE 930 thatshift%=thisshift% 940 NEXT 950 ENDIF 960 [OPTpass:STMIA1!,{3-5}:B return4:] 970NEXT 980 990FORlogbpp%=0TO3:bpp%=1<<logbpp%:mask%=(1<<bpp%)-1:shift%=1<<logbpp% 1000 FORlogzoom%=1TO3:zoom%=1<<logzoom%:by%=bpp%*zoom%-bpp%:final%=2+zoom% 1010 branchtable!(9*logbpp%+zoom%<<2)=P%-branchstart 1020 IFlogzoom%+logbpp%<6THEN 1030 FORreg%=3TOfinal% 1040 [OPTpass:AND reg%,2,#mask%:] 1050 end%=1<<5-logbpp%-logzoom% 1060 FORpixel%=1TOend%-1:thisshift%=pixel%*shift%:thisby%=pixel%*by% 1070 [OPTpass:AND 11,2,#mask%<<thisshift%:ORR reg%,reg%,11,LSL#thisby%:] 1080 NEXT 1090 FORcollapse%=0TOlogzoom%-1:binary%=1<<collapse%+logbpp% 1100 [OPTpass:ORR reg%,reg%,reg%,LSL#binary%:] 1110 NEXT 1120 IFreg%<final%THEN 1130 lose%=1<<5-logzoom%:[OPTpass:MOV2,2,LSR#lose%:] 1140 ENDIF 1150 NEXT 1160 ELSE 1170 FORpixel%=0TO3:reg%=3+2*pixel%:nextreg%=reg%+1:thisshift%=shift%*pixel% 1180 [OPTpass:AND reg%,2,#mask%<<thisshift% 1190 ORR reg%,reg%,reg%,ROR#8:ORR reg%,reg%,reg%,ROR#16:MOV nextreg%,reg%:] 1200 NEXT 1210 ENDIF 1220 [OPTpass:STMIA1!,{3-final%}:B return4:] 1230 NEXT 1240NEXT 1250 1260NEXT 1270 1280SYS"OS_File",10,"<Mangificate$Dir>Code",&FFD,,code%,P%
-�code%16384:�pass=0�2�2:P%=code%:[OPTpass ]\in, 0 = source, 1 = dest, 2 = shift, 3 = vsections, 4 = hsections, 5 = vcopies, 6 = magn ( 2/.screenwidth:&1152/4:.hsizesections:&0:\>>6 < F .code PRSTMFD13!,{14}:ADR14,branchtable:LDR14,[14,6,LSL#2]:ADR6,branchstart:ADD14,14,6 ZQ .code4lp:STMFD13!,{0-5}:LDMIA0!,{12}:.code4lp1:STMFD13!,{2,4}:TEQ0,#&2000000 dN MOV3,12,LSR 2:RSB4,2,#32:LDMNEIA0!,{12}:�R2,3,12,LSL4:MOV15,14:.return4 n- LDMFD13!,{2,4}:SUBS4,4,#1:BNE code4lp1 x` LDMFD13,{0-1}:LDR2,[13,#20]:LDR11,hsizesections:LDR12,screenwidth:.code4lp2:STMFD13!,{1-2} �9 ADD0,1,12:TST11,#4:LDMNEIA1!,{3-6}:STMNEIA0!,{3-6} �U TST11,#2:LDMNEIA1!,{3-4}:STMNEIA0!,{3-4}:TST11,#1:LDMNEIA1!,{3}:STMNEIA0!,{3} �[ BICS2,11,#7:BEQ c4d3:.c4lp3:LDMIA1!,{3-10}:STMIA0!,{3-10}:SUBS2,2,#8:BGT c4lp3:.c4d3 �> LDMFD13!,{1-2}:ADD1,1,12:SUBS2,2,#1:BNE code4lp2:MOV6,1 �> LDMFD13!,{0-5}:ADD0,0,12:ADD1,6,12:SUBS3,3,#1:BNE code4lp �LDMFD13!,{15} � �F.branchtable:&0:&0:&0:&0:&0:&0:&0:&0:&0:&0:&0:&0:&0:&0:&0:&0:&0:&0 �Q &0:&0:&0:&0:&0:&0:&0:&0:&0:&0:&0:&0:&0:&0:&0:&0:&0:&0:.branchstart:B return4 � �] � �D�logbpp%=0�3:bpp%=1<<logbpp%:mask%=(1<<bpp%)-1:shift%=1<<logbpp% zoom%=6:by%=bpp%*zoom%-bpp% 4 branchtable!(9*logbpp%+zoom%<<2)=P%-branchstart Ȏlogbpp%� " �3 ,D [OPTpass:�3,2,#&FF:�R3,3,3,ROR#8:�R3,3,3,ROR#16:MOV4,3,LSR#16 6@ �5,2,#&FF<<8:�R5,5,5,ROR#8:�R5,5,5,ROR#16:�R4,4,5,LSL#16 @@ �6,2,#&FF<<16:�R6,6,6,ROR#8:�R6,6,6,ROR#16:MOV7,6,LSR#16 JC �8,2,#&FF<<24:�R8,8,8,ROR#8:�R8,8,8,ROR#16:�R7,7,8,LSL#16:] T �0,1,2 ^H �lop%=0�1:reg%=lop%*3+3:nex%=lop%*3+4:las%=lop%*3+5:tmp%=lop%*3+6 h Ȏlogbpp%� r �2 |H [OPTpass:� reg%,2,#&F:� nex%,2,#&F<<4:�R reg%,reg%,nex%,LSL#20 �S �R reg%,reg%,reg%,LSL#4:�R reg%,reg%,reg%,LSL#8:�R reg%,reg%,reg%,LSL#8 �G � nex%,2,#&F<<8:MOV nex%,nex%,LSL#8:�R nex%,nex%,reg%,LSR#28 �; �R nex%,nex%,nex%,LSL#4:�R nex%,nex%,nex%,LSL#8 �K � las%,2,#&F<<12:�R las%,las%,las%,LSR#4:�R las%,las%,las%,LSL#8 �> �R las%,las%,las%,LSL#8:�R las%,las%,nex%,LSR#24:] � �1 �F [OPTpass:� reg%,2,#3:� tmp%,2,#3<<2:�R reg%,reg%,tmp%,LSL#10 �K � tmp%,2,#3<<4:�R reg%,reg%,tmp%,LSL#20:�R reg%,reg%,reg%,LSL#2 �; �R reg%,reg%,reg%,LSL#4:�R reg%,reg%,reg%,LSL#4 �A � nex%,2,#3<<6:� tmp%,2,#3<<8:�R nex%,nex%,tmp%,LSL#10 �L � tmp%,2,#3<<10:�R nex%,nex%,tmp%,LSL#20:�R nex%,nex%,nex%,LSR#2 �T �R nex%,nex%,nex%,LSL#4:�R nex%,nex%,nex%,LSL#4:�R nex%,nex%,reg%,LSR#28 �C � las%,2,#3<<12:� tmp%,2,#3<<14:�R las%,las%,tmp%,LSL#10 T �R las%,las%,las%,LSL#2:�R las%,las%,las%,LSR#4:�R las%,las%,nex%,LSR#28 % �R las%,las%,las%,LSL#4:] �0 &E [OPTpass:� reg%,2,#1:� tmp%,2,#1<<1:�R reg%,reg%,tmp%,LSL#5 0[ � tmp%,2,#1<<2:�R reg%,reg%,tmp%,LSL#10:� tmp%,2,#1<<3:�R reg%,reg%,tmp%,LSL#15 :[ � tmp%,2,#1<<4:�R reg%,reg%,tmp%,LSL#20:� tmp%,2,#1<<5:�R reg%,reg%,tmp%,LSL#25 DS �R reg%,reg%,reg%,LSL#1:�R reg%,reg%,reg%,LSL#2:�R reg%,reg%,reg%,LSL#2 N@ � nex%,2,#1<<6:� tmp%,2,#1<<7:�R nex%,nex%,tmp%,LSL#5 X[ � tmp%,2,#1<<8:�R nex%,nex%,tmp%,LSL#10:� tmp%,2,#1<<9:�R nex%,nex%,tmp%,LSL#15 bL � tmp%,2,#1<<10:�R nex%,nex%,tmp%,LSL#20:�R nex%,nex%,nex%,LSL#1 lT �R nex%,nex%,nex%,LSR#2:�R nex%,nex%,reg%,LSR#30:�R nex%,nex%,nex%,LSL#2 vU � las%,2,#1<<11:MOVlas%,las%,LSR#9:� tmp%,2,#1<<12:�R las%,las%,tmp%,LSR#4 w[ � tmp%,2,#1<<13:�R las%,las%,tmp%,LSL#1:� tmp%,2,#1<<14:�R las%,las%,tmp%,LSL#6 xL � tmp%,2,#1<<15:�R las%,las%,tmp%,LSL#11:�R las%,las%,las%,LSL#1 yV �R las%,las%,las%,LSL#2:�R las%,las%,las%,LSL#2:�R las%,las%,nex%,LSR#30:] � � �( �lop%=0:[OPTpass:MOV2,2,LSR#16:] � � � � �' [OPTpass:STMIA1!,{3-8}:B return4:] �� � �D�logbpp%=0�3:bpp%=1<<logbpp%:mask%=(1<<bpp%)-1:shift%=1<<logbpp% � zoom%=3:by%=bpp%*zoom%-bpp% �4 branchtable!(9*logbpp%+zoom%<<2)=P%-branchstart � �logbpp%=3� �P [OPTpass:�3,2,#&FF:�6,2,#&FF<<8:�R3,3,6,LSL#16:�R3,3,3,LSL#8:�R3,3,3,LSL#8 0 �7,2,#&FF<<16:�R4,7,6,LSR#8:�R4,4,4,LSL#8 A �5,2,#&FF<<24:�R5,5,5,LSR#8:�R5,5,5,LSR#8:�R5,5,7,LSR#16:] � > �lop%=0�2:reg%=lop%+3:cor%=reg%+3:thisshift%=shift%*lop% *- [OPTpass:� reg%,2,#mask%<<thisshift%:] 4) end%=(1<<5-logbpp%)/zoom%-(reg%<5) >J �pixel%=1�end%-1:thisshift%=(pixel%+lop%)*shift%:thisby%=pixel%*by% HL [OPTpass:� cor%,2,#mask%<<thisshift%:�R reg%,reg%,cor%,LSL#thisby%:] R � \ Ȏreg%� f! �3:lose%=5+(logbpp%=2)<<1 pH [OPTpass:�R 3,3,3,LSL#bpp%:�R 3,3,3,LSL#bpp%:MOV2,2,LSR#lose%:] z! �4:lose%=4-(logbpp%=0)<<1 �_ [OPTpass:�R 4,4,4,LSL#bpp%:�R 4,4,4,LSL#bpp%:�R4,4,6,LSR#thatshift%:MOV2,2,LSR#lose%:] �P �5:[OPTpass:�R 5,5,5,LSL#bpp%:�R5,5,7,LSR#thatshift%:�R 5,5,5,LSL#bpp%:] � � � thatshift%=thisshift% � � � � �' [OPTpass:STMIA1!,{3-5}:B return4:] �� � �D�logbpp%=0�3:bpp%=1<<logbpp%:mask%=(1<<bpp%)-1:shift%=1<<logbpp% �G �logzoom%=1�3:zoom%=1<<logzoom%:by%=bpp%*zoom%-bpp%:final%=2+zoom% �5 branchtable!(9*logbpp%+zoom%<<2)=P%-branchstart � �logzoom%+logbpp%<6� �reg%=3�final% " [OPTpass:� reg%,2,#mask%:] " end%=1<<5-logbpp%-logzoom% $D �pixel%=1�end%-1:thisshift%=pixel%*shift%:thisby%=pixel%*by% .I [OPTpass:� 11,2,#mask%<<thisshift%:�R reg%,reg%,11,LSL#thisby%:] 8 � B< �collapse%=0�logzoom%-1:binary%=1<<collapse%+logbpp% L1 [OPTpass:�R reg%,reg%,reg%,LSL#binary%:] V � ` �reg%<final%� j8 lose%=1<<5-logzoom%:[OPTpass:MOV2,2,LSR#lose%:] t � ~ � � � �K �pixel%=0�3:reg%=3+2*pixel%:nextreg%=reg%+1:thisshift%=shift%*pixel% �, [OPTpass:� reg%,2,#mask%<<thisshift% �M �R reg%,reg%,reg%,ROR#8:�R reg%,reg%,reg%,ROR#16:MOV nextreg%,reg%:] � � � � �- [OPTpass:STMIA1!,{3-final%}:B return4:] � � �� � �� � 9ș"OS_File",10,"<Mangificate$Dir>Code",&FFD,,code%,P% �
00000000 0d 00 0a 2d de 63 6f 64 65 25 31 36 33 38 34 3a |...-.code%16384:| 00000010 e3 70 61 73 73 3d 30 b8 32 88 32 3a 50 25 3d 63 |.pass=0.2.2:P%=c| 00000020 6f 64 65 25 3a 5b 4f 50 54 70 61 73 73 0d 00 14 |ode%:[OPTpass...| 00000030 04 0d 00 1e 5d 5c 69 6e 2c 20 30 20 3d 20 73 6f |....]\in, 0 = so| 00000040 75 72 63 65 2c 20 31 20 3d 20 64 65 73 74 2c 20 |urce, 1 = dest, | 00000050 32 20 3d 20 73 68 69 66 74 2c 20 33 20 3d 20 76 |2 = shift, 3 = v| 00000060 73 65 63 74 69 6f 6e 73 2c 20 34 20 3d 20 68 73 |sections, 4 = hs| 00000070 65 63 74 69 6f 6e 73 2c 20 35 20 3d 20 76 63 6f |ections, 5 = vco| 00000080 70 69 65 73 2c 20 36 20 3d 20 6d 61 67 6e 0d 00 |pies, 6 = magn..| 00000090 28 04 0d 00 32 2f 2e 73 63 72 65 65 6e 77 69 64 |(...2/.screenwid| 000000a0 74 68 3a 26 31 31 35 32 2f 34 3a 2e 68 73 69 7a |th:&1152/4:.hsiz| 000000b0 65 73 65 63 74 69 6f 6e 73 3a 26 30 3a 5c 3e 3e |esections:&0:\>>| 000000c0 36 0d 00 3c 04 0d 00 46 09 2e 63 6f 64 65 0d 00 |6..<...F..code..| 000000d0 50 52 53 54 4d 46 44 31 33 21 2c 7b 31 34 7d 3a |PRSTMFD13!,{14}:| 000000e0 41 44 52 31 34 2c 62 72 61 6e 63 68 74 61 62 6c |ADR14,branchtabl| 000000f0 65 3a 4c 44 52 31 34 2c 5b 31 34 2c 36 2c 4c 53 |e:LDR14,[14,6,LS| 00000100 4c 23 32 5d 3a 41 44 52 36 2c 62 72 61 6e 63 68 |L#2]:ADR6,branch| 00000110 73 74 61 72 74 3a 41 44 44 31 34 2c 31 34 2c 36 |start:ADD14,14,6| 00000120 0d 00 5a 51 20 2e 63 6f 64 65 34 6c 70 3a 53 54 |..ZQ .code4lp:ST| 00000130 4d 46 44 31 33 21 2c 7b 30 2d 35 7d 3a 4c 44 4d |MFD13!,{0-5}:LDM| 00000140 49 41 30 21 2c 7b 31 32 7d 3a 2e 63 6f 64 65 34 |IA0!,{12}:.code4| 00000150 6c 70 31 3a 53 54 4d 46 44 31 33 21 2c 7b 32 2c |lp1:STMFD13!,{2,| 00000160 34 7d 3a 54 45 51 30 2c 23 26 32 30 30 30 30 30 |4}:TEQ0,#&200000| 00000170 30 0d 00 64 4e 20 20 20 4d 4f 56 33 2c 31 32 2c |0..dN MOV3,12,| 00000180 4c 53 52 20 32 3a 52 53 42 34 2c 32 2c 23 33 32 |LSR 2:RSB4,2,#32| 00000190 3a 4c 44 4d 4e 45 49 41 30 21 2c 7b 31 32 7d 3a |:LDMNEIA0!,{12}:| 000001a0 84 52 32 2c 33 2c 31 32 2c 4c 53 4c 34 3a 4d 4f |.R2,3,12,LSL4:MO| 000001b0 56 31 35 2c 31 34 3a 2e 72 65 74 75 72 6e 34 0d |V15,14:.return4.| 000001c0 00 6e 2d 20 20 20 4c 44 4d 46 44 31 33 21 2c 7b |.n- LDMFD13!,{| 000001d0 32 2c 34 7d 3a 53 55 42 53 34 2c 34 2c 23 31 3a |2,4}:SUBS4,4,#1:| 000001e0 42 4e 45 20 63 6f 64 65 34 6c 70 31 0d 00 78 60 |BNE code4lp1..x`| 000001f0 20 20 4c 44 4d 46 44 31 33 2c 7b 30 2d 31 7d 3a | LDMFD13,{0-1}:| 00000200 4c 44 52 32 2c 5b 31 33 2c 23 32 30 5d 3a 4c 44 |LDR2,[13,#20]:LD| 00000210 52 31 31 2c 68 73 69 7a 65 73 65 63 74 69 6f 6e |R11,hsizesection| 00000220 73 3a 4c 44 52 31 32 2c 73 63 72 65 65 6e 77 69 |s:LDR12,screenwi| 00000230 64 74 68 3a 2e 63 6f 64 65 34 6c 70 32 3a 53 54 |dth:.code4lp2:ST| 00000240 4d 46 44 31 33 21 2c 7b 31 2d 32 7d 0d 00 82 39 |MFD13!,{1-2}...9| 00000250 20 20 20 41 44 44 30 2c 31 2c 31 32 3a 54 53 54 | ADD0,1,12:TST| 00000260 31 31 2c 23 34 3a 4c 44 4d 4e 45 49 41 31 21 2c |11,#4:LDMNEIA1!,| 00000270 7b 33 2d 36 7d 3a 53 54 4d 4e 45 49 41 30 21 2c |{3-6}:STMNEIA0!,| 00000280 7b 33 2d 36 7d 0d 00 8c 55 20 20 20 20 54 53 54 |{3-6}...U TST| 00000290 31 31 2c 23 32 3a 4c 44 4d 4e 45 49 41 31 21 2c |11,#2:LDMNEIA1!,| 000002a0 7b 33 2d 34 7d 3a 53 54 4d 4e 45 49 41 30 21 2c |{3-4}:STMNEIA0!,| 000002b0 7b 33 2d 34 7d 3a 54 53 54 31 31 2c 23 31 3a 4c |{3-4}:TST11,#1:L| 000002c0 44 4d 4e 45 49 41 31 21 2c 7b 33 7d 3a 53 54 4d |DMNEIA1!,{3}:STM| 000002d0 4e 45 49 41 30 21 2c 7b 33 7d 0d 00 96 5b 20 20 |NEIA0!,{3}...[ | 000002e0 20 42 49 43 53 32 2c 31 31 2c 23 37 3a 42 45 51 | BICS2,11,#7:BEQ| 000002f0 20 63 34 64 33 3a 2e 63 34 6c 70 33 3a 4c 44 4d | c4d3:.c4lp3:LDM| 00000300 49 41 31 21 2c 7b 33 2d 31 30 7d 3a 53 54 4d 49 |IA1!,{3-10}:STMI| 00000310 41 30 21 2c 7b 33 2d 31 30 7d 3a 53 55 42 53 32 |A0!,{3-10}:SUBS2| 00000320 2c 32 2c 23 38 3a 42 47 54 20 63 34 6c 70 33 3a |,2,#8:BGT c4lp3:| 00000330 2e 63 34 64 33 0d 00 a0 3e 20 20 20 4c 44 4d 46 |.c4d3...> LDMF| 00000340 44 31 33 21 2c 7b 31 2d 32 7d 3a 41 44 44 31 2c |D13!,{1-2}:ADD1,| 00000350 31 2c 31 32 3a 53 55 42 53 32 2c 32 2c 23 31 3a |1,12:SUBS2,2,#1:| 00000360 42 4e 45 20 63 6f 64 65 34 6c 70 32 3a 4d 4f 56 |BNE code4lp2:MOV| 00000370 36 2c 31 0d 00 aa 3e 20 4c 44 4d 46 44 31 33 21 |6,1...> LDMFD13!| 00000380 2c 7b 30 2d 35 7d 3a 41 44 44 30 2c 30 2c 31 32 |,{0-5}:ADD0,0,12| 00000390 3a 41 44 44 31 2c 36 2c 31 32 3a 53 55 42 53 33 |:ADD1,6,12:SUBS3| 000003a0 2c 33 2c 23 31 3a 42 4e 45 20 63 6f 64 65 34 6c |,3,#1:BNE code4l| 000003b0 70 0d 00 b4 11 4c 44 4d 46 44 31 33 21 2c 7b 31 |p....LDMFD13!,{1| 000003c0 35 7d 0d 00 be 04 0d 00 c8 46 2e 62 72 61 6e 63 |5}.......F.branc| 000003d0 68 74 61 62 6c 65 3a 26 30 3a 26 30 3a 26 30 3a |htable:&0:&0:&0:| 000003e0 26 30 3a 26 30 3a 26 30 3a 26 30 3a 26 30 3a 26 |&0:&0:&0:&0:&0:&| 000003f0 30 3a 26 30 3a 26 30 3a 26 30 3a 26 30 3a 26 30 |0:&0:&0:&0:&0:&0| 00000400 3a 26 30 3a 26 30 3a 26 30 3a 26 30 0d 00 d2 51 |:&0:&0:&0:&0...Q| 00000410 20 26 30 3a 26 30 3a 26 30 3a 26 30 3a 26 30 3a | &0:&0:&0:&0:&0:| 00000420 26 30 3a 26 30 3a 26 30 3a 26 30 3a 26 30 3a 26 |&0:&0:&0:&0:&0:&| 00000430 30 3a 26 30 3a 26 30 3a 26 30 3a 26 30 3a 26 30 |0:&0:&0:&0:&0:&0| 00000440 3a 26 30 3a 26 30 3a 2e 62 72 61 6e 63 68 73 74 |:&0:&0:.branchst| 00000450 61 72 74 3a 42 20 72 65 74 75 72 6e 34 0d 00 dc |art:B return4...| 00000460 04 0d 00 e6 05 5d 0d 00 f0 04 0d 00 fa 44 e3 6c |.....].......D.l| 00000470 6f 67 62 70 70 25 3d 30 b8 33 3a 62 70 70 25 3d |ogbpp%=0.3:bpp%=| 00000480 31 3c 3c 6c 6f 67 62 70 70 25 3a 6d 61 73 6b 25 |1<<logbpp%:mask%| 00000490 3d 28 31 3c 3c 62 70 70 25 29 2d 31 3a 73 68 69 |=(1<<bpp%)-1:shi| 000004a0 66 74 25 3d 31 3c 3c 6c 6f 67 62 70 70 25 0d 01 |ft%=1<<logbpp%..| 000004b0 04 20 20 7a 6f 6f 6d 25 3d 36 3a 62 79 25 3d 62 |. zoom%=6:by%=b| 000004c0 70 70 25 2a 7a 6f 6f 6d 25 2d 62 70 70 25 0d 01 |pp%*zoom%-bpp%..| 000004d0 0e 34 20 62 72 61 6e 63 68 74 61 62 6c 65 21 28 |.4 branchtable!(| 000004e0 39 2a 6c 6f 67 62 70 70 25 2b 7a 6f 6f 6d 25 3c |9*logbpp%+zoom%<| 000004f0 3c 32 29 3d 50 25 2d 62 72 61 6e 63 68 73 74 61 |<2)=P%-branchsta| 00000500 72 74 0d 01 18 0f 20 c8 8e 6c 6f 67 62 70 70 25 |rt.... ..logbpp%| 00000510 ca 0d 01 22 08 20 20 c9 33 0d 01 2c 44 20 20 20 |...". .3..,D | 00000520 5b 4f 50 54 70 61 73 73 3a 80 33 2c 32 2c 23 26 |[OPTpass:.3,2,#&| 00000530 46 46 3a 84 52 33 2c 33 2c 33 2c 52 4f 52 23 38 |FF:.R3,3,3,ROR#8| 00000540 3a 84 52 33 2c 33 2c 33 2c 52 4f 52 23 31 36 3a |:.R3,3,3,ROR#16:| 00000550 4d 4f 56 34 2c 33 2c 4c 53 52 23 31 36 0d 01 36 |MOV4,3,LSR#16..6| 00000560 40 20 20 20 20 80 35 2c 32 2c 23 26 46 46 3c 3c |@ .5,2,#&FF<<| 00000570 38 3a 84 52 35 2c 35 2c 35 2c 52 4f 52 23 38 3a |8:.R5,5,5,ROR#8:| 00000580 84 52 35 2c 35 2c 35 2c 52 4f 52 23 31 36 3a 84 |.R5,5,5,ROR#16:.| 00000590 52 34 2c 34 2c 35 2c 4c 53 4c 23 31 36 0d 01 40 |R4,4,5,LSL#16..@| 000005a0 40 20 20 20 20 80 36 2c 32 2c 23 26 46 46 3c 3c |@ .6,2,#&FF<<| 000005b0 31 36 3a 84 52 36 2c 36 2c 36 2c 52 4f 52 23 38 |16:.R6,6,6,ROR#8| 000005c0 3a 84 52 36 2c 36 2c 36 2c 52 4f 52 23 31 36 3a |:.R6,6,6,ROR#16:| 000005d0 4d 4f 56 37 2c 36 2c 4c 53 52 23 31 36 0d 01 4a |MOV7,6,LSR#16..J| 000005e0 43 20 20 20 20 80 38 2c 32 2c 23 26 46 46 3c 3c |C .8,2,#&FF<<| 000005f0 32 34 3a 84 52 38 2c 38 2c 38 2c 52 4f 52 23 38 |24:.R8,8,8,ROR#8| 00000600 3a 84 52 38 2c 38 2c 38 2c 52 4f 52 23 31 36 3a |:.R8,8,8,ROR#16:| 00000610 84 52 37 2c 37 2c 38 2c 4c 53 4c 23 31 36 3a 5d |.R7,7,8,LSL#16:]| 00000620 0d 01 54 0c 20 20 c9 30 2c 31 2c 32 0d 01 5e 48 |..T. .0,1,2..^H| 00000630 20 20 20 e3 6c 6f 70 25 3d 30 b8 31 3a 72 65 67 | .lop%=0.1:reg| 00000640 25 3d 6c 6f 70 25 2a 33 2b 33 3a 6e 65 78 25 3d |%=lop%*3+3:nex%=| 00000650 6c 6f 70 25 2a 33 2b 34 3a 6c 61 73 25 3d 6c 6f |lop%*3+4:las%=lo| 00000660 70 25 2a 33 2b 35 3a 74 6d 70 25 3d 6c 6f 70 25 |p%*3+5:tmp%=lop%| 00000670 2a 33 2b 36 0d 01 68 12 20 20 20 20 c8 8e 6c 6f |*3+6..h. ..lo| 00000680 67 62 70 70 25 ca 0d 01 72 0b 20 20 20 20 20 c9 |gbpp%...r. .| 00000690 32 0d 01 7c 48 20 20 20 20 20 20 5b 4f 50 54 70 |2..|H [OPTp| 000006a0 61 73 73 3a 80 20 72 65 67 25 2c 32 2c 23 26 46 |ass:. reg%,2,#&F| 000006b0 3a 80 20 6e 65 78 25 2c 32 2c 23 26 46 3c 3c 34 |:. nex%,2,#&F<<4| 000006c0 3a 84 52 20 72 65 67 25 2c 72 65 67 25 2c 6e 65 |:.R reg%,reg%,ne| 000006d0 78 25 2c 4c 53 4c 23 32 30 0d 01 86 53 20 20 20 |x%,LSL#20...S | 000006e0 20 20 20 20 20 84 52 20 72 65 67 25 2c 72 65 67 | .R reg%,reg| 000006f0 25 2c 72 65 67 25 2c 4c 53 4c 23 34 3a 84 52 20 |%,reg%,LSL#4:.R | 00000700 72 65 67 25 2c 72 65 67 25 2c 72 65 67 25 2c 4c |reg%,reg%,reg%,L| 00000710 53 4c 23 38 3a 84 52 20 72 65 67 25 2c 72 65 67 |SL#8:.R reg%,reg| 00000720 25 2c 72 65 67 25 2c 4c 53 4c 23 38 0d 01 90 47 |%,reg%,LSL#8...G| 00000730 20 20 20 20 20 20 20 80 20 6e 65 78 25 2c 32 2c | . nex%,2,| 00000740 23 26 46 3c 3c 38 3a 4d 4f 56 20 6e 65 78 25 2c |#&F<<8:MOV nex%,| 00000750 6e 65 78 25 2c 4c 53 4c 23 38 3a 84 52 20 6e 65 |nex%,LSL#8:.R ne| 00000760 78 25 2c 6e 65 78 25 2c 72 65 67 25 2c 4c 53 52 |x%,nex%,reg%,LSR| 00000770 23 32 38 0d 01 9a 3b 20 20 20 20 20 20 20 20 84 |#28...; .| 00000780 52 20 6e 65 78 25 2c 6e 65 78 25 2c 6e 65 78 25 |R nex%,nex%,nex%| 00000790 2c 4c 53 4c 23 34 3a 84 52 20 6e 65 78 25 2c 6e |,LSL#4:.R nex%,n| 000007a0 65 78 25 2c 6e 65 78 25 2c 4c 53 4c 23 38 0d 01 |ex%,nex%,LSL#8..| 000007b0 a4 4b 20 20 20 20 20 20 20 80 20 6c 61 73 25 2c |.K . las%,| 000007c0 32 2c 23 26 46 3c 3c 31 32 3a 84 52 20 6c 61 73 |2,#&F<<12:.R las| 000007d0 25 2c 6c 61 73 25 2c 6c 61 73 25 2c 4c 53 52 23 |%,las%,las%,LSR#| 000007e0 34 3a 84 52 20 6c 61 73 25 2c 6c 61 73 25 2c 6c |4:.R las%,las%,l| 000007f0 61 73 25 2c 4c 53 4c 23 38 0d 01 ae 3e 20 20 20 |as%,LSL#8...> | 00000800 20 20 20 20 20 84 52 20 6c 61 73 25 2c 6c 61 73 | .R las%,las| 00000810 25 2c 6c 61 73 25 2c 4c 53 4c 23 38 3a 84 52 20 |%,las%,LSL#8:.R | 00000820 6c 61 73 25 2c 6c 61 73 25 2c 6e 65 78 25 2c 4c |las%,las%,nex%,L| 00000830 53 52 23 32 34 3a 5d 0d 01 b8 0b 20 20 20 20 20 |SR#24:].... | 00000840 c9 31 0d 01 c2 46 20 20 20 20 20 20 5b 4f 50 54 |.1...F [OPT| 00000850 70 61 73 73 3a 80 20 72 65 67 25 2c 32 2c 23 33 |pass:. reg%,2,#3| 00000860 3a 80 20 74 6d 70 25 2c 32 2c 23 33 3c 3c 32 3a |:. tmp%,2,#3<<2:| 00000870 84 52 20 72 65 67 25 2c 72 65 67 25 2c 74 6d 70 |.R reg%,reg%,tmp| 00000880 25 2c 4c 53 4c 23 31 30 0d 01 cc 4b 20 20 20 20 |%,LSL#10...K | 00000890 20 20 20 20 80 20 74 6d 70 25 2c 32 2c 23 33 3c | . tmp%,2,#3<| 000008a0 3c 34 3a 84 52 20 72 65 67 25 2c 72 65 67 25 2c |<4:.R reg%,reg%,| 000008b0 74 6d 70 25 2c 4c 53 4c 23 32 30 3a 84 52 20 72 |tmp%,LSL#20:.R r| 000008c0 65 67 25 2c 72 65 67 25 2c 72 65 67 25 2c 4c 53 |eg%,reg%,reg%,LS| 000008d0 4c 23 32 0d 01 d6 3b 20 20 20 20 20 20 20 20 84 |L#2...; .| 000008e0 52 20 72 65 67 25 2c 72 65 67 25 2c 72 65 67 25 |R reg%,reg%,reg%| 000008f0 2c 4c 53 4c 23 34 3a 84 52 20 72 65 67 25 2c 72 |,LSL#4:.R reg%,r| 00000900 65 67 25 2c 72 65 67 25 2c 4c 53 4c 23 34 0d 01 |eg%,reg%,LSL#4..| 00000910 e0 41 20 20 20 20 20 20 20 80 20 6e 65 78 25 2c |.A . nex%,| 00000920 32 2c 23 33 3c 3c 36 3a 80 20 74 6d 70 25 2c 32 |2,#3<<6:. tmp%,2| 00000930 2c 23 33 3c 3c 38 3a 84 52 20 6e 65 78 25 2c 6e |,#3<<8:.R nex%,n| 00000940 65 78 25 2c 74 6d 70 25 2c 4c 53 4c 23 31 30 0d |ex%,tmp%,LSL#10.| 00000950 01 ea 4c 20 20 20 20 20 20 20 20 80 20 74 6d 70 |..L . tmp| 00000960 25 2c 32 2c 23 33 3c 3c 31 30 3a 84 52 20 6e 65 |%,2,#3<<10:.R ne| 00000970 78 25 2c 6e 65 78 25 2c 74 6d 70 25 2c 4c 53 4c |x%,nex%,tmp%,LSL| 00000980 23 32 30 3a 84 52 20 6e 65 78 25 2c 6e 65 78 25 |#20:.R nex%,nex%| 00000990 2c 6e 65 78 25 2c 4c 53 52 23 32 0d 01 f4 54 20 |,nex%,LSR#2...T | 000009a0 20 20 20 20 20 20 20 84 52 20 6e 65 78 25 2c 6e | .R nex%,n| 000009b0 65 78 25 2c 6e 65 78 25 2c 4c 53 4c 23 34 3a 84 |ex%,nex%,LSL#4:.| 000009c0 52 20 6e 65 78 25 2c 6e 65 78 25 2c 6e 65 78 25 |R nex%,nex%,nex%| 000009d0 2c 4c 53 4c 23 34 3a 84 52 20 6e 65 78 25 2c 6e |,LSL#4:.R nex%,n| 000009e0 65 78 25 2c 72 65 67 25 2c 4c 53 52 23 32 38 0d |ex%,reg%,LSR#28.| 000009f0 01 fe 43 20 20 20 20 20 20 20 80 20 6c 61 73 25 |..C . las%| 00000a00 2c 32 2c 23 33 3c 3c 31 32 3a 80 20 74 6d 70 25 |,2,#3<<12:. tmp%| 00000a10 2c 32 2c 23 33 3c 3c 31 34 3a 84 52 20 6c 61 73 |,2,#3<<14:.R las| 00000a20 25 2c 6c 61 73 25 2c 74 6d 70 25 2c 4c 53 4c 23 |%,las%,tmp%,LSL#| 00000a30 31 30 0d 02 08 54 20 20 20 20 20 20 20 20 84 52 |10...T .R| 00000a40 20 6c 61 73 25 2c 6c 61 73 25 2c 6c 61 73 25 2c | las%,las%,las%,| 00000a50 4c 53 4c 23 32 3a 84 52 20 6c 61 73 25 2c 6c 61 |LSL#2:.R las%,la| 00000a60 73 25 2c 6c 61 73 25 2c 4c 53 52 23 34 3a 84 52 |s%,las%,LSR#4:.R| 00000a70 20 6c 61 73 25 2c 6c 61 73 25 2c 6e 65 78 25 2c | las%,las%,nex%,| 00000a80 4c 53 52 23 32 38 0d 02 12 25 20 20 20 20 20 20 |LSR#28...% | 00000a90 20 20 84 52 20 6c 61 73 25 2c 6c 61 73 25 2c 6c | .R las%,las%,l| 00000aa0 61 73 25 2c 4c 53 4c 23 34 3a 5d 0d 02 1c 0b 20 |as%,LSL#4:].... | 00000ab0 20 20 20 20 c9 30 0d 02 26 45 20 20 20 20 20 20 | .0..&E | 00000ac0 5b 4f 50 54 70 61 73 73 3a 80 20 72 65 67 25 2c |[OPTpass:. reg%,| 00000ad0 32 2c 23 31 3a 80 20 74 6d 70 25 2c 32 2c 23 31 |2,#1:. tmp%,2,#1| 00000ae0 3c 3c 31 3a 84 52 20 72 65 67 25 2c 72 65 67 25 |<<1:.R reg%,reg%| 00000af0 2c 74 6d 70 25 2c 4c 53 4c 23 35 0d 02 30 5b 20 |,tmp%,LSL#5..0[ | 00000b00 20 20 20 20 20 20 20 80 20 74 6d 70 25 2c 32 2c | . tmp%,2,| 00000b10 23 31 3c 3c 32 3a 84 52 20 72 65 67 25 2c 72 65 |#1<<2:.R reg%,re| 00000b20 67 25 2c 74 6d 70 25 2c 4c 53 4c 23 31 30 3a 80 |g%,tmp%,LSL#10:.| 00000b30 20 74 6d 70 25 2c 32 2c 23 31 3c 3c 33 3a 84 52 | tmp%,2,#1<<3:.R| 00000b40 20 72 65 67 25 2c 72 65 67 25 2c 74 6d 70 25 2c | reg%,reg%,tmp%,| 00000b50 4c 53 4c 23 31 35 0d 02 3a 5b 20 20 20 20 20 20 |LSL#15..:[ | 00000b60 20 20 80 20 74 6d 70 25 2c 32 2c 23 31 3c 3c 34 | . tmp%,2,#1<<4| 00000b70 3a 84 52 20 72 65 67 25 2c 72 65 67 25 2c 74 6d |:.R reg%,reg%,tm| 00000b80 70 25 2c 4c 53 4c 23 32 30 3a 80 20 74 6d 70 25 |p%,LSL#20:. tmp%| 00000b90 2c 32 2c 23 31 3c 3c 35 3a 84 52 20 72 65 67 25 |,2,#1<<5:.R reg%| 00000ba0 2c 72 65 67 25 2c 74 6d 70 25 2c 4c 53 4c 23 32 |,reg%,tmp%,LSL#2| 00000bb0 35 0d 02 44 53 20 20 20 20 20 20 20 20 84 52 20 |5..DS .R | 00000bc0 72 65 67 25 2c 72 65 67 25 2c 72 65 67 25 2c 4c |reg%,reg%,reg%,L| 00000bd0 53 4c 23 31 3a 84 52 20 72 65 67 25 2c 72 65 67 |SL#1:.R reg%,reg| 00000be0 25 2c 72 65 67 25 2c 4c 53 4c 23 32 3a 84 52 20 |%,reg%,LSL#2:.R | 00000bf0 72 65 67 25 2c 72 65 67 25 2c 72 65 67 25 2c 4c |reg%,reg%,reg%,L| 00000c00 53 4c 23 32 0d 02 4e 40 20 20 20 20 20 20 20 80 |SL#2..N@ .| 00000c10 20 6e 65 78 25 2c 32 2c 23 31 3c 3c 36 3a 80 20 | nex%,2,#1<<6:. | 00000c20 74 6d 70 25 2c 32 2c 23 31 3c 3c 37 3a 84 52 20 |tmp%,2,#1<<7:.R | 00000c30 6e 65 78 25 2c 6e 65 78 25 2c 74 6d 70 25 2c 4c |nex%,nex%,tmp%,L| 00000c40 53 4c 23 35 0d 02 58 5b 20 20 20 20 20 20 20 20 |SL#5..X[ | 00000c50 80 20 74 6d 70 25 2c 32 2c 23 31 3c 3c 38 3a 84 |. tmp%,2,#1<<8:.| 00000c60 52 20 6e 65 78 25 2c 6e 65 78 25 2c 74 6d 70 25 |R nex%,nex%,tmp%| 00000c70 2c 4c 53 4c 23 31 30 3a 80 20 74 6d 70 25 2c 32 |,LSL#10:. tmp%,2| 00000c80 2c 23 31 3c 3c 39 3a 84 52 20 6e 65 78 25 2c 6e |,#1<<9:.R nex%,n| 00000c90 65 78 25 2c 74 6d 70 25 2c 4c 53 4c 23 31 35 0d |ex%,tmp%,LSL#15.| 00000ca0 02 62 4c 20 20 20 20 20 20 20 20 80 20 74 6d 70 |.bL . tmp| 00000cb0 25 2c 32 2c 23 31 3c 3c 31 30 3a 84 52 20 6e 65 |%,2,#1<<10:.R ne| 00000cc0 78 25 2c 6e 65 78 25 2c 74 6d 70 25 2c 4c 53 4c |x%,nex%,tmp%,LSL| 00000cd0 23 32 30 3a 84 52 20 6e 65 78 25 2c 6e 65 78 25 |#20:.R nex%,nex%| 00000ce0 2c 6e 65 78 25 2c 4c 53 4c 23 31 0d 02 6c 54 20 |,nex%,LSL#1..lT | 00000cf0 20 20 20 20 20 20 20 84 52 20 6e 65 78 25 2c 6e | .R nex%,n| 00000d00 65 78 25 2c 6e 65 78 25 2c 4c 53 52 23 32 3a 84 |ex%,nex%,LSR#2:.| 00000d10 52 20 6e 65 78 25 2c 6e 65 78 25 2c 72 65 67 25 |R nex%,nex%,reg%| 00000d20 2c 4c 53 52 23 33 30 3a 84 52 20 6e 65 78 25 2c |,LSR#30:.R nex%,| 00000d30 6e 65 78 25 2c 6e 65 78 25 2c 4c 53 4c 23 32 0d |nex%,nex%,LSL#2.| 00000d40 02 76 55 20 20 20 20 20 20 20 80 20 6c 61 73 25 |.vU . las%| 00000d50 2c 32 2c 23 31 3c 3c 31 31 3a 4d 4f 56 6c 61 73 |,2,#1<<11:MOVlas| 00000d60 25 2c 6c 61 73 25 2c 4c 53 52 23 39 3a 80 20 74 |%,las%,LSR#9:. t| 00000d70 6d 70 25 2c 32 2c 23 31 3c 3c 31 32 3a 84 52 20 |mp%,2,#1<<12:.R | 00000d80 6c 61 73 25 2c 6c 61 73 25 2c 74 6d 70 25 2c 4c |las%,las%,tmp%,L| 00000d90 53 52 23 34 0d 02 77 5b 20 20 20 20 20 20 20 20 |SR#4..w[ | 00000da0 80 20 74 6d 70 25 2c 32 2c 23 31 3c 3c 31 33 3a |. tmp%,2,#1<<13:| 00000db0 84 52 20 6c 61 73 25 2c 6c 61 73 25 2c 74 6d 70 |.R las%,las%,tmp| 00000dc0 25 2c 4c 53 4c 23 31 3a 80 20 74 6d 70 25 2c 32 |%,LSL#1:. tmp%,2| 00000dd0 2c 23 31 3c 3c 31 34 3a 84 52 20 6c 61 73 25 2c |,#1<<14:.R las%,| 00000de0 6c 61 73 25 2c 74 6d 70 25 2c 4c 53 4c 23 36 0d |las%,tmp%,LSL#6.| 00000df0 02 78 4c 20 20 20 20 20 20 20 20 80 20 74 6d 70 |.xL . tmp| 00000e00 25 2c 32 2c 23 31 3c 3c 31 35 3a 84 52 20 6c 61 |%,2,#1<<15:.R la| 00000e10 73 25 2c 6c 61 73 25 2c 74 6d 70 25 2c 4c 53 4c |s%,las%,tmp%,LSL| 00000e20 23 31 31 3a 84 52 20 6c 61 73 25 2c 6c 61 73 25 |#11:.R las%,las%| 00000e30 2c 6c 61 73 25 2c 4c 53 4c 23 31 0d 02 79 56 20 |,las%,LSL#1..yV | 00000e40 20 20 20 20 20 20 20 84 52 20 6c 61 73 25 2c 6c | .R las%,l| 00000e50 61 73 25 2c 6c 61 73 25 2c 4c 53 4c 23 32 3a 84 |as%,las%,LSL#2:.| 00000e60 52 20 6c 61 73 25 2c 6c 61 73 25 2c 6c 61 73 25 |R las%,las%,las%| 00000e70 2c 4c 53 4c 23 32 3a 84 52 20 6c 61 73 25 2c 6c |,LSL#2:.R las%,l| 00000e80 61 73 25 2c 6e 65 78 25 2c 4c 53 52 23 33 30 3a |as%,nex%,LSR#30:| 00000e90 5d 0d 02 8a 09 20 20 20 20 cb 0d 02 94 28 20 20 |].... ....( | 00000ea0 20 20 e7 6c 6f 70 25 3d 30 3a 5b 4f 50 54 70 61 | .lop%=0:[OPTpa| 00000eb0 73 73 3a 4d 4f 56 32 2c 32 2c 4c 53 52 23 31 36 |ss:MOV2,2,LSR#16| 00000ec0 3a 5d 0d 02 9e 08 20 20 20 ed 0d 02 a8 06 20 cb |:].... ..... .| 00000ed0 0d 02 b2 27 20 5b 4f 50 54 70 61 73 73 3a 53 54 |...' [OPTpass:ST| 00000ee0 4d 49 41 31 21 2c 7b 33 2d 38 7d 3a 42 20 72 65 |MIA1!,{3-8}:B re| 00000ef0 74 75 72 6e 34 3a 5d 0d 02 bc 05 ed 0d 02 c6 04 |turn4:].........| 00000f00 0d 02 d0 44 e3 6c 6f 67 62 70 70 25 3d 30 b8 33 |...D.logbpp%=0.3| 00000f10 3a 62 70 70 25 3d 31 3c 3c 6c 6f 67 62 70 70 25 |:bpp%=1<<logbpp%| 00000f20 3a 6d 61 73 6b 25 3d 28 31 3c 3c 62 70 70 25 29 |:mask%=(1<<bpp%)| 00000f30 2d 31 3a 73 68 69 66 74 25 3d 31 3c 3c 6c 6f 67 |-1:shift%=1<<log| 00000f40 62 70 70 25 0d 02 da 20 20 7a 6f 6f 6d 25 3d 33 |bpp%... zoom%=3| 00000f50 3a 62 79 25 3d 62 70 70 25 2a 7a 6f 6f 6d 25 2d |:by%=bpp%*zoom%-| 00000f60 62 70 70 25 0d 02 e4 34 20 62 72 61 6e 63 68 74 |bpp%...4 brancht| 00000f70 61 62 6c 65 21 28 39 2a 6c 6f 67 62 70 70 25 2b |able!(9*logbpp%+| 00000f80 7a 6f 6f 6d 25 3c 3c 32 29 3d 50 25 2d 62 72 61 |zoom%<<2)=P%-bra| 00000f90 6e 63 68 73 74 61 72 74 0d 02 ee 10 20 e7 6c 6f |nchstart.... .lo| 00000fa0 67 62 70 70 25 3d 33 8c 0d 02 f8 50 20 20 5b 4f |gbpp%=3....P [O| 00000fb0 50 54 70 61 73 73 3a 80 33 2c 32 2c 23 26 46 46 |PTpass:.3,2,#&FF| 00000fc0 3a 80 36 2c 32 2c 23 26 46 46 3c 3c 38 3a 84 52 |:.6,2,#&FF<<8:.R| 00000fd0 33 2c 33 2c 36 2c 4c 53 4c 23 31 36 3a 84 52 33 |3,3,6,LSL#16:.R3| 00000fe0 2c 33 2c 33 2c 4c 53 4c 23 38 3a 84 52 33 2c 33 |,3,3,LSL#8:.R3,3| 00000ff0 2c 33 2c 4c 53 4c 23 38 0d 03 02 30 20 20 20 80 |,3,LSL#8...0 .| 00001000 37 2c 32 2c 23 26 46 46 3c 3c 31 36 3a 84 52 34 |7,2,#&FF<<16:.R4| 00001010 2c 37 2c 36 2c 4c 53 52 23 38 3a 84 52 34 2c 34 |,7,6,LSR#8:.R4,4| 00001020 2c 34 2c 4c 53 4c 23 38 0d 03 0c 41 20 20 20 80 |,4,LSL#8...A .| 00001030 35 2c 32 2c 23 26 46 46 3c 3c 32 34 3a 84 52 35 |5,2,#&FF<<24:.R5| 00001040 2c 35 2c 35 2c 4c 53 52 23 38 3a 84 52 35 2c 35 |,5,5,LSR#8:.R5,5| 00001050 2c 35 2c 4c 53 52 23 38 3a 84 52 35 2c 35 2c 37 |,5,LSR#8:.R5,5,7| 00001060 2c 4c 53 52 23 31 36 3a 5d 0d 03 16 06 20 cc 0d |,LSR#16:].... ..| 00001070 03 20 3e 20 20 e3 6c 6f 70 25 3d 30 b8 32 3a 72 |. > .lop%=0.2:r| 00001080 65 67 25 3d 6c 6f 70 25 2b 33 3a 63 6f 72 25 3d |eg%=lop%+3:cor%=| 00001090 72 65 67 25 2b 33 3a 74 68 69 73 73 68 69 66 74 |reg%+3:thisshift| 000010a0 25 3d 73 68 69 66 74 25 2a 6c 6f 70 25 0d 03 2a |%=shift%*lop%..*| 000010b0 2d 20 20 20 5b 4f 50 54 70 61 73 73 3a 80 20 72 |- [OPTpass:. r| 000010c0 65 67 25 2c 32 2c 23 6d 61 73 6b 25 3c 3c 74 68 |eg%,2,#mask%<<th| 000010d0 69 73 73 68 69 66 74 25 3a 5d 0d 03 34 29 20 20 |isshift%:]..4) | 000010e0 20 65 6e 64 25 3d 28 31 3c 3c 35 2d 6c 6f 67 62 | end%=(1<<5-logb| 000010f0 70 70 25 29 2f 7a 6f 6f 6d 25 2d 28 72 65 67 25 |pp%)/zoom%-(reg%| 00001100 3c 35 29 0d 03 3e 4a 20 20 20 e3 70 69 78 65 6c |<5)..>J .pixel| 00001110 25 3d 31 b8 65 6e 64 25 2d 31 3a 74 68 69 73 73 |%=1.end%-1:thiss| 00001120 68 69 66 74 25 3d 28 70 69 78 65 6c 25 2b 6c 6f |hift%=(pixel%+lo| 00001130 70 25 29 2a 73 68 69 66 74 25 3a 74 68 69 73 62 |p%)*shift%:thisb| 00001140 79 25 3d 70 69 78 65 6c 25 2a 62 79 25 0d 03 48 |y%=pixel%*by%..H| 00001150 4c 20 20 20 20 5b 4f 50 54 70 61 73 73 3a 80 20 |L [OPTpass:. | 00001160 63 6f 72 25 2c 32 2c 23 6d 61 73 6b 25 3c 3c 74 |cor%,2,#mask%<<t| 00001170 68 69 73 73 68 69 66 74 25 3a 84 52 20 72 65 67 |hisshift%:.R reg| 00001180 25 2c 72 65 67 25 2c 63 6f 72 25 2c 4c 53 4c 23 |%,reg%,cor%,LSL#| 00001190 74 68 69 73 62 79 25 3a 5d 0d 03 52 08 20 20 20 |thisby%:]..R. | 000011a0 ed 0d 03 5c 0e 20 20 20 c8 8e 72 65 67 25 ca 0d |...\. ..reg%..| 000011b0 03 66 21 20 20 20 20 c9 33 3a 6c 6f 73 65 25 3d |.f! .3:lose%=| 000011c0 35 2b 28 6c 6f 67 62 70 70 25 3d 32 29 3c 3c 31 |5+(logbpp%=2)<<1| 000011d0 0d 03 70 48 20 20 20 20 20 5b 4f 50 54 70 61 73 |..pH [OPTpas| 000011e0 73 3a 84 52 20 33 2c 33 2c 33 2c 4c 53 4c 23 62 |s:.R 3,3,3,LSL#b| 000011f0 70 70 25 3a 84 52 20 33 2c 33 2c 33 2c 4c 53 4c |pp%:.R 3,3,3,LSL| 00001200 23 62 70 70 25 3a 4d 4f 56 32 2c 32 2c 4c 53 52 |#bpp%:MOV2,2,LSR| 00001210 23 6c 6f 73 65 25 3a 5d 0d 03 7a 21 20 20 20 20 |#lose%:]..z! | 00001220 c9 34 3a 6c 6f 73 65 25 3d 34 2d 28 6c 6f 67 62 |.4:lose%=4-(logb| 00001230 70 70 25 3d 30 29 3c 3c 31 0d 03 84 5f 20 20 20 |pp%=0)<<1..._ | 00001240 20 20 5b 4f 50 54 70 61 73 73 3a 84 52 20 34 2c | [OPTpass:.R 4,| 00001250 34 2c 34 2c 4c 53 4c 23 62 70 70 25 3a 84 52 20 |4,4,LSL#bpp%:.R | 00001260 34 2c 34 2c 34 2c 4c 53 4c 23 62 70 70 25 3a 84 |4,4,4,LSL#bpp%:.| 00001270 52 34 2c 34 2c 36 2c 4c 53 52 23 74 68 61 74 73 |R4,4,6,LSR#thats| 00001280 68 69 66 74 25 3a 4d 4f 56 32 2c 32 2c 4c 53 52 |hift%:MOV2,2,LSR| 00001290 23 6c 6f 73 65 25 3a 5d 0d 03 8e 50 20 20 20 20 |#lose%:]...P | 000012a0 c9 35 3a 5b 4f 50 54 70 61 73 73 3a 84 52 20 35 |.5:[OPTpass:.R 5| 000012b0 2c 35 2c 35 2c 4c 53 4c 23 62 70 70 25 3a 84 52 |,5,5,LSL#bpp%:.R| 000012c0 35 2c 35 2c 37 2c 4c 53 52 23 74 68 61 74 73 68 |5,5,7,LSR#thatsh| 000012d0 69 66 74 25 3a 84 52 20 35 2c 35 2c 35 2c 4c 53 |ift%:.R 5,5,5,LS| 000012e0 4c 23 62 70 70 25 3a 5d 0d 03 98 08 20 20 20 cb |L#bpp%:].... .| 000012f0 0d 03 a2 1c 20 20 20 74 68 61 74 73 68 69 66 74 |.... thatshift| 00001300 25 3d 74 68 69 73 73 68 69 66 74 25 0d 03 ac 07 |%=thisshift%....| 00001310 20 20 ed 0d 03 b6 06 20 cd 0d 03 c0 27 20 5b 4f | ..... ....' [O| 00001320 50 54 70 61 73 73 3a 53 54 4d 49 41 31 21 2c 7b |PTpass:STMIA1!,{| 00001330 33 2d 35 7d 3a 42 20 72 65 74 75 72 6e 34 3a 5d |3-5}:B return4:]| 00001340 0d 03 ca 05 ed 0d 03 d4 04 0d 03 de 44 e3 6c 6f |............D.lo| 00001350 67 62 70 70 25 3d 30 b8 33 3a 62 70 70 25 3d 31 |gbpp%=0.3:bpp%=1| 00001360 3c 3c 6c 6f 67 62 70 70 25 3a 6d 61 73 6b 25 3d |<<logbpp%:mask%=| 00001370 28 31 3c 3c 62 70 70 25 29 2d 31 3a 73 68 69 66 |(1<<bpp%)-1:shif| 00001380 74 25 3d 31 3c 3c 6c 6f 67 62 70 70 25 0d 03 e8 |t%=1<<logbpp%...| 00001390 47 20 e3 6c 6f 67 7a 6f 6f 6d 25 3d 31 b8 33 3a |G .logzoom%=1.3:| 000013a0 7a 6f 6f 6d 25 3d 31 3c 3c 6c 6f 67 7a 6f 6f 6d |zoom%=1<<logzoom| 000013b0 25 3a 62 79 25 3d 62 70 70 25 2a 7a 6f 6f 6d 25 |%:by%=bpp%*zoom%| 000013c0 2d 62 70 70 25 3a 66 69 6e 61 6c 25 3d 32 2b 7a |-bpp%:final%=2+z| 000013d0 6f 6f 6d 25 0d 03 f2 35 20 20 62 72 61 6e 63 68 |oom%...5 branch| 000013e0 74 61 62 6c 65 21 28 39 2a 6c 6f 67 62 70 70 25 |table!(9*logbpp%| 000013f0 2b 7a 6f 6f 6d 25 3c 3c 32 29 3d 50 25 2d 62 72 |+zoom%<<2)=P%-br| 00001400 61 6e 63 68 73 74 61 72 74 0d 03 fc 1a 20 20 e7 |anchstart.... .| 00001410 6c 6f 67 7a 6f 6f 6d 25 2b 6c 6f 67 62 70 70 25 |logzoom%+logbpp%| 00001420 3c 36 8c 0d 04 06 15 20 20 20 e3 72 65 67 25 3d |<6..... .reg%=| 00001430 33 b8 66 69 6e 61 6c 25 0d 04 10 22 20 20 20 20 |3.final%..." | 00001440 5b 4f 50 54 70 61 73 73 3a 80 20 72 65 67 25 2c |[OPTpass:. reg%,| 00001450 32 2c 23 6d 61 73 6b 25 3a 5d 0d 04 1a 22 20 20 |2,#mask%:]..." | 00001460 20 20 65 6e 64 25 3d 31 3c 3c 35 2d 6c 6f 67 62 | end%=1<<5-logb| 00001470 70 70 25 2d 6c 6f 67 7a 6f 6f 6d 25 0d 04 24 44 |pp%-logzoom%..$D| 00001480 20 20 20 20 e3 70 69 78 65 6c 25 3d 31 b8 65 6e | .pixel%=1.en| 00001490 64 25 2d 31 3a 74 68 69 73 73 68 69 66 74 25 3d |d%-1:thisshift%=| 000014a0 70 69 78 65 6c 25 2a 73 68 69 66 74 25 3a 74 68 |pixel%*shift%:th| 000014b0 69 73 62 79 25 3d 70 69 78 65 6c 25 2a 62 79 25 |isby%=pixel%*by%| 000014c0 0d 04 2e 49 20 20 20 20 20 5b 4f 50 54 70 61 73 |...I [OPTpas| 000014d0 73 3a 80 20 31 31 2c 32 2c 23 6d 61 73 6b 25 3c |s:. 11,2,#mask%<| 000014e0 3c 74 68 69 73 73 68 69 66 74 25 3a 84 52 20 72 |<thisshift%:.R r| 000014f0 65 67 25 2c 72 65 67 25 2c 31 31 2c 4c 53 4c 23 |eg%,reg%,11,LSL#| 00001500 74 68 69 73 62 79 25 3a 5d 0d 04 38 09 20 20 20 |thisby%:]..8. | 00001510 20 ed 0d 04 42 3c 20 20 20 20 e3 63 6f 6c 6c 61 | ...B< .colla| 00001520 70 73 65 25 3d 30 b8 6c 6f 67 7a 6f 6f 6d 25 2d |pse%=0.logzoom%-| 00001530 31 3a 62 69 6e 61 72 79 25 3d 31 3c 3c 63 6f 6c |1:binary%=1<<col| 00001540 6c 61 70 73 65 25 2b 6c 6f 67 62 70 70 25 0d 04 |lapse%+logbpp%..| 00001550 4c 31 20 20 20 20 20 5b 4f 50 54 70 61 73 73 3a |L1 [OPTpass:| 00001560 84 52 20 72 65 67 25 2c 72 65 67 25 2c 72 65 67 |.R reg%,reg%,reg| 00001570 25 2c 4c 53 4c 23 62 69 6e 61 72 79 25 3a 5d 0d |%,LSL#binary%:].| 00001580 04 56 09 20 20 20 20 ed 0d 04 60 15 20 20 20 20 |.V. ...`. | 00001590 e7 72 65 67 25 3c 66 69 6e 61 6c 25 8c 0d 04 6a |.reg%<final%...j| 000015a0 38 20 20 20 20 20 6c 6f 73 65 25 3d 31 3c 3c 35 |8 lose%=1<<5| 000015b0 2d 6c 6f 67 7a 6f 6f 6d 25 3a 5b 4f 50 54 70 61 |-logzoom%:[OPTpa| 000015c0 73 73 3a 4d 4f 56 32 2c 32 2c 4c 53 52 23 6c 6f |ss:MOV2,2,LSR#lo| 000015d0 73 65 25 3a 5d 0d 04 74 09 20 20 20 20 cd 0d 04 |se%:]..t. ...| 000015e0 7e 08 20 20 20 ed 0d 04 88 07 20 20 cc 0d 04 92 |~. ..... ....| 000015f0 4b 20 20 20 e3 70 69 78 65 6c 25 3d 30 b8 33 3a |K .pixel%=0.3:| 00001600 72 65 67 25 3d 33 2b 32 2a 70 69 78 65 6c 25 3a |reg%=3+2*pixel%:| 00001610 6e 65 78 74 72 65 67 25 3d 72 65 67 25 2b 31 3a |nextreg%=reg%+1:| 00001620 74 68 69 73 73 68 69 66 74 25 3d 73 68 69 66 74 |thisshift%=shift| 00001630 25 2a 70 69 78 65 6c 25 0d 04 9c 2c 20 20 20 20 |%*pixel%..., | 00001640 5b 4f 50 54 70 61 73 73 3a 80 20 72 65 67 25 2c |[OPTpass:. reg%,| 00001650 32 2c 23 6d 61 73 6b 25 3c 3c 74 68 69 73 73 68 |2,#mask%<<thissh| 00001660 69 66 74 25 0d 04 a6 4d 20 20 20 20 20 84 52 20 |ift%...M .R | 00001670 72 65 67 25 2c 72 65 67 25 2c 72 65 67 25 2c 52 |reg%,reg%,reg%,R| 00001680 4f 52 23 38 3a 84 52 20 72 65 67 25 2c 72 65 67 |OR#8:.R reg%,reg| 00001690 25 2c 72 65 67 25 2c 52 4f 52 23 31 36 3a 4d 4f |%,reg%,ROR#16:MO| 000016a0 56 20 6e 65 78 74 72 65 67 25 2c 72 65 67 25 3a |V nextreg%,reg%:| 000016b0 5d 0d 04 b0 08 20 20 20 ed 0d 04 ba 07 20 20 cd |].... ..... .| 000016c0 0d 04 c4 2d 20 20 5b 4f 50 54 70 61 73 73 3a 53 |...- [OPTpass:S| 000016d0 54 4d 49 41 31 21 2c 7b 33 2d 66 69 6e 61 6c 25 |TMIA1!,{3-final%| 000016e0 7d 3a 42 20 72 65 74 75 72 6e 34 3a 5d 0d 04 ce |}:B return4:]...| 000016f0 06 20 ed 0d 04 d8 05 ed 0d 04 e2 04 0d 04 ec 05 |. ..............| 00001700 ed 0d 04 f6 04 0d 05 00 39 c8 99 22 4f 53 5f 46 |........9.."OS_F| 00001710 69 6c 65 22 2c 31 30 2c 22 3c 4d 61 6e 67 69 66 |ile",10,"<Mangif| 00001720 69 63 61 74 65 24 44 69 72 3e 43 6f 64 65 22 2c |icate$Dir>Code",| 00001730 26 46 46 44 2c 2c 63 6f 64 65 25 2c 50 25 0d ff |&FFD,,code%,P%..| 00001740