home *** CD-ROM | disk | FTP | other *** search
/ RISC DISC 1 / RISC_DISC_1.iso / _armovie / decomp3 / makedecomp < prev   
Unknown  |  1993-11-29  |  12.2 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 11 de 20 | 63 6f 64 65 25 20 31 30 |mp..... |code% 10|
|00000020| 30 30 30 0d 00 1e 0b f2 | 61 73 73 28 a3 29 0d 00 |000.....|ass(.)..|
|00000030| 28 47 ff 22 53 61 76 65 | 20 3c 41 52 4d 6f 76 69 |(G."Save| <ARMovi|
|00000040| 65 24 44 69 72 3e 2e 44 | 65 63 6f 6d 70 33 2e 44 |e$Dir>.D|ecomp3.D|
|00000050| 65 63 6f 6d 70 72 65 73 | 73 20 22 2b c3 7e 63 6f |ecompres|s "+.~co|
|00000060| 64 65 25 2b 22 20 22 2b | c3 7e 74 61 62 6c 65 73 |de%+" "+|.~tables|
|00000070| 74 61 72 74 25 0d 00 32 | 45 c8 99 22 4f 53 5f 46 |tart%..2|E.."OS_F|
|00000080| 69 6c 65 22 2c 31 37 2c | 22 3c 41 52 4d 6f 76 69 |ile",17,|"<ARMovi|
|00000090| 65 24 44 69 72 3e 2e 44 | 65 63 6f 6d 70 33 2e 4d |e$Dir>.D|ecomp3.M|
|000000a0| 61 6b 65 44 65 63 6f 6d | 70 22 20 b8 20 2c 2c 6c |akeDecom|p" . ,,l|
|000000b0| 6f 61 64 25 2c 65 78 65 | 63 25 0d 00 3c 3a c8 99 |oad%,exe|c%..<:..|
|000000c0| 22 4f 53 5f 46 69 6c 65 | 22 2c 32 2c 22 3c 41 52 |"OS_File|",2,"<AR|
|000000d0| 4d 6f 76 69 65 24 44 69 | 72 3e 2e 44 65 63 6f 6d |Movie$Di|r>.Decom|
|000000e0| 70 33 2e 44 65 63 6f 6d | 70 72 65 73 73 22 2c 6c |p3.Decom|press",l|
|000000f0| 6f 61 64 25 0d 00 46 3b | c8 99 22 4f 53 5f 46 69 |oad%..F;|.."OS_Fi|
|00000100| 6c 65 22 2c 33 2c 22 3c | 41 52 4d 6f 76 69 65 24 |le",3,"<|ARMovie$|
|00000110| 44 69 72 3e 2e 44 65 63 | 6f 6d 70 33 2e 44 65 63 |Dir>.Dec|omp3.Dec|
|00000120| 6f 6d 70 72 65 73 73 22 | 2c 2c 65 78 65 63 25 0d |ompress"|,,exec%.|
|00000130| 00 50 33 ff 22 53 65 74 | 74 79 70 65 20 3c 41 52 |.P3."Set|type <AR|
|00000140| 4d 6f 76 69 65 24 44 69 | 72 3e 2e 44 65 63 6f 6d |Movie$Di|r>.Decom|
|00000150| 70 33 2e 44 65 63 6f 6d | 70 72 65 73 73 20 46 46 |p3.Decom|press FF|
|00000160| 44 22 0d 00 5a 0b f2 61 | 73 73 28 b9 29 0d 00 64 |D"..Z..a|ss(.)..d|
|00000170| 47 ff 22 53 61 76 65 20 | 3c 41 52 4d 6f 76 69 65 |G."Save |<ARMovie|
|00000180| 24 44 69 72 3e 2e 44 65 | 63 6f 6d 70 33 2e 44 65 |$Dir>.De|comp3.De|
|00000190| 63 6f 6d 70 72 65 73 48 | 20 22 2b c3 7e 63 6f 64 |compresH| "+.~cod|
|000001a0| 65 25 2b 22 20 22 2b c3 | 7e 74 61 62 6c 65 73 74 |e%+" "+.|~tablest|
|000001b0| 61 72 74 25 0d 00 6e 3a | c8 99 22 4f 53 5f 46 69 |art%..n:|.."OS_Fi|
|000001c0| 6c 65 22 2c 32 2c 22 3c | 41 52 4d 6f 76 69 65 24 |le",2,"<|ARMovie$|
|000001d0| 44 69 72 3e 2e 44 65 63 | 6f 6d 70 33 2e 44 65 63 |Dir>.Dec|omp3.Dec|
|000001e0| 6f 6d 70 72 65 73 48 22 | 2c 6c 6f 61 64 25 0d 00 |ompresH"|,load%..|
|000001f0| 78 3b c8 99 22 4f 53 5f | 46 69 6c 65 22 2c 33 2c |x;.."OS_|File",3,|
|00000200| 22 3c 41 52 4d 6f 76 69 | 65 24 44 69 72 3e 2e 44 |"<ARMovi|e$Dir>.D|
|00000210| 65 63 6f 6d 70 33 2e 44 | 65 63 6f 6d 70 72 65 73 |ecomp3.D|ecompres|
|00000220| 48 22 2c 2c 65 78 65 63 | 25 0d 00 82 33 ff 22 53 |H",,exec|%...3."S|
|00000230| 65 74 74 79 70 65 20 3c | 41 52 4d 6f 76 69 65 24 |ettype <|ARMovie$|
|00000240| 44 69 72 3e 2e 44 65 63 | 6f 6d 70 33 2e 44 65 63 |Dir>.Dec|omp3.Dec|
|00000250| 6f 6d 70 72 65 73 48 20 | 46 46 44 22 0d 00 8c 05 |ompresH |FFD"....|
|00000260| e0 0d 00 96 11 dd 20 f2 | 61 73 73 28 68 61 6c 66 |...... .|ass(half|
|00000270| 25 29 0d 00 a0 0c 74 61 | 62 6c 65 25 3d 30 0d 00 |%)....ta|ble%=0..|
|00000280| aa 0d e3 5a 25 3d 30 b8 | 32 88 32 0d 00 b4 1f 50 |...Z%=0.|2.2....P|
|00000290| 25 3d 63 6f 64 65 25 3a | 74 61 62 6c 65 73 74 61 |%=code%:|tablesta|
|000002a0| 72 74 25 3d 74 61 62 6c | 65 25 0d 00 be 0b 5b 4f |rt%=tabl|e%....[O|
|000002b0| 50 54 20 5a 25 0d 00 c8 | 16 f4 20 54 68 65 20 64 |PT Z%...|.. The d|
|000002c0| 65 63 6f 6d 70 72 65 73 | 73 6f 72 0d 00 d2 16 f4 |ecompres|sor.....|
|000002d0| 20 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d | =======|========|
|000002e0| 3d 0d 00 dc 05 f4 0d 00 | e6 4a f4 20 54 68 65 20 |=.......|.J. The |
|000002f0| 50 6c 61 79 65 72 20 70 | 72 6f 67 72 61 6d 20 77 |Player p|rogram w|
|00000300| 69 6c 6c 20 6c 6f 61 64 | 20 74 68 65 20 64 65 63 |ill load| the dec|
|00000310| 6f 6d 70 72 65 73 73 6f | 72 20 61 74 20 61 20 71 |ompresso|r at a q|
|00000320| 75 61 64 20 77 6f 72 64 | 20 61 6c 69 67 6e 65 64 |uad word| aligned|
|00000330| 0d 00 f0 4b f4 20 61 64 | 64 72 65 73 73 20 69 6e |...K. ad|dress in|
|00000340| 20 6d 65 6d 6f 72 79 2e | 20 49 74 20 77 69 6c 6c | memory.| It will|
|00000350| 20 74 68 65 6e 20 70 72 | 6f 63 65 73 73 20 74 68 | then pr|ocess th|
|00000360| 65 20 70 61 74 63 68 20 | 74 61 62 6c 65 20 61 6e |e patch |table an|
|00000370| 64 20 74 68 65 6e 20 63 | 61 6c 6c 0d 00 fa 4b f4 |d then c|all...K.|
|00000380| 20 74 68 65 20 69 6e 69 | 74 20 70 6f 69 6e 74 2e | the ini|t point.|
|00000390| 20 4c 61 74 65 72 20 6f | 6e 20 74 68 65 20 70 6c | Later o|n the pl|
|000003a0| 61 79 65 72 20 77 69 6c | 6c 20 63 61 6c 6c 20 74 |ayer wil|l call t|
|000003b0| 68 65 20 64 65 63 6f 6d | 70 72 65 73 73 6f 72 20 |he decom|pressor |
|000003c0| 69 6e 20 55 53 52 0d 01 | 04 4f f4 20 6d 6f 64 65 |in USR..|.O. mode|
|000003d0| 20 74 6f 20 64 65 63 6f | 6d 70 72 65 73 73 20 74 | to deco|mpress t|
|000003e0| 68 65 20 66 69 72 73 74 | 20 63 68 75 6e 6b 27 73 |he first| chunk's|
|000003f0| 20 77 6f 72 74 68 20 6f | 66 20 66 72 61 6d 65 73 | worth o|f frames|
|00000400| 20 28 6f 72 20 74 6f 20 | 64 6f 20 2d 65 78 70 6c | (or to |do -expl|
|00000410| 6f 64 65 29 2e 0d 01 0e | 49 f4 20 46 6f 72 20 61 |ode)....|I. For a|
|00000420| 20 66 75 6c 6c 20 70 6c | 61 79 2c 20 74 68 65 20 | full pl|ay, the |
|00000430| 70 6c 61 79 65 72 20 77 | 69 6c 6c 20 63 61 6c 6c |player w|ill call|
|00000440| 20 74 68 65 20 64 65 63 | 6f 6d 70 72 65 73 73 6f | the dec|ompresso|
|00000450| 72 20 69 6e 20 49 52 51 | 20 6d 6f 64 65 2e 0d 01 |r in IRQ| mode...|
|00000460| 18 05 f4 0d 01 22 17 f4 | 20 46 6f 72 6d 61 6c 20 |....."..| Formal |
|00000470| 69 6e 74 65 72 66 61 63 | 65 3a 0d 01 2c 05 f4 0d |interfac|e:..,...|
|00000480| 01 36 24 f4 20 46 69 72 | 73 74 20 77 6f 72 64 3a |.6$. Fir|st word:|
|00000490| 20 70 61 74 63 68 20 74 | 61 62 6c 65 20 6f 66 66 | patch t|able off|
|000004a0| 73 65 74 0d 01 40 05 f4 | 0d 01 4a 48 f4 20 20 50 |set..@..|..JH. P|
|000004b0| 75 72 70 6f 73 65 3a 20 | 74 6f 20 61 6c 6c 6f 77 |urpose: |to allow|
|000004c0| 20 74 68 65 20 70 6c 61 | 79 65 72 20 74 6f 20 69 | the pla|yer to i|
|000004d0| 6e 73 65 72 74 20 70 69 | 78 65 6c 20 63 6f 6c 6f |nsert pi|xel colo|
|000004e0| 75 72 20 6c 6f 6f 6b 75 | 70 20 69 6e 20 74 68 65 |ur looku|p in the|
|000004f0| 0d 01 54 4a f4 20 20 20 | 20 20 20 20 20 20 20 20 |..TJ. | |
|00000500| 64 65 63 6f 6d 70 72 65 | 73 73 6f 72 2e 20 4d 61 |decompre|ssor. Ma|
|00000510| 79 20 69 6e 20 66 75 74 | 75 72 65 20 61 6c 6c 6f |y in fut|ure allo|
|00000520| 77 20 6f 74 68 65 72 20 | 76 61 6c 75 65 73 20 74 |w other |values t|
|00000530| 6f 20 70 61 74 63 68 65 | 64 2e 0d 01 5e 47 f4 20 |o patche|d...^G. |
|00000540| 20 20 20 20 20 20 20 20 | 20 20 4e 6f 74 65 20 74 | | Note t|
|00000550| 68 61 74 20 61 6e 20 75 | 6e 70 61 74 63 68 65 64 |hat an u|npatched|
|00000560| 20 64 65 63 6f 6d 70 72 | 65 73 73 6f 72 20 73 68 | decompr|essor sh|
|00000570| 6f 75 6c 64 20 73 74 69 | 6c 6c 20 77 6f 72 6b 21 |ould sti|ll work!|
|00000580| 21 0d 01 68 05 f4 0d 01 | 72 4b f4 20 20 54 68 65 |!..h....|rK. The|
|00000590| 20 6f 66 66 73 65 74 20 | 74 61 62 6c 65 20 63 6f | offset |table co|
|000005a0| 6e 73 69 73 74 73 20 6f | 66 20 77 6f 72 64 73 2e |nsists o|f words.|
|000005b0| 20 45 61 63 68 20 77 6f | 72 64 20 68 61 73 20 74 | Each wo|rd has t|
|000005c0| 68 65 20 62 6f 74 74 6f | 6d 20 31 36 20 62 69 74 |he botto|m 16 bit|
|000005d0| 73 0d 01 7c 4d f4 20 20 | 61 73 20 74 68 65 20 6f |s..|M. |as the o|
|000005e0| 66 66 73 65 74 20 6f 66 | 20 61 20 77 6f 72 64 20 |ffset of| a word |
|000005f0| 28 75 73 75 61 6c 6c 79 | 20 61 6e 20 69 6e 73 74 |(usually| an inst|
|00000600| 72 75 63 74 69 6f 6e 29 | 20 66 72 6f 6d 20 74 68 |ruction)| from th|
|00000610| 65 20 73 74 61 72 74 20 | 6f 66 20 74 68 65 0d 01 |e start |of the..|
|00000620| 86 4a f4 20 20 64 65 63 | 6f 6d 70 72 65 73 73 6f |.J. dec|ompresso|
|00000630| 72 2e 20 54 68 65 20 74 | 6f 70 20 34 20 62 69 74 |r. The t|op 4 bit|
|00000640| 73 20 61 72 65 20 61 6e | 20 6f 70 63 6f 64 65 20 |s are an| opcode |
|00000650| 6e 75 6d 62 65 72 2e 20 | 54 68 65 20 72 65 6d 61 |number. |The rema|
|00000660| 69 6e 69 6e 67 20 31 32 | 0d 01 90 4b f4 20 20 62 |ining 12|...K. b|
|00000670| 69 74 73 20 6d 61 79 20 | 68 61 76 65 20 61 20 6d |its may |have a m|
|00000680| 65 61 6e 69 6e 67 20 66 | 6f 72 20 74 68 61 74 20 |eaning f|or that |
|00000690| 6f 70 63 6f 64 65 2e 20 | 54 68 65 20 6c 69 73 74 |opcode. |The list|
|000006a0| 20 69 73 20 74 65 72 6d | 69 6e 61 74 65 64 20 62 | is term|inated b|
|000006b0| 79 20 61 0d 01 9a 12 f4 | 20 20 77 6f 72 64 20 6f |y a.....| word o|
|000006c0| 66 20 2d 31 2e 0d 01 a4 | 05 f4 0d 01 ae 27 f4 20 |f -1....|.....'. |
|000006d0| 20 4f 70 63 6f 64 65 20 | 30 3a 20 70 61 74 63 68 | Opcode |0: patch|
|000006e0| 20 69 6e 20 63 6f 6c 6f | 75 72 20 6c 6f 6f 6b 75 | in colo|ur looku|
|000006f0| 70 0d 01 b8 29 f4 20 20 | 20 62 69 74 73 20 32 37 |p...). | bits 27|
|00000700| 2e 2e 32 34 3a 20 64 65 | 73 74 69 6e 61 74 69 6f |..24: de|stinatio|
|00000710| 6e 20 72 65 67 69 73 74 | 65 72 0d 01 c2 24 f4 20 |n regist|er...$. |
|00000720| 20 20 62 69 74 73 20 32 | 33 2e 2e 32 30 3a 20 73 | bits 2|3..20: s|
|00000730| 6f 75 72 63 65 20 72 65 | 67 69 73 74 65 72 0d 01 |ource re|gister..|
|00000740| cc 30 f4 20 20 20 62 69 | 74 73 20 31 39 2e 2e 31 |.0. bi|ts 19..1|
|00000750| 37 3a 20 70 69 78 65 6c | 20 6c 6f 6f 6b 75 70 20 |7: pixel| lookup |
|00000760| 74 61 62 6c 65 20 72 65 | 67 69 73 74 65 72 0d 01 |table re|gister..|
|00000770| d6 4a f4 20 20 54 68 65 | 20 50 6c 61 79 65 72 20 |.J. The| Player |
|00000780| 61 6c 74 65 72 73 20 74 | 68 65 20 77 6f 72 64 20 |alters t|he word |
|00000790| 74 6f 20 6c 6f 6f 6b 75 | 70 20 74 68 65 20 70 69 |to looku|p the pi|
|000007a0| 78 65 6c 20 63 6f 6c 6f | 75 72 2e 20 54 68 65 20 |xel colo|ur. The |
|000007b0| 76 61 6c 75 65 20 6f 66 | 0d 01 e0 48 f4 20 20 74 |value of|...H. t|
|000007c0| 68 65 20 73 6f 75 72 63 | 65 20 72 65 67 69 73 74 |he sourc|e regist|
|000007d0| 65 72 20 61 6e 64 20 74 | 68 65 20 73 69 7a 65 20 |er and t|he size |
|000007e0| 6f 66 20 74 68 65 20 72 | 65 73 75 6c 74 20 69 6e |of the r|esult in|
|000007f0| 20 74 68 65 20 64 65 73 | 74 69 6e 61 74 69 6f 6e | the des|tination|
|00000800| 0d 01 ea 48 f4 20 20 72 | 65 67 69 73 74 65 72 20 |...H. r|egister |
|00000810| 6d 61 79 20 63 68 61 6e | 67 65 20 66 6f 72 20 64 |may chan|ge for d|
|00000820| 69 66 66 65 72 65 6e 74 | 20 64 65 63 6f 6d 70 72 |ifferent| decompr|
|00000830| 65 73 73 6f 72 73 2e 20 | 46 6f 72 20 66 6f 72 6d |essors. |For form|
|00000840| 61 74 20 32 20 74 68 65 | 0d 01 f4 4d f4 20 20 73 |at 2 the|...M. s|
|00000850| 6f 75 72 63 65 20 72 65 | 67 69 73 74 65 72 20 76 |ource re|gister v|
|00000860| 61 6c 75 65 20 69 73 20 | 65 69 74 68 65 72 20 52 |alue is |either R|
|00000870| 47 42 20 6f 72 20 59 55 | 56 20 31 35 20 62 69 74 |GB or YU|V 15 bit|
|00000880| 73 20 61 6e 64 20 74 68 | 65 20 64 65 73 74 69 6e |s and th|e destin|
|00000890| 61 74 69 6f 6e 0d 01 fe | 47 f4 20 20 76 61 6c 75 |ation...|G. valu|
|000008a0| 65 20 69 73 20 61 6c 77 | 61 79 73 20 61 20 77 6f |e is alw|ays a wo|
|000008b0| 72 64 20 76 61 6c 75 65 | 2e 20 41 6e 20 75 6e 70 |rd value|. An unp|
|000008c0| 61 74 63 68 65 64 20 66 | 6f 72 6d 61 74 20 32 20 |atched f|ormat 2 |
|000008d0| 64 65 63 6f 6d 70 72 65 | 73 73 6f 72 0d 02 08 22 |decompre|ssor..."|
|000008e0| f4 20 20 70 72 6f 64 75 | 63 65 73 20 52 47 42 20 |. produ|ces RGB |
|000008f0| 6f 72 20 59 55 56 20 6f | 75 74 70 75 74 2e 0d 02 |or YUV o|utput...|
|00000900| 12 05 f4 0d 02 1c 23 f4 | 20 53 65 63 6f 6e 64 20 |......#.| Second |
|00000910| 77 6f 72 64 3a 20 69 6e | 69 74 20 65 6e 74 72 79 |word: in|it entry|
|00000920| 20 70 6f 69 6e 74 0d 02 | 26 05 f4 0d 02 30 4b f4 | point..|&....0K.|
|00000930| 20 20 50 75 72 70 6f 73 | 65 3a 20 74 6f 20 61 6c | Purpos|e: to al|
|00000940| 6c 6f 77 20 74 68 65 20 | 64 65 63 6f 6d 70 72 65 |low the |decompre|
|00000950| 73 73 6f 72 20 74 6f 20 | 69 6e 69 74 69 61 6c 69 |ssor to |initiali|
|00000960| 73 65 20 61 6e 79 20 74 | 61 62 6c 65 73 20 74 68 |se any t|ables th|
|00000970| 61 74 20 61 72 65 0d 02 | 3a 16 f4 20 20 20 20 20 |at are..|:.. |
|00000980| 20 20 20 20 20 20 6e 65 | 65 64 65 64 0d 02 44 05 | ne|eded..D.|
|00000990| f4 0d 02 4e 10 f4 20 20 | 4f 6e 20 65 6e 74 72 79 |...N.. |On entry|
|000009a0| 3a 0d 02 58 24 f4 20 20 | 20 20 72 30 20 2d 20 73 |:..X$. | r0 - s|
|000009b0| 6f 75 72 63 65 20 78 20 | 73 69 7a 65 20 6f 66 20 |ource x |size of |
|000009c0| 6d 6f 76 69 65 0d 02 62 | 24 f4 20 20 20 20 72 31 |movie..b|$. r1|
|000009d0| 20 2d 20 73 6f 75 72 63 | 65 20 79 20 73 69 7a 65 | - sourc|e y size|
|000009e0| 20 6f 66 20 6d 6f 76 69 | 65 0d 02 6c 1a f4 20 20 | of movi|e..l.. |
|000009f0| 20 20 72 32 2e 2e 72 31 | 32 20 2d 20 73 63 72 61 | r2..r1|2 - scra|
|00000a00| 74 63 68 0d 02 76 14 f4 | 20 20 20 20 72 31 33 20 |tch..v..| r13 |
|00000a10| 2d 20 73 74 61 63 6b 0d | 02 80 1d f4 20 20 20 20 |- stack.|.... |
|00000a20| 72 31 34 20 2d 20 72 65 | 74 75 72 6e 20 61 64 64 |r14 - re|turn add|
|00000a30| 72 65 73 73 0d 02 8a 1c | f4 20 20 20 20 70 72 6f |ress....|. pro|
|00000a40| 63 65 73 73 6f 72 20 6d | 6f 64 65 3a 20 55 53 52 |cessor m|ode: USR|
|00000a50| 0d 02 94 1b f4 20 20 20 | 20 66 6c 61 67 73 20 2d |..... | flags -|
|00000a60| 20 69 72 72 65 6c 65 76 | 61 6e 74 0d 02 9e 05 f4 | irrelev|ant.....|
|00000a70| 0d 02 a8 28 f4 20 54 68 | 69 72 64 20 77 6f 72 64 |...(. Th|ird word|
|00000a80| 3a 20 64 65 63 6f 6d 70 | 72 65 73 73 20 65 6e 74 |: decomp|ress ent|
|00000a90| 72 79 20 70 6f 69 6e 74 | 0d 02 b2 05 f4 0d 02 bc |ry point|........|
|00000aa0| 2e f4 20 20 50 75 72 70 | 6f 73 65 3a 20 64 65 63 |.. Purp|ose: dec|
|00000ab0| 6f 6d 70 72 65 73 73 20 | 70 72 65 63 69 73 65 6c |ompress |precisel|
|00000ac0| 79 20 6f 6e 65 20 66 72 | 61 6d 65 0d 02 c6 05 f4 |y one fr|ame.....|
|00000ad0| 0d 02 d0 10 f4 20 20 4f | 6e 20 65 6e 74 72 79 3a |..... O|n entry:|
|00000ae0| 0d 02 da 32 f4 20 20 20 | 20 72 30 20 74 6f 20 72 |...2. | r0 to r|
|00000af0| 35 20 61 72 65 20 73 65 | 74 20 75 70 20 62 79 20 |5 are se|t up by |
|00000b00| 50 6c 61 79 65 72 20 61 | 73 20 66 6f 6c 6c 6f 77 |Player a|s follow|
|00000b10| 73 3a 0d 02 e4 21 f4 20 | 20 20 20 72 30 20 2d 20 |s:...!. | r0 - |
|00000b20| 73 6f 75 72 63 65 20 62 | 79 74 65 20 70 6f 69 6e |source b|yte poin|
|00000b30| 74 65 72 0d 02 ee 36 f4 | 20 20 20 20 72 31 20 2d |ter...6.| r1 -|
|00000b40| 20 6f 75 74 70 75 74 20 | 70 6f 69 6e 74 65 72 20 | output |pointer |
|00000b50| 2d 20 73 61 76 65 20 6f | 75 74 70 75 74 20 70 69 |- save o|utput pi|
|00000b60| 78 65 6c 73 20 68 65 72 | 65 0d 02 f8 4a f4 20 20 |xels her|e...J. |
|00000b70| 20 20 72 32 20 2d 20 70 | 72 65 76 69 6f 75 73 20 | r2 - p|revious |
|00000b80| 6f 75 74 70 75 74 20 70 | 6f 69 6e 74 65 72 20 28 |output p|ointer (|
|00000b90| 61 6c 6c 6f 77 73 20 63 | 6f 70 79 69 6e 67 20 66 |allows c|opying f|
|00000ba0| 72 6f 6d 20 70 72 65 76 | 69 6f 75 73 20 66 72 61 |rom prev|ious fra|
|00000bb0| 6d 65 29 0d 03 02 27 f4 | 20 20 20 20 72 33 20 2d |me)...'.| r3 -|
|00000bc0| 20 70 69 78 65 6c 20 64 | 69 74 68 65 72 20 6c 6f | pixel d|ither lo|
|00000bd0| 6f 6b 75 70 20 74 61 62 | 6c 65 0d 03 0c 2e f4 20 |okup tab|le..... |
|00000be0| 20 20 20 72 34 20 2d 20 | 72 65 74 75 72 6e 20 61 | r4 - |return a|
|00000bf0| 64 64 72 65 73 73 20 28 | 63 61 6e 27 74 20 62 65 |ddress (|can't be|
|00000c00| 20 72 31 34 2e 2e 2e 29 | 0d 03 16 1a f4 20 20 20 | r14...)|..... |
|00000c10| 20 72 35 2e 2e 72 31 32 | 20 2d 20 73 63 72 61 74 | r5..r12| - scrat|
|00000c20| 63 68 0d 03 20 2e f4 20 | 20 20 20 72 31 33 20 2d |ch.. .. | r13 -|
|00000c30| 20 73 6d 61 6c 6c 20 73 | 74 61 63 6b 20 28 52 49 | small s|tack (RI|
|00000c40| 53 43 20 4f 53 20 69 72 | 71 20 73 74 61 63 6b 29 |SC OS ir|q stack)|
|00000c50| 0d 03 2a 18 f4 20 20 20 | 20 72 31 34 20 2d 20 75 |..*.. | r14 - u|
|00000c60| 6e 75 73 65 61 62 6c 65 | 0d 03 34 3a f4 20 20 20 |nuseable|..4:. |
|00000c70| 20 70 72 6f 63 65 73 73 | 6f 72 20 6d 6f 64 65 3a | process|or mode:|
|00000c80| 20 49 52 51 2c 20 69 6e | 74 65 72 72 75 70 74 73 | IRQ, in|terrupts|
|00000c90| 20 45 4e 41 42 4c 45 44 | 20 28 75 73 75 61 6c 6c | ENABLED| (usuall|
|00000ca0| 79 29 0d 03 3e 1b f4 20 | 20 20 20 66 6c 61 67 73 |y)..>.. | flags|
|00000cb0| 20 2d 20 69 72 72 65 6c | 65 76 61 6e 74 0d 03 48 | - irrel|evant..H|
|00000cc0| 0e f4 20 20 4f 6e 20 65 | 78 69 74 0d 03 52 2f f4 |.. On e|xit..R/.|
|00000cd0| 20 20 20 20 72 30 20 2d | 20 6e 65 78 74 20 76 61 | r0 -| next va|
|00000ce0| 6c 75 65 20 6f 66 20 73 | 6f 75 72 63 65 20 62 79 |lue of s|ource by|
|00000cf0| 74 65 20 70 6f 69 6e 74 | 65 72 0d 03 5c 1d f4 20 |te point|er..\.. |
|00000d00| 20 20 20 72 31 2e 2e 72 | 31 32 20 2d 20 69 72 72 | r1..r|12 - irr|
|00000d10| 65 6c 65 76 61 6e 74 0d | 03 66 2d f4 20 20 20 20 |elevant.|.f-. |
|00000d20| 72 31 33 20 2d 20 6d 75 | 73 74 20 62 65 20 73 61 |r13 - mu|st be sa|
|00000d30| 6d 65 20 76 61 6c 75 65 | 20 61 73 20 6f 6e 20 65 |me value| as on e|
|00000d40| 6e 74 72 79 0d 03 70 19 | f4 20 20 20 20 72 31 34 |ntry..p.|. r14|
|00000d50| 20 2d 20 69 72 72 65 6c | 65 76 61 6e 74 0d 03 7a | - irrel|evant..z|
|00000d60| 30 f4 20 20 20 20 70 72 | 6f 63 65 73 73 6f 72 20 |0. pr|ocessor |
|00000d70| 6d 6f 64 65 3a 20 49 52 | 51 2c 20 69 6e 74 65 72 |mode: IR|Q, inter|
|00000d80| 72 75 70 74 73 20 45 4e | 41 42 4c 45 44 0d 03 84 |rupts EN|ABLED...|
|00000d90| 1b f4 20 20 20 20 66 6c | 61 67 73 20 2d 20 69 72 |.. fl|ags - ir|
|00000da0| 72 65 6c 65 76 61 6e 74 | 0d 03 8e 05 f4 0d 03 98 |relevant|........|
|00000db0| 46 f4 20 20 54 68 65 20 | 66 6f 72 6d 61 74 20 32 |F. The |format 2|
|00000dc0| 20 64 65 63 6f 6d 70 72 | 65 73 73 6f 72 20 73 61 | decompr|essor sa|
|00000dd0| 76 65 73 20 70 69 78 65 | 6c 73 20 61 73 20 57 6f |ves pixe|ls as Wo|
|00000de0| 72 64 73 21 21 21 20 46 | 6f 72 20 66 6f 72 6d 61 |rds!!! F|or forma|
|00000df0| 74 20 32 0d 03 a2 38 f4 | 20 20 74 6f 20 77 6f 72 |t 2...8.| to wor|
|00000e00| 6b 2c 20 74 68 65 20 73 | 6f 75 72 63 65 20 70 6f |k, the s|ource po|
|00000e10| 69 6e 74 65 72 20 6d 75 | 73 74 20 62 65 20 77 6f |inter mu|st be wo|
|00000e20| 72 64 20 61 6c 69 67 6e | 65 64 2e 0d 03 ac 05 f4 |rd align|ed......|
|00000e30| 0d 03 b6 1c f4 20 20 66 | 6f 72 6d 61 74 20 33 20 |..... f|ormat 3 |
|00000e40| 61 63 74 75 61 6c 20 75 | 73 61 67 65 0d 03 c0 26 |actual u|sage...&|
|00000e50| f4 20 20 54 68 65 20 6d | 61 69 6e 20 65 6e 74 72 |. The m|ain entr|
|00000e60| 79 70 6f 69 6e 74 20 69 | 73 20 61 74 20 2e 64 65 |ypoint i|s at .de|
|00000e70| 63 6c 0d 03 ca 16 f4 20 | 20 72 65 67 69 73 74 65 |cl..... | registe|
|00000e80| 72 20 75 73 61 67 65 3a | 0d 03 d4 30 f4 20 20 20 |r usage:|...0. |
|00000e90| 20 72 30 20 2d 20 73 6f | 75 72 63 65 20 62 79 74 | r0 - so|urce byt|
|00000ea0| 65 20 70 6f 69 6e 74 65 | 72 20 28 77 6f 72 64 20 |e pointe|r (word |
|00000eb0| 61 6c 69 67 6e 65 64 29 | 0d 03 de 1c f4 20 20 20 |aligned)|..... |
|00000ec0| 20 72 31 20 2d 20 6f 75 | 74 70 75 74 20 70 6f 69 | r1 - ou|tput poi|
|00000ed0| 6e 74 65 72 0d 03 e8 27 | f4 20 20 20 20 72 33 20 |nter...'|. r3 |
|00000ee0| 2d 20 70 69 78 65 6c 20 | 64 69 74 68 65 72 20 6c |- pixel |dither l|
|00000ef0| 6f 6f 6b 75 70 20 74 61 | 62 6c 65 0d 03 f2 1c f4 |ookup ta|ble.....|
|00000f00| 20 20 20 20 72 34 20 2d | 20 72 65 74 75 72 6e 20 | r4 -| return |
|00000f10| 61 64 64 72 65 73 73 0d | 03 fc 1e f4 20 20 20 20 |address.|.... |
|00000f20| 72 35 20 2d 20 6e 75 6d | 62 65 72 20 6f 66 20 70 |r5 - num|ber of p|
|00000f30| 69 78 65 6c 73 0d 04 06 | 05 f4 0d 04 10 48 20 20 |ixels...|.....H |
|00000f40| 20 20 20 20 44 43 44 20 | 74 61 62 6c 65 25 2d 63 | DCD |table%-c|
|00000f50| 6f 64 65 25 20 f4 20 6f | 66 66 73 65 74 20 74 6f |ode% . o|ffset to|
|00000f60| 20 70 61 74 63 68 20 74 | 61 62 6c 65 20 28 6f 72 | patch t|able (or|
|00000f70| 20 7a 65 72 6f 20 69 66 | 20 6e 6f 20 74 61 62 6c | zero if| no tabl|
|00000f80| 65 29 0d 04 1a 23 20 20 | 20 20 20 20 42 20 69 6e |e)...# | B in|
|00000f90| 69 74 20 f4 20 69 6e 69 | 74 69 61 6c 69 73 65 20 |it . ini|tialise |
|00000fa0| 70 69 78 6e 6f 0d 04 24 | 17 20 20 20 20 20 20 53 |pixno..$|. S|
|00000fb0| 54 52 20 72 34 2c 72 65 | 74 76 61 6c 0d 04 2e 15 |TR r4,re|tval....|
|00000fc0| 20 20 20 20 20 20 4c 44 | 52 20 72 32 2c 70 69 78 | LD|R r2,pix|
|00000fd0| 79 0d 04 38 16 20 20 20 | 20 20 20 53 54 52 20 72 |y..8. | STR r|
|00000fe0| 32 2c 64 6f 77 6e 79 0d | 04 42 13 20 20 20 20 20 |2,downy.|.B. |
|00000ff0| 20 4d 4f 56 20 72 32 2c | 72 32 0d 04 4c 3b 20 20 | MOV r2,|r2..L; |
|00001000| 20 20 20 20 4d 4f 56 20 | 72 32 2c 72 32 20 20 20 | MOV |r2,r2 |
|00001010| 20 20 f4 20 71 75 61 64 | 20 77 6f 72 64 20 61 6c | . quad| word al|
|00001020| 69 67 6e 20 64 65 63 6f | 6d 70 72 65 73 73 6f 72 |ign deco|mpressor|
|00001030| 20 6c 6f 6f 70 0d 04 56 | 0d 2e 64 65 63 6c 6f 6f | loop..V|..decloo|
|00001040| 70 79 0d 04 60 15 20 20 | 20 20 20 20 4c 44 52 20 |py..`. | LDR |
|00001050| 72 32 2c 70 69 78 78 0d | 04 6a 0c 2e 64 65 63 6c |r2,pixx.|.j..decl|
|00001060| 6f 6f 70 0d 04 74 3b 20 | 20 20 20 20 20 4c 44 4d |oop..t; | LDM|
|00001070| 49 41 20 72 30 20 21 2c | 7b 72 38 2c 72 39 2c 72 |IA r0 !,|{r8,r9,r|
|00001080| 31 30 2c 72 31 31 7d 20 | f4 20 67 65 74 20 31 36 |10,r11} |. get 16|
|00001090| 20 70 61 63 6b 65 64 20 | 70 69 78 65 6c 73 0d 04 | packed |pixels..|
|000010a0| 7e 41 20 20 20 20 20 20 | 4d 4f 56 20 72 31 32 2c |~A |MOV r12,|
|000010b0| 72 38 2c 4c 53 52 20 23 | 32 30 20 20 20 20 20 20 |r8,LSR #|20 |
|000010c0| 20 f4 20 67 65 74 20 62 | 6f 74 74 6f 6d 20 31 32 | . get b|ottom 12|
|000010d0| 20 62 69 74 73 20 6f 66 | 20 73 65 63 6f 6e 64 0d | bits of| second.|
|000010e0| 04 88 3f 20 20 20 20 20 | 20 84 52 20 72 31 32 2c |..? | .R r12,|
|000010f0| 72 31 32 2c 72 39 2c 4c | 53 4c 20 23 31 32 20 20 |r12,r9,L|SL #12 |
|00001100| 20 f4 20 61 6e 64 20 63 | 6f 6d 62 69 6e 65 20 77 | . and c|ombine w|
|00001110| 69 74 68 20 72 65 73 74 | 20 6f 66 20 69 74 0d 04 |ith rest| of it..|
|00001120| 92 21 20 20 20 20 20 20 | a4 69 6e 74 65 72 70 75 |.! |.interpu|
|00001130| 76 28 36 2c 37 2c 34 2c | 35 2c 38 2c 31 32 29 0d |v(6,7,4,|5,8,12).|
|00001140| 04 9c 41 20 20 20 20 20 | 20 a4 70 6c 6f 6f 6b 28 |..A | .plook(|
|00001150| 36 29 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |6) | |
|00001160| f4 20 72 65 63 6f 72 64 | 20 70 61 74 63 68 20 74 |. record| patch t|
|00001170| 61 62 6c 65 20 65 6e 74 | 72 79 20 66 6f 72 20 31 |able ent|ry for 1|
|00001180| 0d 04 a6 41 20 20 20 20 | 20 20 a4 70 6c 6f 6f 6b |...A | .plook|
|00001190| 28 37 29 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |(7) | |
|000011a0| 20 f4 20 2e 2e 20 20 20 | 20 20 20 20 20 20 20 20 | . .. | |
|000011b0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000011c0| 32 0d 04 b0 05 5d 0d 04 | ba 0d e7 20 68 61 6c 66 |2....]..|... half|
|000011d0| 25 20 8c 0d 04 c4 0b 5b | 4f 50 54 20 5a 25 0d 04 |% .....[|OPT Z%..|
|000011e0| ce 1c 20 20 20 20 20 20 | 84 52 20 72 36 2c 72 36 |.. |.R r6,r6|
|000011f0| 2c 72 37 2c 4c 53 4c 23 | 31 36 0d 04 d8 38 20 20 |,r7,LSL#|16...8 |
|00001200| 20 20 20 20 53 54 4d 49 | 41 20 72 31 20 21 2c 7b | STMI|A r1 !,{|
|00001210| 72 36 7d 20 20 20 20 20 | 20 20 20 20 f4 20 77 72 |r6} | . wr|
|00001220| 69 74 65 20 6f 75 74 20 | 74 77 6f 20 70 69 78 65 |ite out |two pixe|
|00001230| 6c 73 0d 04 e2 05 5d 0d | 04 ec 05 cc 0d 04 f6 0b |ls....].|........|
|00001240| 5b 4f 50 54 20 5a 25 0d | 05 00 38 20 20 20 20 20 |[OPT Z%.|..8 |
|00001250| 20 53 54 4d 49 41 20 72 | 31 20 21 2c 7b 72 36 2c | STMIA r|1 !,{r6,|
|00001260| 72 37 7d 20 20 20 20 20 | 20 f4 20 77 72 69 74 65 |r7} | . write|
|00001270| 20 6f 75 74 20 74 77 6f | 20 70 69 78 65 6c 73 0d | out two| pixels.|
|00001280| 05 0a 05 5d 0d 05 14 05 | cd 0d 05 1e 0b 5b 4f 50 |...]....|.....[OP|
|00001290| 54 20 5a 25 0d 05 28 2d | 20 20 20 20 20 20 4d 4f |T Z%..(-| MO|
|000012a0| 56 20 72 38 2c 72 39 2c | 4c 53 52 20 23 38 20 20 |V r8,r9,|LSR #8 |
|000012b0| 20 20 20 20 20 20 f4 20 | 67 65 74 20 74 68 69 72 | . |get thir|
|000012c0| 64 0d 05 32 21 20 20 20 | 20 20 20 a4 69 6e 74 65 |d..2! | .inte|
|000012d0| 72 70 75 76 28 36 2c 37 | 2c 34 2c 35 2c 31 32 2c |rpuv(6,7|,4,5,12,|
|000012e0| 38 29 0d 05 3c 41 20 20 | 20 20 20 20 a4 70 6c 6f |8)..<A | .plo|
|000012f0| 6f 6b 28 36 29 20 20 20 | 20 20 20 20 20 20 20 20 |ok(6) | |
|00001300| 20 20 20 f4 20 72 65 63 | 6f 72 64 20 70 61 74 63 | . rec|ord patc|
|00001310| 68 20 74 61 62 6c 65 20 | 65 6e 74 72 79 20 66 6f |h table |entry fo|
|00001320| 72 20 33 0d 05 46 41 20 | 20 20 20 20 20 a4 70 6c |r 3..FA | .pl|
|00001330| 6f 6f 6b 28 37 29 20 20 | 20 20 20 20 20 20 20 20 |ook(7) | |
|00001340| 20 20 20 20 f4 20 2e 2e | 20 20 20 20 20 20 20 20 | . ..| |
|00001350| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00001360| 20 20 20 34 0d 05 50 05 | 5d 0d 05 5a 0d e7 20 68 | 4..P.|]..Z.. h|
|00001370| 61 6c 66 25 20 8c 0d 05 | 64 0b 5b 4f 50 54 20 5a |alf% ...|d.[OPT Z|
|00001380| 25 0d 05 6e 1c 20 20 20 | 20 20 20 84 52 20 72 36 |%..n. | .R r6|
|00001390| 2c 72 36 2c 72 37 2c 4c | 53 4c 23 31 36 0d 05 78 |,r6,r7,L|SL#16..x|
|000013a0| 38 20 20 20 20 20 20 53 | 54 4d 49 41 20 72 31 20 |8 S|TMIA r1 |
|000013b0| 21 2c 7b 72 36 7d 20 20 | 20 20 20 20 20 20 20 f4 |!,{r6} | .|
|000013c0| 20 77 72 69 74 65 20 6f | 75 74 20 74 77 6f 20 70 | write o|ut two p|
|000013d0| 69 78 65 6c 73 0d 05 82 | 05 5d 0d 05 8c 05 cc 0d |ixels...|.]......|
|000013e0| 05 96 0b 5b 4f 50 54 20 | 5a 25 0d 05 a0 38 20 20 |...[OPT |Z%...8 |
|000013f0| 20 20 20 20 53 54 4d 49 | 41 20 72 31 20 21 2c 7b | STMI|A r1 !,{|
|00001400| 72 36 2c 72 37 7d 20 20 | 20 20 20 20 f4 20 77 72 |r6,r7} | . wr|
|00001410| 69 74 65 20 6f 75 74 20 | 74 77 6f 20 70 69 78 65 |ite out |two pixe|
|00001420| 6c 73 0d 05 aa 05 5d 0d | 05 b4 05 cd 0d 05 be 0b |ls....].|........|
|00001430| 5b 4f 50 54 20 5a 25 0d | 05 c8 47 20 20 20 20 20 |[OPT Z%.|..G |
|00001440| 20 4d 4f 56 20 72 39 2c | 72 39 2c 4c 53 52 20 23 | MOV r9,|r9,LSR #|
|00001450| 32 38 20 20 20 20 20 20 | 20 f4 20 65 61 74 65 6e |28 | . eaten|
|00001460| 20 61 6e 6f 74 68 65 72 | 20 32 30 20 62 69 74 73 | another| 20 bits|
|00001470| 20 6f 66 20 72 39 3a 20 | 34 20 6c 65 66 74 0d 05 | of r9: |4 left..|
|00001480| d2 3e 20 20 20 20 20 20 | 84 52 20 72 39 2c 72 39 |.> |.R r9,r9|
|00001490| 2c 72 31 30 2c 4c 53 4c | 20 23 34 20 20 20 20 f4 |,r10,LSL| #4 .|
|000014a0| 20 6e 6f 77 20 67 6f 74 | 20 66 6f 75 72 74 68 20 | now got| fourth |
|000014b0| 59 59 55 56 20 70 61 74 | 74 65 72 6e 0d 05 dc 20 |YYUV pat|tern... |
|000014c0| 20 20 20 20 20 20 a4 69 | 6e 74 65 72 70 75 76 28 | .i|nterpuv(|
|000014d0| 36 2c 37 2c 34 2c 35 2c | 38 2c 39 29 0d 05 e6 41 |6,7,4,5,|8,9)...A|
|000014e0| 20 20 20 20 20 20 a4 70 | 6c 6f 6f 6b 28 36 29 20 | .p|look(6) |
|000014f0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 f4 20 72 | | . r|
|00001500| 65 63 6f 72 64 20 70 61 | 74 63 68 20 74 61 62 6c |ecord pa|tch tabl|
|00001510| 65 20 65 6e 74 72 79 20 | 66 6f 72 20 35 0d 05 f0 |e entry |for 5...|
|00001520| 41 20 20 20 20 20 20 a4 | 70 6c 6f 6f 6b 28 37 29 |A .|plook(7)|
|00001530| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 f4 20 | | . |
|00001540| 2e 2e 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |.. | |
|00001550| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 36 0d 05 | | 6..|
|00001560| fa 40 20 20 20 20 20 20 | 4d 4f 56 20 72 31 30 2c |.@ |MOV r10,|
|00001570| 72 31 30 2c 4c 53 52 20 | 23 31 36 20 20 20 20 20 |r10,LSR |#16 |
|00001580| f4 20 61 6c 72 65 61 64 | 79 20 65 61 74 65 6e 20 |. alread|y eaten |
|00001590| 31 36 20 62 69 74 73 20 | 6f 66 20 72 31 30 0d 06 |16 bits |of r10..|
|000015a0| 04 3d 20 20 20 20 20 20 | 84 52 20 72 31 30 2c 72 |.= |.R r10,r|
|000015b0| 31 30 2c 72 31 31 2c 4c | 53 4c 20 23 31 36 20 f4 |10,r11,L|SL #16 .|
|000015c0| 20 6e 6f 77 20 67 6f 74 | 20 66 69 66 74 68 20 59 | now got| fifth Y|
|000015d0| 59 55 56 20 70 61 74 74 | 65 72 6e 0d 06 0e 22 20 |YUV patt|ern..." |
|000015e0| 20 20 20 20 20 a4 69 6e | 74 65 72 70 75 76 28 38 | .in|terpuv(8|
|000015f0| 2c 31 32 2c 34 2c 35 2c | 39 2c 31 30 29 0d 06 18 |,12,4,5,|9,10)...|
|00001600| 41 20 20 20 20 20 20 a4 | 70 6c 6f 6f 6b 28 38 29 |A .|plook(8)|
|00001610| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 f4 20 | | . |
|00001620| 72 65 63 6f 72 64 20 70 | 61 74 63 68 20 74 61 62 |record p|atch tab|
|00001630| 6c 65 20 65 6e 74 72 79 | 20 66 6f 72 20 37 0d 06 |le entry| for 7..|
|00001640| 22 41 20 20 20 20 20 20 | a4 70 6c 6f 6f 6b 28 31 |"A |.plook(1|
|00001650| 32 29 20 20 20 20 20 20 | 20 20 20 20 20 20 20 f4 |2) | .|
|00001660| 20 2e 2e 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | .. | |
|00001670| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 38 0d | | 8.|
|00001680| 06 2c 05 5d 0d 06 36 0d | e7 20 68 61 6c 66 25 20 |.,.]..6.|. half% |
|00001690| 8c 0d 06 40 0b 5b 4f 50 | 54 20 5a 25 0d 06 4a 1c |...@.[OP|T Z%..J.|
|000016a0| 20 20 20 20 20 20 84 52 | 20 72 36 2c 72 36 2c 72 | .R| r6,r6,r|
|000016b0| 37 2c 4c 53 4c 23 31 36 | 0d 06 54 1e 20 20 20 20 |7,LSL#16|..T. |
|000016c0| 20 20 84 52 20 72 38 2c | 72 38 2c 72 31 32 2c 4c | .R r8,|r8,r12,L|
|000016d0| 53 4c 20 23 31 36 0d 06 | 5e 39 20 20 20 20 20 20 |SL #16..|^9 |
|000016e0| 53 54 4d 49 41 20 72 31 | 20 21 2c 7b 72 36 2c 72 |STMIA r1| !,{r6,r|
|000016f0| 38 7d 20 20 20 20 20 20 | f4 20 77 72 69 74 65 20 |8} |. write |
|00001700| 6f 75 74 20 66 6f 75 72 | 20 70 69 78 65 6c 73 0d |out four| pixels.|
|00001710| 06 68 05 5d 0d 06 72 05 | cc 0d 06 7c 0b 5b 4f 50 |.h.]..r.|...|.[OP|
|00001720| 54 20 5a 25 0d 06 86 3b | 20 20 20 20 20 20 53 54 |T Z%...;| ST|
|00001730| 4d 49 41 20 72 31 20 21 | 2c 7b 72 36 2c 72 37 2c |MIA r1 !|,{r6,r7,|
|00001740| 72 38 2c 72 31 32 7d 20 | f4 20 77 72 69 74 65 20 |r8,r12} |. write |
|00001750| 6f 75 74 20 66 6f 75 72 | 20 70 69 78 65 6c 73 0d |out four| pixels.|
|00001760| 06 90 05 5d 0d 06 9a 05 | cd 0d 06 a4 0b 5b 4f 50 |...]....|.....[OP|
|00001770| 54 20 5a 25 0d 06 ae 3e | 20 20 20 20 20 20 4d 4f |T Z%...>| MO|
|00001780| 56 20 72 31 31 2c 72 31 | 31 2c 4c 53 52 20 23 34 |V r11,r1|1,LSR #4|
|00001790| 20 20 20 20 20 20 f4 20 | 6e 6f 77 20 67 6f 74 20 | . |now got |
|000017a0| 73 69 78 74 68 20 59 59 | 55 56 20 70 61 74 74 65 |sixth YY|UV patte|
|000017b0| 72 6e 0d 06 b8 4e 20 20 | 20 20 20 20 4c 44 4d 49 |rn...N | LDMI|
|000017c0| 41 20 72 30 20 21 2c 7b | 72 31 32 7d 20 20 20 20 |A r0 !,{|r12} |
|000017d0| 20 20 20 20 f4 20 66 65 | 74 63 68 20 66 69 6e 61 | . fe|tch fina|
|000017e0| 6c 20 77 6f 72 64 2c 20 | 6e 6f 74 20 74 68 61 74 |l word, |not that|
|000017f0| 20 69 74 73 20 6e 65 65 | 64 65 64 20 79 65 74 21 | its nee|ded yet!|
|00001800| 0d 06 c2 22 20 20 20 20 | 20 20 a4 69 6e 74 65 72 |..." | .inter|
|00001810| 70 75 76 28 36 2c 37 2c | 34 2c 35 2c 31 30 2c 31 |puv(6,7,|4,5,10,1|
|00001820| 31 29 0d 06 cc 41 20 20 | 20 20 20 20 a4 70 6c 6f |1)...A | .plo|
|00001830| 6f 6b 28 36 29 20 20 20 | 20 20 20 20 20 20 20 20 |ok(6) | |
|00001840| 20 20 20 f4 20 72 65 63 | 6f 72 64 20 70 61 74 63 | . rec|ord patc|
|00001850| 68 20 74 61 62 6c 65 20 | 65 6e 74 72 79 20 66 6f |h table |entry fo|
|00001860| 72 20 39 0d 06 d6 42 20 | 20 20 20 20 20 a4 70 6c |r 9...B | .pl|
|00001870| 6f 6f 6b 28 37 29 20 20 | 20 20 20 20 20 20 20 20 |ook(7) | |
|00001880| 20 20 20 20 f4 20 2e 2e | 20 20 20 20 20 20 20 20 | . ..| |
|00001890| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000018a0| 20 20 20 31 30 0d 06 e0 | 3a 20 20 20 20 20 20 4d | 10...|: M|
|000018b0| 4f 56 20 72 31 30 2c 72 | 31 31 2c 4c 53 52 20 23 |OV r10,r|11,LSR #|
|000018c0| 32 30 20 20 20 20 20 f4 | 20 6f 6e 6c 79 20 38 20 |20 .| only 8 |
|000018d0| 70 69 78 65 6c 73 20 6c | 65 66 74 20 6e 6f 77 0d |pixels l|eft now.|
|000018e0| 06 ea 3f 20 20 20 20 20 | 20 84 52 20 72 31 30 2c |..? | .R r10,|
|000018f0| 72 31 30 2c 72 31 32 2c | 4c 53 4c 20 23 38 20 20 |r10,r12,|LSL #8 |
|00001900| f4 20 6e 6f 77 20 67 6f | 74 20 73 65 76 65 6e 74 |. now go|t sevent|
|00001910| 68 20 59 59 55 56 20 70 | 61 74 74 65 72 6e 0d 06 |h YYUV p|attern..|
|00001920| f4 22 20 20 20 20 20 20 | a4 69 6e 74 65 72 70 75 |." |.interpu|
|00001930| 76 28 38 2c 39 2c 34 2c | 35 2c 31 31 2c 31 30 29 |v(8,9,4,|5,11,10)|
|00001940| 0d 06 fe 42 20 20 20 20 | 20 20 a4 70 6c 6f 6f 6b |...B | .plook|
|00001950| 28 38 29 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |(8) | |
|00001960| 20 f4 20 72 65 63 6f 72 | 64 20 70 61 74 63 68 20 | . recor|d patch |
|00001970| 74 61 62 6c 65 20 65 6e | 74 72 79 20 66 6f 72 20 |table en|try for |
|00001980| 31 31 0d 07 08 42 20 20 | 20 20 20 20 a4 70 6c 6f |11...B | .plo|
|00001990| 6f 6b 28 39 29 20 20 20 | 20 20 20 20 20 20 20 20 |ok(9) | |
|000019a0| 20 20 20 f4 20 2e 2e 20 | 20 20 20 20 20 20 20 20 | . .. | |
|000019b0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000019c0| 20 20 31 32 0d 07 12 05 | 5d 0d 07 1c 0d e7 20 68 | 12....|]..... h|
|000019d0| 61 6c 66 25 20 8c 0d 07 | 26 0b 5b 4f 50 54 20 5a |alf% ...|&.[OPT Z|
|000019e0| 25 0d 07 30 1c 20 20 20 | 20 20 20 84 52 20 72 36 |%..0. | .R r6|
|000019f0| 2c 72 36 2c 72 37 2c 4c | 53 4c 23 31 36 0d 07 3a |,r6,r7,L|SL#16..:|
|00001a00| 1d 20 20 20 20 20 20 84 | 52 20 72 38 2c 72 38 2c |. .|R r8,r8,|
|00001a10| 72 39 2c 4c 53 4c 20 23 | 31 36 0d 07 44 39 20 20 |r9,LSL #|16..D9 |
|00001a20| 20 20 20 20 53 54 4d 49 | 41 20 72 31 20 21 2c 7b | STMI|A r1 !,{|
|00001a30| 72 36 2c 72 38 7d 20 20 | 20 20 20 20 f4 20 77 72 |r6,r8} | . wr|
|00001a40| 69 74 65 20 6f 75 74 20 | 66 6f 75 72 20 70 69 78 |ite out |four pix|
|00001a50| 65 6c 73 0d 07 4e 05 5d | 0d 07 58 05 cc 0d 07 62 |els..N.]|..X....b|
|00001a60| 0b 5b 4f 50 54 20 5a 25 | 0d 07 6c 3a 20 20 20 20 |.[OPT Z%|..l: |
|00001a70| 20 20 53 54 4d 49 41 20 | 72 31 20 21 2c 7b 72 36 | STMIA |r1 !,{r6|
|00001a80| 2c 72 37 2c 72 38 2c 72 | 39 7d 20 f4 20 77 72 69 |,r7,r8,r|9} . wri|
|00001a90| 74 65 20 6f 75 74 20 66 | 6f 75 72 20 70 69 78 65 |te out f|our pixe|
|00001aa0| 6c 73 0d 07 76 05 5d 0d | 07 80 05 cd 0d 07 8a 0b |ls..v.].|........|
|00001ab0| 5b 4f 50 54 20 5a 25 0d | 07 94 3f 20 20 20 20 20 |[OPT Z%.|..? |
|00001ac0| 20 4d 4f 56 20 72 31 32 | 2c 72 31 32 2c 4c 53 52 | MOV r12|,r12,LSR|
|00001ad0| 20 23 31 32 20 20 20 20 | 20 f4 20 6e 6f 77 20 67 | #12 | . now g|
|00001ae0| 6f 74 20 65 69 67 68 74 | 68 20 59 59 55 56 20 70 |ot eight|h YYUV p|
|00001af0| 61 74 74 65 72 6e 0d 07 | 9e 22 20 20 20 20 20 20 |attern..|." |
|00001b00| a4 69 6e 74 65 72 70 75 | 76 28 36 2c 37 2c 34 2c |.interpu|v(6,7,4,|
|00001b10| 35 2c 31 30 2c 31 32 29 | 0d 07 a8 42 20 20 20 20 |5,10,12)|...B |
|00001b20| 20 20 a4 70 6c 6f 6f 6b | 28 36 29 20 20 20 20 20 | .plook|(6) |
|00001b30| 20 20 20 20 20 20 20 20 | 20 f4 20 72 65 63 6f 72 | | . recor|
|00001b40| 64 20 70 61 74 63 68 20 | 74 61 62 6c 65 20 65 6e |d patch |table en|
|00001b50| 74 72 79 20 66 6f 72 20 | 31 33 0d 07 b2 42 20 20 |try for |13...B |
|00001b60| 20 20 20 20 a4 70 6c 6f | 6f 6b 28 37 29 20 20 20 | .plo|ok(7) |
|00001b70| 20 20 20 20 20 20 20 20 | 20 20 20 f4 20 2e 2e 20 | | . .. |
|00001b80| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00001b90| 20 20 20 20 20 20 20 20 | 20 20 31 34 0d 07 bc 32 | | 14...2|
|00001ba0| 20 20 20 20 20 20 4c 44 | 4d 49 41 20 72 30 2c 7b | LD|MIA r0,{|
|00001bb0| 72 31 30 7d 20 20 20 20 | 20 20 20 20 20 20 f4 20 |r10} | . |
|00001bc0| 6e 65 78 74 20 70 61 63 | 6b 65 74 2e 2e 2e 0d 07 |next pac|ket.....|
|00001bd0| c6 22 20 20 20 20 20 20 | a4 69 6e 74 65 72 70 75 |." |.interpu|
|00001be0| 76 28 38 2c 39 2c 34 2c | 35 2c 31 32 2c 31 30 29 |v(8,9,4,|5,12,10)|
|00001bf0| 0d 07 d0 42 20 20 20 20 | 20 20 a4 70 6c 6f 6f 6b |...B | .plook|
|00001c00| 28 38 29 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |(8) | |
|00001c10| 20 f4 20 72 65 63 6f 72 | 64 20 70 61 74 63 68 20 | . recor|d patch |
|00001c20| 74 61 62 6c 65 20 65 6e | 74 72 79 20 66 6f 72 20 |table en|try for |
|00001c30| 31 35 0d 07 da 42 20 20 | 20 20 20 20 a4 70 6c 6f |15...B | .plo|
|00001c40| 6f 6b 28 39 29 20 20 20 | 20 20 20 20 20 20 20 20 |ok(9) | |
|00001c50| 20 20 20 f4 20 2e 2e 20 | 20 20 20 20 20 20 20 20 | . .. | |
|00001c60| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00001c70| 20 20 31 36 0d 07 e4 05 | 5d 0d 07 ee 0d e7 20 68 | 16....|]..... h|
|00001c80| 61 6c 66 25 20 8c 0d 07 | f8 0b 5b 4f 50 54 20 5a |alf% ...|..[OPT Z|
|00001c90| 25 0d 08 02 1c 20 20 20 | 20 20 20 84 52 20 72 36 |%.... | .R r6|
|00001ca0| 2c 72 36 2c 72 37 2c 4c | 53 4c 23 31 36 0d 08 0c |,r6,r7,L|SL#16...|
|00001cb0| 1d 20 20 20 20 20 20 84 | 52 20 72 38 2c 72 38 2c |. .|R r8,r8,|
|00001cc0| 72 39 2c 4c 53 4c 20 23 | 31 36 0d 08 16 39 20 20 |r9,LSL #|16...9 |
|00001cd0| 20 20 20 20 53 54 4d 49 | 41 20 72 31 20 21 2c 7b | STMI|A r1 !,{|
|00001ce0| 72 36 2c 72 38 7d 20 20 | 20 20 20 20 f4 20 77 72 |r6,r8} | . wr|
|00001cf0| 69 74 65 20 6f 75 74 20 | 66 6f 75 72 20 70 69 78 |ite out |four pix|
|00001d00| 65 6c 73 0d 08 20 05 5d | 0d 08 2a 05 cc 0d 08 34 |els.. .]|..*....4|
|00001d10| 0b 5b 4f 50 54 20 5a 25 | 0d 08 3e 3a 20 20 20 20 |.[OPT Z%|..>: |
|00001d20| 20 20 53 54 4d 49 41 20 | 72 31 20 21 2c 7b 72 36 | STMIA |r1 !,{r6|
|00001d30| 2c 72 37 2c 72 38 2c 72 | 39 7d 20 f4 20 77 72 69 |,r7,r8,r|9} . wri|
|00001d40| 74 65 20 6f 75 74 20 66 | 6f 75 72 20 70 69 78 65 |te out f|our pixe|
|00001d50| 6c 73 0d 08 48 05 5d 0d | 08 52 05 cd 0d 08 5c 0b |ls..H.].|.R....\.|
|00001d60| 5b 4f 50 54 20 5a 25 0d | 08 66 29 20 20 20 20 20 |[OPT Z%.|.f) |
|00001d70| 20 53 55 42 53 20 72 32 | 2c 72 32 2c 23 31 36 20 | SUBS r2|,r2,#16 |
|00001d80| f4 20 64 6f 6e 65 20 31 | 36 20 70 69 78 65 6c 73 |. done 1|6 pixels|
|00001d90| 0d 08 70 15 20 20 20 20 | 20 20 42 4e 45 20 64 65 |..p. | BNE de|
|00001da0| 63 6c 6f 6f 70 0d 08 7a | 3b 20 20 20 20 20 20 4c |cloop..z|; L|
|00001db0| 44 4d 49 41 20 72 30 20 | 21 2c 7b 72 38 2c 72 39 |DMIA r0 |!,{r8,r9|
|00001dc0| 2c 72 31 30 2c 72 31 31 | 7d 20 f4 20 67 65 74 20 |,r10,r11|} . get |
|00001dd0| 31 36 20 70 61 63 6b 65 | 64 20 70 69 78 65 6c 73 |16 packe|d pixels|
|00001de0| 0d 08 84 41 20 20 20 20 | 20 20 4d 4f 56 20 72 31 |...A | MOV r1|
|00001df0| 32 2c 72 38 2c 4c 53 52 | 20 23 32 30 20 20 20 20 |2,r8,LSR| #20 |
|00001e00| 20 20 20 f4 20 67 65 74 | 20 62 6f 74 74 6f 6d 20 | . get| bottom |
|00001e10| 31 32 20 62 69 74 73 20 | 6f 66 20 73 65 63 6f 6e |12 bits |of secon|
|00001e20| 64 0d 08 8e 3f 20 20 20 | 20 20 20 84 52 20 72 31 |d...? | .R r1|
|00001e30| 32 2c 72 31 32 2c 72 39 | 2c 4c 53 4c 20 23 31 32 |2,r12,r9|,LSL #12|
|00001e40| 20 20 20 f4 20 61 6e 64 | 20 63 6f 6d 62 69 6e 65 | . and| combine|
|00001e50| 20 77 69 74 68 20 72 65 | 73 74 20 6f 66 20 69 74 | with re|st of it|
|00001e60| 0d 08 98 21 20 20 20 20 | 20 20 a4 69 6e 74 65 72 |...! | .inter|
|00001e70| 70 75 76 28 36 2c 37 2c | 34 2c 35 2c 38 2c 31 32 |puv(6,7,|4,5,8,12|
|00001e80| 29 0d 08 a2 41 20 20 20 | 20 20 20 a4 70 6c 6f 6f |)...A | .ploo|
|00001e90| 6b 28 36 29 20 20 20 20 | 20 20 20 20 20 20 20 20 |k(6) | |
|00001ea0| 20 20 f4 20 72 65 63 6f | 72 64 20 70 61 74 63 68 | . reco|rd patch|
|00001eb0| 20 74 61 62 6c 65 20 65 | 6e 74 72 79 20 66 6f 72 | table e|ntry for|
|00001ec0| 20 31 0d 08 ac 41 20 20 | 20 20 20 20 a4 70 6c 6f | 1...A | .plo|
|00001ed0| 6f 6b 28 37 29 20 20 20 | 20 20 20 20 20 20 20 20 |ok(7) | |
|00001ee0| 20 20 20 f4 20 2e 2e 20 | 20 20 20 20 20 20 20 20 | . .. | |
|00001ef0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00001f00| 20 20 32 0d 08 b6 05 5d | 0d 08 c0 0d e7 20 68 61 | 2....]|..... ha|
|00001f10| 6c 66 25 20 8c 0d 08 ca | 0b 5b 4f 50 54 20 5a 25 |lf% ....|.[OPT Z%|
|00001f20| 0d 08 d4 1c 20 20 20 20 | 20 20 84 52 20 72 36 2c |.... | .R r6,|
|00001f30| 72 36 2c 72 37 2c 4c 53 | 4c 23 31 36 0d 08 de 38 |r6,r7,LS|L#16...8|
|00001f40| 20 20 20 20 20 20 53 54 | 4d 49 41 20 72 31 20 21 | ST|MIA r1 !|
|00001f50| 2c 7b 72 36 7d 20 20 20 | 20 20 20 20 20 20 f4 20 |,{r6} | . |
|00001f60| 77 72 69 74 65 20 6f 75 | 74 20 74 77 6f 20 70 69 |write ou|t two pi|
|00001f70| 78 65 6c 73 0d 08 e8 05 | 5d 0d 08 f2 05 cc 0d 08 |xels....|].......|
|00001f80| fc 0b 5b 4f 50 54 20 5a | 25 0d 09 06 38 20 20 20 |..[OPT Z|%...8 |
|00001f90| 20 20 20 53 54 4d 49 41 | 20 72 31 20 21 2c 7b 72 | STMIA| r1 !,{r|
|00001fa0| 36 2c 72 37 7d 20 20 20 | 20 20 20 f4 20 77 72 69 |6,r7} | . wri|
|00001fb0| 74 65 20 6f 75 74 20 74 | 77 6f 20 70 69 78 65 6c |te out t|wo pixel|
|00001fc0| 73 0d 09 10 05 5d 0d 09 | 1a 05 cd 0d 09 24 0b 5b |s....]..|.....$.[|
|00001fd0| 4f 50 54 20 5a 25 0d 09 | 2e 2d 20 20 20 20 20 20 |OPT Z%..|.- |
|00001fe0| 4d 4f 56 20 72 38 2c 72 | 39 2c 4c 53 52 20 23 38 |MOV r8,r|9,LSR #8|
|00001ff0| 20 20 20 20 20 20 20 20 | f4 20 67 65 74 20 74 68 | |. get th|
|00002000| 69 72 64 0d 09 38 21 20 | 20 20 20 20 20 a4 69 6e |ird..8! | .in|
|00002010| 74 65 72 70 75 76 28 36 | 2c 37 2c 34 2c 35 2c 31 |terpuv(6|,7,4,5,1|
|00002020| 32 2c 38 29 0d 09 42 41 | 20 20 20 20 20 20 a4 70 |2,8)..BA| .p|
|00002030| 6c 6f 6f 6b 28 36 29 20 | 20 20 20 20 20 20 20 20 |look(6) | |
|00002040| 20 20 20 20 20 f4 20 72 | 65 63 6f 72 64 20 70 61 | . r|ecord pa|
|00002050| 74 63 68 20 74 61 62 6c | 65 20 65 6e 74 72 79 20 |tch tabl|e entry |
|00002060| 66 6f 72 20 33 0d 09 4c | 41 20 20 20 20 20 20 a4 |for 3..L|A .|
|00002070| 70 6c 6f 6f 6b 28 37 29 | 20 20 20 20 20 20 20 20 |plook(7)| |
|00002080| 20 20 20 20 20 20 f4 20 | 2e 2e 20 20 20 20 20 20 | . |.. |
|00002090| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000020a0| 20 20 20 20 20 34 0d 09 | 56 05 5d 0d 09 60 0d e7 | 4..|V.]..`..|
|000020b0| 20 68 61 6c 66 25 20 8c | 0d 09 6a 0b 5b 4f 50 54 | half% .|..j.[OPT|
|000020c0| 20 5a 25 0d 09 74 1c 20 | 20 20 20 20 20 84 52 20 | Z%..t. | .R |
|000020d0| 72 36 2c 72 36 2c 72 37 | 2c 4c 53 4c 23 31 36 0d |r6,r6,r7|,LSL#16.|
|000020e0| 09 7e 38 20 20 20 20 20 | 20 53 54 4d 49 41 20 72 |.~8 | STMIA r|
|000020f0| 31 20 21 2c 7b 72 36 7d | 20 20 20 20 20 20 20 20 |1 !,{r6}| |
|00002100| 20 f4 20 77 72 69 74 65 | 20 6f 75 74 20 74 77 6f | . write| out two|
|00002110| 20 70 69 78 65 6c 73 0d | 09 88 05 5d 0d 09 92 05 | pixels.|...]....|
|00002120| cc 0d 09 9c 0b 5b 4f 50 | 54 20 5a 25 0d 09 a6 38 |.....[OP|T Z%...8|
|00002130| 20 20 20 20 20 20 53 54 | 4d 49 41 20 72 31 20 21 | ST|MIA r1 !|
|00002140| 2c 7b 72 36 2c 72 37 7d | 20 20 20 20 20 20 f4 20 |,{r6,r7}| . |
|00002150| 77 72 69 74 65 20 6f 75 | 74 20 74 77 6f 20 70 69 |write ou|t two pi|
|00002160| 78 65 6c 73 0d 09 b0 05 | 5d 0d 09 ba 05 cd 0d 09 |xels....|].......|
|00002170| c4 0b 5b 4f 50 54 20 5a | 25 0d 09 ce 47 20 20 20 |..[OPT Z|%...G |
|00002180| 20 20 20 4d 4f 56 20 72 | 39 2c 72 39 2c 4c 53 52 | MOV r|9,r9,LSR|
|00002190| 20 23 32 38 20 20 20 20 | 20 20 20 f4 20 65 61 74 | #28 | . eat|
|000021a0| 65 6e 20 61 6e 6f 74 68 | 65 72 20 32 30 20 62 69 |en anoth|er 20 bi|
|000021b0| 74 73 20 6f 66 20 72 39 | 3a 20 34 20 6c 65 66 74 |ts of r9|: 4 left|
|000021c0| 0d 09 d8 3e 20 20 20 20 | 20 20 84 52 20 72 39 2c |...> | .R r9,|
|000021d0| 72 39 2c 72 31 30 2c 4c | 53 4c 20 23 34 20 20 20 |r9,r10,L|SL #4 |
|000021e0| 20 f4 20 6e 6f 77 20 67 | 6f 74 20 66 6f 75 72 74 | . now g|ot fourt|
|000021f0| 68 20 59 59 55 56 20 70 | 61 74 74 65 72 6e 0d 09 |h YYUV p|attern..|
|00002200| e2 20 20 20 20 20 20 20 | a4 69 6e 74 65 72 70 75 |. |.interpu|
|00002210| 76 28 36 2c 37 2c 34 2c | 35 2c 38 2c 39 29 0d 09 |v(6,7,4,|5,8,9)..|
|00002220| ec 41 20 20 20 20 20 20 | a4 70 6c 6f 6f 6b 28 36 |.A |.plook(6|
|00002230| 29 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 f4 |) | .|
|00002240| 20 72 65 63 6f 72 64 20 | 70 61 74 63 68 20 74 61 | record |patch ta|
|00002250| 62 6c 65 20 65 6e 74 72 | 79 20 66 6f 72 20 35 0d |ble entr|y for 5.|
|00002260| 09 f6 41 20 20 20 20 20 | 20 a4 70 6c 6f 6f 6b 28 |..A | .plook(|
|00002270| 37 29 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |7) | |
|00002280| f4 20 2e 2e 20 20 20 20 | 20 20 20 20 20 20 20 20 |. .. | |
|00002290| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 36 | | 6|
|000022a0| 0d 0a 00 40 20 20 20 20 | 20 20 4d 4f 56 20 72 31 |...@ | MOV r1|
|000022b0| 30 2c 72 31 30 2c 4c 53 | 52 20 23 31 36 20 20 20 |0,r10,LS|R #16 |
|000022c0| 20 20 f4 20 61 6c 72 65 | 61 64 79 20 65 61 74 65 | . alre|ady eate|
|000022d0| 6e 20 31 36 20 62 69 74 | 73 20 6f 66 20 72 31 30 |n 16 bit|s of r10|
|000022e0| 0d 0a 0a 3d 20 20 20 20 | 20 20 84 52 20 72 31 30 |...= | .R r10|
|000022f0| 2c 72 31 30 2c 72 31 31 | 2c 4c 53 4c 20 23 31 36 |,r10,r11|,LSL #16|
|00002300| 20 f4 20 6e 6f 77 20 67 | 6f 74 20 66 69 66 74 68 | . now g|ot fifth|
|00002310| 20 59 59 55 56 20 70 61 | 74 74 65 72 6e 0d 0a 14 | YYUV pa|ttern...|
|00002320| 22 20 20 20 20 20 20 a4 | 69 6e 74 65 72 70 75 76 |" .|interpuv|
|00002330| 28 38 2c 31 32 2c 34 2c | 35 2c 39 2c 31 30 29 0d |(8,12,4,|5,9,10).|
|00002340| 0a 1e 41 20 20 20 20 20 | 20 a4 70 6c 6f 6f 6b 28 |..A | .plook(|
|00002350| 38 29 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |8) | |
|00002360| f4 20 72 65 63 6f 72 64 | 20 70 61 74 63 68 20 74 |. record| patch t|
|00002370| 61 62 6c 65 20 65 6e 74 | 72 79 20 66 6f 72 20 37 |able ent|ry for 7|
|00002380| 0d 0a 28 41 20 20 20 20 | 20 20 a4 70 6c 6f 6f 6b |..(A | .plook|
|00002390| 28 31 32 29 20 20 20 20 | 20 20 20 20 20 20 20 20 |(12) | |
|000023a0| 20 f4 20 2e 2e 20 20 20 | 20 20 20 20 20 20 20 20 | . .. | |
|000023b0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000023c0| 38 0d 0a 32 05 5d 0d 0a | 3c 0d e7 20 68 61 6c 66 |8..2.]..|<.. half|
|000023d0| 25 20 8c 0d 0a 46 0b 5b | 4f 50 54 20 5a 25 0d 0a |% ...F.[|OPT Z%..|
|000023e0| 50 1c 20 20 20 20 20 20 | 84 52 20 72 36 2c 72 36 |P. |.R r6,r6|
|000023f0| 2c 72 37 2c 4c 53 4c 23 | 31 36 0d 0a 5a 1e 20 20 |,r7,LSL#|16..Z. |
|00002400| 20 20 20 20 84 52 20 72 | 38 2c 72 38 2c 72 31 32 | .R r|8,r8,r12|
|00002410| 2c 4c 53 4c 20 23 31 36 | 0d 0a 64 39 20 20 20 20 |,LSL #16|..d9 |
|00002420| 20 20 53 54 4d 49 41 20 | 72 31 20 21 2c 7b 72 36 | STMIA |r1 !,{r6|
|00002430| 2c 72 38 7d 20 20 20 20 | 20 20 f4 20 77 72 69 74 |,r8} | . writ|
|00002440| 65 20 6f 75 74 20 66 6f | 75 72 20 70 69 78 65 6c |e out fo|ur pixel|
|00002450| 73 0d 0a 6e 05 5d 0d 0a | 78 05 cc 0d 0a 82 0b 5b |s..n.]..|x......[|
|00002460| 4f 50 54 20 5a 25 0d 0a | 8c 3b 20 20 20 20 20 20 |OPT Z%..|.; |
|00002470| 53 54 4d 49 41 20 72 31 | 20 21 2c 7b 72 36 2c 72 |STMIA r1| !,{r6,r|
|00002480| 37 2c 72 38 2c 72 31 32 | 7d 20 f4 20 77 72 69 74 |7,r8,r12|} . writ|
|00002490| 65 20 6f 75 74 20 66 6f | 75 72 20 70 69 78 65 6c |e out fo|ur pixel|
|000024a0| 73 0d 0a 96 05 5d 0d 0a | a0 05 cd 0d 0a aa 0b 5b |s....]..|.......[|
|000024b0| 4f 50 54 20 5a 25 0d 0a | b4 3e 20 20 20 20 20 20 |OPT Z%..|.> |
|000024c0| 4d 4f 56 20 72 31 31 2c | 72 31 31 2c 4c 53 52 20 |MOV r11,|r11,LSR |
|000024d0| 23 34 20 20 20 20 20 20 | f4 20 6e 6f 77 20 67 6f |#4 |. now go|
|000024e0| 74 20 73 69 78 74 68 20 | 59 59 55 56 20 70 61 74 |t sixth |YYUV pat|
|000024f0| 74 65 72 6e 0d 0a be 4e | 20 20 20 20 20 20 4c 44 |tern...N| LD|
|00002500| 4d 49 41 20 72 30 20 21 | 2c 7b 72 31 32 7d 20 20 |MIA r0 !|,{r12} |
|00002510| 20 20 20 20 20 20 f4 20 | 66 65 74 63 68 20 66 69 | . |fetch fi|
|00002520| 6e 61 6c 20 77 6f 72 64 | 2c 20 6e 6f 74 20 74 68 |nal word|, not th|
|00002530| 61 74 20 69 74 73 20 6e | 65 65 64 65 64 20 79 65 |at its n|eeded ye|
|00002540| 74 21 0d 0a c8 22 20 20 | 20 20 20 20 a4 69 6e 74 |t!..." | .int|
|00002550| 65 72 70 75 76 28 36 2c | 37 2c 34 2c 35 2c 31 30 |erpuv(6,|7,4,5,10|
|00002560| 2c 31 31 29 0d 0a d2 41 | 20 20 20 20 20 20 a4 70 |,11)...A| .p|
|00002570| 6c 6f 6f 6b 28 36 29 20 | 20 20 20 20 20 20 20 20 |look(6) | |
|00002580| 20 20 20 20 20 f4 20 72 | 65 63 6f 72 64 20 70 61 | . r|ecord pa|
|00002590| 74 63 68 20 74 61 62 6c | 65 20 65 6e 74 72 79 20 |tch tabl|e entry |
|000025a0| 66 6f 72 20 39 0d 0a dc | 42 20 20 20 20 20 20 a4 |for 9...|B .|
|000025b0| 70 6c 6f 6f 6b 28 37 29 | 20 20 20 20 20 20 20 20 |plook(7)| |
|000025c0| 20 20 20 20 20 20 f4 20 | 2e 2e 20 20 20 20 20 20 | . |.. |
|000025d0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000025e0| 20 20 20 20 20 31 30 0d | 0a e6 3a 20 20 20 20 20 | 10.|..: |
|000025f0| 20 4d 4f 56 20 72 31 30 | 2c 72 31 31 2c 4c 53 52 | MOV r10|,r11,LSR|
|00002600| 20 23 32 30 20 20 20 20 | 20 f4 20 6f 6e 6c 79 20 | #20 | . only |
|00002610| 38 20 70 69 78 65 6c 73 | 20 6c 65 66 74 20 6e 6f |8 pixels| left no|
|00002620| 77 0d 0a f0 3f 20 20 20 | 20 20 20 84 52 20 72 31 |w...? | .R r1|
|00002630| 30 2c 72 31 30 2c 72 31 | 32 2c 4c 53 4c 20 23 38 |0,r10,r1|2,LSL #8|
|00002640| 20 20 f4 20 6e 6f 77 20 | 67 6f 74 20 73 65 76 65 | . now |got seve|
|00002650| 6e 74 68 20 59 59 55 56 | 20 70 61 74 74 65 72 6e |nth YYUV| pattern|
|00002660| 0d 0a fa 22 20 20 20 20 | 20 20 a4 69 6e 74 65 72 |..." | .inter|
|00002670| 70 75 76 28 38 2c 39 2c | 34 2c 35 2c 31 31 2c 31 |puv(8,9,|4,5,11,1|
|00002680| 30 29 0d 0b 04 42 20 20 | 20 20 20 20 a4 70 6c 6f |0)...B | .plo|
|00002690| 6f 6b 28 38 29 20 20 20 | 20 20 20 20 20 20 20 20 |ok(8) | |
|000026a0| 20 20 20 f4 20 72 65 63 | 6f 72 64 20 70 61 74 63 | . rec|ord patc|
|000026b0| 68 20 74 61 62 6c 65 20 | 65 6e 74 72 79 20 66 6f |h table |entry fo|
|000026c0| 72 20 31 31 0d 0b 0e 42 | 20 20 20 20 20 20 a4 70 |r 11...B| .p|
|000026d0| 6c 6f 6f 6b 28 39 29 20 | 20 20 20 20 20 20 20 20 |look(9) | |
|000026e0| 20 20 20 20 20 f4 20 2e | 2e 20 20 20 20 20 20 20 | . .|. |
|000026f0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00002700| 20 20 20 20 31 32 0d 0b | 18 05 5d 0d 0b 22 0d e7 | 12..|..].."..|
|00002710| 20 68 61 6c 66 25 20 8c | 0d 0b 2c 0b 5b 4f 50 54 | half% .|..,.[OPT|
|00002720| 20 5a 25 0d 0b 36 1c 20 | 20 20 20 20 20 84 52 20 | Z%..6. | .R |
|00002730| 72 36 2c 72 36 2c 72 37 | 2c 4c 53 4c 23 31 36 0d |r6,r6,r7|,LSL#16.|
|00002740| 0b 40 1d 20 20 20 20 20 | 20 84 52 20 72 38 2c 72 |.@. | .R r8,r|
|00002750| 38 2c 72 39 2c 4c 53 4c | 20 23 31 36 0d 0b 4a 39 |8,r9,LSL| #16..J9|
|00002760| 20 20 20 20 20 20 53 54 | 4d 49 41 20 72 31 20 21 | ST|MIA r1 !|
|00002770| 2c 7b 72 36 2c 72 38 7d | 20 20 20 20 20 20 f4 20 |,{r6,r8}| . |
|00002780| 77 72 69 74 65 20 6f 75 | 74 20 66 6f 75 72 20 70 |write ou|t four p|
|00002790| 69 78 65 6c 73 0d 0b 54 | 05 5d 0d 0b 5e 05 cc 0d |ixels..T|.]..^...|
|000027a0| 0b 68 0b 5b 4f 50 54 20 | 5a 25 0d 0b 72 3a 20 20 |.h.[OPT |Z%..r: |
|000027b0| 20 20 20 20 53 54 4d 49 | 41 20 72 31 20 21 2c 7b | STMI|A r1 !,{|
|000027c0| 72 36 2c 72 37 2c 72 38 | 2c 72 39 7d 20 f4 20 77 |r6,r7,r8|,r9} . w|
|000027d0| 72 69 74 65 20 6f 75 74 | 20 66 6f 75 72 20 70 69 |rite out| four pi|
|000027e0| 78 65 6c 73 0d 0b 7c 05 | 5d 0d 0b 86 05 cd 0d 0b |xels..|.|].......|
|000027f0| 90 0b 5b 4f 50 54 20 5a | 25 0d 0b 9a 3f 20 20 20 |..[OPT Z|%...? |
|00002800| 20 20 20 4d 4f 56 20 72 | 31 32 2c 72 31 32 2c 4c | MOV r|12,r12,L|
|00002810| 53 52 20 23 31 32 20 20 | 20 20 20 f4 20 6e 6f 77 |SR #12 | . now|
|00002820| 20 67 6f 74 20 65 69 67 | 68 74 68 20 59 59 55 56 | got eig|hth YYUV|
|00002830| 20 70 61 74 74 65 72 6e | 0d 0b a4 22 20 20 20 20 | pattern|..." |
|00002840| 20 20 a4 69 6e 74 65 72 | 70 75 76 28 36 2c 37 2c | .inter|puv(6,7,|
|00002850| 34 2c 35 2c 31 30 2c 31 | 32 29 0d 0b ae 42 20 20 |4,5,10,1|2)...B |
|00002860| 20 20 20 20 a4 70 6c 6f | 6f 6b 28 36 29 20 20 20 | .plo|ok(6) |
|00002870| 20 20 20 20 20 20 20 20 | 20 20 20 f4 20 72 65 63 | | . rec|
|00002880| 6f 72 64 20 70 61 74 63 | 68 20 74 61 62 6c 65 20 |ord patc|h table |
|00002890| 65 6e 74 72 79 20 66 6f | 72 20 31 33 0d 0b b8 42 |entry fo|r 13...B|
|000028a0| 20 20 20 20 20 20 a4 70 | 6c 6f 6f 6b 28 37 29 20 | .p|look(7) |
|000028b0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 f4 20 2e | | . .|
|000028c0| 2e 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |. | |
|000028d0| 20 20 20 20 20 20 20 20 | 20 20 20 20 31 34 0d 0b | | 14..|
|000028e0| c2 2e 20 20 20 20 20 20 | f4 20 74 68 65 72 65 20 |.. |. there |
|000028f0| 69 73 20 6e 6f 20 66 75 | 72 74 68 65 72 20 72 69 |is no fu|rther ri|
|00002900| 67 68 74 20 76 61 6c 75 | 65 21 21 21 0d 0b cc 17 |ght valu|e!!!....|
|00002910| 20 20 20 20 20 20 80 20 | 72 38 2c 72 31 32 2c 23 | . |r8,r12,#|
|00002920| 26 31 66 0d 0b d6 1b 20 | 20 20 20 20 20 4d 4f 56 |&1f.... | MOV|
|00002930| 20 72 39 2c 72 31 32 2c | 4c 53 52 20 23 35 0d 0b | r9,r12,|LSR #5..|
|00002940| e0 16 20 20 20 20 20 20 | 80 20 72 39 2c 72 39 2c |.. |. r9,r9,|
|00002950| 23 26 31 66 0d 0b ea 1d | 20 20 20 20 20 20 4d 4f |#&1f....| MO|
|00002960| 56 20 72 31 32 2c 72 31 | 32 2c 4c 53 52 20 23 31 |V r12,r1|2,LSR #1|
|00002970| 30 0d 0b f4 1d 20 20 20 | 20 20 20 84 52 20 72 38 |0.... | .R r8|
|00002980| 2c 72 38 2c 72 31 32 2c | 4c 53 4c 20 23 35 0d 0b |,r8,r12,|LSL #5..|
|00002990| fe 1d 20 20 20 20 20 20 | 84 52 20 72 39 2c 72 39 |.. |.R r9,r9|
|000029a0| 2c 72 31 32 2c 4c 53 4c | 20 23 35 0d 0c 08 42 20 |,r12,LSL| #5...B |
|000029b0| 20 20 20 20 20 a4 70 6c | 6f 6f 6b 28 38 29 20 20 | .pl|ook(8) |
|000029c0| 20 20 20 20 20 20 20 20 | 20 20 20 20 f4 20 72 65 | | . re|
|000029d0| 63 6f 72 64 20 70 61 74 | 63 68 20 74 61 62 6c 65 |cord pat|ch table|
|000029e0| 20 65 6e 74 72 79 20 66 | 6f 72 20 31 35 0d 0c 12 | entry f|or 15...|
|000029f0| 42 20 20 20 20 20 20 a4 | 70 6c 6f 6f 6b 28 39 29 |B .|plook(9)|
|00002a00| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 f4 20 | | . |
|00002a10| 2e 2e 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |.. | |
|00002a20| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 31 36 0d | | 16.|
|00002a30| 0c 1c 05 5d 0d 0c 26 0d | e7 20 68 61 6c 66 25 20 |...]..&.|. half% |
|00002a40| 8c 0d 0c 30 0b 5b 4f 50 | 54 20 5a 25 0d 0c 3a 1c |...0.[OP|T Z%..:.|
|00002a50| 20 20 20 20 20 20 84 52 | 20 72 36 2c 72 36 2c 72 | .R| r6,r6,r|
|00002a60| 37 2c 4c 53 4c 23 31 36 | 0d 0c 44 1d 20 20 20 20 |7,LSL#16|..D. |
|00002a70| 20 20 84 52 20 72 38 2c | 72 38 2c 72 39 2c 4c 53 | .R r8,|r8,r9,LS|
|00002a80| 4c 20 23 31 36 0d 0c 4e | 39 20 20 20 20 20 20 53 |L #16..N|9 S|
|00002a90| 54 4d 49 41 20 72 31 20 | 21 2c 7b 72 36 2c 72 38 |TMIA r1 |!,{r6,r8|
|00002aa0| 7d 20 20 20 20 20 20 f4 | 20 77 72 69 74 65 20 6f |} .| write o|
|00002ab0| 75 74 20 66 6f 75 72 20 | 70 69 78 65 6c 73 0d 0c |ut four |pixels..|
|00002ac0| 58 05 5d 0d 0c 62 05 cc | 0d 0c 6c 0b 5b 4f 50 54 |X.]..b..|..l.[OPT|
|00002ad0| 20 5a 25 0d 0c 76 3a 20 | 20 20 20 20 20 53 54 4d | Z%..v: | STM|
|00002ae0| 49 41 20 72 31 20 21 2c | 7b 72 36 2c 72 37 2c 72 |IA r1 !,|{r6,r7,r|
|00002af0| 38 2c 72 39 7d 20 f4 20 | 77 72 69 74 65 20 6f 75 |8,r9} . |write ou|
|00002b00| 74 20 66 6f 75 72 20 70 | 69 78 65 6c 73 0d 0c 80 |t four p|ixels...|
|00002b10| 05 5d 0d 0c 8a 05 cd 0d | 0c 94 0b 5b 4f 50 54 20 |.]......|...[OPT |
|00002b20| 5a 25 0d 0c 9e 16 20 20 | 20 20 20 20 4c 44 52 20 |Z%.... | LDR |
|00002b30| 72 32 2c 64 6f 77 6e 79 | 0d 0c a8 17 20 20 20 20 |r2,downy|.... |
|00002b40| 20 20 53 55 42 53 20 72 | 32 2c 72 32 2c 23 31 0d | SUBS r|2,r2,#1.|
|00002b50| 0c b2 16 20 20 20 20 20 | 20 53 54 52 20 72 32 2c |... | STR r2,|
|00002b60| 64 6f 77 6e 79 0d 0c bc | 16 20 20 20 20 20 20 42 |downy...|. B|
|00002b70| 4e 45 20 64 65 63 6c 6f | 6f 70 79 0d 0c c6 17 20 |NE declo|opy.... |
|00002b80| 20 20 20 20 20 4c 44 52 | 20 72 34 2c 72 65 74 76 | LDR| r4,retv|
|00002b90| 61 6c 0d 0c d0 28 20 20 | 20 20 20 20 4d 4f 56 20 |al...( | MOV |
|00002ba0| 70 63 2c 72 34 20 f4 20 | 66 69 6e 69 73 68 65 64 |pc,r4 . |finished|
|00002bb0| 20 6f 6e 65 20 66 72 61 | 6d 65 0d 0c da 04 0d 0c | one fra|me......|
|00002bc0| e4 1c f4 20 69 6e 69 74 | 20 69 73 20 72 61 74 68 |... init| is rath|
|00002bd0| 65 72 20 74 72 69 76 69 | 61 6c 0d 0c ee 04 0d 0c |er trivi|al......|
|00002be0| f8 09 2e 69 6e 69 74 0d | 0d 02 17 20 20 20 20 20 |...init.|... |
|00002bf0| 20 53 55 42 20 72 32 2c | 72 30 2c 23 31 36 0d 0d | SUB r2,|r0,#16..|
|00002c00| 0c 17 20 20 20 20 20 20 | 42 49 43 20 72 32 2c 72 |.. |BIC r2,r|
|00002c10| 32 2c 23 31 35 0d 0d 16 | 15 20 20 20 20 20 20 53 |2,#15...|. S|
|00002c20| 54 52 20 72 32 2c 70 69 | 78 78 0d 0d 20 15 20 20 |TR r2,pi|xx.. . |
|00002c30| 20 20 20 20 53 54 52 20 | 72 31 2c 70 69 78 79 0d | STR |r1,pixy.|
|00002c40| 0d 2a 15 20 20 20 20 20 | 20 4d 4f 56 53 20 70 63 |.*. | MOVS pc|
|00002c50| 2c 72 31 34 0d 0d 34 0f | 2e 70 69 78 78 20 44 43 |,r14..4.|.pixx DC|
|00002c60| 44 20 30 0d 0d 3e 0f 2e | 70 69 78 79 20 44 43 44 |D 0..>..|pixy DCD|
|00002c70| 20 30 0d 0d 48 11 2e 72 | 65 74 76 61 6c 20 44 43 | 0..H..r|etval DC|
|00002c80| 44 20 30 0d 0d 52 10 2e | 64 6f 77 6e 79 20 44 43 |D 0..R..|downy DC|
|00002c90| 44 20 30 0d 0d 5c 05 5d | 0d 0d 66 0d 74 61 62 6c |D 0..\.]|..f.tabl|
|00002ca0| 65 25 3d 50 25 0d 0d 70 | 05 ed 0d 0d 7a 22 21 74 |e%=P%..p|....z"!t|
|00002cb0| 61 62 6c 65 73 74 61 72 | 74 25 3d 2d 31 3a 74 61 |ablestar|t%=-1:ta|
|00002cc0| 62 6c 65 73 74 61 72 74 | 25 2b 3d 34 0d 0d 84 05 |blestart|%+=4....|
|00002cd0| e1 0d 0d 8e 34 f4 20 72 | 65 63 6f 72 64 20 74 68 |....4. r|ecord th|
|00002ce0| 65 20 6c 6f 6f 6b 75 70 | 20 6f 66 20 64 69 74 68 |e lookup| of dith|
|00002cf0| 65 72 65 64 20 76 65 72 | 73 69 6f 6e 20 6f 66 20 |ered ver|sion of |
|00002d00| 70 69 78 65 6c 0d 0d 98 | 10 dd 20 a4 70 6c 6f 6f |pixel...|.. .ploo|
|00002d10| 6b 28 72 6e 29 0d 0d a2 | 10 e7 74 61 62 6c 65 25 |k(rn)...|..table%|
|00002d20| 3c 3e 30 20 8c 0d 0d ac | 41 21 74 61 62 6c 65 73 |<>0 ....|A!tables|
|00002d30| 74 61 72 74 25 3d 26 30 | 30 30 30 3c 3c 32 38 20 |tart%=&0|000<<28 |
|00002d40| 84 20 72 6e 3c 3c 32 34 | 20 84 20 72 6e 3c 3c 32 |. rn<<24| . rn<<2|
|00002d50| 30 20 84 20 33 3c 3c 31 | 36 20 84 20 28 50 25 2d |0 . 3<<1|6 . (P%-|
|00002d60| 63 6f 64 65 25 29 0d 0d | b6 12 74 61 62 6c 65 73 |code%)..|..tables|
|00002d70| 74 61 72 74 25 2b 3d 34 | 0d 0d c0 05 cd 0d 0d ca |tart%+=4|........|
|00002d80| 0b 5b 4f 50 54 20 5a 25 | 0d 0d d4 0e 20 4d 4f 56 |.[OPT Z%|.... MOV|
|00002d90| 20 72 6e 2c 72 6e 0d 0d | de 05 5d 0d 0d e8 06 3d | rn,rn..|..]....=|
|00002da0| 30 0d 0d f2 26 dd 20 a4 | 69 6e 74 65 72 70 75 76 |0...&. .|interpuv|
|00002db0| 28 72 65 73 31 2c 72 65 | 73 32 2c 72 75 2c 72 76 |(res1,re|s2,ru,rv|
|00002dc0| 2c 72 61 2c 72 62 29 0d | 0d fc 52 f4 20 69 6e 74 |,ra,rb).|..R. int|
|00002dd0| 65 72 70 6f 6c 61 74 65 | 20 74 68 65 20 73 69 6e |erpolate| the sin|
|00002de0| 67 6c 65 20 55 56 20 76 | 61 6c 75 65 20 62 65 74 |gle UV v|alue bet|
|00002df0| 77 65 65 6e 20 74 68 65 | 20 74 77 6f 20 59 27 73 |ween the| two Y's|
|00002e00| 20 6f 66 20 72 61 20 75 | 73 69 6e 67 20 72 62 20 | of ra u|sing rb |
|00002e10| 61 73 20 73 6f 75 72 63 | 65 0d 0e 06 16 f4 20 6f |as sourc|e..... o|
|00002e20| 66 20 6e 65 78 74 20 55 | 56 20 76 61 6c 75 65 0d |f next U|V value.|
|00002e30| 0e 10 0b 5b 4f 50 54 20 | 5a 25 0d 0e 1a 28 20 4d |...[OPT |Z%...( M|
|00002e40| 4f 56 20 72 65 73 31 2c | 72 61 2c 4c 53 4c 20 23 |OV res1,|ra,LSL #|
|00002e50| 31 32 20 20 20 20 f4 20 | 65 78 74 72 61 63 74 20 |12 . |extract |
|00002e60| 55 56 0d 0e 24 2d 20 42 | 49 43 20 72 65 73 31 2c |UV..$- B|IC res1,|
|00002e70| 72 65 73 31 2c 23 26 31 | 46 3c 3c 31 37 20 f4 20 |res1,#&1|F<<17 . |
|00002e80| 72 65 6d 6f 76 65 20 73 | 65 63 6f 6e 64 20 59 0d |remove s|econd Y.|
|00002e90| 0e 2e 26 20 4d 4f 56 20 | 72 76 2c 72 65 73 31 2c |..& MOV |rv,res1,|
|00002ea0| 41 53 52 20 23 32 37 20 | 20 20 20 f4 20 73 69 67 |ASR #27 | . sig|
|00002eb0| 6e 65 64 20 56 0d 0e 38 | 26 20 4d 4f 56 20 72 65 |ned V..8|& MOV re|
|00002ec0| 73 32 2c 72 62 2c 4c 53 | 4c 20 23 31 32 20 20 20 |s2,rb,LS|L #12 |
|00002ed0| 20 f4 20 73 65 63 6f 6e | 64 20 56 0d 0e 42 27 20 | . secon|d V..B' |
|00002ee0| 41 44 44 20 72 76 2c 72 | 76 2c 72 65 73 32 2c 41 |ADD rv,r|v,res2,A|
|00002ef0| 53 52 20 23 32 37 20 f4 | 20 61 76 65 72 61 67 65 |SR #27 .| average|
|00002f00| 20 56 0d 0e 4c 27 20 4d | 4f 56 20 72 75 2c 72 61 | V..L' M|OV ru,ra|
|00002f10| 2c 4c 53 4c 20 23 31 37 | 20 20 20 20 20 20 f4 20 |,LSL #17| . |
|00002f20| 65 78 74 72 61 63 74 20 | 55 0d 0e 56 26 20 4d 4f |extract |U..V& MO|
|00002f30| 56 20 72 75 2c 72 75 2c | 41 53 52 20 23 32 37 20 |V ru,ru,|ASR #27 |
|00002f40| 20 20 20 20 20 f4 20 73 | 69 67 6e 65 64 20 55 0d | . s|igned U.|
|00002f50| 0e 60 26 20 4d 4f 56 20 | 72 65 73 32 2c 72 62 2c |.`& MOV |res2,rb,|
|00002f60| 4c 53 4c 20 23 31 37 20 | 20 20 20 f4 20 73 65 63 |LSL #17 | . sec|
|00002f70| 6f 6e 64 20 55 0d 0e 6a | 27 20 41 44 44 20 72 75 |ond U..j|' ADD ru|
|00002f80| 2c 72 75 2c 72 65 73 32 | 2c 41 53 52 20 23 32 37 |,ru,res2|,ASR #27|
|00002f90| 20 f4 20 61 76 65 72 61 | 67 65 20 55 0d 0e 74 24 | . avera|ge U..t$|
|00002fa0| 20 80 20 72 75 2c 72 75 | 2c 23 26 31 66 3c 3c 31 | . ru,ru|,#&1f<<1|
|00002fb0| 20 20 20 20 20 20 f4 20 | 6d 61 73 6b 65 64 20 55 | . |masked U|
|00002fc0| 0d 0e 7e 24 20 80 20 72 | 76 2c 72 76 2c 23 26 31 |..~$ . r|v,rv,#&1|
|00002fd0| 66 3c 3c 31 20 20 20 20 | 20 20 f4 20 6d 61 73 6b |f<<1 | . mask|
|00002fe0| 65 64 20 56 0d 0e 88 32 | 20 84 52 20 72 76 2c 72 |ed V...2| .R rv,r|
|00002ff0| 75 2c 72 76 2c 4c 53 4c | 20 23 35 20 20 20 20 f4 |u,rv,LSL| #5 .|
|00003000| 20 6a 6f 69 6e 65 64 20 | 55 56 20 28 73 74 69 6c | joined |UV (stil|
|00003010| 6c 20 3c 3c 31 29 0d 0e | 92 30 20 4d 4f 56 20 72 |l <<1)..|.0 MOV r|
|00003020| 65 73 32 2c 72 61 2c 4c | 53 52 20 23 35 20 20 20 |es2,ra,L|SR #5 |
|00003030| 20 20 f4 20 73 65 63 6f | 6e 64 20 59 20 61 74 20 | . seco|nd Y at |
|00003040| 62 6f 74 74 6f 6d 0d 0e | 9c 22 20 80 20 72 65 73 |bottom..|." . res|
|00003050| 32 2c 72 65 73 32 2c 23 | 26 31 66 20 20 20 20 20 |2,res2,#|&1f |
|00003060| f4 20 6d 61 73 6b 65 64 | 0d 0e a6 30 20 84 52 20 |. masked|...0 .R |
|00003070| 72 65 73 32 2c 72 65 73 | 32 2c 72 76 2c 4c 53 4c |res2,res|2,rv,LSL|
|00003080| 20 23 34 20 f4 20 73 65 | 63 6f 6e 64 20 76 61 6c | #4 . se|cond val|
|00003090| 75 65 20 62 75 69 6c 74 | 0d 0e b0 24 20 80 20 72 |ue built|...$ . r|
|000030a0| 75 2c 72 61 2c 23 26 31 | 66 20 20 20 20 20 20 20 |u,ra,#&1|f |
|000030b0| 20 20 20 f4 20 66 69 72 | 73 74 20 59 0d 0e ba 30 | . fir|st Y...0|
|000030c0| 20 84 52 20 72 65 73 31 | 2c 72 75 2c 72 65 73 31 | .R res1|,ru,res1|
|000030d0| 2c 4c 53 52 20 23 31 37 | 20 f4 20 66 69 72 73 74 |,LSR #17| . first|
|000030e0| 20 76 61 6c 75 65 20 62 | 75 69 6c 74 0d 0e c4 05 | value b|uilt....|
|000030f0| 5d 0d 0e ce 06 3d 30 0d | ff |]....=0.|. |
+--------+-------------------------+-------------------------+--------+--------+