home *** CD-ROM | disk | FTP | other *** search
/ RISC DISC 1 / RISC_DISC_1.iso / _armovie / decomp2 / makedecomp < prev   
Unknown  |  1993-11-29  |  5.6 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 32 2e 44 |e$Dir>.D|ecomp2.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 32 2e 4d |e$Dir>.D|ecomp2.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 32 2e 44 65 63 6f 6d | 70 72 65 73 73 22 2c 6c |p2.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 32 2e 44 65 63 |Dir>.Dec|omp2.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 32 2e 44 65 63 6f 6d | 70 72 65 73 73 20 46 46 |p2.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 32 2e 44 65 |$Dir>.De|comp2.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 32 2e 44 65 63 |Dir>.Dec|omp2.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 32 2e 44 | 65 63 6f 6d 70 72 65 73 |ecomp2.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 32 2e 44 65 63 |Dir>.Dec|omp2.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 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 3a f4 20 20 20 20 |ds here.|..:. |
|00000f00| 72 32 20 2d 20 30 78 37 | 66 66 66 20 2d 20 75 73 |r2 - 0x7|fff - us|
|00000f10| 65 66 75 6c 20 66 6f 72 | 20 65 78 74 72 61 63 74 |eful for| extract|
|00000f20| 69 6e 67 20 31 35 2d 62 | 69 74 20 76 61 6c 75 65 |ing 15-b|it value|
|00000f30| 73 0d 03 f2 27 f4 20 20 | 20 20 72 33 20 2d 20 70 |s...'. | r3 - p|
|00000f40| 69 78 65 6c 20 64 69 74 | 68 65 72 20 6c 6f 6f 6b |ixel dit|her look|
|00000f50| 75 70 20 74 61 62 6c 65 | 0d 03 fc 1c f4 20 20 20 |up table|..... |
|00000f60| 20 72 34 20 2d 20 72 65 | 74 75 72 6e 20 61 64 64 | r4 - re|turn add|
|00000f70| 72 65 73 73 0d 04 06 1e | f4 20 20 20 20 72 35 20 |ress....|. r5 |
|00000f80| 2d 20 6e 75 6d 62 65 72 | 20 6f 66 20 70 69 78 65 |- number| of pixe|
|00000f90| 6c 73 0d 04 10 05 f4 0d | 04 1a 48 20 20 20 20 20 |ls......|..H |
|00000fa0| 20 44 43 44 20 74 61 62 | 6c 65 25 2d 63 6f 64 65 | DCD tab|le%-code|
|00000fb0| 25 20 f4 20 6f 66 66 73 | 65 74 20 74 6f 20 70 61 |% . offs|et to pa|
|00000fc0| 74 63 68 20 74 61 62 6c | 65 20 28 6f 72 20 7a 65 |tch tabl|e (or ze|
|00000fd0| 72 6f 20 69 66 20 6e 6f | 20 74 61 62 6c 65 29 0d |ro if no| table).|
|00000fe0| 04 24 23 20 20 20 20 20 | 20 42 20 69 6e 69 74 20 |.$# | B init |
|00000ff0| f4 20 69 6e 69 74 69 61 | 6c 69 73 65 20 70 69 78 |. initia|lise pix|
|00001000| 6e 6f 0d 04 2e 15 20 20 | 20 20 20 20 4d 4f 56 20 |no.... | MOV |
|00001010| 72 32 2c 23 26 66 66 0d | 04 38 21 20 20 20 20 20 |r2,#&ff.|.8! |
|00001020| 20 84 52 20 72 32 2c 72 | 32 2c 23 26 37 66 30 30 | .R r2,r|2,#&7f00|
|00001030| 20 f4 20 26 37 66 66 66 | 0d 04 42 16 20 20 20 20 | . &7fff|..B. |
|00001040| 20 20 4c 44 52 20 72 35 | 2c 70 69 78 6e 6f 0d 04 | LDR r5|,pixno..|
|00001050| 4c 16 20 20 20 20 20 20 | 41 44 44 20 72 35 2c 72 |L. |ADD r5,r|
|00001060| 35 2c 23 33 0d 04 56 52 | 20 20 20 20 20 20 42 49 |5,#3..VR| BI|
|00001070| 43 20 72 35 2c 72 35 2c | 23 33 20 20 20 20 20 20 |C r5,r5,|#3 |
|00001080| 20 20 20 20 20 20 f4 20 | 6a 75 73 74 20 74 6f 20 | . |just to |
|00001090| 73 74 6f 70 20 61 6e 79 | 20 6e 61 73 74 69 6e 65 |stop any| nastine|
|000010a0| 73 73 2c 20 6d 61 6b 65 | 20 6d 75 6c 74 69 70 6c |ss, make| multipl|
|000010b0| 65 20 6f 66 20 34 0d 04 | 60 45 20 20 20 20 20 20 |e of 4..|`E |
|000010c0| 4d 4f 56 20 72 30 2c 72 | 30 20 20 20 20 20 20 20 |MOV r0,r|0 |
|000010d0| 20 20 20 20 20 20 20 20 | f4 20 71 75 61 64 20 77 | |. quad w|
|000010e0| 6f 72 64 20 61 6c 69 67 | 6e 20 64 65 63 6f 6d 70 |ord alig|n decomp|
|000010f0| 72 65 73 73 6f 72 20 6c | 6f 6f 70 0d 04 6a 0c 2e |ressor l|oop..j..|
|00001100| 64 65 63 6c 6f 6f 70 0d | 04 74 37 20 20 20 20 20 |decloop.|.t7 |
|00001110| 20 4c 44 4d 49 41 20 72 | 30 20 21 2c 7b 72 36 2c | LDMIA r|0 !,{r6,|
|00001120| 72 37 7d 20 20 20 20 20 | 20 f4 20 67 65 74 20 34 |r7} | . get 4|
|00001130| 20 70 61 63 6b 65 64 20 | 70 69 78 65 6c 73 0d 04 | packed |pixels..|
|00001140| 7e 2f 20 20 20 20 20 20 | 80 20 72 38 2c 72 36 2c |~/ |. r8,r6,|
|00001150| 72 32 20 20 20 20 20 20 | 20 20 20 20 20 20 f4 20 |r2 | . |
|00001160| 65 78 74 72 61 63 74 20 | 66 69 72 73 74 0d 04 88 |extract |first...|
|00001170| 30 20 20 20 20 20 20 80 | 20 72 39 2c 72 32 2c 72 |0 .| r9,r2,r|
|00001180| 36 2c 4c 53 52 20 23 31 | 36 20 20 20 20 f4 20 2e |6,LSR #1|6 . .|
|00001190| 2e 20 20 20 20 20 20 73 | 65 63 6f 6e 64 0d 04 92 |. s|econd...|
|000011a0| 2f 20 20 20 20 20 20 80 | 20 72 31 30 2c 72 37 2c |/ .| r10,r7,|
|000011b0| 72 32 20 20 20 20 20 20 | 20 20 20 20 20 f4 20 2e |r2 | . .|
|000011c0| 2e 20 20 20 20 20 20 74 | 68 69 72 64 0d 04 9c 30 |. t|hird...0|
|000011d0| 20 20 20 20 20 20 80 20 | 72 31 31 2c 72 32 2c 72 | . |r11,r2,r|
|000011e0| 37 2c 4c 53 52 20 23 31 | 36 20 20 20 f4 20 2e 2e |7,LSR #1|6 . ..|
|000011f0| 20 20 20 20 20 20 66 6f | 75 72 74 68 0d 04 a6 45 | fo|urth...E|
|00001200| 20 20 20 20 20 20 a4 70 | 6c 6f 6f 6b 28 38 29 20 | .p|look(8) |
|00001210| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 f4 20 72 | | . r|
|00001220| 65 63 6f 72 64 20 70 61 | 74 63 68 20 74 61 62 6c |ecord pa|tch tabl|
|00001230| 65 20 65 6e 74 72 79 20 | 66 6f 72 20 66 69 72 73 |e entry |for firs|
|00001240| 74 0d 04 b0 46 20 20 20 | 20 20 20 a4 70 6c 6f 6f |t...F | .ploo|
|00001250| 6b 28 39 29 20 20 20 20 | 20 20 20 20 20 20 20 20 |k(9) | |
|00001260| 20 20 f4 20 2e 2e 20 20 | 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 73 65 63 6f 6e 64 0d | 04 ba 45 20 20 20 20 20 | second.|..E |
|00001290| 20 a4 70 6c 6f 6f 6b 28 | 31 30 29 20 20 20 20 20 | .plook(|10) |
|000012a0| 20 20 20 20 20 20 20 20 | f4 20 2e 2e 20 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 74 | 68 69 72 64 0d 04 c4 46 | t|hird...F|
|000012d0| 20 20 20 20 20 20 a4 70 | 6c 6f 6f 6b 28 31 31 29 | .p|look(11)|
|000012e0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 f4 20 2e | | . .|
|000012f0| 2e 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |. | |
|00001300| 20 20 20 20 20 20 20 20 | 20 20 20 20 66 6f 75 72 | | four|
|00001310| 74 68 0d 04 ce 05 5d 0d | 04 d8 0c e7 68 61 6c 66 |th....].|....half|
|00001320| 25 20 8c 0d 04 e2 0b 5b | 4f 50 54 20 5a 25 0d 04 |% .....[|OPT Z%..|
|00001330| ec 1d 20 20 20 20 20 20 | 84 52 20 72 38 2c 72 38 |.. |.R r8,r8|
|00001340| 2c 72 39 2c 4c 53 4c 20 | 23 31 36 0d 04 f6 20 20 |,r9,LSL |#16... |
|00001350| 20 20 20 20 20 84 52 20 | 72 31 30 2c 72 31 30 2c | .R |r10,r10,|
|00001360| 72 31 31 2c 4c 53 4c 20 | 23 31 36 0d 05 00 41 20 |r11,LSL |#16...A |
|00001370| 20 20 20 20 20 53 54 4d | 49 41 20 72 31 20 21 2c | STM|IA r1 !,|
|00001380| 7b 72 38 2c 72 31 30 7d | 20 f4 20 73 74 6f 72 65 |{r8,r10}| . store|
|00001390| 20 34 20 70 69 78 65 6c | 73 20 69 6e 74 6f 20 6f | 4 pixel|s into o|
|000013a0| 75 74 70 75 74 20 62 75 | 66 66 65 72 0d 05 0a 05 |utput bu|ffer....|
|000013b0| 5d 0d 05 14 05 cc 0d 05 | 1e 0b 5b 4f 50 54 20 5a |].......|..[OPT Z|
|000013c0| 25 0d 05 28 48 20 20 20 | 20 20 20 53 54 4d 49 41 |%..(H | STMIA|
|000013d0| 20 72 31 20 21 2c 7b 72 | 38 2c 72 39 2c 72 31 30 | r1 !,{r|8,r9,r10|
|000013e0| 2c 72 31 31 7d 20 f4 20 | 73 74 6f 72 65 20 34 20 |,r11} . |store 4 |
|000013f0| 70 69 78 65 6c 73 20 69 | 6e 74 6f 20 6f 75 74 70 |pixels i|nto outp|
|00001400| 75 74 20 62 75 66 66 65 | 72 0d 05 32 05 5d 0d 05 |ut buffe|r..2.]..|
|00001410| 3c 05 cd 0d 05 46 0b 5b | 4f 50 54 20 5a 25 0d 05 |<....F.[|OPT Z%..|
|00001420| 50 27 20 20 20 20 20 20 | 53 55 42 53 20 72 35 2c |P' |SUBS r5,|
|00001430| 72 35 2c 23 34 20 f4 20 | 64 6f 6e 65 20 34 20 70 |r5,#4 . |done 4 p|
|00001440| 69 78 65 6c 73 0d 05 5a | 15 20 20 20 20 20 20 42 |ixels..Z|. B|
|00001450| 4e 45 20 64 65 63 6c 6f | 6f 70 0d 05 64 28 20 20 |NE declo|op..d( |
|00001460| 20 20 20 20 4d 4f 56 20 | 70 63 2c 72 34 20 f4 20 | MOV |pc,r4 . |
|00001470| 66 69 6e 69 73 68 65 64 | 20 6f 6e 65 20 66 72 61 |finished| one fra|
|00001480| 6d 65 0d 05 6e 04 0d 05 | 78 1c f4 20 69 6e 69 74 |me..n...|x.. init|
|00001490| 20 69 73 20 72 61 74 68 | 65 72 20 74 72 69 76 69 | is rath|er trivi|
|000014a0| 61 6c 0d 05 82 04 0d 05 | 8c 09 2e 69 6e 69 74 0d |al......|...init.|
|000014b0| 05 96 59 20 20 20 20 20 | 20 4d 55 4c 20 72 32 2c |..Y | MUL r2,|
|000014c0| 72 30 2c 72 31 20 20 f4 | 20 63 6f 6d 70 75 74 65 |r0,r1 .| compute|
|000014d0| 20 74 6f 74 61 6c 20 6e | 75 6d 62 65 72 20 6f 66 | total n|umber of|
|000014e0| 20 70 69 78 65 6c 73 20 | 69 6e 20 66 72 61 6d 65 | pixels |in frame|
|000014f0| 20 28 6d 75 73 74 20 62 | 65 20 6d 75 6c 74 69 70 | (must b|e multip|
|00001500| 6c 65 20 6f 66 20 34 29 | 0d 05 a0 29 20 20 20 20 |le of 4)|...) |
|00001510| 20 20 53 54 52 20 72 32 | 2c 70 69 78 6e 6f 20 20 | STR r2|,pixno |
|00001520| f4 20 61 6e 64 20 72 65 | 6d 65 6d 62 65 72 20 69 |. and re|member i|
|00001530| 74 0d 05 aa 15 20 20 20 | 20 20 20 4d 4f 56 53 20 |t.... | MOVS |
|00001540| 70 63 2c 72 31 34 0d 05 | b4 10 2e 70 69 78 6e 6f |pc,r14..|...pixno|
|00001550| 20 44 43 44 20 30 0d 05 | be 05 5d 0d 05 c8 0d 74 | DCD 0..|..]....t|
|00001560| 61 62 6c 65 25 3d 50 25 | 0d 05 d2 05 ed 0d 05 dc |able%=P%|........|
|00001570| 22 21 74 61 62 6c 65 73 | 74 61 72 74 25 3d 2d 31 |"!tables|tart%=-1|
|00001580| 3a 74 61 62 6c 65 73 74 | 61 72 74 25 2b 3d 34 0d |:tablest|art%+=4.|
|00001590| 05 e6 05 e1 0d 05 f0 34 | f4 20 72 65 63 6f 72 64 |.......4|. record|
|000015a0| 20 74 68 65 20 6c 6f 6f | 6b 75 70 20 6f 66 20 64 | the loo|kup of d|
|000015b0| 69 74 68 65 72 65 64 20 | 76 65 72 73 69 6f 6e 20 |ithered |version |
|000015c0| 6f 66 20 70 69 78 65 6c | 0d 05 fa 10 dd 20 a4 70 |of pixel|..... .p|
|000015d0| 6c 6f 6f 6b 28 72 6e 29 | 0d 06 04 10 e7 74 61 62 |look(rn)|.....tab|
|000015e0| 6c 65 25 3c 3e 30 20 8c | 0d 06 0e 41 21 74 61 62 |le%<>0 .|...A!tab|
|000015f0| 6c 65 73 74 61 72 74 25 | 3d 26 30 30 30 30 3c 3c |lestart%|=&0000<<|
|00001600| 32 38 20 84 20 72 6e 3c | 3c 32 34 20 84 20 72 6e |28 . rn<|<24 . rn|
|00001610| 3c 3c 32 30 20 84 20 33 | 3c 3c 31 36 20 84 20 28 |<<20 . 3|<<16 . (|
|00001620| 50 25 2d 63 6f 64 65 25 | 29 0d 06 18 12 74 61 62 |P%-code%|)....tab|
|00001630| 6c 65 73 74 61 72 74 25 | 2b 3d 34 0d 06 22 05 cd |lestart%|+=4.."..|
|00001640| 0d 06 2c 0b 5b 4f 50 54 | 20 5a 25 0d 06 36 0e 20 |..,.[OPT| Z%..6. |
|00001650| 4d 4f 56 20 72 6e 2c 72 | 6e 0d 06 40 05 5d 0d 06 |MOV rn,r|n..@.]..|
|00001660| 4a 06 3d 30 0d ff | |J.=0.. | |
+--------+-------------------------+-------------------------+--------+--------+