home *** CD-ROM | disk | FTP | other *** search
/ RISC DISC 1 / RISC_DISC_1.iso / _armovie / decomp5 / makedecomp < prev   
Unknown  |  1994-04-14  |  9.3 KB

open in: MacOS 8.1     |     Win98     |     DOS

view JSON data     |     view as text

This file was not able to be converted.
This format is not currently supported by dexvert.

ConfidenceProgramDetectionMatch TypeSupport
100% file data default
100% xdgMime image/x-tga default



hex view
+--------+-------------------------+-------------------------+--------+--------+
|00000000| 0d 00 0a 12 f4 20 3e 20 | 4d 61 6b 65 44 65 63 6f |..... > |MakeDeco|
|00000010| 6d 70 0d 00 14 23 ee 20 | 85 20 ee 20 85 20 87 3a |mp...#. |. . . .:|
|00000020| 85 20 9f 2c f6 24 2b 22 | 20 61 74 20 6c 69 6e 65 |. .,.$+"| at line|
|00000030| 20 22 2b c3 9e 0d 00 1e | 12 de 20 63 6f 64 65 25 | "+.....|.. code%|
|00000040| 20 31 30 30 30 30 30 0d | 00 28 0b f2 61 73 73 28 | 100000.|.(..ass(|
|00000050| a3 29 0d 00 32 47 ff 22 | 53 61 76 65 20 3c 41 52 |.)..2G."|Save <AR|
|00000060| 4d 6f 76 69 65 24 44 69 | 72 3e 2e 44 65 63 6f 6d |Movie$Di|r>.Decom|
|00000070| 70 35 2e 44 65 63 6f 6d | 70 72 65 73 73 20 22 2b |p5.Decom|press "+|
|00000080| c3 7e 63 6f 64 65 25 2b | 22 20 22 2b c3 7e 74 61 |.~code%+|" "+.~ta|
|00000090| 62 6c 65 73 74 61 72 74 | 25 0d 00 3c 45 c8 99 22 |blestart|%..<E.."|
|000000a0| 4f 53 5f 46 69 6c 65 22 | 2c 31 37 2c 22 3c 41 52 |OS_File"|,17,"<AR|
|000000b0| 4d 6f 76 69 65 24 44 69 | 72 3e 2e 44 65 63 6f 6d |Movie$Di|r>.Decom|
|000000c0| 70 35 2e 4d 61 6b 65 44 | 65 63 6f 6d 70 22 20 b8 |p5.MakeD|ecomp" .|
|000000d0| 20 2c 2c 6c 6f 61 64 25 | 2c 65 78 65 63 25 0d 00 | ,,load%|,exec%..|
|000000e0| 46 3a c8 99 22 4f 53 5f | 46 69 6c 65 22 2c 32 2c |F:.."OS_|File",2,|
|000000f0| 22 3c 41 52 4d 6f 76 69 | 65 24 44 69 72 3e 2e 44 |"<ARMovi|e$Dir>.D|
|00000100| 65 63 6f 6d 70 35 2e 44 | 65 63 6f 6d 70 72 65 73 |ecomp5.D|ecompres|
|00000110| 73 22 2c 6c 6f 61 64 25 | 0d 00 50 3b c8 99 22 4f |s",load%|..P;.."O|
|00000120| 53 5f 46 69 6c 65 22 2c | 33 2c 22 3c 41 52 4d 6f |S_File",|3,"<ARMo|
|00000130| 76 69 65 24 44 69 72 3e | 2e 44 65 63 6f 6d 70 35 |vie$Dir>|.Decomp5|
|00000140| 2e 44 65 63 6f 6d 70 72 | 65 73 73 22 2c 2c 65 78 |.Decompr|ess",,ex|
|00000150| 65 63 25 0d 00 5a 33 ff | 22 53 65 74 74 79 70 65 |ec%..Z3.|"Settype|
|00000160| 20 3c 41 52 4d 6f 76 69 | 65 24 44 69 72 3e 2e 44 | <ARMovi|e$Dir>.D|
|00000170| 65 63 6f 6d 70 35 2e 44 | 65 63 6f 6d 70 72 65 73 |ecomp5.D|ecompres|
|00000180| 73 20 46 46 44 22 0d 00 | 64 0b f2 61 73 73 28 b9 |s FFD"..|d..ass(.|
|00000190| 29 0d 00 6e 47 ff 22 53 | 61 76 65 20 3c 41 52 4d |)..nG."S|ave <ARM|
|000001a0| 6f 76 69 65 24 44 69 72 | 3e 2e 44 65 63 6f 6d 70 |ovie$Dir|>.Decomp|
|000001b0| 35 2e 44 65 63 6f 6d 70 | 72 65 73 48 20 22 2b c3 |5.Decomp|resH "+.|
|000001c0| 7e 63 6f 64 65 25 2b 22 | 20 22 2b c3 7e 74 61 62 |~code%+"| "+.~tab|
|000001d0| 6c 65 73 74 61 72 74 25 | 0d 00 78 3a c8 99 22 4f |lestart%|..x:.."O|
|000001e0| 53 5f 46 69 6c 65 22 2c | 32 2c 22 3c 41 52 4d 6f |S_File",|2,"<ARMo|
|000001f0| 76 69 65 24 44 69 72 3e | 2e 44 65 63 6f 6d 70 35 |vie$Dir>|.Decomp5|
|00000200| 2e 44 65 63 6f 6d 70 72 | 65 73 48 22 2c 6c 6f 61 |.Decompr|esH",loa|
|00000210| 64 25 0d 00 82 3b c8 99 | 22 4f 53 5f 46 69 6c 65 |d%...;..|"OS_File|
|00000220| 22 2c 33 2c 22 3c 41 52 | 4d 6f 76 69 65 24 44 69 |",3,"<AR|Movie$Di|
|00000230| 72 3e 2e 44 65 63 6f 6d | 70 35 2e 44 65 63 6f 6d |r>.Decom|p5.Decom|
|00000240| 70 72 65 73 48 22 2c 2c | 65 78 65 63 25 0d 00 8c |presH",,|exec%...|
|00000250| 33 ff 22 53 65 74 74 79 | 70 65 20 3c 41 52 4d 6f |3."Setty|pe <ARMo|
|00000260| 76 69 65 24 44 69 72 3e | 2e 44 65 63 6f 6d 70 35 |vie$Dir>|.Decomp5|
|00000270| 2e 44 65 63 6f 6d 70 72 | 65 73 48 20 46 46 44 22 |.Decompr|esH FFD"|
|00000280| 0d 00 96 05 e0 0d 00 a0 | 11 dd 20 f2 61 73 73 28 |........|.. .ass(|
|00000290| 68 61 6c 66 25 29 0d 00 | aa 0c 74 61 62 6c 65 25 |half%)..|..table%|
|000002a0| 3d 30 0d 00 b4 0d e3 5a | 25 3d 30 b8 32 88 32 0d |=0.....Z|%=0.2.2.|
|000002b0| 00 be 1f 50 25 3d 63 6f | 64 65 25 3a 74 61 62 6c |...P%=co|de%:tabl|
|000002c0| 65 73 74 61 72 74 25 3d | 74 61 62 6c 65 25 0d 00 |estart%=|table%..|
|000002d0| c8 0b 5b 4f 50 54 20 5a | 25 0d 00 d2 16 f4 20 54 |..[OPT Z|%..... T|
|000002e0| 68 65 20 64 65 63 6f 6d | 70 72 65 73 73 6f 72 0d |he decom|pressor.|
|000002f0| 00 dc 16 f4 20 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |.... ===|========|
|00000300| 3d 3d 3d 3d 3d 0d 00 e6 | 05 f4 0d 00 f0 4a f4 20 |=====...|.....J. |
|00000310| 54 68 65 20 50 6c 61 79 | 65 72 20 70 72 6f 67 72 |The Play|er progr|
|00000320| 61 6d 20 77 69 6c 6c 20 | 6c 6f 61 64 20 74 68 65 |am will |load the|
|00000330| 20 64 65 63 6f 6d 70 72 | 65 73 73 6f 72 20 61 74 | decompr|essor at|
|00000340| 20 61 20 71 75 61 64 20 | 77 6f 72 64 20 61 6c 69 | a quad |word ali|
|00000350| 67 6e 65 64 0d 00 fa 4b | f4 20 61 64 64 72 65 73 |gned...K|. addres|
|00000360| 73 20 69 6e 20 6d 65 6d | 6f 72 79 2e 20 49 74 20 |s in mem|ory. It |
|00000370| 77 69 6c 6c 20 74 68 65 | 6e 20 70 72 6f 63 65 73 |will the|n proces|
|00000380| 73 20 74 68 65 20 70 61 | 74 63 68 20 74 61 62 6c |s the pa|tch tabl|
|00000390| 65 20 61 6e 64 20 74 68 | 65 6e 20 63 61 6c 6c 0d |e and th|en call.|
|000003a0| 01 04 4b f4 20 74 68 65 | 20 69 6e 69 74 20 70 6f |..K. the| init po|
|000003b0| 69 6e 74 2e 20 4c 61 74 | 65 72 20 6f 6e 20 74 68 |int. Lat|er on th|
|000003c0| 65 20 70 6c 61 79 65 72 | 20 77 69 6c 6c 20 63 61 |e player| will ca|
|000003d0| 6c 6c 20 74 68 65 20 64 | 65 63 6f 6d 70 72 65 73 |ll the d|ecompres|
|000003e0| 73 6f 72 20 69 6e 20 55 | 53 52 0d 01 0e 4f f4 20 |sor in U|SR...O. |
|000003f0| 6d 6f 64 65 20 74 6f 20 | 64 65 63 6f 6d 70 72 65 |mode to |decompre|
|00000400| 73 73 20 74 68 65 20 66 | 69 72 73 74 20 63 68 75 |ss the f|irst chu|
|00000410| 6e 6b 27 73 20 77 6f 72 | 74 68 20 6f 66 20 66 72 |nk's wor|th of fr|
|00000420| 61 6d 65 73 20 28 6f 72 | 20 74 6f 20 64 6f 20 2d |ames (or| to do -|
|00000430| 65 78 70 6c 6f 64 65 29 | 2e 0d 01 18 49 f4 20 46 |explode)|....I. F|
|00000440| 6f 72 20 61 20 66 75 6c | 6c 20 70 6c 61 79 2c 20 |or a ful|l play, |
|00000450| 74 68 65 20 70 6c 61 79 | 65 72 20 77 69 6c 6c 20 |the play|er will |
|00000460| 63 61 6c 6c 20 74 68 65 | 20 64 65 63 6f 6d 70 72 |call the| decompr|
|00000470| 65 73 73 6f 72 20 69 6e | 20 49 52 51 20 6d 6f 64 |essor in| IRQ mod|
|00000480| 65 2e 0d 01 22 05 f4 0d | 01 2c 17 f4 20 46 6f 72 |e..."...|.,.. For|
|00000490| 6d 61 6c 20 69 6e 74 65 | 72 66 61 63 65 3b 0d 01 |mal inte|rface;..|
|000004a0| 36 05 f4 0d 01 40 24 f4 | 20 46 69 72 73 74 20 77 |6....@$.| First w|
|000004b0| 6f 72 64 3b 20 70 61 74 | 63 68 20 74 61 62 6c 65 |ord; pat|ch table|
|000004c0| 20 6f 66 66 73 65 74 0d | 01 4a 05 f4 0d 01 54 48 | offset.|.J....TH|
|000004d0| f4 20 20 50 75 72 70 6f | 73 65 3b 20 74 6f 20 61 |. Purpo|se; to a|
|000004e0| 6c 6c 6f 77 20 74 68 65 | 20 70 6c 61 79 65 72 20 |llow the| player |
|000004f0| 74 6f 20 69 6e 73 65 72 | 74 20 70 69 78 65 6c 20 |to inser|t pixel |
|00000500| 63 6f 6c 6f 75 72 20 6c | 6f 6f 6b 75 70 20 69 6e |colour l|ookup in|
|00000510| 20 74 68 65 0d 01 5e 4a | f4 20 20 20 20 20 20 20 | the..^J|. |
|00000520| 20 20 20 20 64 65 63 6f | 6d 70 72 65 73 73 6f 72 | deco|mpressor|
|00000530| 2e 20 4d 61 79 20 69 6e | 20 66 75 74 75 72 65 20 |. May in| future |
|00000540| 61 6c 6c 6f 77 20 6f 74 | 68 65 72 20 76 61 6c 75 |allow ot|her valu|
|00000550| 65 73 20 74 6f 20 70 61 | 74 63 68 65 64 2e 0d 01 |es to pa|tched...|
|00000560| 68 47 f4 20 20 20 20 20 | 20 20 20 20 20 20 4e 6f |hG. | No|
|00000570| 74 65 20 74 68 61 74 20 | 61 6e 20 75 6e 70 61 74 |te that |an unpat|
|00000580| 63 68 65 64 20 64 65 63 | 6f 6d 70 72 65 73 73 6f |ched dec|ompresso|
|00000590| 72 20 73 68 6f 75 6c 64 | 20 73 74 69 6c 6c 20 77 |r should| still w|
|000005a0| 6f 72 6b 21 21 0d 01 72 | 05 f4 0d 01 7c 4b f4 20 |ork!!..r|....|K. |
|000005b0| 20 54 68 65 20 6f 66 66 | 73 65 74 20 74 61 62 6c | The off|set tabl|
|000005c0| 65 20 63 6f 6e 73 69 73 | 74 73 20 6f 66 20 77 6f |e consis|ts of wo|
|000005d0| 72 64 73 2e 20 45 61 63 | 68 20 77 6f 72 64 20 68 |rds. Eac|h word h|
|000005e0| 61 73 20 74 68 65 20 62 | 6f 74 74 6f 6d 20 31 36 |as the b|ottom 16|
|000005f0| 20 62 69 74 73 0d 01 86 | 4d f4 20 20 61 73 20 74 | bits...|M. as t|
|00000600| 68 65 20 6f 66 66 73 65 | 74 20 6f 66 20 61 20 77 |he offse|t of a w|
|00000610| 6f 72 64 20 28 75 73 75 | 61 6c 6c 79 20 61 6e 20 |ord (usu|ally an |
|00000620| 69 6e 73 74 72 75 63 74 | 69 6f 6e 29 20 66 72 6f |instruct|ion) fro|
|00000630| 6d 20 74 68 65 20 73 74 | 61 72 74 20 6f 66 20 74 |m the st|art of t|
|00000640| 68 65 0d 01 90 4a f4 20 | 20 64 65 63 6f 6d 70 72 |he...J. | decompr|
|00000650| 65 73 73 6f 72 2e 20 54 | 68 65 20 74 6f 70 20 34 |essor. T|he top 4|
|00000660| 20 62 69 74 73 20 61 72 | 65 20 61 6e 20 6f 70 63 | bits ar|e an opc|
|00000670| 6f 64 65 20 6e 75 6d 62 | 65 72 2e 20 54 68 65 20 |ode numb|er. The |
|00000680| 72 65 6d 61 69 6e 69 6e | 67 20 31 32 0d 01 9a 4b |remainin|g 12...K|
|00000690| f4 20 20 62 69 74 73 20 | 6d 61 79 20 68 61 76 65 |. bits |may have|
|000006a0| 20 61 20 6d 65 61 6e 69 | 6e 67 20 66 6f 72 20 74 | a meani|ng for t|
|000006b0| 68 61 74 20 6f 70 63 6f | 64 65 2e 20 54 68 65 20 |hat opco|de. The |
|000006c0| 6c 69 73 74 20 69 73 20 | 74 65 72 6d 69 6e 61 74 |list is |terminat|
|000006d0| 65 64 20 62 79 20 61 0d | 01 a4 12 f4 20 20 77 6f |ed by a.|.... wo|
|000006e0| 72 64 20 6f 66 20 2d 31 | 2e 0d 01 ae 05 f4 0d 01 |rd of -1|........|
|000006f0| b8 27 f4 20 20 4f 70 63 | 6f 64 65 20 30 3b 20 70 |.'. Opc|ode 0; p|
|00000700| 61 74 63 68 20 69 6e 20 | 63 6f 6c 6f 75 72 20 6c |atch in |colour l|
|00000710| 6f 6f 6b 75 70 0d 01 c2 | 29 f4 20 20 20 62 69 74 |ookup...|). bit|
|00000720| 73 20 32 37 2e 2e 32 34 | 3b 20 64 65 73 74 69 6e |s 27..24|; destin|
|00000730| 61 74 69 6f 6e 20 72 65 | 67 69 73 74 65 72 0d 01 |ation re|gister..|
|00000740| cc 24 f4 20 20 20 62 69 | 74 73 20 32 33 2e 2e 32 |.$. bi|ts 23..2|
|00000750| 30 3b 20 73 6f 75 72 63 | 65 20 72 65 67 69 73 74 |0; sourc|e regist|
|00000760| 65 72 0d 01 d6 30 f4 20 | 20 20 62 69 74 73 20 31 |er...0. | bits 1|
|00000770| 39 2e 2e 31 37 3b 20 70 | 69 78 65 6c 20 6c 6f 6f |9..17; p|ixel loo|
|00000780| 6b 75 70 20 74 61 62 6c | 65 20 72 65 67 69 73 74 |kup tabl|e regist|
|00000790| 65 72 0d 01 e0 4a f4 20 | 20 54 68 65 20 50 6c 61 |er...J. | The Pla|
|000007a0| 79 65 72 20 61 6c 74 65 | 72 73 20 74 68 65 20 77 |yer alte|rs the w|
|000007b0| 6f 72 64 20 74 6f 20 6c | 6f 6f 6b 75 70 20 74 68 |ord to l|ookup th|
|000007c0| 65 20 70 69 78 65 6c 20 | 63 6f 6c 6f 75 72 2e 20 |e pixel |colour. |
|000007d0| 54 68 65 20 76 61 6c 75 | 65 20 6f 66 0d 01 ea 48 |The valu|e of...H|
|000007e0| f4 20 20 74 68 65 20 73 | 6f 75 72 63 65 20 72 65 |. the s|ource re|
|000007f0| 67 69 73 74 65 72 20 61 | 6e 64 20 74 68 65 20 73 |gister a|nd the s|
|00000800| 69 7a 65 20 6f 66 20 74 | 68 65 20 72 65 73 75 6c |ize of t|he resul|
|00000810| 74 20 69 6e 20 74 68 65 | 20 64 65 73 74 69 6e 61 |t in the| destina|
|00000820| 74 69 6f 6e 0d 01 f4 48 | f4 20 20 72 65 67 69 73 |tion...H|. regis|
|00000830| 74 65 72 20 6d 61 79 20 | 63 68 61 6e 67 65 20 66 |ter may |change f|
|00000840| 6f 72 20 64 69 66 66 65 | 72 65 6e 74 20 64 65 63 |or diffe|rent dec|
|00000850| 6f 6d 70 72 65 73 73 6f | 72 73 2e 20 46 6f 72 20 |ompresso|rs. For |
|00000860| 66 6f 72 6d 61 74 20 32 | 20 74 68 65 0d 01 fe 4d |format 2| the...M|
|00000870| f4 20 20 73 6f 75 72 63 | 65 20 72 65 67 69 73 74 |. sourc|e regist|
|00000880| 65 72 20 76 61 6c 75 65 | 20 69 73 20 65 69 74 68 |er value| is eith|
|00000890| 65 72 20 52 47 42 20 6f | 72 20 59 55 56 20 31 35 |er RGB o|r YUV 15|
|000008a0| 20 62 69 74 73 20 61 6e | 64 20 74 68 65 20 64 65 | bits an|d the de|
|000008b0| 73 74 69 6e 61 74 69 6f | 6e 0d 02 08 47 f4 20 20 |stinatio|n...G. |
|000008c0| 76 61 6c 75 65 20 69 73 | 20 61 6c 77 61 79 73 20 |value is| always |
|000008d0| 61 20 77 6f 72 64 20 76 | 61 6c 75 65 2e 20 41 6e |a word v|alue. An|
|000008e0| 20 75 6e 70 61 74 63 68 | 65 64 20 66 6f 72 6d 61 | unpatch|ed forma|
|000008f0| 74 20 32 20 64 65 63 6f | 6d 70 72 65 73 73 6f 72 |t 2 deco|mpressor|
|00000900| 0d 02 12 22 f4 20 20 70 | 72 6f 64 75 63 65 73 20 |...". p|roduces |
|00000910| 52 47 42 20 6f 72 20 59 | 55 56 20 6f 75 74 70 75 |RGB or Y|UV outpu|
|00000920| 74 2e 0d 02 1c 05 f4 0d | 02 26 23 f4 20 53 65 63 |t.......|.&#. Sec|
|00000930| 6f 6e 64 20 77 6f 72 64 | 3b 20 69 6e 69 74 20 65 |ond word|; init e|
|00000940| 6e 74 72 79 20 70 6f 69 | 6e 74 0d 02 30 05 f4 0d |ntry poi|nt..0...|
|00000950| 02 3a 4b f4 20 20 50 75 | 72 70 6f 73 65 3b 20 74 |.:K. Pu|rpose; t|
|00000960| 6f 20 61 6c 6c 6f 77 20 | 74 68 65 20 64 65 63 6f |o allow |the deco|
|00000970| 6d 70 72 65 73 73 6f 72 | 20 74 6f 20 69 6e 69 74 |mpressor| to init|
|00000980| 69 61 6c 69 73 65 20 61 | 6e 79 20 74 61 62 6c 65 |ialise a|ny table|
|00000990| 73 20 74 68 61 74 20 61 | 72 65 0d 02 44 16 f4 20 |s that a|re..D.. |
|000009a0| 20 20 20 20 20 20 20 20 | 20 20 6e 65 65 64 65 64 | | needed|
|000009b0| 0d 02 4e 05 f4 0d 02 58 | 10 f4 20 20 4f 6e 20 65 |..N....X|.. On e|
|000009c0| 6e 74 72 79 3b 0d 02 62 | 24 f4 20 20 20 20 72 30 |ntry;..b|$. r0|
|000009d0| 20 2d 20 73 6f 75 72 63 | 65 20 78 20 73 69 7a 65 | - sourc|e x size|
|000009e0| 20 6f 66 20 6d 6f 76 69 | 65 0d 02 6c 24 f4 20 20 | of movi|e..l$. |
|000009f0| 20 20 72 31 20 2d 20 73 | 6f 75 72 63 65 20 79 20 | r1 - s|ource y |
|00000a00| 73 69 7a 65 20 6f 66 20 | 6d 6f 76 69 65 0d 02 76 |size of |movie..v|
|00000a10| 1a f4 20 20 20 20 72 32 | 2e 2e 72 31 32 20 2d 20 |.. r2|..r12 - |
|00000a20| 73 63 72 61 74 63 68 0d | 02 80 14 f4 20 20 20 20 |scratch.|.... |
|00000a30| 72 31 33 20 2d 20 73 74 | 61 63 6b 0d 02 8a 1d f4 |r13 - st|ack.....|
|00000a40| 20 20 20 20 72 31 34 20 | 2d 20 72 65 74 75 72 6e | r14 |- return|
|00000a50| 20 61 64 64 72 65 73 73 | 0d 02 94 1c f4 20 20 20 | address|..... |
|00000a60| 20 70 72 6f 63 65 73 73 | 6f 72 20 6d 6f 64 65 3b | process|or mode;|
|00000a70| 20 55 53 52 0d 02 9e 1b | f4 20 20 20 20 66 6c 61 | USR....|. fla|
|00000a80| 67 73 20 2d 20 69 72 72 | 65 6c 65 76 61 6e 74 0d |gs - irr|elevant.|
|00000a90| 02 a8 05 f4 0d 02 b2 28 | f4 20 54 68 69 72 64 20 |.......(|. Third |
|00000aa0| 77 6f 72 64 3b 20 64 65 | 63 6f 6d 70 72 65 73 73 |word; de|compress|
|00000ab0| 20 65 6e 74 72 79 20 70 | 6f 69 6e 74 0d 02 bc 05 | entry p|oint....|
|00000ac0| f4 0d 02 c6 2e f4 20 20 | 50 75 72 70 6f 73 65 3b |...... |Purpose;|
|00000ad0| 20 64 65 63 6f 6d 70 72 | 65 73 73 20 70 72 65 63 | decompr|ess prec|
|00000ae0| 69 73 65 6c 79 20 6f 6e | 65 20 66 72 61 6d 65 0d |isely on|e frame.|
|00000af0| 02 d0 05 f4 0d 02 da 10 | f4 20 20 4f 6e 20 65 6e |........|. On en|
|00000b00| 74 72 79 3b 0d 02 e4 32 | f4 20 20 20 20 72 30 20 |try;...2|. r0 |
|00000b10| 74 6f 20 72 35 20 61 72 | 65 20 73 65 74 20 75 70 |to r5 ar|e set up|
|00000b20| 20 62 79 20 50 6c 61 79 | 65 72 20 61 73 20 66 6f | by Play|er as fo|
|00000b30| 6c 6c 6f 77 73 3b 0d 02 | ee 21 f4 20 20 20 20 72 |llows;..|.!. r|
|00000b40| 30 20 2d 20 73 6f 75 72 | 63 65 20 62 79 74 65 20 |0 - sour|ce byte |
|00000b50| 70 6f 69 6e 74 65 72 0d | 02 f8 36 f4 20 20 20 20 |pointer.|..6. |
|00000b60| 72 31 20 2d 20 6f 75 74 | 70 75 74 20 70 6f 69 6e |r1 - out|put poin|
|00000b70| 74 65 72 20 2d 20 73 61 | 76 65 20 6f 75 74 70 75 |ter - sa|ve outpu|
|00000b80| 74 20 70 69 78 65 6c 73 | 20 68 65 72 65 0d 03 02 |t pixels| here...|
|00000b90| 4a f4 20 20 20 20 72 32 | 20 2d 20 70 72 65 76 69 |J. r2| - previ|
|00000ba0| 6f 75 73 20 6f 75 74 70 | 75 74 20 70 6f 69 6e 74 |ous outp|ut point|
|00000bb0| 65 72 20 28 61 6c 6c 6f | 77 73 20 63 6f 70 79 69 |er (allo|ws copyi|
|00000bc0| 6e 67 20 66 72 6f 6d 20 | 70 72 65 76 69 6f 75 73 |ng from |previous|
|00000bd0| 20 66 72 61 6d 65 29 0d | 03 0c 27 f4 20 20 20 20 | frame).|..'. |
|00000be0| 72 33 20 2d 20 70 69 78 | 65 6c 20 64 69 74 68 65 |r3 - pix|el dithe|
|00000bf0| 72 20 6c 6f 6f 6b 75 70 | 20 74 61 62 6c 65 0d 03 |r lookup| table..|
|00000c00| 16 2e f4 20 20 20 20 72 | 34 20 2d 20 72 65 74 75 |... r|4 - retu|
|00000c10| 72 6e 20 61 64 64 72 65 | 73 73 20 28 63 61 6e 27 |rn addre|ss (can'|
|00000c20| 74 20 62 65 20 72 31 34 | 2e 2e 2e 29 0d 03 20 1a |t be r14|...).. .|
|00000c30| f4 20 20 20 20 72 35 2e | 2e 72 31 32 20 2d 20 73 |. r5.|.r12 - s|
|00000c40| 63 72 61 74 63 68 0d 03 | 2a 2e f4 20 20 20 20 72 |cratch..|*.. r|
|00000c50| 31 33 20 2d 20 73 6d 61 | 6c 6c 20 73 74 61 63 6b |13 - sma|ll stack|
|00000c60| 20 28 52 49 53 43 20 4f | 53 20 69 72 71 20 73 74 | (RISC O|S irq st|
|00000c70| 61 63 6b 29 0d 03 34 18 | f4 20 20 20 20 72 31 34 |ack)..4.|. r14|
|00000c80| 20 2d 20 75 6e 75 73 65 | 61 62 6c 65 0d 03 3e 3a | - unuse|able..>:|
|00000c90| f4 20 20 20 20 70 72 6f | 63 65 73 73 6f 72 20 6d |. pro|cessor m|
|00000ca0| 6f 64 65 3b 20 49 52 51 | 2c 20 69 6e 74 65 72 72 |ode; IRQ|, interr|
|00000cb0| 75 70 74 73 20 45 4e 41 | 42 4c 45 44 20 28 75 73 |upts ENA|BLED (us|
|00000cc0| 75 61 6c 6c 79 29 0d 03 | 48 1b f4 20 20 20 20 66 |ually)..|H.. f|
|00000cd0| 6c 61 67 73 20 2d 20 69 | 72 72 65 6c 65 76 61 6e |lags - i|rrelevan|
|00000ce0| 74 0d 03 52 0e f4 20 20 | 4f 6e 20 65 78 69 74 0d |t..R.. |On exit.|
|00000cf0| 03 5c 2f f4 20 20 20 20 | 72 30 20 2d 20 6e 65 78 |.\/. |r0 - nex|
|00000d00| 74 20 76 61 6c 75 65 20 | 6f 66 20 73 6f 75 72 63 |t value |of sourc|
|00000d10| 65 20 62 79 74 65 20 70 | 6f 69 6e 74 65 72 0d 03 |e byte p|ointer..|
|00000d20| 66 1d f4 20 20 20 20 72 | 31 2e 2e 72 31 32 20 2d |f.. r|1..r12 -|
|00000d30| 20 69 72 72 65 6c 65 76 | 61 6e 74 0d 03 70 2d f4 | irrelev|ant..p-.|
|00000d40| 20 20 20 20 72 31 33 20 | 2d 20 6d 75 73 74 20 62 | r13 |- must b|
|00000d50| 65 20 73 61 6d 65 20 76 | 61 6c 75 65 20 61 73 20 |e same v|alue as |
|00000d60| 6f 6e 20 65 6e 74 72 79 | 0d 03 7a 19 f4 20 20 20 |on entry|..z.. |
|00000d70| 20 72 31 34 20 2d 20 69 | 72 72 65 6c 65 76 61 6e | r14 - i|rrelevan|
|00000d80| 74 0d 03 84 30 f4 20 20 | 20 20 70 72 6f 63 65 73 |t...0. | proces|
|00000d90| 73 6f 72 20 6d 6f 64 65 | 3b 20 49 52 51 2c 20 69 |sor mode|; IRQ, i|
|00000da0| 6e 74 65 72 72 75 70 74 | 73 20 45 4e 41 42 4c 45 |nterrupt|s ENABLE|
|00000db0| 44 0d 03 8e 1b f4 20 20 | 20 20 66 6c 61 67 73 20 |D..... | flags |
|00000dc0| 2d 20 69 72 72 65 6c 65 | 76 61 6e 74 0d 03 98 05 |- irrele|vant....|
|00000dd0| f4 0d 03 a2 46 f4 20 20 | 54 68 65 20 66 6f 72 6d |....F. |The form|
|00000de0| 61 74 20 35 20 64 65 63 | 6f 6d 70 72 65 73 73 6f |at 5 dec|ompresso|
|00000df0| 72 20 73 61 76 65 73 20 | 70 69 78 65 6c 73 20 61 |r saves |pixels a|
|00000e00| 73 20 57 6f 72 64 73 21 | 21 21 20 46 6f 72 20 66 |s Words!|!! For f|
|00000e10| 6f 72 6d 61 74 20 35 0d | 03 ac 38 f4 20 20 74 6f |ormat 5.|..8. to|
|00000e20| 20 77 6f 72 6b 2c 20 74 | 68 65 20 73 6f 75 72 63 | work, t|he sourc|
|00000e30| 65 20 70 6f 69 6e 74 65 | 72 20 6d 75 73 74 20 62 |e pointe|r must b|
|00000e40| 65 20 77 6f 72 64 20 61 | 6c 69 67 6e 65 64 2e 0d |e word a|ligned..|
|00000e50| 03 b6 05 f4 0d 03 c0 1c | f4 20 20 66 6f 72 6d 61 |........|. forma|
|00000e60| 74 20 32 20 61 63 74 75 | 61 6c 20 75 73 61 67 65 |t 2 actu|al usage|
|00000e70| 0d 03 ca 26 f4 20 20 54 | 68 65 20 6d 61 69 6e 20 |...&. T|he main |
|00000e80| 65 6e 74 72 79 70 6f 69 | 6e 74 20 69 73 20 61 74 |entrypoi|nt is at|
|00000e90| 20 2e 64 65 63 6c 0d 03 | d4 16 f4 20 20 72 65 67 | .decl..|... reg|
|00000ea0| 69 73 74 65 72 20 75 73 | 61 67 65 3b 0d 03 de 30 |ister us|age;...0|
|00000eb0| f4 20 20 20 20 72 30 20 | 2d 20 73 6f 75 72 63 65 |. r0 |- source|
|00000ec0| 20 62 79 74 65 20 70 6f | 69 6e 74 65 72 20 28 77 | byte po|inter (w|
|00000ed0| 6f 72 64 20 61 6c 69 67 | 6e 65 64 29 0d 03 e8 3f |ord alig|ned)...?|
|00000ee0| f4 20 20 20 20 72 31 20 | 2d 20 6f 75 74 70 75 74 |. r1 |- output|
|00000ef0| 20 70 6f 69 6e 74 65 72 | 20 2d 20 73 61 76 65 20 | pointer| - save |
|00000f00| 6f 75 74 70 75 74 20 70 | 69 78 65 6c 73 20 69 6e |output p|ixels in|
|00000f10| 20 77 6f 72 64 73 20 68 | 65 72 65 0d 03 f2 1e f4 | words h|ere.....|
|00000f20| 20 20 20 20 72 32 20 2d | 20 6e 75 6d 62 65 72 20 | r2 -| number |
|00000f30| 6f 66 20 70 69 78 65 6c | 73 0d 03 fc 27 f4 20 20 |of pixel|s...'. |
|00000f40| 20 20 72 33 20 2d 20 70 | 69 78 65 6c 20 64 69 74 | r3 - p|ixel dit|
|00000f50| 68 65 72 20 6c 6f 6f 6b | 75 70 20 74 61 62 6c 65 |her look|up table|
|00000f60| 0d 04 06 1c f4 20 20 20 | 20 72 34 20 2d 20 72 65 |..... | r4 - re|
|00000f70| 74 75 72 6e 20 61 64 64 | 72 65 73 73 0d 04 10 05 |turn add|ress....|
|00000f80| f4 0d 04 1a 48 20 20 20 | 20 20 20 44 43 44 20 74 |....H | DCD t|
|00000f90| 61 62 6c 65 25 2d 63 6f | 64 65 25 20 f4 20 6f 66 |able%-co|de% . of|
|00000fa0| 66 73 65 74 20 74 6f 20 | 70 61 74 63 68 20 74 61 |fset to |patch ta|
|00000fb0| 62 6c 65 20 28 6f 72 20 | 7a 65 72 6f 20 69 66 20 |ble (or |zero if |
|00000fc0| 6e 6f 20 74 61 62 6c 65 | 29 0d 04 24 23 20 20 20 |no table|)..$# |
|00000fd0| 20 20 20 42 20 69 6e 69 | 74 20 f4 20 69 6e 69 74 | B ini|t . init|
|00000fe0| 69 61 6c 69 73 65 20 70 | 69 78 6e 6f 0d 04 2e 19 |ialise p|ixno....|
|00000ff0| 20 20 20 20 20 20 53 54 | 4d 46 44 20 72 31 33 21 | ST|MFD r13!|
|00001000| 2c 7b 72 34 7d 0d 04 38 | 15 20 20 20 20 20 20 4c |,{r4}..8|. L|
|00001010| 44 52 20 72 32 2c 70 69 | 78 79 0d 04 42 15 20 20 |DR r2,pi|xy..B. |
|00001020| 20 20 20 20 4c 44 52 20 | 72 34 2c 70 69 78 78 0d | LDR |r4,pixx.|
|00001030| 04 4c 1c 20 20 20 20 20 | 20 41 44 44 20 72 34 2c |.L. | ADD r4,|
|00001040| 72 30 2c 72 34 2c 41 53 | 4c 23 31 0d 04 56 09 2e |r0,r4,AS|L#1..V..|
|00001050| 64 65 63 79 0d 04 60 16 | 20 20 20 20 20 20 4c 44 |decy..`.| LD|
|00001060| 52 20 72 31 32 2c 70 69 | 78 78 0d 04 6a 05 5d 0d |R r12,pi|xx..j.].|
|00001070| 04 74 0c e7 68 61 6c 66 | 25 20 8c 0d 04 7e 0b 5b |.t..half|% ...~.[|
|00001080| 4f 50 54 20 5a 25 0d 04 | 88 2a 20 20 20 20 20 20 |OPT Z%..|.* |
|00001090| 41 44 44 20 72 31 30 2c | 72 31 2c 72 31 32 2c 4c |ADD r10,|r1,r12,L|
|000010a0| 53 4c 20 23 31 20 f4 20 | 6e 65 78 74 20 72 6f 77 |SL #1 . |next row|
|000010b0| 0d 04 92 05 5d 0d 04 9c | 05 cc 0d 04 a6 0b 5b 4f |....]...|......[O|
|000010c0| 50 54 20 5a 25 0d 04 b0 | 2a 20 20 20 20 20 20 41 |PT Z%...|* A|
|000010d0| 44 44 20 72 31 30 2c 72 | 31 2c 72 31 32 2c 4c 53 |DD r10,r|1,r12,LS|
|000010e0| 4c 20 23 32 20 f4 20 6e | 65 78 74 20 72 6f 77 0d |L #2 . n|ext row.|
|000010f0| 04 ba 05 5d 0d 04 c4 05 | cd 0d 04 ce 0b 5b 4f 50 |...]....|.....[OP|
|00001100| 54 20 5a 25 0d 04 d8 18 | 20 20 20 20 20 20 4c 44 |T Z%....| LD|
|00001110| 4d 49 41 20 72 30 21 2c | 7b 72 38 7d 0d 04 e2 18 |MIA r0!,|{r8}....|
|00001120| 20 20 20 20 20 20 4c 44 | 4d 49 41 20 72 34 21 2c | LD|MIA r4!,|
|00001130| 7b 72 39 7d 0d 04 ec 1a | 20 20 20 20 20 20 4d 4f |{r9}....| MO|
|00001140| 56 20 72 39 2c 72 39 2c | 4c 53 52 23 32 30 0d 04 |V r9,r9,|LSR#20..|
|00001150| f6 04 0d 05 00 09 2e 64 | 65 63 78 0d 05 0a 2d 20 |.......d|ecx...- |
|00001160| 20 20 20 20 20 f4 20 72 | 30 2d 3e 75 70 70 65 72 | . r|0->upper|
|00001170| 20 72 6f 77 20 73 6f 75 | 72 63 65 20 70 69 78 65 | row sou|rce pixe|
|00001180| 6c 20 73 74 72 65 61 6d | 0d 05 14 25 20 20 20 20 |l stream|...% |
|00001190| 20 20 f4 20 72 31 2d 3e | 75 70 70 65 72 20 64 65 | . r1->|upper de|
|000011a0| 73 74 69 6e 61 74 69 6f | 6e 20 72 6f 77 0d 05 1e |stinatio|n row...|
|000011b0| 22 20 20 20 20 20 20 f4 | 20 72 32 3d 6e 75 6d 62 |" .| r2=numb|
|000011c0| 65 72 20 6f 66 20 72 6f | 77 73 20 6c 65 66 74 0d |er of ro|ws left.|
|000011d0| 05 28 28 20 20 20 20 20 | 20 f4 20 72 33 3d 64 69 |.(( | . r3=di|
|000011e0| 74 68 65 72 20 70 69 78 | 65 6c 20 6c 6f 6f 6b 75 |ther pix|el looku|
|000011f0| 70 20 74 61 62 6c 65 0d | 05 32 2d 20 20 20 20 20 |p table.|.2- |
|00001200| 20 f4 20 72 34 2d 3e 6c | 6f 77 65 72 20 72 6f 77 | . r4->l|ower row|
|00001210| 20 73 6f 75 72 63 65 20 | 70 69 78 65 6c 20 73 74 | source |pixel st|
|00001220| 72 65 61 6d 0d 05 3c 18 | 20 20 20 20 20 20 f4 20 |ream..<.| . |
|00001230| 72 35 2d 72 37 20 75 6e | 75 73 65 64 0d 05 46 26 |r5-r7 un|used..F&|
|00001240| 20 20 20 20 20 20 f4 20 | 72 38 3d 6c 65 66 74 20 | . |r8=left |
|00001250| 70 69 78 65 6c 20 6f 66 | 20 75 70 70 65 72 20 72 |pixel of| upper r|
|00001260| 6f 77 0d 05 50 2c 20 20 | 20 20 20 20 f4 20 72 39 |ow..P, | . r9|
|00001270| 3d 55 56 20 6f 66 20 6c | 65 66 74 20 70 69 78 65 |=UV of l|eft pixe|
|00001280| 6c 20 6f 66 20 6c 6f 77 | 65 72 20 72 6f 77 0d 05 |l of low|er row..|
|00001290| 5a 26 20 20 20 20 20 20 | f4 20 72 31 30 2d 3e 6c |Z& |. r10->l|
|000012a0| 6f 77 65 72 20 64 65 73 | 74 69 6e 61 74 69 6f 6e |ower des|tination|
|000012b0| 20 72 6f 77 0d 05 64 16 | 20 20 20 20 20 20 f4 20 | row..d.| . |
|000012c0| 72 31 31 20 75 6e 75 73 | 65 64 0d 05 6e 2c 20 20 |r11 unus|ed..n, |
|000012d0| 20 20 20 20 f4 20 72 31 | 32 3d 70 69 78 65 6c 73 | . r1|2=pixels|
|000012e0| 20 6c 65 66 74 20 6f 6e | 20 74 68 69 73 20 72 6f | left on| this ro|
|000012f0| 77 20 70 61 69 72 0d 05 | 78 19 20 20 20 20 20 20 |w pair..|x. |
|00001300| f4 20 72 31 33 2d 3e 46 | 44 20 73 74 61 63 6b 0d |. r13->F|D stack.|
|00001310| 05 82 04 0d 05 8c 44 20 | 20 20 20 20 20 f4 20 72 |......D | . r|
|00001320| 37 28 55 56 59 59 59 59 | 29 2c 72 38 28 55 56 59 |7(UVYYYY|),r8(UVY|
|00001330| 59 59 59 29 2c 72 39 28 | 55 56 55 56 29 20 61 72 |YYY),r9(|UVUV) ar|
|00001340| 65 20 74 68 65 20 34 2d | 62 6c 6f 63 6b 20 6f 66 |e the 4-|block of|
|00001350| 20 70 69 78 65 6c 73 0d | 05 96 13 20 20 20 20 20 | pixels.|... |
|00001360| 20 4d 4f 56 20 72 37 2c | 72 38 0d 05 a0 15 20 20 | MOV r7,|r8.... |
|00001370| 20 20 20 20 43 4d 50 20 | 72 31 32 2c 20 23 32 0d | CMP |r12, #2.|
|00001380| 05 aa 58 20 20 20 20 20 | 20 4c 44 4d 48 49 49 41 |..X | LDMHIIA|
|00001390| 20 72 30 21 2c 7b 72 38 | 7d 20 20 20 20 20 20 20 | r0!,{r8|} |
|000013a0| f4 20 44 6f 6e 27 74 20 | 6c 6f 61 64 20 6e 65 78 |. Don't |load nex|
|000013b0| 74 20 70 69 78 65 6c 20 | 69 66 20 74 68 65 72 65 |t pixel |if there|
|000013c0| 20 69 73 6e 27 74 20 6f | 6e 65 21 20 28 75 70 70 | isn't o|ne! (upp|
|000013d0| 65 72 20 72 6f 77 29 0d | 05 b4 49 20 20 20 20 20 |er row).|..I |
|000013e0| 20 4d 4f 56 4c 53 20 72 | 31 31 2c 72 39 2c 41 53 | MOVLS r|11,r9,AS|
|000013f0| 4c 23 31 36 20 20 20 20 | f4 20 44 75 70 6c 69 63 |L#16 |. Duplic|
|00001400| 61 74 65 20 55 56 20 6f | 66 20 6c 61 73 74 20 70 |ate UV o|f last p|
|00001410| 69 78 65 6c 20 28 6c 6f | 77 65 72 20 72 6f 77 29 |ixel (lo|wer row)|
|00001420| 0d 05 be 1e 20 20 20 20 | 20 20 4d 4f 56 4c 53 20 |.... | MOVLS |
|00001430| 72 31 31 2c 72 31 31 2c | 4c 53 52 23 31 36 0d 05 |r11,r11,|LSR#16..|
|00001440| c8 1b 20 20 20 20 20 20 | 4c 44 4d 48 49 49 41 20 |.. |LDMHIIA |
|00001450| 72 34 21 2c 7b 72 31 31 | 7d 0d 05 d2 1e 20 20 20 |r4!,{r11|}.... |
|00001460| 20 20 20 4d 4f 56 48 49 | 20 72 31 31 2c 72 31 31 | MOVHI| r11,r11|
|00001470| 2c 4c 53 52 23 32 30 0d | 05 dc 1d 20 20 20 20 20 |,LSR#20.|... |
|00001480| 20 84 52 20 72 39 2c 72 | 31 31 2c 72 39 2c 41 53 | .R r9,r|11,r9,AS|
|00001490| 4c 23 31 36 0d 05 e6 04 | 0d 05 f0 1c 20 20 20 20 |L#16....|.... |
|000014a0| 20 20 f4 20 54 6f 70 20 | 6c 65 66 74 20 70 69 78 | . Top |left pix|
|000014b0| 65 6c 2e 2e 0d 05 fa 38 | 20 20 20 20 20 20 4d 4f |el.....8| MO|
|000014c0| 56 20 72 35 2c 72 37 2c | 4c 53 52 23 32 30 20 20 |V r5,r7,|LSR#20 |
|000014d0| 20 20 20 20 20 f4 20 55 | 56 20 74 6f 70 20 6c 65 | . U|V top le|
|000014e0| 66 74 20 75 6e 74 6f 75 | 63 68 65 64 0d 06 04 19 |ft untou|ched....|
|000014f0| 20 20 20 20 20 20 4d 4f | 56 20 72 35 2c 72 35 2c | MO|V r5,r5,|
|00001500| 41 53 4c 23 35 0d 06 0e | 2b 20 20 20 20 20 20 80 |ASL#5...|+ .|
|00001510| 20 72 31 31 2c 72 37 2c | 23 33 31 20 20 20 20 20 | r11,r7,|#31 |
|00001520| 20 20 20 20 f4 20 59 20 | 74 6f 70 20 6c 65 66 74 | . Y |top left|
|00001530| 0d 06 18 2f 20 20 20 20 | 20 20 84 52 20 72 35 2c |.../ | .R r5,|
|00001540| 72 35 2c 72 31 31 20 20 | 20 20 20 20 20 20 20 20 |r5,r11 | |
|00001550| f4 20 2e 2e 61 6e 64 20 | 63 6f 6d 62 69 6e 65 0d |. ..and |combine.|
|00001560| 06 22 04 0d 06 2c 1d 20 | 20 20 20 20 20 f4 20 54 |."...,. | . T|
|00001570| 6f 70 20 72 69 67 68 74 | 20 70 69 78 65 6c 2e 2e |op right| pixel..|
|00001580| 0d 06 36 2d 20 20 20 20 | 20 20 4d 4f 56 20 72 31 |..6- | MOV r1|
|00001590| 31 2c 72 37 2c 41 53 4c | 23 37 20 20 20 20 20 20 |1,r7,ASL|#7 |
|000015a0| 20 f4 20 55 20 74 6f 70 | 20 6c 65 66 74 0d 06 40 | . U top| left..@|
|000015b0| 1b 20 20 20 20 20 20 80 | 20 72 31 31 2c 72 31 31 |. .| r11,r11|
|000015c0| 2c 23 33 31 3c 3c 32 37 | 0d 06 4a 1a 20 20 20 20 |,#31<<27|..J. |
|000015d0| 20 20 4d 4f 56 20 72 36 | 2c 72 31 31 2c 41 53 52 | MOV r6|,r11,ASR|
|000015e0| 23 31 0d 06 54 2e 20 20 | 20 20 20 20 4d 4f 56 20 |#1..T. | MOV |
|000015f0| 72 31 31 2c 72 38 2c 41 | 53 4c 23 37 20 20 20 20 |r11,r8,A|SL#7 |
|00001600| 20 20 20 f4 20 55 20 74 | 6f 70 20 72 69 67 68 74 | . U t|op right|
|00001610| 0d 06 5e 1b 20 20 20 20 | 20 20 80 20 72 31 31 2c |..^. | . r11,|
|00001620| 72 31 31 2c 23 33 31 3c | 3c 32 37 0d 06 68 1d 20 |r11,#31<|<27..h. |
|00001630| 20 20 20 20 20 41 44 44 | 20 72 36 2c 72 36 2c 72 | ADD| r6,r6,r|
|00001640| 31 31 2c 41 53 52 23 31 | 0d 06 72 2a 20 20 20 20 |11,ASR#1|..r* |
|00001650| 20 20 4d 4f 56 20 72 36 | 2c 72 36 2c 4c 53 52 23 | MOV r6|,r6,LSR#|
|00001660| 32 37 20 20 20 20 20 20 | 20 f4 20 28 55 2b 55 29 |27 | . (U+U)|
|00001670| 2f 32 0d 06 7c 1a 20 20 | 20 20 20 20 4d 4f 56 20 |/2..|. | MOV |
|00001680| 72 31 31 2c 72 37 2c 41 | 53 4c 23 32 0d 06 86 1b |r11,r7,A|SL#2....|
|00001690| 20 20 20 20 20 20 80 20 | 72 31 31 2c 72 31 31 2c | . |r11,r11,|
|000016a0| 23 33 31 3c 3c 32 37 0d | 06 90 41 20 20 20 20 20 |#31<<27.|..A |
|000016b0| 20 41 44 44 20 72 36 2c | 72 36 2c 72 31 31 2c 41 | ADD r6,|r6,r11,A|
|000016c0| 53 52 23 31 20 20 20 20 | f4 20 56 20 74 6f 70 20 |SR#1 |. V top |
|000016d0| 6c 65 66 74 20 69 6e 20 | 74 6f 70 20 36 20 62 69 |left in |top 6 bi|
|000016e0| 74 73 20 6f 66 20 72 36 | 0d 06 9a 1a 20 20 20 20 |ts of r6|.... |
|000016f0| 20 20 4d 4f 56 20 72 31 | 31 2c 72 38 2c 41 53 4c | MOV r1|1,r8,ASL|
|00001700| 23 32 0d 06 a4 41 20 20 | 20 20 20 20 80 20 72 31 |#2...A | . r1|
|00001710| 31 2c 72 31 31 2c 23 33 | 31 3c 3c 32 37 20 20 20 |1,r11,#3|1<<27 |
|00001720| 20 f4 20 56 20 74 6f 70 | 20 72 69 67 68 74 20 69 | . V top| right i|
|00001730| 6e 20 74 6f 70 20 35 20 | 62 69 74 73 20 6f 66 20 |n top 5 |bits of |
|00001740| 72 31 31 0d 06 ae 3a 20 | 20 20 20 20 20 41 44 44 |r11...: | ADD|
|00001750| 20 72 36 2c 72 36 2c 72 | 31 31 2c 41 53 52 23 31 | r6,r6,r|11,ASR#1|
|00001760| 20 20 20 20 f4 20 56 2b | 56 20 69 6e 20 74 6f 70 | . V+|V in top|
|00001770| 20 36 20 62 69 74 73 20 | 6f 66 20 72 36 0d 06 b8 | 6 bits |of r6...|
|00001780| 61 20 20 20 20 20 20 42 | 49 43 20 72 36 2c 72 36 |a B|IC r6,r6|
|00001790| 2c 23 31 3c 3c 32 36 20 | 20 20 20 20 20 20 f4 20 |,#1<<26 | . |
|000017a0| 6d 61 73 6b 20 6f 66 66 | 20 6c 73 62 20 77 68 69 |mask off| lsb whi|
|000017b0| 63 68 20 77 65 20 64 6f | 6e 27 74 20 77 61 6e 74 |ch we do|n't want|
|000017c0| 20 74 6f 20 67 69 76 65 | 20 28 56 2b 56 29 2f 32 | to give| (V+V)/2|
|000017d0| 20 69 6e 20 74 6f 70 20 | 35 20 62 69 74 73 0d 06 | in top |5 bits..|
|000017e0| c2 43 20 20 20 20 20 20 | 84 52 20 72 36 2c 72 36 |.C |.R r6,r6|
|000017f0| 2c 72 36 2c 41 53 4c 23 | 32 32 20 20 20 20 f4 20 |,r6,ASL#|22 . |
|00001800| 63 6f 6d 62 69 6e 65 20 | 74 6f 20 67 69 76 65 20 |combine |to give |
|00001810| 55 56 20 69 6e 20 74 6f | 70 20 31 30 20 62 69 74 |UV in to|p 10 bit|
|00001820| 73 0d 06 cc 33 20 20 20 | 20 20 20 4d 4f 56 20 72 |s...3 | MOV r|
|00001830| 36 2c 72 36 2c 4c 53 52 | 23 31 37 20 20 20 20 20 |6,r6,LSR|#17 |
|00001840| 20 20 f4 20 55 56 20 6e | 6f 77 20 69 6e 20 5b 35 | . UV n|ow in [5|
|00001850| 3b 31 34 5d 0d 06 d6 19 | 20 20 20 20 20 20 80 20 |;14]....| . |
|00001860| 72 31 31 2c 72 37 2c 23 | 33 31 3c 3c 35 0d 06 e0 |r11,r7,#|31<<5...|
|00001870| 3c 20 20 20 20 20 20 84 | 52 20 72 36 2c 72 36 2c |< .|R r6,r6,|
|00001880| 72 31 31 2c 4c 53 52 23 | 35 20 20 20 20 f4 20 61 |r11,LSR#|5 . a|
|00001890| 6e 64 20 63 6f 6d 62 69 | 6e 65 20 69 6e 20 59 20 |nd combi|ne in Y |
|000018a0| 74 6f 70 20 72 69 67 68 | 74 0d 06 ea 04 0d 06 f4 |top righ|t.......|
|000018b0| 13 20 20 20 20 20 20 a4 | 70 6c 6f 6f 6b 28 35 29 |. .|plook(5)|
|000018c0| 0d 06 fe 13 20 20 20 20 | 20 20 a4 70 6c 6f 6f 6b |.... | .plook|
|000018d0| 28 36 29 0d 07 08 05 5d | 0d 07 12 0c e7 68 61 6c |(6)....]|.....hal|
|000018e0| 66 25 20 8c 0d 07 1c 0b | 5b 4f 50 54 20 5a 25 0d |f% .....|[OPT Z%.|
|000018f0| 07 26 1d 20 20 20 20 20 | 20 84 52 20 72 35 2c 72 |.&. | .R r5,r|
|00001900| 35 2c 72 36 2c 4c 53 4c | 20 23 31 36 0d 07 30 3c |5,r6,LSL| #16..0<|
|00001910| 20 20 20 20 20 20 53 54 | 4d 49 41 20 72 31 21 2c | ST|MIA r1!,|
|00001920| 7b 72 35 7d 20 f4 20 73 | 74 6f 72 65 20 32 20 70 |{r5} . s|tore 2 p|
|00001930| 69 78 65 6c 73 20 69 6e | 74 6f 20 6f 75 74 70 75 |ixels in|to outpu|
|00001940| 74 20 62 75 66 66 65 72 | 0d 07 3a 05 5d 0d 07 44 |t buffer|..:.]..D|
|00001950| 05 cc 0d 07 4e 0b 5b 4f | 50 54 20 5a 25 0d 07 58 |....N.[O|PT Z%..X|
|00001960| 3f 20 20 20 20 20 20 53 | 54 4d 49 41 20 72 31 21 |? S|TMIA r1!|
|00001970| 2c 7b 72 35 2c 72 36 7d | 20 f4 20 73 74 6f 72 65 |,{r5,r6}| . store|
|00001980| 20 32 20 70 69 78 65 6c | 73 20 69 6e 74 6f 20 6f | 2 pixel|s into o|
|00001990| 75 74 70 75 74 20 62 75 | 66 66 65 72 0d 07 62 05 |utput bu|ffer..b.|
|000019a0| 5d 0d 07 6c 05 cd 0d 07 | 76 0b 5b 4f 50 54 20 5a |]..l....|v.[OPT Z|
|000019b0| 25 0d 07 80 04 0d 07 8a | 1f 20 20 20 20 20 20 f4 |%.......|. .|
|000019c0| 20 42 6f 74 74 6f 6d 20 | 6c 65 66 74 20 70 69 78 | Bottom |left pix|
|000019d0| 65 6c 2e 2e 0d 07 94 2d | 20 20 20 20 20 20 4d 4f |el.....-| MO|
|000019e0| 56 20 72 31 31 2c 72 37 | 2c 41 53 4c 23 37 20 20 |V r11,r7|,ASL#7 |
|000019f0| 20 20 20 20 20 f4 20 55 | 20 74 6f 70 20 6c 65 66 | . U| top lef|
|00001a00| 74 0d 07 9e 1b 20 20 20 | 20 20 20 80 20 72 31 31 |t.... | . r11|
|00001a10| 2c 72 31 31 2c 23 33 31 | 3c 3c 32 37 0d 07 a8 1a |,r11,#31|<<27....|
|00001a20| 20 20 20 20 20 20 4d 4f | 56 20 72 35 2c 72 31 31 | MO|V r5,r11|
|00001a30| 2c 41 53 52 23 31 0d 07 | b2 30 20 20 20 20 20 20 |,ASR#1..|.0 |
|00001a40| 4d 4f 56 20 72 31 31 2c | 72 39 2c 41 53 4c 23 31 |MOV r11,|r9,ASL#1|
|00001a50| 31 20 20 20 20 20 20 f4 | 20 55 20 62 6f 74 74 6f |1 .| U botto|
|00001a60| 6d 20 6c 65 66 74 0d 07 | bc 1b 20 20 20 20 20 20 |m left..|.. |
|00001a70| 80 20 72 31 31 2c 72 31 | 31 2c 23 33 31 3c 3c 32 |. r11,r1|1,#31<<2|
|00001a80| 37 0d 07 c6 1d 20 20 20 | 20 20 20 41 44 44 20 72 |7.... | ADD r|
|00001a90| 35 2c 72 35 2c 72 31 31 | 2c 41 53 52 23 31 0d 07 |5,r5,r11|,ASR#1..|
|00001aa0| d0 2a 20 20 20 20 20 20 | 4d 4f 56 20 72 35 2c 72 |.* |MOV r5,r|
|00001ab0| 35 2c 4c 53 52 23 32 37 | 20 20 20 20 20 20 20 f4 |5,LSR#27| .|
|00001ac0| 20 28 55 2b 55 29 2f 32 | 0d 07 da 1a 20 20 20 20 | (U+U)/2|.... |
|00001ad0| 20 20 4d 4f 56 20 72 31 | 31 2c 72 37 2c 41 53 4c | MOV r1|1,r7,ASL|
|00001ae0| 23 32 0d 07 e4 1b 20 20 | 20 20 20 20 80 20 72 31 |#2.... | . r1|
|00001af0| 31 2c 72 31 31 2c 23 33 | 31 3c 3c 32 37 0d 07 ee |1,r11,#3|1<<27...|
|00001b00| 41 20 20 20 20 20 20 41 | 44 44 20 72 35 2c 72 35 |A A|DD r5,r5|
|00001b10| 2c 72 31 31 2c 41 53 52 | 23 31 20 20 20 20 f4 20 |,r11,ASR|#1 . |
|00001b20| 56 20 74 6f 70 20 6c 65 | 66 74 20 69 6e 20 74 6f |V top le|ft in to|
|00001b30| 70 20 36 20 62 69 74 73 | 20 6f 66 20 72 35 0d 07 |p 6 bits| of r5..|
|00001b40| f8 1a 20 20 20 20 20 20 | 4d 4f 56 20 72 31 31 2c |.. |MOV r11,|
|00001b50| 72 39 2c 41 53 4c 23 36 | 0d 08 02 43 20 20 20 20 |r9,ASL#6|...C |
|00001b60| 20 20 80 20 72 31 31 2c | 72 31 31 2c 23 33 31 3c | . r11,|r11,#31<|
|00001b70| 3c 32 37 20 20 20 20 f4 | 20 56 20 62 6f 74 74 6f |<27 .| V botto|
|00001b80| 6d 20 6c 65 66 74 20 69 | 6e 20 74 6f 70 20 35 20 |m left i|n top 5 |
|00001b90| 62 69 74 73 20 6f 66 20 | 72 31 31 0d 08 0c 3a 20 |bits of |r11...: |
|00001ba0| 20 20 20 20 20 41 44 44 | 20 72 35 2c 72 35 2c 72 | ADD| r5,r5,r|
|00001bb0| 31 31 2c 41 53 52 23 31 | 20 20 20 20 f4 20 56 2b |11,ASR#1| . V+|
|00001bc0| 56 20 69 6e 20 74 6f 70 | 20 36 20 62 69 74 73 20 |V in top| 6 bits |
|00001bd0| 6f 66 20 72 35 0d 08 16 | 61 20 20 20 20 20 20 42 |of r5...|a B|
|00001be0| 49 43 20 72 35 2c 72 35 | 2c 23 31 3c 3c 32 36 20 |IC r5,r5|,#1<<26 |
|00001bf0| 20 20 20 20 20 20 f4 20 | 6d 61 73 6b 20 6f 66 66 | . |mask off|
|00001c00| 20 6c 73 62 20 77 68 69 | 63 68 20 77 65 20 64 6f | lsb whi|ch we do|
|00001c10| 6e 27 74 20 77 61 6e 74 | 20 74 6f 20 67 69 76 65 |n't want| to give|
|00001c20| 20 28 56 2b 56 29 2f 32 | 20 69 6e 20 74 6f 70 20 | (V+V)/2| in top |
|00001c30| 35 20 62 69 74 73 0d 08 | 20 43 20 20 20 20 20 20 |5 bits..| C |
|00001c40| 84 52 20 72 35 2c 72 35 | 2c 72 35 2c 41 53 4c 23 |.R r5,r5|,r5,ASL#|
|00001c50| 32 32 20 20 20 20 f4 20 | 63 6f 6d 62 69 6e 65 20 |22 . |combine |
|00001c60| 74 6f 20 67 69 76 65 20 | 55 56 20 69 6e 20 74 6f |to give |UV in to|
|00001c70| 70 20 31 30 20 62 69 74 | 73 0d 08 2a 33 20 20 20 |p 10 bit|s..*3 |
|00001c80| 20 20 20 4d 4f 56 20 72 | 35 2c 72 35 2c 4c 53 52 | MOV r|5,r5,LSR|
|00001c90| 23 31 37 20 20 20 20 20 | 20 20 f4 20 55 56 20 6e |#17 | . UV n|
|00001ca0| 6f 77 20 69 6e 20 5b 35 | 3b 31 34 5d 0d 08 34 1a |ow in [5|;14]..4.|
|00001cb0| 20 20 20 20 20 20 80 20 | 72 31 31 2c 72 37 2c 23 | . |r11,r7,#|
|00001cc0| 33 31 3c 3c 31 30 0d 08 | 3e 3e 20 20 20 20 20 20 |31<<10..|>> |
|00001cd0| 84 52 20 72 35 2c 72 35 | 2c 72 31 31 2c 4c 53 52 |.R r5,r5|,r11,LSR|
|00001ce0| 23 31 30 20 20 20 f4 20 | 61 6e 64 20 63 6f 6d 62 |#10 . |and comb|
|00001cf0| 69 6e 65 20 69 6e 20 59 | 20 62 6f 74 74 6f 6d 20 |ine in Y| bottom |
|00001d00| 6c 65 66 74 0d 08 48 04 | 0d 08 52 20 20 20 20 20 |left..H.|..R |
|00001d10| 20 20 f4 20 42 6f 74 74 | 6f 6d 20 72 69 67 68 74 | . Bott|om right|
|00001d20| 20 70 69 78 65 6c 2e 2e | 0d 08 5c 2d 20 20 20 20 | pixel..|..\- |
|00001d30| 20 20 4d 4f 56 20 72 31 | 31 2c 72 37 2c 41 53 4c | MOV r1|1,r7,ASL|
|00001d40| 23 37 20 20 20 20 20 20 | 20 f4 20 55 20 74 6f 70 |#7 | . U top|
|00001d50| 20 6c 65 66 74 0d 08 66 | 1b 20 20 20 20 20 20 80 | left..f|. .|
|00001d60| 20 72 31 31 2c 72 31 31 | 2c 23 33 31 3c 3c 32 37 | r11,r11|,#31<<27|
|00001d70| 0d 08 70 1a 20 20 20 20 | 20 20 4d 4f 56 20 72 36 |..p. | MOV r6|
|00001d80| 2c 72 31 31 2c 41 53 52 | 23 32 0d 08 7a 2e 20 20 |,r11,ASR|#2..z. |
|00001d90| 20 20 20 20 4d 4f 56 20 | 72 31 31 2c 72 38 2c 41 | MOV |r11,r8,A|
|00001da0| 53 4c 23 37 20 20 20 20 | 20 20 20 f4 20 55 20 74 |SL#7 | . U t|
|00001db0| 6f 70 20 72 69 67 68 74 | 0d 08 84 1b 20 20 20 20 |op right|.... |
|00001dc0| 20 20 80 20 72 31 31 2c | 72 31 31 2c 23 33 31 3c | . r11,|r11,#31<|
|00001dd0| 3c 32 37 0d 08 8e 1d 20 | 20 20 20 20 20 41 44 44 |<27.... | ADD|
|00001de0| 20 72 36 2c 72 36 2c 72 | 31 31 2c 41 53 52 23 32 | r6,r6,r|11,ASR#2|
|00001df0| 0d 08 98 30 20 20 20 20 | 20 20 4d 4f 56 20 72 31 |...0 | MOV r1|
|00001e00| 31 2c 72 39 2c 41 53 4c | 23 31 31 20 20 20 20 20 |1,r9,ASL|#11 |
|00001e10| 20 f4 20 55 20 62 6f 74 | 74 6f 6d 20 6c 65 66 74 | . U bot|tom left|
|00001e20| 0d 08 a2 1b 20 20 20 20 | 20 20 80 20 72 31 31 2c |.... | . r11,|
|00001e30| 72 31 31 2c 23 33 31 3c | 3c 32 37 0d 08 ac 1d 20 |r11,#31<|<27.... |
|00001e40| 20 20 20 20 20 41 44 44 | 20 72 36 2c 72 36 2c 72 | ADD| r6,r6,r|
|00001e50| 31 31 2c 41 53 52 23 32 | 0d 08 b6 31 20 20 20 20 |11,ASR#2|...1 |
|00001e60| 20 20 4d 4f 56 20 72 31 | 31 2c 72 39 2c 41 53 4c | MOV r1|1,r9,ASL|
|00001e70| 23 32 37 20 20 20 20 20 | 20 f4 20 55 20 62 6f 74 |#27 | . U bot|
|00001e80| 74 6f 6d 20 72 69 67 68 | 74 0d 08 c0 1d 20 20 20 |tom righ|t.... |
|00001e90| 20 20 20 41 44 44 20 72 | 36 2c 72 36 2c 72 31 31 | ADD r|6,r6,r11|
|00001ea0| 2c 41 53 52 23 32 0d 08 | ca 2e 20 20 20 20 20 20 |,ASR#2..|.. |
|00001eb0| 4d 4f 56 20 72 36 2c 72 | 36 2c 4c 53 52 23 32 37 |MOV r6,r|6,LSR#27|
|00001ec0| 20 20 20 20 20 20 20 f4 | 20 28 55 2b 55 2b 55 2b | .| (U+U+U+|
|00001ed0| 55 29 2f 34 0d 08 d4 2d | 20 20 20 20 20 20 4d 4f |U)/4...-| MO|
|00001ee0| 56 20 72 31 31 2c 72 37 | 2c 41 53 4c 23 32 20 20 |V r11,r7|,ASL#2 |
|00001ef0| 20 20 20 20 20 f4 20 56 | 20 74 6f 70 20 6c 65 66 | . V| top lef|
|00001f00| 74 0d 08 de 1b 20 20 20 | 20 20 20 80 20 72 31 31 |t.... | . r11|
|00001f10| 2c 72 31 31 2c 23 33 31 | 3c 3c 32 37 0d 08 e8 1d |,r11,#31|<<27....|
|00001f20| 20 20 20 20 20 20 41 44 | 44 20 72 36 2c 72 36 2c | AD|D r6,r6,|
|00001f30| 72 31 31 2c 41 53 52 23 | 32 0d 08 f2 2e 20 20 20 |r11,ASR#|2.... |
|00001f40| 20 20 20 4d 4f 56 20 72 | 31 31 2c 72 38 2c 41 53 | MOV r|11,r8,AS|
|00001f50| 4c 23 32 20 20 20 20 20 | 20 20 f4 20 56 20 74 6f |L#2 | . V to|
|00001f60| 70 20 72 69 67 68 74 0d | 08 fc 1b 20 20 20 20 20 |p right.|... |
|00001f70| 20 80 20 72 31 31 2c 72 | 31 31 2c 23 33 31 3c 3c | . r11,r|11,#31<<|
|00001f80| 32 37 0d 09 06 1d 20 20 | 20 20 20 20 41 44 44 20 |27.... | ADD |
|00001f90| 72 36 2c 72 36 2c 72 31 | 31 2c 41 53 52 23 32 0d |r6,r6,r1|1,ASR#2.|
|00001fa0| 09 10 30 20 20 20 20 20 | 20 4d 4f 56 20 72 31 31 |..0 | MOV r11|
|00001fb0| 2c 72 39 2c 41 53 4c 23 | 36 20 20 20 20 20 20 20 |,r9,ASL#|6 |
|00001fc0| f4 20 56 20 62 6f 74 74 | 6f 6d 20 6c 65 66 74 0d |. V bott|om left.|
|00001fd0| 09 1a 1b 20 20 20 20 20 | 20 80 20 72 31 31 2c 72 |... | . r11,r|
|00001fe0| 31 31 2c 23 33 31 3c 3c | 32 37 0d 09 24 1d 20 20 |11,#31<<|27..$. |
|00001ff0| 20 20 20 20 41 44 44 20 | 72 36 2c 72 36 2c 72 31 | ADD |r6,r6,r1|
|00002000| 31 2c 41 53 52 23 32 0d | 09 2e 31 20 20 20 20 20 |1,ASR#2.|..1 |
|00002010| 20 4d 4f 56 20 72 31 31 | 2c 72 39 2c 41 53 4c 23 | MOV r11|,r9,ASL#|
|00002020| 32 32 20 20 20 20 20 20 | f4 20 56 20 62 6f 74 74 |22 |. V bott|
|00002030| 6f 6d 20 72 69 67 68 74 | 0d 09 38 1b 20 20 20 20 |om right|..8. |
|00002040| 20 20 80 20 72 31 31 2c | 72 31 31 2c 23 33 31 3c | . r11,|r11,#31<|
|00002050| 3c 32 37 0d 09 42 1d 20 | 20 20 20 20 20 41 44 44 |<27..B. | ADD|
|00002060| 20 72 36 2c 72 36 2c 72 | 31 31 2c 41 53 52 23 32 | r6,r6,r|11,ASR#2|
|00002070| 0d 09 4c 44 20 20 20 20 | 20 20 42 49 43 20 72 36 |..LD | BIC r6|
|00002080| 2c 72 36 2c 23 33 3c 3c | 32 35 20 20 20 20 20 20 |,r6,#3<<|25 |
|00002090| 20 f4 20 6d 61 73 6b 20 | 6f 66 66 20 4c 53 42 73 | . mask |off LSBs|
|000020a0| 20 74 6f 20 67 69 76 65 | 20 28 56 2b 56 2b 56 2b | to give| (V+V+V+|
|000020b0| 56 29 2f 34 0d 09 56 43 | 20 20 20 20 20 20 84 52 |V)/4..VC| .R|
|000020c0| 20 72 36 2c 72 36 2c 72 | 36 2c 41 53 4c 23 32 32 | r6,r6,r|6,ASL#22|
|000020d0| 20 20 20 20 f4 20 63 6f | 6d 62 69 6e 65 20 74 6f | . co|mbine to|
|000020e0| 20 67 69 76 65 20 55 56 | 20 69 6e 20 74 6f 70 20 | give UV| in top |
|000020f0| 31 30 20 62 69 74 73 0d | 09 60 33 20 20 20 20 20 |10 bits.|.`3 |
|00002100| 20 4d 4f 56 20 72 36 2c | 72 36 2c 4c 53 52 23 31 | MOV r6,|r6,LSR#1|
|00002110| 37 20 20 20 20 20 20 20 | f4 20 55 56 20 6e 6f 77 |7 |. UV now|
|00002120| 20 69 6e 20 5b 35 3b 31 | 34 5d 0d 09 6a 1a 20 20 | in [5;1|4]..j. |
|00002130| 20 20 20 20 80 20 72 31 | 31 2c 72 37 2c 23 33 31 | . r1|1,r7,#31|
|00002140| 3c 3c 31 35 0d 09 74 3e | 20 20 20 20 20 20 84 52 |<<15..t>| .R|
|00002150| 20 72 36 2c 72 36 2c 72 | 31 31 2c 4c 53 52 23 31 | r6,r6,r|11,LSR#1|
|00002160| 35 20 20 20 f4 20 61 6e | 64 20 63 6f 6d 62 69 6e |5 . an|d combin|
|00002170| 65 20 69 6e 20 59 20 62 | 6f 74 74 6f 6d 20 6c 65 |e in Y b|ottom le|
|00002180| 66 74 0d 09 7e 04 0d 09 | 88 13 20 20 20 20 20 20 |ft..~...|.. |
|00002190| a4 70 6c 6f 6f 6b 28 35 | 29 0d 09 92 13 20 20 20 |.plook(5|).... |
|000021a0| 20 20 20 a4 70 6c 6f 6f | 6b 28 36 29 0d 09 9c 05 | .ploo|k(6)....|
|000021b0| 5d 0d 09 a6 0c e7 68 61 | 6c 66 25 20 8c 0d 09 b0 |].....ha|lf% ....|
|000021c0| 0b 5b 4f 50 54 20 5a 25 | 0d 09 ba 1d 20 20 20 20 |.[OPT Z%|.... |
|000021d0| 20 20 84 52 20 72 35 2c | 72 35 2c 72 36 2c 4c 53 | .R r5,|r5,r6,LS|
|000021e0| 4c 20 23 31 36 0d 09 c4 | 3d 20 20 20 20 20 20 53 |L #16...|= S|
|000021f0| 54 4d 49 41 20 72 31 30 | 21 2c 7b 72 35 7d 20 f4 |TMIA r10|!,{r5} .|
|00002200| 20 73 74 6f 72 65 20 32 | 20 70 69 78 65 6c 73 20 | store 2| pixels |
|00002210| 69 6e 74 6f 20 6f 75 74 | 70 75 74 20 62 75 66 66 |into out|put buff|
|00002220| 65 72 0d 09 ce 05 5d 0d | 09 d8 05 cc 0d 09 e2 0b |er....].|........|
|00002230| 5b 4f 50 54 20 5a 25 0d | 09 ec 40 20 20 20 20 20 |[OPT Z%.|..@ |
|00002240| 20 53 54 4d 49 41 20 72 | 31 30 21 2c 7b 72 35 2c | STMIA r|10!,{r5,|
|00002250| 72 36 7d 20 f4 20 73 74 | 6f 72 65 20 32 20 70 69 |r6} . st|ore 2 pi|
|00002260| 78 65 6c 73 20 69 6e 74 | 6f 20 6f 75 74 70 75 74 |xels int|o output|
|00002270| 20 62 75 66 66 65 72 0d | 09 f6 05 5d 0d 0a 00 05 | buffer.|...]....|
|00002280| cd 0d 0a 0a 0b 5b 4f 50 | 54 20 5a 25 0d 0a 14 2b |.....[OP|T Z%...+|
|00002290| 20 20 20 20 20 20 53 55 | 42 53 20 72 31 32 2c 72 | SU|BS r12,r|
|000022a0| 31 32 2c 23 32 20 f4 20 | 64 6f 6e 65 20 32 20 58 |12,#2 . |done 2 X|
|000022b0| 20 70 69 78 65 6c 73 0d | 0a 1e 12 20 20 20 20 20 | pixels.|... |
|000022c0| 20 42 4e 45 20 64 65 63 | 78 0d 0a 28 14 20 20 20 | BNE dec|x..(. |
|000022d0| 20 20 20 4d 4f 56 20 72 | 31 2c 72 31 30 0d 0a 32 | MOV r|1,r10..2|
|000022e0| 13 20 20 20 20 20 20 43 | 4d 50 20 72 32 2c 23 34 |. C|MP r2,#4|
|000022f0| 0d 0a 3c 15 20 20 20 20 | 20 20 4d 4f 56 4c 53 20 |..<. | MOVLS |
|00002300| 72 34 2c 72 30 0d 0a 46 | 25 20 20 20 20 20 20 53 |r4,r0..F|% S|
|00002310| 55 42 53 20 72 32 2c 72 | 32 2c 23 32 20 f4 20 64 |UBS r2,r|2,#2 . d|
|00002320| 6f 6e 65 20 32 20 72 6f | 77 73 0d 0a 50 12 20 20 |one 2 ro|ws..P. |
|00002330| 20 20 20 20 42 4e 45 20 | 64 65 63 79 0d 0a 5a 2e | BNE |decy..Z.|
|00002340| 20 20 20 20 20 20 4c 44 | 4d 46 44 20 72 31 33 21 | LD|MFD r13!|
|00002350| 2c 7b 70 63 7d 20 f4 20 | 66 69 6e 69 73 68 65 64 |,{pc} . |finished|
|00002360| 20 6f 6e 65 20 66 72 61 | 6d 65 0d 0a 64 04 0d 0a | one fra|me..d...|
|00002370| 6e 1c f4 20 69 6e 69 74 | 20 69 73 20 72 61 74 68 |n.. init| is rath|
|00002380| 65 72 20 74 72 69 76 69 | 61 6c 0d 0a 78 09 2e 69 |er trivi|al..x..i|
|00002390| 6e 69 74 0d 0a 82 15 20 | 20 20 20 20 20 53 54 52 |nit.... | STR|
|000023a0| 20 72 30 2c 70 69 78 78 | 0d 0a 8c 15 20 20 20 20 | r0,pixx|.... |
|000023b0| 20 20 53 54 52 20 72 31 | 2c 70 69 78 79 0d 0a 96 | STR r1|,pixy...|
|000023c0| 15 20 20 20 20 20 20 4d | 4f 56 53 20 70 63 2c 72 |. M|OVS pc,r|
|000023d0| 31 34 0d 0a a0 0f 2e 70 | 69 78 78 20 44 43 44 20 |14.....p|ixx DCD |
|000023e0| 30 0d 0a aa 0f 2e 70 69 | 78 79 20 44 43 44 20 30 |0.....pi|xy DCD 0|
|000023f0| 0d 0a b4 05 5d 0d 0a be | 0d 74 61 62 6c 65 25 3d |....]...|.table%=|
|00002400| 50 25 0d 0a c8 05 ed 0d | 0a d2 22 21 74 61 62 6c |P%......|.."!tabl|
|00002410| 65 73 74 61 72 74 25 3d | 2d 31 3a 74 61 62 6c 65 |estart%=|-1:table|
|00002420| 73 74 61 72 74 25 2b 3d | 34 0d 0a dc 05 e1 0d 0a |start%+=|4.......|
|00002430| e6 34 f4 20 72 65 63 6f | 72 64 20 74 68 65 20 6c |.4. reco|rd the l|
|00002440| 6f 6f 6b 75 70 20 6f 66 | 20 64 69 74 68 65 72 65 |ookup of| dithere|
|00002450| 64 20 76 65 72 73 69 6f | 6e 20 6f 66 20 70 69 78 |d versio|n of pix|
|00002460| 65 6c 0d 0a f0 10 dd 20 | a4 70 6c 6f 6f 6b 28 72 |el..... |.plook(r|
|00002470| 6e 29 0d 0a fa 10 e7 74 | 61 62 6c 65 25 3c 3e 30 |n).....t|able%<>0|
|00002480| 20 8c 0d 0b 04 41 21 74 | 61 62 6c 65 73 74 61 72 | ....A!t|ablestar|
|00002490| 74 25 3d 26 30 30 30 30 | 3c 3c 32 38 20 84 20 72 |t%=&0000|<<28 . r|
|000024a0| 6e 3c 3c 32 34 20 84 20 | 72 6e 3c 3c 32 30 20 84 |n<<24 . |rn<<20 .|
|000024b0| 20 33 3c 3c 31 36 20 84 | 20 28 50 25 2d 63 6f 64 | 3<<16 .| (P%-cod|
|000024c0| 65 25 29 0d 0b 0e 12 74 | 61 62 6c 65 73 74 61 72 |e%)....t|ablestar|
|000024d0| 74 25 2b 3d 34 0d 0b 18 | 05 cd 0d 0b 22 0b 5b 4f |t%+=4...|....".[O|
|000024e0| 50 54 20 5a 25 0d 0b 2c | 0e 20 4d 4f 56 20 72 6e |PT Z%..,|. MOV rn|
|000024f0| 2c 72 6e 0d 0b 36 05 5d | 0d 0b 40 06 3d 30 0d ff |,rn..6.]|..@.=0..|
+--------+-------------------------+-------------------------+--------+--------+