home *** CD-ROM | disk | FTP | other *** search
/ RISC DISC 1 / RISC_DISC_1.iso / _armovie / decomp6 / makedecomp < prev   
Unknown  |  1993-11-29  |  8.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 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 36 2e 44 |e$Dir>.D|ecomp6.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 36 2e 4d |e$Dir>.D|ecomp6.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 36 2e 44 65 63 6f 6d | 70 72 65 73 73 22 2c 6c |p6.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 36 2e 44 65 63 |Dir>.Dec|omp6.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 36 2e 44 65 63 6f 6d | 70 72 65 73 73 20 46 46 |p6.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 36 2e 44 65 |$Dir>.De|comp6.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 36 2e 44 65 63 |Dir>.Dec|omp6.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 36 2e 44 | 65 63 6f 6d 70 72 65 73 |ecomp6.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 36 2e 44 65 63 |Dir>.Dec|omp6.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 36 |F. The |format 6|
|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 36 0d 03 a2 38 f4 | 20 20 74 6f 20 77 6f 72 |t 6...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 32 20 |..... f|ormat 2 |
|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 3f 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 20 2d 20 73 | 61 76 65 20 6f 75 74 70 |nter - s|ave outp|
|00000ee0| 75 74 20 70 69 78 65 6c | 73 20 69 6e 20 77 6f 72 |ut pixel|s in wor|
|00000ef0| 64 73 20 68 65 72 65 0d | 03 e8 28 f4 20 20 20 20 |ds here.|..(. |
|00000f00| 72 32 20 2d 20 79 20 6e | 75 6d 62 65 72 20 6f 66 |r2 - y n|umber of|
|00000f10| 20 70 69 78 65 6c 73 2f | 75 76 20 70 61 69 72 0d | pixels/|uv pair.|
|00000f20| 03 f2 27 f4 20 20 20 20 | 72 33 20 2d 20 70 69 78 |..'. |r3 - pix|
|00000f30| 65 6c 20 64 69 74 68 65 | 72 20 6c 6f 6f 6b 75 70 |el dithe|r lookup|
|00000f40| 20 74 61 62 6c 65 0d 03 | fc 1c f4 20 20 20 20 72 | table..|... r|
|00000f50| 34 20 2d 20 72 65 74 75 | 72 6e 20 61 64 64 72 65 |4 - retu|rn addre|
|00000f60| 73 73 0d 04 06 05 f4 0d | 04 10 48 20 20 20 20 20 |ss......|..H |
|00000f70| 20 44 43 44 20 74 61 62 | 6c 65 25 2d 63 6f 64 65 | DCD tab|le%-code|
|00000f80| 25 20 f4 20 6f 66 66 73 | 65 74 20 74 6f 20 70 61 |% . offs|et to pa|
|00000f90| 74 63 68 20 74 61 62 6c | 65 20 28 6f 72 20 7a 65 |tch tabl|e (or ze|
|00000fa0| 72 6f 20 69 66 20 6e 6f | 20 74 61 62 6c 65 29 0d |ro if no| table).|
|00000fb0| 04 1a 23 20 20 20 20 20 | 20 42 20 69 6e 69 74 20 |..# | B init |
|00000fc0| f4 20 69 6e 69 74 69 61 | 6c 69 73 65 20 70 69 78 |. initia|lise pix|
|00000fd0| 6e 6f 0d 04 24 15 20 20 | 20 20 20 20 4c 44 52 20 |no..$. | LDR |
|00000fe0| 72 32 2c 70 69 78 79 0d | 04 2e 17 20 20 20 20 20 |r2,pixy.|... |
|00000ff0| 20 53 54 52 20 72 34 2c | 72 65 74 61 64 72 0d 04 | STR r4,|retadr..|
|00001000| 38 15 20 20 20 20 20 20 | 4c 44 52 20 72 34 2c 70 |8. |LDR r4,p|
|00001010| 69 78 78 0d 04 42 09 2e | 64 65 63 79 0d 04 4c 14 |ixx..B..|decy..L.|
|00001020| 20 20 20 20 20 20 4d 4f | 56 20 72 31 32 2c 72 34 | MO|V r12,r4|
|00001030| 0d 04 56 19 20 20 20 20 | 20 20 53 54 4d 46 44 20 |..V. | STMFD |
|00001040| 72 31 33 21 2c 7b 72 32 | 7d 0d 04 60 09 2e 64 65 |r13!,{r2|}..`..de|
|00001050| 63 78 0d 04 6a 38 20 20 | 20 20 20 20 4c 44 4d 49 |cx..j8 | LDMI|
|00001060| 41 20 72 30 20 21 2c 7b | 72 39 2c 72 31 30 2c 72 |A r0 !,{|r9,r10,r|
|00001070| 31 31 7d 20 f4 20 67 65 | 74 20 31 36 20 70 61 63 |11} . ge|t 16 pac|
|00001080| 6b 65 64 20 70 69 78 65 | 6c 73 0d 04 74 2e 20 20 |ked pixe|ls..t. |
|00001090| 20 20 20 20 4d 4f 56 20 | 72 32 2c 72 31 31 2c 4c | MOV |r2,r11,L|
|000010a0| 53 52 20 23 32 30 20 20 | 20 20 20 20 f4 20 65 78 |SR #20 | . ex|
|000010b0| 74 72 61 63 74 20 75 76 | 0d 04 7e 1a 20 20 20 20 |tract uv|..~. |
|000010c0| 20 20 4d 4f 56 20 72 32 | 2c 72 32 2c 4c 53 4c 20 | MOV r2|,r2,LSL |
|000010d0| 23 35 0d 04 88 31 20 20 | 20 20 20 20 80 20 72 35 |#5...1 | . r5|
|000010e0| 2c 72 39 2c 23 33 31 20 | 20 20 20 20 20 20 20 20 |,r9,#31 | |
|000010f0| 20 20 f4 20 65 78 74 72 | 61 63 74 20 66 69 72 73 | . extr|act firs|
|00001100| 74 20 59 0d 04 92 18 20 | 20 20 20 20 20 80 20 72 |t Y.... | . r|
|00001110| 36 2c 72 39 2c 23 33 31 | 3c 3c 35 0d 04 9c 19 20 |6,r9,#31|<<5.... |
|00001120| 20 20 20 20 20 80 20 72 | 37 2c 72 39 2c 23 33 31 | . r|7,r9,#31|
|00001130| 3c 3c 31 30 0d 04 a6 19 | 20 20 20 20 20 20 80 20 |<<10....| . |
|00001140| 72 38 2c 72 39 2c 23 33 | 31 3c 3c 31 35 0d 04 b0 |r8,r9,#3|1<<15...|
|00001150| 15 20 20 20 20 20 20 84 | 52 20 72 35 2c 72 32 2c |. .|R r5,r2,|
|00001160| 72 35 0d 04 ba 1c 20 20 | 20 20 20 20 84 52 20 72 |r5.... | .R r|
|00001170| 36 2c 72 32 2c 72 36 2c | 4c 53 52 20 23 35 0d 04 |6,r2,r6,|LSR #5..|
|00001180| c4 1d 20 20 20 20 20 20 | 84 52 20 72 37 2c 72 32 |.. |.R r7,r2|
|00001190| 2c 72 37 2c 4c 53 52 20 | 23 31 30 0d 04 ce 1d 20 |,r7,LSR |#10.... |
|000011a0| 20 20 20 20 20 84 52 20 | 72 38 2c 72 32 2c 72 38 | .R |r8,r2,r8|
|000011b0| 2c 4c 53 52 20 23 31 35 | 0d 04 d8 45 20 20 20 20 |,LSR #15|...E |
|000011c0| 20 20 a4 70 6c 6f 6f 6b | 28 35 29 20 20 20 20 20 | .plook|(5) |
|000011d0| 20 20 20 20 20 20 20 20 | 20 f4 20 72 65 63 6f 72 | | . recor|
|000011e0| 64 20 70 61 74 63 68 20 | 74 61 62 6c 65 20 65 6e |d patch |table en|
|000011f0| 74 72 79 20 66 6f 72 20 | 66 69 72 73 74 0d 04 e2 |try for |first...|
|00001200| 46 20 20 20 20 20 20 a4 | 70 6c 6f 6f 6b 28 36 29 |F .|plook(6)|
|00001210| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 f4 20 | | . |
|00001220| 2e 2e 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |.. | |
|00001230| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 73 65 63 | | sec|
|00001240| 6f 6e 64 0d 04 ec 45 20 | 20 20 20 20 20 a4 70 6c |ond...E | .pl|
|00001250| 6f 6f 6b 28 37 29 20 20 | 20 20 20 20 20 20 20 20 |ook(7) | |
|00001260| 20 20 20 20 f4 20 2e 2e | 20 20 20 20 20 20 20 20 | . ..| |
|00001270| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00001280| 20 20 20 74 68 69 72 64 | 0d 04 f6 46 20 20 20 20 | third|...F |
|00001290| 20 20 a4 70 6c 6f 6f 6b | 28 38 29 20 20 20 20 20 | .plook|(8) |
|000012a0| 20 20 20 20 20 20 20 20 | 20 f4 20 2e 2e 20 20 20 | | . .. |
|000012b0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000012c0| 20 20 20 20 20 20 20 20 | 66 6f 75 72 74 68 0d 05 | |fourth..|
|000012d0| 00 05 5d 0d 05 0a 0c e7 | 68 61 6c 66 25 20 8c 0d |..].....|half% ..|
|000012e0| 05 14 0b 5b 4f 50 54 20 | 5a 25 0d 05 1e 1d 20 20 |...[OPT |Z%.... |
|000012f0| 20 20 20 20 84 52 20 72 | 35 2c 72 35 2c 72 36 2c | .R r|5,r5,r6,|
|00001300| 4c 53 4c 20 23 31 36 0d | 05 28 1d 20 20 20 20 20 |LSL #16.|.(. |
|00001310| 20 84 52 20 72 37 2c 72 | 37 2c 72 38 2c 4c 53 4c | .R r7,r|7,r8,LSL|
|00001320| 20 23 31 36 0d 05 32 45 | 20 20 20 20 20 20 53 54 | #16..2E| ST|
|00001330| 4d 49 41 20 72 31 2c 7b | 72 35 2c 72 37 7d 20 20 |MIA r1,{|r5,r7} |
|00001340| 20 20 20 20 20 20 f4 20 | 73 74 6f 72 65 20 34 20 | . |store 4 |
|00001350| 70 69 78 65 6c 73 20 69 | 6e 74 6f 20 6f 75 74 70 |pixels i|nto outp|
|00001360| 75 74 20 62 75 66 66 65 | 72 0d 05 3c 05 5d 0d 05 |ut buffe|r..<.]..|
|00001370| 46 05 cc 0d 05 50 0b 5b | 4f 50 54 20 5a 25 0d 05 |F....P.[|OPT Z%..|
|00001380| 5a 45 20 20 20 20 20 20 | 53 54 4d 49 41 20 72 31 |ZE |STMIA r1|
|00001390| 2c 7b 72 35 2c 72 36 2c | 72 37 2c 72 38 7d 20 20 |,{r5,r6,|r7,r8} |
|000013a0| f4 20 73 74 6f 72 65 20 | 34 20 70 69 78 65 6c 73 |. store |4 pixels|
|000013b0| 20 69 6e 74 6f 20 6f 75 | 74 70 75 74 20 62 75 66 | into ou|tput buf|
|000013c0| 66 65 72 0d 05 64 05 5d | 0d 05 6e 05 cd 0d 05 78 |fer..d.]|..n....x|
|000013d0| 0b 5b 4f 50 54 20 5a 25 | 0d 05 82 19 20 20 20 20 |.[OPT Z%|.... |
|000013e0| 20 20 80 20 72 35 2c 72 | 39 2c 23 33 31 3c 3c 32 | . r5,r|9,#31<<2|
|000013f0| 30 0d 05 8c 19 20 20 20 | 20 20 20 80 20 72 36 2c |0.... | . r6,|
|00001400| 72 39 2c 23 33 31 3c 3c | 32 35 0d 05 96 16 20 20 |r9,#31<<|25.... |
|00001410| 20 20 20 20 80 20 72 37 | 2c 72 31 30 2c 23 33 31 | . r7|,r10,#31|
|00001420| 0d 05 a0 19 20 20 20 20 | 20 20 80 20 72 38 2c 72 |.... | . r8,r|
|00001430| 31 30 2c 23 33 31 3c 3c | 35 0d 05 aa 1d 20 20 20 |10,#31<<|5.... |
|00001440| 20 20 20 84 52 20 72 35 | 2c 72 32 2c 72 35 2c 4c | .R r5|,r2,r5,L|
|00001450| 53 52 20 23 32 30 0d 05 | b4 1d 20 20 20 20 20 20 |SR #20..|.. |
|00001460| 84 52 20 72 36 2c 72 32 | 2c 72 36 2c 4c 53 52 20 |.R r6,r2|,r6,LSR |
|00001470| 23 32 35 0d 05 be 15 20 | 20 20 20 20 20 84 52 20 |#25.... | .R |
|00001480| 72 37 2c 72 32 2c 72 37 | 0d 05 c8 1c 20 20 20 20 |r7,r2,r7|.... |
|00001490| 20 20 84 52 20 72 38 2c | 72 32 2c 72 38 2c 4c 53 | .R r8,|r2,r8,LS|
|000014a0| 52 20 23 35 0d 05 d2 45 | 20 20 20 20 20 20 a4 70 |R #5...E| .p|
|000014b0| 6c 6f 6f 6b 28 35 29 20 | 20 20 20 20 20 20 20 20 |look(5) | |
|000014c0| 20 20 20 20 20 f4 20 72 | 65 63 6f 72 64 20 70 61 | . r|ecord pa|
|000014d0| 74 63 68 20 74 61 62 6c | 65 20 65 6e 74 72 79 20 |tch tabl|e entry |
|000014e0| 66 6f 72 20 66 69 72 73 | 74 0d 05 dc 46 20 20 20 |for firs|t...F |
|000014f0| 20 20 20 a4 70 6c 6f 6f | 6b 28 36 29 20 20 20 20 | .ploo|k(6) |
|00001500| 20 20 20 20 20 20 20 20 | 20 20 f4 20 2e 2e 20 20 | | . .. |
|00001510| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00001520| 20 20 20 20 20 20 20 20 | 20 73 65 63 6f 6e 64 0d | | second.|
|00001530| 05 e6 45 20 20 20 20 20 | 20 a4 70 6c 6f 6f 6b 28 |..E | .plook(|
|00001540| 37 29 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |7) | |
|00001550| f4 20 2e 2e 20 20 20 20 | 20 20 20 20 20 20 20 20 |. .. | |
|00001560| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 74 | | t|
|00001570| 68 69 72 64 0d 05 f0 46 | 20 20 20 20 20 20 a4 70 |hird...F| .p|
|00001580| 6c 6f 6f 6b 28 38 29 20 | 20 20 20 20 20 20 20 20 |look(8) | |
|00001590| 20 20 20 20 20 f4 20 2e | 2e 20 20 20 20 20 20 20 | . .|. |
|000015a0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000015b0| 20 20 20 20 66 6f 75 72 | 74 68 0d 05 fa 05 5d 0d | four|th....].|
|000015c0| 06 04 0c e7 68 61 6c 66 | 25 20 8c 0d 06 0e 0b 5b |....half|% .....[|
|000015d0| 4f 50 54 20 5a 25 0d 06 | 18 2e 20 20 20 20 20 20 |OPT Z%..|.. |
|000015e0| 41 44 44 20 72 39 2c 72 | 31 2c 72 34 2c 4c 53 4c |ADD r9,r|1,r4,LSL|
|000015f0| 20 23 31 20 20 20 20 20 | f4 20 73 65 63 6f 6e 64 | #1 |. second|
|00001600| 20 72 6f 77 0d 06 22 1d | 20 20 20 20 20 20 84 52 | row..".| .R|
|00001610| 20 72 35 2c 72 35 2c 72 | 36 2c 4c 53 4c 20 23 31 | r5,r5,r|6,LSL #1|
|00001620| 36 0d 06 2c 1d 20 20 20 | 20 20 20 84 52 20 72 37 |6..,. | .R r7|
|00001630| 2c 72 37 2c 72 38 2c 4c | 53 4c 20 23 31 36 0d 06 |,r7,r8,L|SL #16..|
|00001640| 36 45 20 20 20 20 20 20 | 53 54 4d 49 41 20 72 39 |6E |STMIA r9|
|00001650| 2c 7b 72 35 2c 72 37 7d | 20 20 20 20 20 20 20 20 |,{r5,r7}| |
|00001660| f4 20 73 74 6f 72 65 20 | 34 20 70 69 78 65 6c 73 |. store |4 pixels|
|00001670| 20 69 6e 74 6f 20 6f 75 | 74 70 75 74 20 62 75 66 | into ou|tput buf|
|00001680| 66 65 72 0d 06 40 05 5d | 0d 06 4a 05 cc 0d 06 54 |fer..@.]|..J....T|
|00001690| 0b 5b 4f 50 54 20 5a 25 | 0d 06 5e 2e 20 20 20 20 |.[OPT Z%|..^. |
|000016a0| 20 20 41 44 44 20 72 39 | 2c 72 31 2c 72 34 2c 4c | ADD r9|,r1,r4,L|
|000016b0| 53 4c 20 23 32 20 20 20 | 20 20 f4 20 73 65 63 6f |SL #2 | . seco|
|000016c0| 6e 64 20 72 6f 77 0d 06 | 68 39 20 20 20 20 20 20 |nd row..|h9 |
|000016d0| 53 54 4d 49 41 20 72 39 | 2c 7b 72 35 2c 72 36 2c |STMIA r9|,{r5,r6,|
|000016e0| 72 37 2c 72 38 7d 20 20 | f4 20 73 74 6f 72 65 20 |r7,r8} |. store |
|000016f0| 73 65 63 6f 6e 64 20 34 | 20 70 69 78 65 6c 73 0d |second 4| pixels.|
|00001700| 06 72 05 5d 0d 06 7c 05 | cd 0d 06 86 0b 5b 4f 50 |.r.]..|.|.....[OP|
|00001710| 54 20 5a 25 0d 06 90 1a | 20 20 20 20 20 20 80 20 |T Z%....| . |
|00001720| 72 35 2c 72 31 30 2c 23 | 33 31 3c 3c 31 30 0d 06 |r5,r10,#|31<<10..|
|00001730| 9a 1a 20 20 20 20 20 20 | 80 20 72 36 2c 72 31 30 |.. |. r6,r10|
|00001740| 2c 23 33 31 3c 3c 31 35 | 0d 06 a4 1a 20 20 20 20 |,#31<<15|.... |
|00001750| 20 20 80 20 72 37 2c 72 | 31 30 2c 23 33 31 3c 3c | . r7,r|10,#31<<|
|00001760| 32 30 0d 06 ae 1a 20 20 | 20 20 20 20 80 20 72 38 |20.... | . r8|
|00001770| 2c 72 31 30 2c 23 33 31 | 3c 3c 32 35 0d 06 b8 1d |,r10,#31|<<25....|
|00001780| 20 20 20 20 20 20 84 52 | 20 72 35 2c 72 32 2c 72 | .R| r5,r2,r|
|00001790| 35 2c 4c 53 52 20 23 31 | 30 0d 06 c2 1d 20 20 20 |5,LSR #1|0.... |
|000017a0| 20 20 20 84 52 20 72 36 | 2c 72 32 2c 72 36 2c 4c | .R r6|,r2,r6,L|
|000017b0| 53 52 20 23 31 35 0d 06 | cc 1d 20 20 20 20 20 20 |SR #15..|.. |
|000017c0| 84 52 20 72 37 2c 72 32 | 2c 72 37 2c 4c 53 52 20 |.R r7,r2|,r7,LSR |
|000017d0| 23 32 30 0d 06 d6 1d 20 | 20 20 20 20 20 84 52 20 |#20.... | .R |
|000017e0| 72 38 2c 72 32 2c 72 38 | 2c 4c 53 52 20 23 32 35 |r8,r2,r8|,LSR #25|
|000017f0| 0d 06 e0 45 20 20 20 20 | 20 20 a4 70 6c 6f 6f 6b |...E | .plook|
|00001800| 28 35 29 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |(5) | |
|00001810| 20 f4 20 72 65 63 6f 72 | 64 20 70 61 74 63 68 20 | . recor|d patch |
|00001820| 74 61 62 6c 65 20 65 6e | 74 72 79 20 66 6f 72 20 |table en|try for |
|00001830| 66 69 72 73 74 0d 06 ea | 46 20 20 20 20 20 20 a4 |first...|F .|
|00001840| 70 6c 6f 6f 6b 28 36 29 | 20 20 20 20 20 20 20 20 |plook(6)| |
|00001850| 20 20 20 20 20 20 f4 20 | 2e 2e 20 20 20 20 20 20 | . |.. |
|00001860| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00001870| 20 20 20 20 20 73 65 63 | 6f 6e 64 0d 06 f4 45 20 | sec|ond...E |
|00001880| 20 20 20 20 20 a4 70 6c | 6f 6f 6b 28 37 29 20 20 | .pl|ook(7) |
|00001890| 20 20 20 20 20 20 20 20 | 20 20 20 20 f4 20 2e 2e | | . ..|
|000018a0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000018b0| 20 20 20 20 20 20 20 20 | 20 20 20 74 68 69 72 64 | | third|
|000018c0| 0d 06 fe 46 20 20 20 20 | 20 20 a4 70 6c 6f 6f 6b |...F | .plook|
|000018d0| 28 38 29 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |(8) | |
|000018e0| 20 f4 20 2e 2e 20 20 20 | 20 20 20 20 20 20 20 20 | . .. | |
|000018f0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00001900| 66 6f 75 72 74 68 0d 07 | 08 05 5d 0d 07 12 0c e7 |fourth..|..].....|
|00001910| 68 61 6c 66 25 20 8c 0d | 07 1c 0b 5b 4f 50 54 20 |half% ..|...[OPT |
|00001920| 5a 25 0d 07 26 2d 20 20 | 20 20 20 20 41 44 44 20 |Z%..&- | ADD |
|00001930| 72 31 30 2c 72 31 2c 72 | 34 2c 4c 53 4c 20 23 32 |r10,r1,r|4,LSL #2|
|00001940| 20 20 20 20 f4 20 74 68 | 69 72 64 20 72 6f 77 0d | . th|ird row.|
|00001950| 07 30 1d 20 20 20 20 20 | 20 84 52 20 72 35 2c 72 |.0. | .R r5,r|
|00001960| 35 2c 72 36 2c 4c 53 4c | 20 23 31 36 0d 07 3a 1d |5,r6,LSL| #16..:.|
|00001970| 20 20 20 20 20 20 84 52 | 20 72 37 2c 72 37 2c 72 | .R| r7,r7,r|
|00001980| 38 2c 4c 53 4c 20 23 31 | 36 0d 07 44 45 20 20 20 |8,LSL #1|6..DE |
|00001990| 20 20 20 53 54 4d 49 41 | 20 72 31 30 2c 7b 72 35 | STMIA| r10,{r5|
|000019a0| 2c 72 37 7d 20 20 20 20 | 20 20 20 f4 20 73 74 6f |,r7} | . sto|
|000019b0| 72 65 20 34 20 70 69 78 | 65 6c 73 20 69 6e 74 6f |re 4 pix|els into|
|000019c0| 20 6f 75 74 70 75 74 20 | 62 75 66 66 65 72 0d 07 | output |buffer..|
|000019d0| 4e 05 5d 0d 07 58 05 cc | 0d 07 62 0b 5b 4f 50 54 |N.]..X..|..b.[OPT|
|000019e0| 20 5a 25 0d 07 6c 2d 20 | 20 20 20 20 20 41 44 44 | Z%..l- | ADD|
|000019f0| 20 72 31 30 2c 72 31 2c | 72 34 2c 4c 53 4c 20 23 | r10,r1,|r4,LSL #|
|00001a00| 33 20 20 20 20 f4 20 74 | 68 69 72 64 20 72 6f 77 |3 . t|hird row|
|00001a10| 0d 07 76 38 20 20 20 20 | 20 20 53 54 4d 49 41 20 |..v8 | STMIA |
|00001a20| 72 31 30 2c 7b 72 35 2c | 72 36 2c 72 37 2c 72 38 |r10,{r5,|r6,r7,r8|
|00001a30| 7d 20 f4 20 73 74 6f 72 | 65 20 74 68 69 72 64 20 |} . stor|e third |
|00001a40| 34 20 70 69 78 65 6c 73 | 0d 07 80 05 5d 0d 07 8a |4 pixels|....]...|
|00001a50| 05 cd 0d 07 94 0b 5b 4f | 50 54 20 5a 25 0d 07 9e |......[O|PT Z%...|
|00001a60| 31 20 20 20 20 20 20 80 | 20 72 35 2c 72 31 31 2c |1 .| r5,r11,|
|00001a70| 23 33 31 20 20 20 20 20 | 20 20 20 20 20 f4 20 65 |#31 | . e|
|00001a80| 78 74 72 61 63 74 20 66 | 69 72 73 74 20 59 0d 07 |xtract f|irst Y..|
|00001a90| a8 19 20 20 20 20 20 20 | 80 20 72 36 2c 72 31 31 |.. |. r6,r11|
|00001aa0| 2c 23 33 31 3c 3c 35 0d | 07 b2 1a 20 20 20 20 20 |,#31<<5.|... |
|00001ab0| 20 80 20 72 37 2c 72 31 | 31 2c 23 33 31 3c 3c 31 | . r7,r1|1,#31<<1|
|00001ac0| 30 0d 07 bc 1a 20 20 20 | 20 20 20 80 20 72 38 2c |0.... | . r8,|
|00001ad0| 72 31 31 2c 23 33 31 3c | 3c 31 35 0d 07 c6 15 20 |r11,#31<|<15.... |
|00001ae0| 20 20 20 20 20 84 52 20 | 72 35 2c 72 32 2c 72 35 | .R |r5,r2,r5|
|00001af0| 0d 07 d0 1c 20 20 20 20 | 20 20 84 52 20 72 36 2c |.... | .R r6,|
|00001b00| 72 32 2c 72 36 2c 4c 53 | 52 20 23 35 0d 07 da 1d |r2,r6,LS|R #5....|
|00001b10| 20 20 20 20 20 20 84 52 | 20 72 37 2c 72 32 2c 72 | .R| r7,r2,r|
|00001b20| 37 2c 4c 53 52 20 23 31 | 30 0d 07 e4 1d 20 20 20 |7,LSR #1|0.... |
|00001b30| 20 20 20 84 52 20 72 38 | 2c 72 32 2c 72 38 2c 4c | .R r8|,r2,r8,L|
|00001b40| 53 52 20 23 31 35 0d 07 | ee 45 20 20 20 20 20 20 |SR #15..|.E |
|00001b50| a4 70 6c 6f 6f 6b 28 35 | 29 20 20 20 20 20 20 20 |.plook(5|) |
|00001b60| 20 20 20 20 20 20 20 f4 | 20 72 65 63 6f 72 64 20 | .| record |
|00001b70| 70 61 74 63 68 20 74 61 | 62 6c 65 20 65 6e 74 72 |patch ta|ble entr|
|00001b80| 79 20 66 6f 72 20 66 69 | 72 73 74 0d 07 f8 46 20 |y for fi|rst...F |
|00001b90| 20 20 20 20 20 a4 70 6c | 6f 6f 6b 28 36 29 20 20 | .pl|ook(6) |
|00001ba0| 20 20 20 20 20 20 20 20 | 20 20 20 20 f4 20 2e 2e | | . ..|
|00001bb0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00001bc0| 20 20 20 20 20 20 20 20 | 20 20 20 73 65 63 6f 6e | | secon|
|00001bd0| 64 0d 08 02 45 20 20 20 | 20 20 20 a4 70 6c 6f 6f |d...E | .ploo|
|00001be0| 6b 28 37 29 20 20 20 20 | 20 20 20 20 20 20 20 20 |k(7) | |
|00001bf0| 20 20 f4 20 2e 2e 20 20 | 20 20 20 20 20 20 20 20 | . .. | |
|00001c00| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00001c10| 20 74 68 69 72 64 0d 08 | 0c 46 20 20 20 20 20 20 | third..|.F |
|00001c20| a4 70 6c 6f 6f 6b 28 38 | 29 20 20 20 20 20 20 20 |.plook(8|) |
|00001c30| 20 20 20 20 20 20 20 f4 | 20 2e 2e 20 20 20 20 20 | .| .. |
|00001c40| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00001c50| 20 20 20 20 20 20 66 6f | 75 72 74 68 0d 08 16 05 | fo|urth....|
|00001c60| 5d 0d 08 20 0c e7 68 61 | 6c 66 25 20 8c 0d 08 2a |].. ..ha|lf% ...*|
|00001c70| 0b 5b 4f 50 54 20 5a 25 | 0d 08 34 2e 20 20 20 20 |.[OPT Z%|..4. |
|00001c80| 20 20 41 44 44 20 72 31 | 30 2c 72 31 30 2c 72 34 | ADD r1|0,r10,r4|
|00001c90| 2c 4c 53 4c 20 23 31 20 | 20 20 f4 20 66 6f 75 72 |,LSL #1 | . four|
|00001ca0| 74 68 20 72 6f 77 0d 08 | 3e 1d 20 20 20 20 20 20 |th row..|>. |
|00001cb0| 84 52 20 72 35 2c 72 35 | 2c 72 36 2c 4c 53 4c 20 |.R r5,r5|,r6,LSL |
|00001cc0| 23 31 36 0d 08 48 1d 20 | 20 20 20 20 20 84 52 20 |#16..H. | .R |
|00001cd0| 72 37 2c 72 37 2c 72 38 | 2c 4c 53 4c 20 23 31 36 |r7,r7,r8|,LSL #16|
|00001ce0| 0d 08 52 45 20 20 20 20 | 20 20 53 54 4d 49 41 20 |..RE | STMIA |
|00001cf0| 72 31 30 2c 7b 72 35 2c | 72 37 7d 20 20 20 20 20 |r10,{r5,|r7} |
|00001d00| 20 20 f4 20 73 74 6f 72 | 65 20 34 20 70 69 78 65 | . stor|e 4 pixe|
|00001d10| 6c 73 20 69 6e 74 6f 20 | 6f 75 74 70 75 74 20 62 |ls into |output b|
|00001d20| 75 66 66 65 72 0d 08 5c | 16 20 20 20 20 20 20 41 |uffer..\|. A|
|00001d30| 44 44 20 72 31 2c 72 31 | 2c 23 38 0d 08 66 05 5d |DD r1,r1|,#8..f.]|
|00001d40| 0d 08 70 05 cc 0d 08 7a | 0b 5b 4f 50 54 20 5a 25 |..p....z|.[OPT Z%|
|00001d50| 0d 08 84 2e 20 20 20 20 | 20 20 41 44 44 20 72 31 |.... | ADD r1|
|00001d60| 30 2c 72 31 30 2c 72 34 | 2c 4c 53 4c 20 23 32 20 |0,r10,r4|,LSL #2 |
|00001d70| 20 20 f4 20 66 6f 75 72 | 74 68 20 72 6f 77 0d 08 | . four|th row..|
|00001d80| 8e 45 20 20 20 20 20 20 | 53 54 4d 49 41 20 72 31 |.E |STMIA r1|
|00001d90| 30 2c 7b 72 35 2c 72 36 | 2c 72 37 2c 72 38 7d 20 |0,{r5,r6|,r7,r8} |
|00001da0| f4 20 73 74 6f 72 65 20 | 34 20 70 69 78 65 6c 73 |. store |4 pixels|
|00001db0| 20 69 6e 74 6f 20 6f 75 | 74 70 75 74 20 62 75 66 | into ou|tput buf|
|00001dc0| 66 65 72 0d 08 98 17 20 | 20 20 20 20 20 41 44 44 |fer.... | ADD|
|00001dd0| 20 72 31 2c 72 31 2c 23 | 31 36 0d 08 a2 05 5d 0d | r1,r1,#|16....].|
|00001de0| 08 ac 05 cd 0d 08 b6 0b | 5b 4f 50 54 20 5a 25 0d |........|[OPT Z%.|
|00001df0| 08 c0 2b 20 20 20 20 20 | 20 53 55 42 53 20 72 31 |..+ | SUBS r1|
|00001e00| 32 2c 72 31 32 2c 23 34 | 20 f4 20 64 6f 6e 65 20 |2,r12,#4| . done |
|00001e10| 34 20 58 20 70 69 78 65 | 6c 73 0d 08 ca 12 20 20 |4 X pixe|ls.... |
|00001e20| 20 20 20 20 42 4e 45 20 | 64 65 63 78 0d 08 d4 05 | BNE |decx....|
|00001e30| 5d 0d 08 de 0b e7 68 61 | 6c 66 25 8c 0d 08 e8 0b |].....ha|lf%.....|
|00001e40| 5b 4f 50 54 20 5a 25 0d | 08 f2 32 20 20 20 20 20 |[OPT Z%.|..2 |
|00001e50| 20 41 44 44 20 72 31 2c | 72 31 30 2c 23 38 20 f4 | ADD r1,|r10,#8 .|
|00001e60| 20 6e 6f 77 20 74 6f 20 | 73 74 61 72 74 20 6f 66 | now to |start of|
|00001e70| 20 6e 65 78 74 20 72 6f | 77 0d 08 fc 05 5d 0d 09 | next ro|w....]..|
|00001e80| 06 05 cc 0d 09 10 0b 5b | 4f 50 54 20 5a 25 0d 09 |.......[|OPT Z%..|
|00001e90| 1a 33 20 20 20 20 20 20 | 41 44 44 20 72 31 2c 72 |.3 |ADD r1,r|
|00001ea0| 31 30 2c 23 31 36 20 f4 | 20 6e 6f 77 20 74 6f 20 |10,#16 .| now to |
|00001eb0| 73 74 61 72 74 20 6f 66 | 20 6e 65 78 74 20 72 6f |start of| next ro|
|00001ec0| 77 0d 09 24 05 5d 0d 09 | 2e 05 cd 0d 09 38 0b 5b |w..$.]..|.....8.[|
|00001ed0| 4f 50 54 20 5a 25 0d 09 | 42 19 20 20 20 20 20 20 |OPT Z%..|B. |
|00001ee0| 4c 44 4d 46 44 20 72 31 | 33 21 2c 7b 72 32 7d 0d |LDMFD r1|3!,{r2}.|
|00001ef0| 09 4c 25 20 20 20 20 20 | 20 53 55 42 53 20 72 32 |.L% | SUBS r2|
|00001f00| 2c 72 32 2c 23 34 20 f4 | 20 64 6f 6e 65 20 34 20 |,r2,#4 .| done 4 |
|00001f10| 72 6f 77 73 0d 09 56 12 | 20 20 20 20 20 20 42 4e |rows..V.| BN|
|00001f20| 45 20 64 65 63 79 0d 09 | 60 17 20 20 20 20 20 20 |E decy..|`. |
|00001f30| 4c 44 52 20 72 34 2c 72 | 65 74 61 64 72 0d 09 6a |LDR r4,r|etadr..j|
|00001f40| 28 20 20 20 20 20 20 4d | 4f 56 20 70 63 2c 72 34 |( M|OV pc,r4|
|00001f50| 20 f4 20 66 69 6e 69 73 | 68 65 64 20 6f 6e 65 20 | . finis|hed one |
|00001f60| 66 72 61 6d 65 0d 09 74 | 04 0d 09 7e 1c f4 20 69 |frame..t|...~.. i|
|00001f70| 6e 69 74 20 69 73 20 72 | 61 74 68 65 72 20 74 72 |nit is r|ather tr|
|00001f80| 69 76 69 61 6c 0d 09 88 | 09 2e 69 6e 69 74 0d 09 |ivial...|..init..|
|00001f90| 92 15 20 20 20 20 20 20 | 53 54 52 20 72 30 2c 70 |.. |STR r0,p|
|00001fa0| 69 78 78 0d 09 9c 15 20 | 20 20 20 20 20 53 54 52 |ixx.... | STR|
|00001fb0| 20 72 31 2c 70 69 78 79 | 0d 09 a6 15 20 20 20 20 | r1,pixy|.... |
|00001fc0| 20 20 4d 4f 56 53 20 70 | 63 2c 72 31 34 0d 09 b0 | MOVS p|c,r14...|
|00001fd0| 0f 2e 70 69 78 78 20 44 | 43 44 20 30 0d 09 ba 0f |..pixx D|CD 0....|
|00001fe0| 2e 70 69 78 79 20 44 43 | 44 20 30 0d 09 c4 11 2e |.pixy DC|D 0.....|
|00001ff0| 72 65 74 61 64 72 20 44 | 43 44 20 30 0d 09 ce 05 |retadr D|CD 0....|
|00002000| 5d 0d 09 d8 0d 74 61 62 | 6c 65 25 3d 50 25 0d 09 |]....tab|le%=P%..|
|00002010| e2 05 ed 0d 09 ec 22 21 | 74 61 62 6c 65 73 74 61 |......"!|tablesta|
|00002020| 72 74 25 3d 2d 31 3a 74 | 61 62 6c 65 73 74 61 72 |rt%=-1:t|ablestar|
|00002030| 74 25 2b 3d 34 0d 09 f6 | 05 e1 0d 0a 00 34 f4 20 |t%+=4...|.....4. |
|00002040| 72 65 63 6f 72 64 20 74 | 68 65 20 6c 6f 6f 6b 75 |record t|he looku|
|00002050| 70 20 6f 66 20 64 69 74 | 68 65 72 65 64 20 76 65 |p of dit|hered ve|
|00002060| 72 73 69 6f 6e 20 6f 66 | 20 70 69 78 65 6c 0d 0a |rsion of| pixel..|
|00002070| 0a 10 dd 20 a4 70 6c 6f | 6f 6b 28 72 6e 29 0d 0a |... .plo|ok(rn)..|
|00002080| 14 10 e7 74 61 62 6c 65 | 25 3c 3e 30 20 8c 0d 0a |...table|%<>0 ...|
|00002090| 1e 41 21 74 61 62 6c 65 | 73 74 61 72 74 25 3d 26 |.A!table|start%=&|
|000020a0| 30 30 30 30 3c 3c 32 38 | 20 84 20 72 6e 3c 3c 32 |0000<<28| . rn<<2|
|000020b0| 34 20 84 20 72 6e 3c 3c | 32 30 20 84 20 33 3c 3c |4 . rn<<|20 . 3<<|
|000020c0| 31 36 20 84 20 28 50 25 | 2d 63 6f 64 65 25 29 0d |16 . (P%|-code%).|
|000020d0| 0a 28 12 74 61 62 6c 65 | 73 74 61 72 74 25 2b 3d |.(.table|start%+=|
|000020e0| 34 0d 0a 32 05 cd 0d 0a | 3c 0b 5b 4f 50 54 20 5a |4..2....|<.[OPT Z|
|000020f0| 25 0d 0a 46 0e 20 4d 4f | 56 20 72 6e 2c 72 6e 0d |%..F. MO|V rn,rn.|
|00002100| 0a 50 05 5d 0d 0a 5a 06 | 3d 30 0d ff |.P.]..Z.|=0.. |
+--------+-------------------------+-------------------------+--------+--------+