home *** CD-ROM | disk | FTP | other *** search
Unknown | 1995-06-23 | 820.7 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.
Confidence | Program | Detection | Match Type | Support
|
---|
100%
| file
| data
| default
| |
100%
| gt2
| Kopftext: 'HELP('
| default (weak)
|
|
hex view+--------+-------------------------+-------------------------+--------+--------+
|00000000| 48 45 4c 50 28 00 00 00 | c9 00 00 00 ff ff ff ff |HELP(...|........|
|00000010| 2c 00 00 00 00 fd ff ff | 00 00 00 00 d0 02 00 00 |,.......|........|
|00000020| 00 01 00 00 00 00 00 00 | 24 00 00 00 44 49 52 24 |........|$...DIR$|
|00000030| d8 02 00 00 d8 02 00 00 | 04 03 00 00 46 fd ff ff |........|....F...|
|00000040| ac 58 5a 26 d1 01 00 00 | 13 00 00 00 00 00 00 00 |.XZ&....|........|
|00000050| 21 52 6f 6f 74 00 00 00 | d8 04 00 00 46 fd ff ff |!Root...|....F...|
|00000060| 02 e6 92 26 3c 09 00 00 | 13 01 00 00 00 00 00 00 |...&<...|........|
|00000070| 5f 00 00 00 58 53 00 00 | 45 f9 ff ff 38 1c 82 e5 |_...XS..|E...8...|
|00000080| c4 43 00 00 13 00 00 00 | 00 00 00 00 53 70 72 69 |.C......|....Spri|
|00000090| 74 65 73 32 32 00 00 00 | 1c 97 00 00 46 fd ff ff |tes22...|....F...|
|000000a0| ed e7 92 26 34 03 00 00 | 13 01 00 00 00 00 00 00 |...&4...|........|
|000000b0| 5b 61 5d 00 b8 cd 00 00 | 46 fd ff ff 47 e9 92 26 |[a].....|F...G..&|
|000000c0| 2c 01 00 00 13 01 00 00 | 00 00 00 00 5b 62 5d 00 |,.......|....[b].|
|000000d0| e4 3d 01 00 46 fd ff ff | be eb 92 26 b0 04 00 00 |.=..F...|...&....|
|000000e0| 13 01 00 00 00 00 00 00 | 5b 63 5d 00 80 04 02 00 |........|[c].....|
|000000f0| 46 fd ff ff 9f f0 92 26 | c0 04 00 00 13 01 00 00 |F......&|........|
|00000100| 00 00 00 00 5b 64 5d 00 | a4 25 03 00 46 fd ff ff |....[d].|.%..F...|
|00000110| 3d f7 92 26 48 03 00 00 | 13 01 00 00 00 00 00 00 |=..&H...|........|
|00000120| 5b 65 5d 00 34 8a 03 00 | 46 fd ff ff b9 f9 92 26 |[e].4...|F......&|
|00000130| e0 06 00 00 13 01 00 00 | 00 00 00 00 5b 66 5d 00 |........|....[f].|
|00000140| 1c 93 04 00 46 fd ff ff | e0 ff 92 26 78 02 00 00 |....F...|...&x...|
|00000150| 13 01 00 00 00 00 00 00 | 5b 67 2d 68 5d 00 00 00 |........|[g-h]...|
|00000160| f4 e4 04 00 46 fd ff ff | d7 01 93 26 14 04 00 00 |....F...|...&....|
|00000170| 13 01 00 00 00 00 00 00 | 5b 69 2d 6b 5d 00 00 00 |........|[i-k]...|
|00000180| f0 8f 05 00 46 fd ff ff | 17 06 93 26 30 03 00 00 |....F...|...&0...|
|00000190| 13 01 00 00 00 00 00 00 | 5b 6c 5d 00 28 ea 05 00 |........|[l].(...|
|000001a0| 46 fd ff ff b3 08 93 26 | e4 04 00 00 13 01 00 00 |F......&|........|
|000001b0| 00 00 00 00 5b 6d 5d 00 | 2c ca 06 00 46 fd ff ff |....[m].|,...F...|
|000001c0| dd 0d 93 26 6c 01 00 00 | 13 01 00 00 00 00 00 00 |...&l...|........|
|000001d0| 5b 6e 2d 6f 5d 00 00 00 | 50 35 07 00 46 fd ff ff |[n-o]...|P5..F...|
|000001e0| 0d 10 93 26 14 04 00 00 | 13 01 00 00 00 00 00 00 |...&....|........|
|000001f0| 5b 70 5d 00 bc 14 08 00 | 46 fd ff ff 4d 15 93 26 |[p].....|F...M..&|
|00000200| 8c 02 00 00 13 01 00 00 | 00 00 00 00 5b 71 2d 72 |........|....[q-r|
|00000210| 5d 00 00 00 20 50 08 00 | 46 fd ff ff 97 16 93 26 |]... P..|F......&|
|00000220| 64 0d 00 00 13 01 00 00 | 00 00 00 00 5b 73 5d 00 |d.......|....[s].|
|00000230| 2c 39 0a 00 46 fd ff ff | a4 21 93 26 1c 04 00 00 |,9..F...|.!.&....|
|00000240| 13 01 00 00 00 00 00 00 | 5b 74 5d 00 bc fe 0a 00 |........|[t].....|
|00000250| 46 fd ff ff df 26 93 26 | 2c 01 00 00 13 01 00 00 |F....&.&|,.......|
|00000260| 00 00 00 00 5b 75 5d 00 | 2c 0b 0b 00 46 fd ff ff |....[u].|,...F...|
|00000270| 45 27 93 26 80 01 00 00 | 13 01 00 00 00 00 00 00 |E'.&....|........|
|00000280| 5b 76 5d 00 bc 21 0b 00 | 46 fd ff ff e6 27 93 26 |[v]..!..|F....'.&|
|00000290| 50 02 00 00 13 01 00 00 | 00 00 00 00 5b 77 5d 00 |P.......|....[w].|
|000002a0| 30 a3 0c 00 46 fd ff ff | 38 31 93 26 9c 00 00 00 |0...F...|81.&....|
|000002b0| 13 01 00 00 00 00 00 00 | 5b 78 2d 7a 5d 00 00 00 |........|[x-z]...|
|000002c0| 78 cd 0c 00 46 fd ff ff | 46 32 93 26 98 00 00 00 |x...F...|F2.&....|
|000002d0| 13 01 00 00 00 00 00 00 | 5b 31 2d 39 5d 00 00 00 |........|[1-9]...|
|000002e0| 5c d2 0c 00 46 ff ff ff | 7d 3d 5a 26 43 00 00 00 |\...F...|}=Z&C...|
|000002f0| 13 00 00 00 00 00 00 00 | 21 43 6f 6e 66 69 67 75 |........|!Configu|
|00000300| 72 65 00 00 44 41 54 41 | d1 01 00 00 43 0a 23 53 |re..DATA|....C.#S|
|00000310| 70 72 69 74 65 20 31 36 | 2c 31 36 20 21 63 3f 0a |prite 16|,16 !c?.|
|00000320| 23 69 6e 64 65 6e 74 20 | 38 0a 23 74 61 62 20 2c |#indent |8.#tab ,|
|00000330| 61 6c 69 67 6e 20 63 65 | 6e 74 72 65 0a 2d 09 2a |align ce|ntre.-.*|
|00000340| 48 65 6c 70 20 4f 6e 20 | 43 2a 09 2d 0a 2d 09 62 |Help On |C*.-.-.b|
|00000350| 79 20 3c 47 61 72 65 74 | 68 20 42 6f 64 65 6e 3d |y <Garet|h Boden=|
|00000360| 3e 47 42 6f 64 65 6e 3e | 09 2d 0a 2d 09 3c 56 65 |>GBoden>|.-.-.<Ve|
|00000370| 72 73 69 6f 6e 20 32 2e | 30 30 3d 3e 32 30 30 3e |rsion 2.|00=>200>|
|00000380| 09 2d 0a 23 69 6e 64 65 | 6e 74 20 32 0a 0a 3d 20 |.-.#inde|nt 2..= |
|00000390| 3c 4d 61 65 6c 73 74 72 | 6f 6d 20 53 6f 66 74 77 |<Maelstr|om Softw|
|000003a0| 61 72 65 3d 3e 4d 61 65 | 6c 73 74 72 6f 6d 3e 20 |are=>Mae|lstrom> |
|000003b0| 3d 0a 23 69 6e 64 65 6e | 74 20 30 3b 6c 69 6e 65 |=.#inden|t 0;line|
|000003c0| 3b 69 6e 64 65 6e 74 0a | 3c 54 68 65 20 43 20 4c |;indent.|<The C L|
|000003d0| 61 6e 67 75 61 67 65 3d | 3e 63 5f 3e 0a 0a 3c 41 |anguage=|>c_>..<A|
|000003e0| 4e 53 49 20 46 75 6e 63 | 74 69 6f 6e 73 3d 3e 61 |NSI Func|tions=>a|
|000003f0| 6e 73 69 5f 3e 0a 3c 52 | 49 53 43 20 4f 53 20 46 |nsi_>.<R|ISC OS F|
|00000400| 75 6e 63 74 69 6f 6e 73 | 3d 3e 72 69 73 63 6f 73 |unctions|=>riscos|
|00000410| 5f 3e 0a 0a 3c 50 72 65 | 70 72 6f 63 65 73 73 6f |_>..<Pre|processo|
|00000420| 72 20 44 69 72 65 63 74 | 69 76 65 73 3d 3e 70 70 |r Direct|ives=>pp|
|00000430| 64 69 72 5f 3e 0a 3c 43 | 6f 6d 70 69 6c 65 72 20 |dir_>.<C|ompiler |
|00000440| 44 69 72 65 63 74 69 76 | 65 73 3d 3e 63 6f 6d 70 |Directiv|es=>comp|
|00000450| 64 69 72 5f 3e 20 0a 3c | 4c 69 6e 6b 65 72 20 44 |dir_> .<|Linker D|
|00000460| 69 72 65 63 74 69 76 65 | 73 3d 3e 6c 69 6e 6b 64 |irective|s=>linkd|
|00000470| 69 72 5f 3e 0a 3c 4d 61 | 6b 65 20 46 69 6c 65 73 |ir_>.<Ma|ke Files|
|00000480| 3d 3e 6d 61 6b 65 5f 3e | 0a 3c 4c 69 62 72 61 72 |=>make_>|.<Librar|
|00000490| 69 65 73 3d 3e 6c 69 62 | 5f 3e 0a 23 69 6e 64 65 |ies=>lib|_>.#inde|
|000004a0| 6e 74 20 30 3b 6c 69 6e | 65 20 20 20 20 0a 7b 61 |nt 0;lin|e .{a|
|000004b0| 6c 69 67 6e 20 63 65 6e | 74 72 65 7d a9 20 41 63 |lign cen|tre}. Ac|
|000004c0| 6f 72 6e 20 55 73 65 72 | 2f 47 20 42 6f 64 65 6e |orn User|/G Boden|
|000004d0| 20 31 39 39 35 00 00 00 | 44 49 52 24 3c 09 00 00 | 1995...|DIR$<...|
|000004e0| 3c 09 00 00 14 0e 00 00 | 46 ff ff ff ab 02 bf 22 |<.......|F......"|
|000004f0| a5 00 00 00 13 00 00 00 | 00 00 00 00 5f 64 65 66 |........|...._def|
|00000500| 61 75 6c 74 5f 73 69 67 | 6e 61 6c 5f 68 61 6e 64 |ault_sig|nal_hand|
|00000510| 6c 65 72 00 bc 0e 00 00 | 46 ff ff ff 0f 09 bf 22 |ler.....|F......"|
|00000520| 9f 00 00 00 13 00 00 00 | 00 00 00 00 5f 65 72 72 |........|...._err|
|00000530| 6f 72 5f 73 69 67 6e 61 | 6c 5f 6d 61 72 6b 65 72 |or_signa|l_marker|
|00000540| 00 00 00 00 5c 0f 00 00 | 46 ff ff ff 4b 0d bf 22 |....\...|F...K.."|
|00000550| a3 00 00 00 13 00 00 00 | 00 00 00 00 5f 69 67 6e |........|...._ign|
|00000560| 6f 72 65 5f 73 69 67 6e | 61 6c 5f 68 61 6e 64 6c |ore_sign|al_handl|
|00000570| 65 72 00 00 00 10 00 00 | 46 ff ff ff 11 66 b0 24 |er......|F....f.$|
|00000580| 0b 01 00 00 13 00 00 00 | 00 00 00 00 65 78 74 65 |........|....exte|
|00000590| 6e 64 65 64 5f 66 70 5f | 6e 75 6d 62 65 72 00 00 |nded_fp_|number..|
|000005a0| 0c 11 00 00 46 ff ff ff | 7e 6b c4 22 d6 00 00 00 |....F...|~k."....|
|000005b0| 13 00 00 00 00 00 00 00 | 49 4f 46 42 46 00 00 00 |........|IOFBF...|
|000005c0| e4 11 00 00 46 ff ff ff | d2 6f c4 22 d5 00 00 00 |....F...|.o."....|
|000005d0| 13 00 00 00 00 00 00 00 | 49 4f 4c 42 46 00 00 00 |........|IOLBF...|
|000005e0| bc 12 00 00 46 ff ff ff | 9b 74 c4 22 d2 00 00 00 |....F...|.t."....|
|000005f0| 13 00 00 00 00 00 00 00 | 49 4f 4e 42 46 00 00 00 |........|IONBF...|
|00000600| 90 13 00 00 46 ff ff ff | 0a d9 af 24 27 02 00 00 |....F...|...$'...|
|00000610| 13 00 00 00 00 00 00 00 | 6b 65 72 6e 65 6c 5f 61 |........|kernel_a|
|00000620| 6c 6c 6f 63 00 00 00 00 | b8 15 00 00 46 ff ff ff |lloc....|....F...|
|00000630| 17 4a ae 24 08 01 00 00 | 13 00 00 00 00 00 00 00 |.J.$....|........|
|00000640| 6b 65 72 6e 65 6c 5f 63 | 6f 6d 6d 61 6e 64 5f 73 |kernel_c|ommand_s|
|00000650| 74 72 00 00 c0 16 00 00 | 46 ff ff ff 1a 31 ae 24 |tr......|F....1.$|
|00000660| af 00 00 00 13 00 00 00 | 00 00 00 00 6b 65 72 6e |........|....kern|
|00000670| 65 6c 5f 63 75 72 72 65 | 6e 74 5f 73 74 61 63 6b |el_curre|nt_stack|
|00000680| 5f 63 68 75 6e 6b 00 00 | 70 17 00 00 46 ff ff ff |_chunk..|p...F...|
|00000690| ee 49 b0 24 b0 00 00 00 | 13 00 00 00 00 00 00 00 |.I.$....|........|
|000006a0| 6b 65 72 6e 65 6c 5f 45 | 52 52 4f 52 00 00 00 00 |kernel_E|RROR....|
|000006b0| 20 18 00 00 46 ff ff ff | 71 ae ae 24 15 01 00 00 | ...F...|q..$....|
|000006c0| 13 00 00 00 00 00 00 00 | 6b 65 72 6e 65 6c 5f 65 |........|kernel_e|
|000006d0| 73 63 61 70 65 5f 73 65 | 65 6e 00 00 38 19 00 00 |scape_se|en..8...|
|000006e0| 46 ff ff ff c8 55 ae 24 | ca 00 00 00 13 00 00 00 |F....U.$|........|
|000006f0| 00 00 00 00 6b 65 72 6e | 65 6c 5f 65 78 69 74 00 |....kern|el_exit.|
|00000700| 04 1a 00 00 46 ff ff ff | 77 65 ae 24 f4 00 00 00 |....F...|we.$....|
|00000710| 13 00 00 00 00 00 00 00 | 6b 65 72 6e 65 6c 5f 65 |........|kernel_e|
|00000720| 78 69 74 74 72 61 70 68 | 61 6e 64 6c 65 72 00 00 |xittraph|andler..|
|00000730| f8 1a 00 00 46 ff ff ff | 6e ba b0 24 d6 01 00 00 |....F...|n..$....|
|00000740| 13 00 00 00 00 00 00 00 | 6b 65 72 6e 65 6c 5f 45 |........|kernel_E|
|00000750| 78 74 65 6e 64 50 72 6f | 63 00 00 00 d0 1c 00 00 |xtendPro|c.......|
|00000760| 46 ff ff ff dc 7f ae 24 | 0b 01 00 00 13 00 00 00 |F......$|........|
|00000770| 00 00 00 00 6b 65 72 6e | 65 6c 5f 66 70 61 76 61 |....kern|el_fpava|
|00000780| 69 6c 61 62 6c 65 00 00 | dc 1d 00 00 46 ff ff ff |ilable..|....F...|
|00000790| ee 8e ae 24 db 01 00 00 | 13 00 00 00 00 00 00 00 |...$....|........|
|000007a0| 6b 65 72 6e 65 6c 5f 67 | 65 74 65 6e 76 00 00 00 |kernel_g|etenv...|
|000007b0| b8 1f 00 00 46 ff ff ff | b2 77 ae 24 d8 00 00 00 |....F...|.w.$....|
|000007c0| 13 00 00 00 00 00 00 00 | 6b 65 72 6e 65 6c 5f 68 |........|kernel_h|
|000007d0| 6f 73 74 6f 73 00 00 00 | 90 20 00 00 46 ff ff ff |ostos...|. ..F...|
|000007e0| 05 b9 ae 24 94 00 00 00 | 13 00 00 00 00 00 00 00 |...$....|........|
|000007f0| 6b 65 72 6e 65 6c 5f 69 | 72 71 73 5f 64 69 73 61 |kernel_i|rqs_disa|
|00000800| 62 6c 65 64 00 00 00 00 | 24 21 00 00 46 ff ff ff |bled....|$!..F...|
|00000810| a5 b5 ae 24 d2 00 00 00 | 13 00 00 00 00 00 00 00 |...$....|........|
|00000820| 6b 65 72 6e 65 6c 5f 69 | 72 71 73 5f 6f 66 66 00 |kernel_i|rqs_off.|
|00000830| f8 21 00 00 46 ff ff ff | 0c b2 ae 24 a0 00 00 00 |.!..F...|...$....|
|00000840| 13 00 00 00 00 00 00 00 | 6b 65 72 6e 65 6c 5f 69 |........|kernel_i|
|00000850| 72 71 73 5f 6f 6e 00 00 | 98 22 00 00 46 ff ff ff |rqs_on..|."..F...|
|00000860| ec 45 ae 24 c9 00 00 00 | 13 00 00 00 00 00 00 00 |.E.$....|........|
|00000870| 6b 65 72 6e 65 6c 5f 6c | 61 6e 67 75 61 67 65 00 |kernel_l|anguage.|
|00000880| 64 23 00 00 46 ff ff ff | eb 84 ae 24 5d 01 00 00 |d#..F...|...$]...|
|00000890| 13 00 00 00 00 00 00 00 | 6b 65 72 6e 65 6c 5f 6c |........|kernel_l|
|000008a0| 61 73 74 5f 6f 73 65 72 | 72 6f 00 00 c4 24 00 00 |ast_oser|ro...$..|
|000008b0| 46 ff ff ff 88 4d b0 24 | a7 00 00 00 13 00 00 00 |F....M.$|........|
|000008c0| 00 00 00 00 6b 65 72 6e | 65 6c 5f 4e 4f 4e 58 00 |....kern|el_NONX.|
|000008d0| 6c 25 00 00 46 ff ff ff | d1 79 af 24 5a 01 00 00 |l%..F...|.y.$Z...|
|000008e0| 13 00 00 00 00 00 00 00 | 6b 65 72 6e 65 6c 5f 6f |........|kernel_o|
|000008f0| 73 61 72 67 73 00 00 00 | c8 26 00 00 46 ff ff ff |sargs...|.&..F...|
|00000900| 93 15 af 24 58 01 00 00 | 13 00 00 00 00 00 00 00 |...$X...|........|
|00000910| 6b 65 72 6e 65 6c 5f 6f | 73 62 67 65 74 00 00 00 |kernel_o|sbget...|
|00000920| 20 28 00 00 46 ff ff ff | c1 21 af 24 58 01 00 00 | (..F...|.!.$X...|
|00000930| 13 00 00 00 00 00 00 00 | 6b 65 72 6e 65 6c 5f 6f |........|kernel_o|
|00000940| 73 62 70 75 74 00 00 00 | 78 29 00 00 46 ff ff ff |sbput...|x)..F...|
|00000950| da f1 ae 24 0d 02 00 00 | 13 00 00 00 00 00 00 00 |...$....|........|
|00000960| 6b 65 72 6e 65 6c 5f 6f | 73 62 79 74 65 00 00 00 |kernel_o|sbyte...|
|00000970| 88 2b 00 00 46 ff ff ff | 82 8d af 24 c1 01 00 00 |.+..F...|...$....|
|00000980| 13 00 00 00 00 00 00 00 | 6b 65 72 6e 65 6c 5f 6f |........|kernel_o|
|00000990| 73 63 6c 69 00 00 00 00 | 4c 2d 00 00 46 ff ff ff |scli....|L-..F...|
|000009a0| 24 55 b0 24 0b 01 00 00 | 13 00 00 00 00 00 00 00 |$U.$....|........|
|000009b0| 6b 65 72 6e 65 6c 5f 6f | 73 65 72 72 6f 72 00 00 |kernel_o|serror..|
|000009c0| 58 2e 00 00 46 ff ff ff | 79 69 af 24 bf 01 00 00 |X...F...|yi.$....|
|000009d0| 13 00 00 00 00 00 00 00 | 6b 65 72 6e 65 6c 5f 6f |........|kernel_o|
|000009e0| 73 66 69 6c 65 00 00 00 | 18 30 00 00 46 ff ff ff |sfile...|.0..F...|
|000009f0| c0 8c b0 24 6c 01 00 00 | 13 00 00 00 00 00 00 00 |...$l...|........|
|00000a00| 6b 65 72 6e 65 6c 5f 6f | 73 66 69 6c 65 5f 62 6c |kernel_o|sfile_bl|
|00000a10| 6f 63 00 00 84 31 00 00 | 46 ff ff ff 10 5a af 24 |oc...1..|F....Z.$|
|00000a20| a2 01 00 00 13 00 00 00 | 00 00 00 00 6b 65 72 6e |........|....kern|
|00000a30| 65 6c 5f 6f 73 66 69 6e | 64 00 00 00 28 33 00 00 |el_osfin|d...(3..|
|00000a40| 46 ff ff ff 42 31 af 24 | c9 01 00 00 13 00 00 00 |F...B1.$|........|
|00000a50| 00 00 00 00 6b 65 72 6e | 65 6c 5f 6f 73 67 62 70 |....kern|el_osgbp|
|00000a60| 62 00 00 00 f4 34 00 00 | 46 ff ff ff 3d 80 b0 24 |b....4..|F...=..$|
|00000a70| 81 01 00 00 13 00 00 00 | 00 00 00 00 6b 65 72 6e |........|....kern|
|00000a80| 65 6c 5f 6f 73 67 62 70 | 62 5f 62 6c 6f 63 00 00 |el_osgbp|b_bloc..|
|00000a90| 78 36 00 00 46 ff ff ff | a3 03 af 24 fc 00 00 00 |x6..F...|...$....|
|00000aa0| 13 00 00 00 00 00 00 00 | 6b 65 72 6e 65 6c 5f 6f |........|kernel_o|
|00000ab0| 73 72 64 63 68 00 00 00 | 74 37 00 00 46 ff ff ff |srdch...|t7..F...|
|00000ac0| 64 45 af 24 b5 01 00 00 | 13 00 00 00 00 00 00 00 |dE.$....|........|
|00000ad0| 6b 65 72 6e 65 6c 5f 6f | 73 77 6f 72 64 00 00 00 |kernel_o|sword...|
|00000ae0| 2c 39 00 00 46 ff ff ff | a5 0d af 24 2b 01 00 00 |,9..F...|...$+...|
|00000af0| 13 00 00 00 00 00 00 00 | 6b 65 72 6e 65 6c 5f 6f |........|kernel_o|
|00000b00| 73 77 72 63 68 00 00 00 | 58 3a 00 00 46 ff ff ff |swrch...|X:..F...|
|00000b10| 09 41 ae 24 c2 00 00 00 | 13 00 00 00 00 00 00 00 |.A.$....|........|
|00000b20| 6b 65 72 6e 65 6c 5f 70 | 72 6f 63 6e 61 6d 65 00 |kernel_p|rocname.|
|00000b30| 1c 3b 00 00 46 ff ff ff | 71 5e ae 24 c6 00 00 00 |.;..F...|q^.$....|
|00000b40| 13 00 00 00 00 00 00 00 | 6b 65 72 6e 65 6c 5f 72 |........|kernel_r|
|00000b50| 61 69 73 65 5f 65 72 72 | 6f 72 00 00 e4 3b 00 00 |aise_err|or...;..|
|00000b60| 46 ff ff ff ea 11 b0 24 | 1d 01 00 00 13 00 00 00 |F......$|........|
|00000b70| 00 00 00 00 6b 65 72 6e | 65 6c 5f 73 64 69 76 00 |....kern|el_sdiv.|
|00000b80| 04 3d 00 00 46 ff ff ff | e8 1b b0 24 b0 00 00 00 |.=..F...|...$....|
|00000b90| 13 00 00 00 00 00 00 00 | 6b 65 72 6e 65 6c 5f 73 |........|kernel_s|
|00000ba0| 64 69 76 31 30 00 00 00 | b4 3d 00 00 46 ff ff ff |div10...|.=..F...|
|00000bb0| 10 a7 ae 24 8c 01 00 00 | 13 00 00 00 00 00 00 00 |...$....|........|
|00000bc0| 6b 65 72 6e 65 6c 5f 73 | 65 74 65 6e 76 00 00 00 |kernel_s|etenv...|
|00000bd0| 40 3f 00 00 46 ff ff ff | e3 4d ae 24 ab 00 00 00 |@?..F...|.M.$....|
|00000be0| 13 00 00 00 00 00 00 00 | 6b 65 72 6e 65 6c 5f 73 |........|kernel_s|
|00000bf0| 65 74 72 65 74 75 72 6e | 63 6f 64 65 00 00 00 00 |etreturn|code....|
|00000c00| ec 3f 00 00 46 ff ff ff | ca 25 b0 24 44 01 00 00 |.?..F...|.%.$D...|
|00000c10| 13 00 00 00 00 00 00 00 | 6b 65 72 6e 65 6c 5f 73 |........|kernel_s|
|00000c20| 72 65 6d 00 30 41 00 00 | 46 ff ff ff fa 5b b0 24 |rem.0A..|F....[.$|
|00000c30| 15 01 00 00 13 00 00 00 | 00 00 00 00 6b 65 72 6e |........|....kern|
|00000c40| 65 6c 5f 73 74 61 63 6b | 5f 63 68 75 6e 6b 00 00 |el_stack|_chunk..|
|00000c50| 48 42 00 00 46 ff ff ff | d2 cc ae 24 df 01 00 00 |HB..F...|...$....|
|00000c60| 13 00 00 00 00 00 00 00 | 6b 65 72 6e 65 6c 5f 73 |........|kernel_s|
|00000c70| 77 69 00 00 28 44 00 00 | 46 ff ff ff 65 dc ae 24 |wi..(D..|F...e..$|
|00000c80| ec 01 00 00 13 00 00 00 | 00 00 00 00 6b 65 72 6e |........|....kern|
|00000c90| 65 6c 5f 73 77 69 5f 63 | 00 00 00 00 14 46 00 00 |el_swi_c|.....F..|
|00000ca0| 46 ff ff ff 5c 70 b0 24 | f6 00 00 00 13 00 00 00 |F...\p.$|........|
|00000cb0| 00 00 00 00 6b 65 72 6e | 65 6c 5f 73 77 69 5f 72 |....kern|el_swi_r|
|00000cc0| 65 67 73 00 0c 47 00 00 | 46 ff ff ff 8f a8 af 24 |egs..G..|F......$|
|00000cd0| 95 02 00 00 13 00 00 00 | 00 00 00 00 6b 65 72 6e |........|....kern|
|00000ce0| 65 6c 5f 73 79 73 74 65 | 6d 00 00 00 a4 49 00 00 |el_syste|m....I..|
|00000cf0| 46 ff ff ff e8 2f b0 24 | 2e 01 00 00 13 00 00 00 |F..../.$|........|
|00000d00| 00 00 00 00 6b 65 72 6e | 65 6c 5f 75 64 69 76 00 |....kern|el_udiv.|
|00000d10| d4 4a 00 00 46 ff ff ff | 7e 35 b0 24 bc 00 00 00 |.J..F...|~5.$....|
|00000d20| 13 00 00 00 00 00 00 00 | 6b 65 72 6e 65 6c 5f 75 |........|kernel_u|
|00000d30| 64 69 76 31 30 00 00 00 | 90 4b 00 00 46 ff ff ff |div10...|.K..F...|
|00000d40| 85 36 ae 24 2d 01 00 00 | 13 00 00 00 00 00 00 00 |.6.$-...|........|
|00000d50| 6b 65 72 6e 65 6c 5f 75 | 6e 77 69 6e 64 00 00 00 |kernel_u|nwind...|
|00000d60| c0 4c 00 00 46 ff ff ff | 72 6a b0 24 c3 00 00 00 |.L..F...|rj.$....|
|00000d70| 13 00 00 00 00 00 00 00 | 6b 65 72 6e 65 6c 5f 75 |........|kernel_u|
|00000d80| 6e 77 69 6e 64 62 6c 6f | 63 6b 00 00 84 4d 00 00 |nwindblo|ck...M..|
|00000d90| 46 ff ff ff 34 3f b0 24 | 55 01 00 00 13 00 00 00 |F...4?.$|U.......|
|00000da0| 00 00 00 00 6b 65 72 6e | 65 6c 5f 75 72 65 6d 00 |....kern|el_urem.|
|00000db0| dc 4e 00 00 46 ff ff ff | b3 f8 af 24 88 02 00 00 |.N..F...|...$....|
|00000dc0| 13 00 00 00 00 00 00 00 | 6b 65 72 6e 65 6c 5f 72 |........|kernel_r|
|00000dd0| 65 67 69 73 74 65 72 5f | 73 6c 6f 74 65 78 74 65 |egister_|slotexte|
|00000de0| 6e 64 00 00 64 51 00 00 | 46 ff ff ff 49 e5 af 24 |nd..dQ..|F...I..$|
|00000df0| f4 01 00 00 13 00 00 00 | 00 00 00 00 6b 65 72 6e |........|....kern|
|00000e00| 65 6c 5f 72 65 67 69 73 | 74 65 72 5f 61 6c 6c 6f |el_regis|ter_allo|
|00000e10| 63 73 00 00 44 41 54 41 | a5 00 00 00 5f 5f 64 65 |cs..DATA|....__de|
|00000e20| 66 61 75 6c 74 5f 73 69 | 67 6e 61 6c 5f 68 61 6e |fault_si|gnal_han|
|00000e30| 64 6c 65 72 0a 53 79 6e | 74 61 78 3a 09 76 6f 69 |dler.Syn|tax:.voi|
|00000e40| 64 a0 5f 5f 64 65 66 61 | 75 6c 74 5f 73 69 67 6e |d.__defa|ult_sign|
|00000e50| 61 6c 5f 68 61 6e 64 6c | 65 72 20 28 69 6e 74 20 |al_handl|er (int |
|00000e60| 6e 29 3b 0a 48 65 61 64 | 65 72 3a 09 3c 73 69 67 |n);.Head|er:.<sig|
|00000e70| 6e 61 6c 2e 68 3d 3e 73 | 69 67 6e 61 6c 3e 0a 0a |nal.h=>s|ignal>..|
|00000e80| 54 68 69 73 20 69 73 20 | 6d 6f 72 65 20 6e 6f 72 |This is |more nor|
|00000e90| 6d 61 6c 6c 79 20 72 65 | 66 65 72 72 65 64 20 74 |mally re|ferred t|
|00000ea0| 6f 20 62 79 20 74 68 65 | 20 6d 61 63 72 6f 20 3c |o by the| macro <|
|00000eb0| 53 49 47 5f 44 46 4c 3e | 2e 00 00 00 44 41 54 41 |SIG_DFL>|....DATA|
|00000ec0| 9f 00 00 00 5f 5f 65 72 | 72 6f 72 5f 73 69 67 6e |....__er|ror_sign|
|00000ed0| 61 6c 5f 6d 61 72 6b 65 | 72 0a 53 79 6e 74 61 78 |al_marke|r.Syntax|
|00000ee0| 3a 09 76 6f 69 64 a0 5f | 5f 65 72 72 6f 72 5f 73 |:.void._|_error_s|
|00000ef0| 69 67 6e 61 6c 5f 6d 61 | 72 6b 65 72 20 28 69 6e |ignal_ma|rker (in|
|00000f00| 74 20 6e 29 3b 0a 48 65 | 61 64 65 72 3a 09 3c 73 |t n);.He|ader:.<s|
|00000f10| 69 67 6e 61 6c 2e 68 3d | 3e 73 69 67 6e 61 6c 3e |ignal.h=|>signal>|
|00000f20| 0a 0a 54 68 69 73 20 69 | 73 20 6d 6f 72 65 20 6e |..This i|s more n|
|00000f30| 6f 72 6d 61 6c 6c 79 20 | 72 65 66 65 72 72 65 64 |ormally |referred|
|00000f40| 20 74 6f 20 62 79 20 74 | 68 65 20 6d 61 63 72 6f | to by t|he macro|
|00000f50| 20 3c 53 49 47 5f 45 52 | 52 3e 2e 00 44 41 54 41 | <SIG_ER|R>..DATA|
|00000f60| a3 00 00 00 5f 5f 69 67 | 6e 6f 72 65 5f 73 69 67 |....__ig|nore_sig|
|00000f70| 6e 61 6c 5f 68 61 6e 64 | 6c 65 72 0a 53 79 6e 74 |nal_hand|ler.Synt|
|00000f80| 61 78 3a 09 76 6f 69 64 | a0 5f 5f 69 67 6e 6f 72 |ax:.void|.__ignor|
|00000f90| 65 5f 73 69 67 6e 61 6c | 5f 68 61 6e 64 6c 65 72 |e_signal|_handler|
|00000fa0| 20 28 69 6e 74 20 6e 29 | 3b 0a 48 65 61 64 65 72 | (int n)|;.Header|
|00000fb0| 3a 09 3c 73 69 67 6e 61 | 6c 2e 68 3d 3e 73 69 67 |:.<signa|l.h=>sig|
|00000fc0| 6e 61 6c 3e 0a 0a 54 68 | 69 73 20 69 73 20 6d 6f |nal>..Th|is is mo|
|00000fd0| 72 65 20 6e 6f 72 6d 61 | 6c 6c 79 20 72 65 66 65 |re norma|lly refe|
|00000fe0| 72 72 65 64 20 74 6f 20 | 62 79 20 74 68 65 20 6d |rred to |by the m|
|00000ff0| 61 63 72 6f 20 3c 53 49 | 47 5f 49 47 4e 3e 2e 00 |acro <SI|G_IGN>..|
|00001000| 44 41 54 41 0b 01 00 00 | 5f 65 78 74 65 6e 64 65 |DATA....|_extende|
|00001010| 64 5f 66 70 5f 6e 75 6d | 62 65 72 0a 54 68 69 73 |d_fp_num|ber.This|
|00001020| 20 74 79 70 65 20 69 73 | 20 64 65 66 69 6e 65 64 | type is| defined|
|00001030| 20 69 6e 20 3c 6b 65 72 | 6e 65 6c 2e 68 3d 3e 6b | in <ker|nel.h=>k|
|00001040| 65 72 6e 65 6c 3e 2e 20 | 49 74 20 63 6f 6e 74 61 |ernel>. |It conta|
|00001050| 69 6e 73 20 61 20 31 32 | 20 62 79 74 65 20 66 6c |ins a 12| byte fl|
|00001060| 6f 61 74 69 6e 67 20 70 | 6f 69 6e 74 20 6e 75 6d |oating p|oint num|
|00001070| 62 65 72 20 61 73 20 74 | 68 65 20 66 6f 6c 6c 6f |ber as t|he follo|
|00001080| 77 69 6e 67 20 75 6e 69 | 6f 6e 3a 0a 0a 20 20 5c |wing uni|on:.. \|
|00001090| 7b 0a 20 20 20 20 73 74 | 72 75 63 74 0a 20 20 20 |{. st|ruct. |
|000010a0| 20 5c 7b 0a 20 20 20 20 | 20 20 69 6e 74 20 73 20 | \{. | int s |
|000010b0| 3a 20 31 3b 0a 20 20 20 | 20 20 20 69 6e 74 20 75 |: 1;. | int u|
|000010c0| 20 3a 20 31 36 3b 0a 20 | 20 20 20 20 20 69 6e 74 | : 16;. | int|
|000010d0| 20 78 20 3a 20 31 35 3b | 0a 20 20 20 20 20 20 75 | x : 15;|. u|
|000010e0| 6e 73 69 67 6e 65 64 20 | 6d 68 69 2c 6d 6c 6f 3b |nsigned |mhi,mlo;|
|000010f0| 0a 20 20 20 20 7d 20 69 | 3b 0a 20 20 20 20 69 6e |. } i|;. in|
|00001100| 74 20 77 5b 33 5d 3b 0a | 20 20 7d 00 44 41 54 41 |t w[3];.| }.DATA|
|00001110| d6 00 00 00 5f 49 4f 46 | 42 46 0a 23 50 61 72 65 |...._IOF|BF.#Pare|
|00001120| 6e 74 20 73 74 64 69 6f | 0a 54 68 65 20 6d 61 63 |nt stdio|.The mac|
|00001130| 72 6f 20 5f 49 4f 46 42 | 46 20 69 73 20 64 65 66 |ro _IOFB|F is def|
|00001140| 69 6e 65 64 20 69 6e 20 | 3c 73 74 64 69 6f 2e 68 |ined in |<stdio.h|
|00001150| 3d 3e 73 74 64 69 6f 3e | 20 61 73 20 61 20 76 61 |=>stdio>| as a va|
|00001160| 6c 75 65 20 75 73 65 64 | 20 61 73 20 61 6e 20 61 |lue used| as an a|
|00001170| 72 67 75 6d 65 6e 74 20 | 66 6f 72 20 74 68 65 20 |rgument |for the |
|00001180| 66 75 6e 63 74 69 6f 6e | 20 3c 73 65 74 76 62 75 |function| <setvbu|
|00001190| 66 3e 2e 20 49 74 20 63 | 61 75 73 65 73 20 69 6e |f>. It c|auses in|
|000011a0| 70 75 74 2f 6f 75 74 70 | 75 74 20 74 6f 20 62 65 |put/outp|ut to be|
|000011b0| 20 66 75 6c 6c 79 20 62 | 75 66 66 65 72 65 64 2e | fully b|uffered.|
|000011c0| 20 49 6e 20 45 61 73 79 | a0 43 20 69 74 20 69 73 | In Easy|.C it is|
|000011d0| 20 64 65 66 69 6e 65 64 | 20 61 73 20 30 78 31 30 | defined| as 0x10|
|000011e0| 30 2e 00 00 44 41 54 41 | d5 00 00 00 5f 49 4f 4c |0...DATA|...._IOL|
|000011f0| 42 46 0a 23 50 61 72 65 | 6e 74 20 73 74 64 69 6f |BF.#Pare|nt stdio|
|00001200| 0a 54 68 65 20 6d 61 63 | 72 6f 20 5f 49 4f 4c 42 |.The mac|ro _IOLB|
|00001210| 46 20 69 73 20 64 65 66 | 69 6e 65 64 20 69 6e 20 |F is def|ined in |
|00001220| 3c 73 74 64 69 6f 2e 68 | 3d 3e 73 74 64 69 6f 3e |<stdio.h|=>stdio>|
|00001230| 20 61 73 20 61 20 76 61 | 6c 75 65 20 75 73 65 64 | as a va|lue used|
|00001240| 20 61 73 20 61 6e 20 61 | 72 67 75 6d 65 6e 74 20 | as an a|rgument |
|00001250| 66 6f 72 20 74 68 65 20 | 66 75 6e 63 74 69 6f 6e |for the |function|
|00001260| 20 3c 73 65 74 76 62 75 | 66 3e 2e 20 49 74 20 63 | <setvbu|f>. It c|
|00001270| 61 75 73 65 73 20 69 6e | 70 75 74 2f 6f 75 74 70 |auses in|put/outp|
|00001280| 75 74 20 74 6f 20 62 65 | 20 6c 69 6e 65 20 62 75 |ut to be| line bu|
|00001290| 66 66 65 72 65 64 2e 20 | 49 6e 20 45 61 73 79 a0 |ffered. |In Easy.|
|000012a0| 43 20 69 74 20 69 73 20 | 64 65 66 69 6e 65 64 20 |C it is |defined |
|000012b0| 61 73 20 30 78 32 30 30 | 2e 00 00 00 44 41 54 41 |as 0x200|....DATA|
|000012c0| d2 00 00 00 5f 49 4f 4e | 42 46 0a 23 50 61 72 65 |...._ION|BF.#Pare|
|000012d0| 6e 74 20 73 74 64 69 6f | 0a 54 68 65 20 6d 61 63 |nt stdio|.The mac|
|000012e0| 72 6f 20 5f 49 4f 4e 42 | 46 20 69 73 20 64 65 66 |ro _IONB|F is def|
|000012f0| 69 6e 65 64 20 69 6e 20 | 3c 73 74 64 69 6f 2e 68 |ined in |<stdio.h|
|00001300| 3d 3e 73 74 64 69 6f 3e | 20 61 73 20 61 20 76 61 |=>stdio>| as a va|
|00001310| 6c 75 65 20 75 73 65 64 | 20 61 73 20 61 6e 20 61 |lue used| as an a|
|00001320| 72 67 75 6d 65 6e 74 20 | 66 6f 72 20 74 68 65 20 |rgument |for the |
|00001330| 66 75 6e 63 74 69 6f 6e | 20 3c 73 65 74 76 62 75 |function| <setvbu|
|00001340| 66 3e 2e 20 49 74 20 63 | 61 75 73 65 73 20 69 6e |f>. It c|auses in|
|00001350| 70 75 74 2f 6f 75 74 70 | 75 74 20 74 6f 20 62 65 |put/outp|ut to be|
|00001360| 20 75 6e 62 75 66 66 65 | 72 65 64 2e 20 49 6e 20 | unbuffe|red. In |
|00001370| 45 61 73 79 a0 43 20 69 | 74 20 69 73 20 64 65 66 |Easy.C i|t is def|
|00001380| 69 6e 65 64 20 61 73 20 | 30 78 34 30 30 2e 00 00 |ined as |0x400...|
|00001390| 44 41 54 41 27 02 00 00 | 5f 6b 65 72 6e 65 6c 5f |DATA'...|_kernel_|
|000013a0| 61 6c 6c 6f 63 0a 53 79 | 6e 74 61 78 3a 09 75 6e |alloc.Sy|ntax:.un|
|000013b0| 73 69 67 6e 65 64 20 5f | 6b 65 72 6e 65 6c 5f 61 |signed _|kernel_a|
|000013c0| 6c 6c 6f 63 20 28 75 6e | 73 69 67 6e 65 64 20 6d |lloc (un|signed m|
|000013d0| 69 6e 77 6f 72 64 73 2c | 20 76 6f 69 64 20 2a 2a |inwords,| void **|
|000013e0| 62 6c 6f 63 6b 29 3b 0a | 48 65 61 64 65 72 3a 09 |block);.|Header:.|
|000013f0| 3c 6b 65 72 6e 65 6c 2e | 68 3d 3e 6b 65 72 6e 65 |<kernel.|h=>kerne|
|00001400| 6c 3e 0a 0a 52 65 74 75 | 72 6e 73 3a 09 54 68 65 |l>..Retu|rns:.The|
|00001410| 20 73 69 7a 65 20 6f 66 | 20 62 6c 6f 63 6b 20 61 | size of| block a|
|00001420| 6c 6c 6f 63 61 74 65 64 | 2e 0a 0a 54 68 69 73 20 |llocated|...This |
|00001430| 66 75 6e 63 74 69 6f 6e | 20 74 72 69 65 73 20 74 |function| tries t|
|00001440| 6f 20 61 6c 6c 6f 63 61 | 74 65 20 61 20 62 6c 6f |o alloca|te a blo|
|00001450| 63 6b 20 6f 66 20 6d 65 | 6d 6f 72 79 20 6f 66 20 |ck of me|mory of |
|00001460| 27 73 65 6e 73 69 62 6c | 65 20 73 69 7a 65 27 20 |'sensibl|e size' |
|00001470| 61 73 20 6e 65 61 72 20 | 74 6f 20 2f 6d 69 6e 77 |as near |to /minw|
|00001480| 6f 72 64 73 2f 20 61 73 | 20 70 6f 73 73 69 62 6c |ords/ as| possibl|
|00001490| 65 2e 20 54 68 65 20 62 | 6c 6f 63 6b 20 77 69 6c |e. The b|lock wil|
|000014a0| 6c 20 6e 6f 74 20 62 65 | 20 73 6d 61 6c 6c 65 72 |l not be| smaller|
|000014b0| 20 74 68 61 6e 20 32 4b | 20 77 6f 72 64 73 20 28 | than 2K| words (|
|000014c0| 41 63 6f 72 6e 27 73 20 | 64 65 66 69 6e 69 74 69 |Acorn's |definiti|
|000014d0| 6f 6e 20 6f 66 20 73 65 | 6e 73 69 62 6c 65 20 73 |on of se|nsible s|
|000014e0| 69 7a 65 29 2e 20 49 66 | 20 74 68 69 73 20 6d 75 |ize). If| this mu|
|000014f0| 63 68 20 6d 65 6d 6f 72 | 79 20 63 61 6e 6e 6f 74 |ch memor|y cannot|
|00001500| 20 62 65 20 61 6c 6c 6f | 63 61 74 65 64 2c 20 69 | be allo|cated, i|
|00001510| 74 20 77 69 6c 6c 20 61 | 6c 6c 6f 63 61 74 65 20 |t will a|llocate |
|00001520| 61 73 20 6d 75 63 68 20 | 61 73 20 70 6f 73 73 69 |as much |as possi|
|00001530| 62 6c 65 2e 20 54 68 65 | 20 70 6f 69 6e 74 65 72 |ble. The| pointer|
|00001540| 20 74 6f 20 74 68 65 20 | 62 6c 6f 63 6b 20 69 73 | to the |block is|
|00001550| 20 72 65 74 75 72 6e 65 | 64 20 69 6e 20 74 68 65 | returne|d in the|
|00001560| 20 70 6f 69 6e 74 65 72 | 20 70 6f 69 6e 74 65 64 | pointer| pointed|
|00001570| 20 74 6f 20 62 79 20 2f | 62 6c 6f 63 6b 2f 2e 20 | to by /|block/. |
|00001580| 54 68 69 73 20 77 69 6c | 6c 20 62 65 20 3c 4e 55 |This wil|l be <NU|
|00001590| 4c 4c 3e 20 69 66 20 61 | 20 74 68 65 20 73 69 7a |LL> if a| the siz|
|000015a0| 65 20 6f 66 20 74 68 65 | 20 62 6c 6f 63 6b 20 69 |e of the| block i|
|000015b0| 73 20 7a 65 72 6f 2e 00 | 44 41 54 41 08 01 00 00 |s zero..|DATA....|
|000015c0| 5f 6b 65 72 6e 65 6c 5f | 63 6f 6d 6d 61 6e 64 5f |_kernel_|command_|
|000015d0| 73 74 72 69 6e 67 0a 53 | 79 6e 74 61 78 3a 09 63 |string.S|yntax:.c|
|000015e0| 68 61 72 20 2a 5f 6b 65 | 72 6e 65 6c 5f 63 6f 6d |har *_ke|rnel_com|
|000015f0| 6d 61 6e 64 5f 73 74 72 | 69 6e 67 20 28 76 6f 69 |mand_str|ing (voi|
|00001600| 64 29 3b 0a 48 65 61 64 | 65 72 3a 09 3c 6b 65 72 |d);.Head|er:.<ker|
|00001610| 6e 65 6c 2e 68 3d 3e 6b | 65 72 6e 65 6c 3e 0a 0a |nel.h=>k|ernel>..|
|00001620| 52 65 74 75 72 6e 73 3a | 09 50 6f 69 6e 74 65 72 |Returns:|.Pointer|
|00001630| 20 74 6f 20 74 68 65 20 | 73 74 72 69 6e 67 2e 0a | to the |string..|
|00001640| 0a 54 68 69 73 20 66 75 | 6e 63 74 69 6f 6e 20 72 |.This fu|nction r|
|00001650| 65 74 75 72 6e 73 20 61 | 20 70 6f 69 6e 74 65 72 |eturns a| pointer|
|00001660| 20 74 6f 20 74 68 65 20 | 73 74 72 69 6e 67 20 77 | to the |string w|
|00001670| 68 69 63 68 20 77 61 73 | 20 75 73 65 64 20 74 6f |hich was| used to|
|00001680| 20 73 74 61 72 74 20 74 | 68 65 20 70 72 6f 67 72 | start t|he progr|
|00001690| 61 6d 2e 20 49 74 20 6d | 61 79 20 62 65 20 61 20 |am. It m|ay be a |
|000016a0| 63 6f 70 79 20 6f 66 20 | 74 68 65 20 73 74 72 69 |copy of |the stri|
|000016b0| 6e 67 20 74 68 61 74 20 | 69 73 20 75 73 65 64 2e |ng that |is used.|
|000016c0| 44 41 54 41 af 00 00 00 | 5f 6b 65 72 6e 65 6c 5f |DATA....|_kernel_|
|000016d0| 63 75 72 72 65 6e 74 5f | 73 74 61 63 6b 5f 63 68 |current_|stack_ch|
|000016e0| 75 6e 6b 0a 53 79 6e 74 | 61 78 3a 09 3c 5f 6b 65 |unk.Synt|ax:.<_ke|
|000016f0| 72 6e 65 6c 5f 73 74 61 | 63 6b 5f 63 68 75 6e 6b |rnel_sta|ck_chunk|
|00001700| 3e 20 2a 5f 6b 65 72 6e | 65 6c 5f 63 75 72 72 65 |> *_kern|el_curre|
|00001710| 6e 74 5f 73 74 61 63 6b | 5f 63 68 75 6e 6b 20 28 |nt_stack|_chunk (|
|00001720| 76 6f 69 64 29 3b 0a 48 | 65 61 64 65 72 3a 09 3c |void);.H|eader:.<|
|00001730| 6b 65 72 6e 65 6c 2e 68 | 3d 3e 6b 65 72 6e 65 6c |kernel.h|=>kernel|
|00001740| 3e 0a 0a 52 65 74 75 72 | 6e 73 3a 09 50 6f 69 6e |>..Retur|ns:.Poin|
|00001750| 74 65 72 20 74 6f 20 74 | 68 65 20 63 75 72 72 65 |ter to t|he curre|
|00001760| 6e 74 20 73 74 61 63 6b | 20 63 68 75 6e 6b 2e 00 |nt stack| chunk..|
|00001770| 44 41 54 41 b0 00 00 00 | 5f 6b 65 72 6e 65 6c 5f |DATA....|_kernel_|
|00001780| 45 52 52 4f 52 0a 54 68 | 65 20 6d 61 63 72 6f 20 |ERROR.Th|e macro |
|00001790| 7b 2a 7d 5f 6b 65 72 6e | 65 6c 5f 45 52 52 4f 52 |{*}_kern|el_ERROR|
|000017a0| 7b 2a 7d 20 69 73 20 64 | 65 66 69 6e 65 64 20 69 |{*} is d|efined i|
|000017b0| 6e 20 3c 6b 65 72 6e 65 | 6c 2e 68 3d 3e 6b 65 72 |n <kerne|l.h=>ker|
|000017c0| 6e 65 6c 3e 20 61 73 20 | 61 20 76 61 6c 75 65 20 |nel> as |a value |
|000017d0| 74 6f 20 62 65 20 72 65 | 74 75 72 6e 65 64 20 62 |to be re|turned b|
|000017e0| 79 20 63 65 72 74 61 69 | 6e 20 66 75 6e 63 74 69 |y certai|n functi|
|000017f0| 6f 6e 73 20 74 6f 20 69 | 6e 64 69 63 61 74 65 20 |ons to i|ndicate |
|00001800| 61 6e 20 65 72 72 6f 72 | 2e 20 49 74 20 69 73 20 |an error|. It is |
|00001810| 64 65 66 69 6e 65 64 20 | 61 73 20 28 2d 32 29 2e |defined |as (-2).|
|00001820| 44 41 54 41 15 01 00 00 | 5f 6b 65 72 6e 65 6c 5f |DATA....|_kernel_|
|00001830| 65 73 63 61 70 65 5f 73 | 65 65 6e 0a 53 79 6e 74 |escape_s|een.Synt|
|00001840| 61 78 3a 09 69 6e 74 20 | 5f 6b 65 72 6e 65 6c 5f |ax:.int |_kernel_|
|00001850| 65 73 63 61 70 65 5f 73 | 65 65 6e 20 28 76 6f 69 |escape_s|een (voi|
|00001860| 64 29 3b 0a 48 65 61 64 | 65 72 3a 09 3c 6b 65 72 |d);.Head|er:.<ker|
|00001870| 6e 65 6c 2e 68 3d 3e 6b | 65 72 6e 65 6c 3e 0a 0a |nel.h=>k|ernel>..|
|00001880| 52 65 74 75 72 6e 73 3a | 09 31 20 69 66 20 74 68 |Returns:|.1 if th|
|00001890| 65 72 65 20 68 61 73 20 | 62 65 65 6e 20 61 6e 20 |ere has |been an |
|000018a0| 65 73 63 61 70 65 2e 0a | 0a 54 68 69 73 20 66 75 |escape..|.This fu|
|000018b0| 6e 63 74 69 6f 6e 20 63 | 68 65 63 6b 73 20 74 6f |nction c|hecks to|
|000018c0| 20 73 65 65 20 69 66 20 | 74 68 65 72 65 20 68 61 | see if |there ha|
|000018d0| 73 20 62 65 65 6e 20 61 | 6e 20 65 73 63 61 70 65 |s been a|n escape|
|000018e0| 20 28 73 69 6e 63 65 20 | 74 68 65 20 70 72 65 76 | (since |the prev|
|000018f0| 69 6f 75 73 20 63 61 6c | 6c 20 74 6f 20 74 68 69 |ious cal|l to thi|
|00001900| 73 20 66 75 6e 63 74 69 | 6f 6e 29 2e 20 54 68 69 |s functi|on). Thi|
|00001910| 73 20 66 75 6e 63 74 69 | 6f 6e 20 77 69 6c 6c 20 |s functi|on will |
|00001920| 6e 65 76 65 72 20 6d 69 | 73 73 20 61 6e 20 65 73 |never mi|ss an es|
|00001930| 63 61 70 65 2e 00 00 00 | 44 41 54 41 ca 00 00 00 |cape....|DATA....|
|00001940| 5f 6b 65 72 6e 65 6c 5f | 65 78 69 74 0a 53 79 6e |_kernel_|exit.Syn|
|00001950| 74 61 78 3a 09 76 6f 69 | 64 20 5f 6b 65 72 6e 65 |tax:.voi|d _kerne|
|00001960| 6c 5f 65 78 69 74 20 28 | 76 6f 69 64 29 3b 0a 48 |l_exit (|void);.H|
|00001970| 65 61 64 65 72 3a 09 3c | 6b 65 72 6e 65 6c 2e 68 |eader:.<|kernel.h|
|00001980| 3d 3e 6b 65 72 6e 65 6c | 3e 0a 0a 54 68 69 73 20 |=>kernel|>..This |
|00001990| 66 75 6e 63 74 69 6f 6e | 20 63 61 6c 6c 73 20 74 |function| calls t|
|000019a0| 68 65 20 53 57 49 20 3c | 4f 53 5f 45 78 69 74 3d |he SWI <|OS_Exit=|
|000019b0| 3e 53 57 49 3a 4f 53 5f | 45 78 69 74 3e 20 77 69 |>SWI:OS_|Exit> wi|
|000019c0| 74 68 20 74 68 65 20 72 | 65 74 75 72 6e 20 63 6f |th the r|eturn co|
|000019d0| 64 65 20 73 70 65 63 69 | 66 69 65 64 20 62 79 20 |de speci|fied by |
|000019e0| 61 20 63 61 6c 6c 20 74 | 6f 20 3c 5f 6b 65 72 6e |a call t|o <_kern|
|000019f0| 65 6c 5f 73 65 74 72 65 | 74 75 72 6e 63 6f 64 65 |el_setre|turncode|
|00001a00| 3e 2e 00 00 44 41 54 41 | f4 00 00 00 5f 6b 65 72 |>...DATA|...._ker|
|00001a10| 6e 65 6c 5f 65 78 69 74 | 74 72 61 70 68 61 6e 64 |nel_exit|traphand|
|00001a20| 6c 65 72 0a 53 79 6e 74 | 61 78 3a 09 76 6f 69 64 |ler.Synt|ax:.void|
|00001a30| 20 5f 6b 65 72 6e 65 6c | 5f 65 78 69 74 74 72 61 | _kernel|_exittra|
|00001a40| 70 68 61 6e 64 6c 65 72 | 20 28 76 6f 69 64 29 3b |phandler| (void);|
|00001a50| 0a 48 65 61 64 65 72 3a | 09 3c 6b 65 72 6e 65 6c |.Header:|.<kernel|
|00001a60| 2e 68 3d 3e 6b 65 72 6e | 65 6c 3e 0a 0a 54 68 69 |.h=>kern|el>..Thi|
|00001a70| 73 20 66 75 6e 63 74 69 | 6f 6e 20 72 65 73 65 74 |s functi|on reset|
|00001a80| 73 20 74 68 65 20 2a 49 | 6e 54 72 61 70 48 61 6e |s the *I|nTrapHan|
|00001a90| 64 6c 65 72 2a 20 66 6c | 61 67 20 77 68 69 63 68 |dler* fl|ag which|
|00001aa0| 20 70 72 65 76 65 6e 74 | 73 20 72 65 63 75 72 73 | prevent|s recurs|
|00001ab0| 69 76 65 20 74 72 61 70 | 73 2e 20 49 74 20 69 73 |ive trap|s. It is|
|00001ac0| 20 75 73 65 64 20 69 6e | 73 69 64 65 20 74 72 61 | used in|side tra|
|00001ad0| 70 20 68 61 6e 64 6c 65 | 72 73 20 77 68 69 63 68 |p handle|rs which|
|00001ae0| 20 64 6f 20 6e 6f 74 20 | 72 65 74 75 72 6e 20 64 | do not |return d|
|00001af0| 69 72 65 63 74 6c 79 2e | 44 41 54 41 d6 01 00 00 |irectly.|DATA....|
|00001b00| 5f 6b 65 72 6e 65 6c 5f | 45 78 74 65 6e 64 50 72 |_kernel_|ExtendPr|
|00001b10| 6f 63 0a 54 68 65 20 74 | 79 70 65 20 7b 2a 7d 5f |oc.The t|ype {*}_|
|00001b20| 6b 65 72 6e 65 6c 5f 45 | 78 74 65 6e 64 50 72 6f |kernel_E|xtendPro|
|00001b30| 63 7b 2a 7d 20 69 73 20 | 64 65 66 69 6e 65 64 20 |c{*} is |defined |
|00001b40| 69 6e 20 3c 6b 65 72 6e | 65 6c 2e 68 3d 3e 6b 65 |in <kern|el.h=>ke|
|00001b50| 72 6e 65 6c 3e 20 61 73 | 20 61 20 70 72 6f 63 65 |rnel> as| a proce|
|00001b60| 64 75 72 65 20 77 68 69 | 63 68 20 63 61 6e 20 62 |dure whi|ch can b|
|00001b70| 65 20 75 73 65 64 20 74 | 6f 20 65 78 74 65 6e 64 |e used t|o extend|
|00001b80| 20 74 68 65 20 68 65 61 | 70 20 75 73 65 64 20 62 | the hea|p used b|
|00001b90| 79 20 74 68 65 20 6b 65 | 72 6e 65 6c 2e 20 49 74 |y the ke|rnel. It|
|00001ba0| 20 69 73 20 64 65 66 69 | 6e 65 64 20 61 73 3a 0a | is defi|ned as:.|
|00001bb0| 7b 77 72 61 70 20 6f 66 | 66 7d 0a 7b 66 43 6f 64 |{wrap of|f}.{fCod|
|00001bc0| 65 3b 61 6c 69 67 6e 20 | 63 65 6e 74 72 65 7d 69 |e;align |centre}i|
|00001bd0| 6e 74 20 5f 6b 65 72 6e | 65 6c 5f 45 78 74 65 6e |nt _kern|el_Exten|
|00001be0| 64 50 72 6f 63 20 28 69 | 6e 74 2c 20 76 6f 69 64 |dProc (i|nt, void|
|00001bf0| 20 2a 2a 29 3b 7b 66 3b | 61 6c 69 67 6e 3b 77 72 | **);{f;|align;wr|
|00001c00| 61 70 7d 0a 0a 54 68 65 | 20 70 72 6f 63 65 64 75 |ap}..The| procedu|
|00001c10| 72 65 20 73 68 6f 75 6c | 64 20 61 6c 6c 6f 63 61 |re shoul|d alloca|
|00001c20| 74 65 20 74 68 65 20 61 | 6d 6f 75 6e 74 20 6f 66 |te the a|mount of|
|00001c30| 20 73 70 61 63 65 20 72 | 65 71 75 65 73 74 65 64 | space r|equested|
|00001c40| 20 69 6e 20 74 68 65 20 | 69 6e 74 65 67 65 72 20 | in the |integer |
|00001c50| 61 72 67 75 6d 65 6e 74 | 2c 20 61 6e 64 20 72 65 |argument|, and re|
|00001c60| 74 75 72 6e 20 61 20 70 | 6f 69 6e 74 65 72 20 74 |turn a p|ointer t|
|00001c70| 6f 20 69 74 20 69 6e 20 | 74 68 65 20 7b 2f 7d 76 |o it in |the {/}v|
|00001c80| 6f 69 64 20 2a 7b 2f 7d | 20 77 68 6f 73 65 20 70 |oid *{/}| whose p|
|00001c90| 6f 69 6e 74 65 72 20 69 | 73 20 67 69 76 65 6e 2e |ointer i|s given.|
|00001ca0| 20 49 74 20 73 68 6f 75 | 6c 64 20 72 65 74 75 72 | It shou|ld retur|
|00001cb0| 6e 20 74 68 65 20 73 69 | 7a 65 20 6f 66 20 73 70 |n the si|ze of sp|
|00001cc0| 61 63 65 20 61 6c 6c 6f | 63 61 74 65 64 2e 00 00 |ace allo|cated...|
|00001cd0| 44 41 54 41 0b 01 00 00 | 5f 6b 65 72 6e 65 6c 5f |DATA....|_kernel_|
|00001ce0| 66 70 61 76 61 69 6c 61 | 62 6c 65 0a 53 79 6e 74 |fpavaila|ble.Synt|
|00001cf0| 61 78 3a 09 69 6e 74 20 | 5f 6b 65 72 6e 65 6c 5f |ax:.int |_kernel_|
|00001d00| 66 70 61 76 61 69 6c 61 | 62 6c 65 20 28 76 6f 69 |fpavaila|ble (voi|
|00001d10| 64 29 3b 0a 48 65 61 64 | 65 72 3a 09 3c 6b 65 72 |d);.Head|er:.<ker|
|00001d20| 6e 65 6c 2e 68 3d 3e 6b | 65 72 6e 65 6c 3e 0a 0a |nel.h=>k|ernel>..|
|00001d30| 52 65 74 75 72 6e 73 3a | 09 30 20 69 66 20 66 6c |Returns:|.0 if fl|
|00001d40| 6f 61 74 69 6e 67 20 70 | 6f 69 6e 74 20 69 73 20 |oating p|oint is |
|00001d50| 6e 6f 74 20 61 76 61 69 | 6c 61 62 6c 65 2e 0a 0a |not avai|lable...|
|00001d60| 54 68 69 73 20 66 75 6e | 63 74 69 6f 6e 20 74 65 |This fun|ction te|
|00001d70| 73 74 73 20 66 6f 72 20 | 74 68 65 20 70 72 65 73 |sts for |the pres|
|00001d80| 65 6e 63 65 20 6f 66 20 | 65 69 74 68 65 72 20 74 |ence of |either t|
|00001d90| 68 65 20 66 6c 6f 61 74 | 69 6e 67 20 70 6f 69 6e |he float|ing poin|
|00001da0| 74 20 63 6f 2d 70 72 6f | 63 65 73 73 6f 72 20 6f |t co-pro|cessor o|
|00001db0| 72 20 74 68 65 20 66 6c | 6f 61 74 69 6e 67 20 70 |r the fl|oating p|
|00001dc0| 6f 69 6e 74 20 65 6d 75 | 6c 61 74 6f 72 20 6d 6f |oint emu|lator mo|
|00001dd0| 64 75 6c 65 20 28 46 50 | 45 29 2e 00 44 41 54 41 |dule (FP|E)..DATA|
|00001de0| db 01 00 00 5f 6b 65 72 | 6e 65 6c 5f 67 65 74 65 |...._ker|nel_gete|
|00001df0| 6e 76 0a 53 79 6e 74 61 | 78 3a 09 3c 5f 6b 65 72 |nv.Synta|x:.<_ker|
|00001e00| 6e 65 6c 5f 6f 73 65 72 | 72 6f 72 3e 20 2a 5f 6b |nel_oser|ror> *_k|
|00001e10| 65 72 6e 65 6c 5f 67 65 | 74 65 6e 76 20 28 63 68 |ernel_ge|tenv (ch|
|00001e20| 61 72 20 2a 6e 61 6d 65 | 2c 20 63 68 61 72 20 2a |ar *name|, char *|
|00001e30| 62 75 66 2c 20 75 6e 73 | 69 67 6e 65 64 20 6c 65 |buf, uns|igned le|
|00001e40| 6e 29 3b 0a 48 65 61 64 | 65 72 3a 09 3c 6b 65 72 |n);.Head|er:.<ker|
|00001e50| 6e 65 6c 2e 68 3d 3e 6b | 65 72 6e 65 6c 3e 0a 0a |nel.h=>k|ernel>..|
|00001e60| 52 65 74 75 72 6e 73 3a | 09 50 6f 69 6e 74 65 72 |Returns:|.Pointer|
|00001e70| 20 74 6f 20 65 72 72 6f | 72 2c 20 6f 72 20 3c 4e | to erro|r, or <N|
|00001e80| 55 4c 4c 3e 20 69 66 20 | 6e 6f 6e 65 2e 0a 0a 54 |ULL> if |none...T|
|00001e90| 68 69 73 20 66 75 6e 63 | 74 69 6f 6e 20 67 65 74 |his func|tion get|
|00001ea0| 73 20 74 68 65 20 76 61 | 6c 75 65 20 6f 66 20 74 |s the va|lue of t|
|00001eb0| 68 65 20 73 79 73 74 65 | 6d 20 76 61 72 69 61 62 |he syste|m variab|
|00001ec0| 6c 65 20 77 68 6f 73 65 | 20 6e 61 6d 65 20 69 73 |le whose| name is|
|00001ed0| 20 73 70 65 63 69 66 69 | 65 64 20 61 6e 64 20 70 | specifi|ed and p|
|00001ee0| 6c 61 63 65 73 20 69 74 | 20 69 6e 20 74 68 65 20 |laces it| in the |
|00001ef0| 63 68 61 72 61 63 74 65 | 72 20 61 72 72 61 79 20 |characte|r array |
|00001f00| 70 6f 69 6e 74 65 64 20 | 74 6f 20 62 79 20 2f 62 |pointed |to by /b|
|00001f10| 75 66 2f 2e 20 54 68 65 | 20 6c 65 6e 67 74 68 20 |uf/. The| length |
|00001f20| 6f 66 20 74 68 65 20 61 | 72 72 61 79 20 69 73 20 |of the a|rray is |
|00001f30| 67 69 76 65 6e 20 62 79 | 20 2f 6c 65 6e 2f 2e 0a |given by| /len/..|
|00001f40| 0a 54 68 69 73 20 66 75 | 6e 63 74 69 6f 6e 20 69 |.This fu|nction i|
|00001f50| 73 20 65 71 75 69 76 61 | 6c 65 6e 74 20 74 6f 20 |s equiva|lent to |
|00001f60| 74 68 65 20 53 57 49 20 | 3c 4f 53 5f 52 65 61 64 |the SWI |<OS_Read|
|00001f70| 56 61 72 56 61 6c 3d 3e | 53 57 49 3a 4f 53 5f 52 |VarVal=>|SWI:OS_R|
|00001f80| 65 61 64 56 61 72 56 61 | 6c 3e 20 28 61 6e 64 20 |eadVarVa|l> (and |
|00001f90| 76 65 72 79 20 73 69 6d | 69 6c 61 72 20 74 6f 20 |very sim|ilar to |
|00001fa0| 74 68 65 20 66 75 6e 63 | 74 69 6f 6e 20 3c 67 65 |the func|tion <ge|
|00001fb0| 74 65 6e 76 3e 29 2e 00 | 44 41 54 41 d8 00 00 00 |tenv>)..|DATA....|
|00001fc0| 5f 6b 65 72 6e 65 6c 5f | 68 6f 73 74 6f 73 0a 53 |_kernel_|hostos.S|
|00001fd0| 79 6e 74 61 78 3a 09 69 | 6e 74 20 5f 6b 65 72 6e |yntax:.i|nt _kern|
|00001fe0| 65 6c 5f 68 6f 73 74 6f | 73 20 28 76 6f 69 64 29 |el_hosto|s (void)|
|00001ff0| 3b 0a 48 65 61 64 65 72 | 3a 09 3c 6b 65 72 6e 65 |;.Header|:.<kerne|
|00002000| 6c 2e 68 3d 3e 6b 65 72 | 6e 65 6c 3e 0a 0a 52 65 |l.h=>ker|nel>..Re|
|00002010| 74 75 72 6e 73 3a 09 4e | 75 6d 62 65 72 20 69 6e |turns:.N|umber in|
|00002020| 64 69 63 61 74 69 6e 67 | 20 4f 70 65 72 61 74 69 |dicating| Operati|
|00002030| 6e 67 20 53 79 73 74 65 | 6d 2e 0a 0a 54 68 69 73 |ng Syste|m...This|
|00002040| 20 66 75 6e 63 74 69 6f | 6e 20 69 73 20 65 71 75 | functio|n is equ|
|00002050| 69 76 61 6c 65 6e 74 20 | 74 6f 20 3c 4f 53 5f 42 |ivalent |to <OS_B|
|00002060| 79 74 65 3d 3e 53 57 49 | 3a 4f 53 5f 42 79 74 65 |yte=>SWI|:OS_Byte|
|00002070| 3e 20 30 2c 31 2e 20 49 | 74 20 72 65 74 75 72 6e |> 0,1. I|t return|
|00002080| 73 20 36 20 66 6f 72 20 | 52 49 53 43 20 4f 53 2e |s 6 for |RISC OS.|
|00002090| 44 41 54 41 94 00 00 00 | 5f 6b 65 72 6e 65 6c 5f |DATA....|_kernel_|
|000020a0| 69 72 71 73 5f 64 69 73 | 61 62 6c 65 64 0a 53 79 |irqs_dis|abled.Sy|
|000020b0| 6e 74 61 78 3a 09 69 6e | 74 20 5f 6b 65 72 6e 65 |ntax:.in|t _kerne|
|000020c0| 6c 5f 69 72 71 73 5f 64 | 69 73 61 62 6c 65 64 20 |l_irqs_d|isabled |
|000020d0| 28 76 6f 69 64 29 3b 0a | 48 65 61 64 65 72 3a 09 |(void);.|Header:.|
|000020e0| 3c 6b 65 72 6e 65 6c 2e | 68 3d 3e 6b 65 72 6e 65 |<kernel.|h=>kerne|
|000020f0| 6c 3e 0a 0a 52 65 74 75 | 72 6e 73 3a 09 4e 6f 6e |l>..Retu|rns:.Non|
|00002100| 2d 7a 65 72 6f 20 69 66 | 20 49 52 51 20 69 6e 74 |-zero if| IRQ int|
|00002110| 65 72 72 75 70 74 73 20 | 61 72 65 20 65 6e 61 62 |errupts |are enab|
|00002120| 6c 65 64 2e 44 41 54 41 | d2 00 00 00 5f 6b 65 72 |led.DATA|...._ker|
|00002130| 6e 65 6c 5f 69 72 71 73 | 5f 6f 66 66 0a 53 79 6e |nel_irqs|_off.Syn|
|00002140| 74 61 78 3a 09 76 6f 69 | 64 20 5f 6b 65 72 6e 65 |tax:.voi|d _kerne|
|00002150| 6c 5f 69 72 71 73 5f 6f | 66 66 20 28 76 6f 69 64 |l_irqs_o|ff (void|
|00002160| 29 3b 0a 48 65 61 64 65 | 72 3a 09 3c 6b 65 72 6e |);.Heade|r:.<kern|
|00002170| 65 6c 2e 68 3d 3e 6b 65 | 72 6e 65 6c 3e 0a 0a 44 |el.h=>ke|rnel>..D|
|00002180| 69 73 61 62 6c 65 20 69 | 6e 74 65 72 72 75 70 74 |isable i|nterrupt|
|00002190| 73 2e 20 54 68 69 73 20 | 63 61 6e 20 6f 6e 6c 79 |s. This |can only|
|000021a0| 20 62 65 20 75 73 65 64 | 20 66 72 6f 6d 20 63 6f | be used| from co|
|000021b0| 64 65 20 72 75 6e 6e 69 | 6e 67 20 69 6e 20 53 56 |de runni|ng in SV|
|000021c0| 43 20 6d 6f 64 65 2e 20 | 59 6f 75 20 73 68 6f 75 |C mode. |You shou|
|000021d0| 6c 64 20 6e 6f 74 20 64 | 69 73 61 62 6c 65 20 69 |ld not d|isable i|
|000021e0| 6e 74 65 72 72 75 70 74 | 73 20 69 66 20 70 6f 73 |nterrupt|s if pos|
|000021f0| 73 69 62 6c 65 2e 00 00 | 44 41 54 41 a0 00 00 00 |sible...|DATA....|
|00002200| 5f 6b 65 72 6e 65 6c 5f | 69 72 71 73 5f 6f 6e 0a |_kernel_|irqs_on.|
|00002210| 53 79 6e 74 61 78 3a 09 | 76 6f 69 64 20 5f 6b 65 |Syntax:.|void _ke|
|00002220| 72 6e 65 6c 5f 69 72 71 | 73 5f 6f 6e 20 28 76 6f |rnel_irq|s_on (vo|
|00002230| 69 64 29 3b 0a 48 65 61 | 64 65 72 3a 09 3c 6b 65 |id);.Hea|der:.<ke|
|00002240| 72 6e 65 6c 2e 68 3d 3e | 6b 65 72 6e 65 6c 3e 0a |rnel.h=>|kernel>.|
|00002250| 0a 45 6e 61 62 6c 65 20 | 69 6e 74 65 72 72 75 70 |.Enable |interrup|
|00002260| 74 73 2e 20 54 68 69 73 | 20 63 61 6e 20 6f 6e 6c |ts. This| can onl|
|00002270| 79 20 62 65 20 75 73 65 | 64 20 66 72 6f 6d 20 63 |y be use|d from c|
|00002280| 6f 64 65 20 72 75 6e 6e | 69 6e 67 20 69 6e 20 53 |ode runn|ing in S|
|00002290| 56 43 20 6d 6f 64 65 2e | 44 41 54 41 c9 00 00 00 |VC mode.|DATA....|
|000022a0| 5f 6b 65 72 6e 65 6c 5f | 6c 61 6e 67 75 61 67 65 |_kernel_|language|
|000022b0| 0a 53 79 6e 74 61 78 3a | 09 63 68 61 72 20 2a 5f |.Syntax:|.char *_|
|000022c0| 6b 65 72 6e 65 6c 5f 6c | 61 6e 67 75 61 67 65 20 |kernel_l|anguage |
|000022d0| 28 69 6e 74 20 70 63 29 | 3b 0a 48 65 61 64 65 72 |(int pc)|;.Header|
|000022e0| 3a 09 3c 6b 65 72 6e 65 | 6c 2e 68 3d 3e 6b 65 72 |:.<kerne|l.h=>ker|
|000022f0| 6e 65 6c 3e 0a 0a 52 65 | 74 75 72 6e 73 3a 09 50 |nel>..Re|turns:.P|
|00002300| 6f 69 6e 74 65 72 20 74 | 6f 20 6e 61 6d 65 2e 0a |ointer t|o name..|
|00002310| 0a 54 68 69 73 20 66 75 | 6e 63 74 69 6f 6e 20 67 |.This fu|nction g|
|00002320| 65 74 73 20 74 68 65 20 | 6e 61 6d 65 20 6f 66 20 |ets the |name of |
|00002330| 74 68 65 20 6c 61 6e 67 | 75 61 67 65 20 69 6e 20 |the lang|uage in |
|00002340| 77 68 6f 73 65 20 63 6f | 64 65 20 74 68 65 20 61 |whose co|de the a|
|00002350| 64 64 72 65 73 73 20 2f | 70 63 2f 20 6c 69 65 73 |ddress /|pc/ lies|
|00002360| 2e 00 00 00 44 41 54 41 | 5d 01 00 00 5f 6b 65 72 |....DATA|]..._ker|
|00002370| 6e 65 6c 5f 6c 61 73 74 | 5f 6f 73 65 72 72 6f 72 |nel_last|_oserror|
|00002380| 0a 53 79 6e 74 61 78 3a | 09 3c 5f 6b 65 72 6e 65 |.Syntax:|.<_kerne|
|00002390| 6c 5f 6f 73 65 72 72 6f | 72 3e 20 2a 5f 6b 65 72 |l_oserro|r> *_ker|
|000023a0| 6e 65 6c 5f 6c 61 73 74 | 5f 6f 73 65 72 72 6f 72 |nel_last|_oserror|
|000023b0| 20 28 76 6f 69 64 29 3b | 0a 48 65 61 64 65 72 3a | (void);|.Header:|
|000023c0| 09 3c 6b 65 72 6e 65 6c | 2e 68 3d 3e 6b 65 72 6e |.<kernel|.h=>kern|
|000023d0| 65 6c 3e 0a 0a 52 65 74 | 75 72 6e 73 3a 09 50 6f |el>..Ret|urns:.Po|
|000023e0| 69 6e 74 65 72 20 74 6f | 20 65 72 72 6f 72 2c 20 |inter to| error, |
|000023f0| 6f 72 20 3c 4e 55 4c 4c | 3e 20 69 66 20 6e 6f 6e |or <NULL|> if non|
|00002400| 65 2e 0a 0a 54 68 69 73 | 20 66 75 6e 63 74 69 6f |e...This| functio|
|00002410| 6e 20 72 65 74 75 72 6e | 73 20 61 20 70 6f 69 6e |n return|s a poin|
|00002420| 74 65 72 20 74 6f 20 74 | 68 65 20 65 72 72 6f 72 |ter to t|he error|
|00002430| 20 62 6c 6f 63 6b 20 64 | 65 73 63 72 69 62 69 6e | block d|escribin|
|00002440| 67 20 74 68 65 20 6c 61 | 73 74 20 4f 53 20 65 72 |g the la|st OS er|
|00002450| 72 6f 72 20 74 68 61 74 | 20 6f 63 63 75 72 65 64 |ror that| occured|
|00002460| 20 28 73 69 6e 63 65 20 | 74 68 65 20 6c 61 73 74 | (since |the last|
|00002470| 20 63 61 6c 6c 20 74 6f | 20 74 68 69 73 20 66 75 | call to| this fu|
|00002480| 6e 63 74 69 6f 6e 29 2e | 0a 0a 54 68 65 20 62 6c |nction).|..The bl|
|00002490| 6f 63 6b 20 72 65 74 75 | 72 6e 65 64 20 6d 61 79 |ock retu|rned may|
|000024a0| 20 62 65 20 6f 76 65 72 | 77 72 69 74 74 65 6e 20 | be over|written |
|000024b0| 62 79 20 61 6e 6f 74 68 | 65 72 20 65 72 72 6f 72 |by anoth|er error|
|000024c0| 2e 00 00 00 44 41 54 41 | a7 00 00 00 5f 6b 65 72 |....DATA|...._ker|
|000024d0| 6e 65 6c 5f 4e 4f 4e 58 | 0a 54 68 65 20 6d 61 63 |nel_NONX|.The mac|
|000024e0| 72 6f 20 7b 2a 7d 5f 6b | 65 72 6e 65 6c 5f 4e 4f |ro {*}_k|ernel_NO|
|000024f0| 4e 58 7b 2a 7d 20 69 73 | 20 64 65 66 69 6e 65 64 |NX{*} is| defined|
|00002500| 20 69 6e 20 3c 6b 65 72 | 6e 65 6c 2e 68 3d 3e 6b | in <ker|nel.h=>k|
|00002510| 65 72 6e 65 6c 3e 20 61 | 73 20 61 20 76 61 6c 75 |ernel> a|s a valu|
|00002520| 65 20 75 73 65 64 20 74 | 6f 20 69 6e 64 69 63 61 |e used t|o indica|
|00002530| 74 65 20 74 6f 20 53 57 | 49 20 63 61 6c 6c 69 6e |te to SW|I callin|
|00002540| 67 20 66 75 6e 63 74 69 | 6f 6e 73 20 74 68 61 74 |g functi|ons that|
|00002550| 20 65 72 72 6f 72 73 20 | 61 72 65 20 74 6f 20 62 | errors |are to b|
|00002560| 65 20 72 65 70 6f 72 74 | 65 64 2e 00 44 41 54 41 |e report|ed..DATA|
|00002570| 5a 01 00 00 5f 6b 65 72 | 6e 65 6c 5f 6f 73 61 72 |Z..._ker|nel_osar|
|00002580| 67 73 0a 53 79 6e 74 61 | 78 3a 09 69 6e 74 20 5f |gs.Synta|x:.int _|
|00002590| 6b 65 72 6e 65 6c 5f 6f | 73 61 72 67 73 20 28 69 |kernel_o|sargs (i|
|000025a0| 6e 74 20 72 30 2c 20 75 | 6e 73 69 67 6e 65 64 20 |nt r0, u|nsigned |
|000025b0| 72 31 2c 20 69 6e 74 20 | 72 32 29 3b 0a 48 65 61 |r1, int |r2);.Hea|
|000025c0| 64 65 72 3a 09 3c 6b 65 | 72 6e 65 6c 2e 68 3d 3e |der:.<ke|rnel.h=>|
|000025d0| 6b 65 72 6e 65 6c 3e 0a | 0a 52 65 74 75 72 6e 73 |kernel>.|.Returns|
|000025e0| 3a 09 28 72 30 3d 72 31 | 3d 30 29 3a 20 43 75 72 |:.(r0=r1|=0): Cur|
|000025f0| 72 65 6e 74 20 46 53 20 | 6e 75 6d 62 65 72 2c 20 |rent FS |number, |
|00002600| 65 6c 73 65 3a 0a 09 56 | 61 6c 75 65 20 72 65 74 |else:..V|alue ret|
|00002610| 75 72 6e 65 64 20 69 6e | 20 52 32 20 62 79 20 4f |urned in| R2 by O|
|00002620| 53 5f 41 72 67 73 2c 20 | 6f 72 0a 09 2d 31 20 69 |S_Args, |or..-1 i|
|00002630| 66 20 66 61 69 6c 65 64 | 20 28 69 65 20 63 61 72 |f failed| (ie car|
|00002640| 72 79 20 66 6c 61 67 20 | 73 65 74 29 0a 09 2d 32 |ry flag |set)..-2|
|00002650| 20 69 66 20 61 6e 20 4f | 53 20 65 72 72 6f 72 20 | if an O|S error |
|00002660| 6f 63 63 75 72 72 65 64 | 2e 0a 0a 54 68 69 73 20 |occurred|...This |
|00002670| 66 75 6e 63 74 69 6f 6e | 20 63 61 6c 6c 73 20 74 |function| calls t|
|00002680| 68 65 20 3c 4f 53 5f 41 | 72 67 73 3d 3e 53 57 49 |he <OS_A|rgs=>SWI|
|00002690| 3a 4f 53 5f 41 72 67 73 | 3e 20 53 57 49 20 77 69 |:OS_Args|> SWI wi|
|000026a0| 74 68 20 72 65 67 69 73 | 74 65 72 73 20 52 30 2d |th regis|ters R0-|
|000026b0| 52 32 20 73 65 74 20 74 | 6f 20 74 68 6f 73 65 20 |R2 set t|o those |
|000026c0| 67 69 76 65 6e 2e 00 00 | 44 41 54 41 58 01 00 00 |given...|DATAX...|
|000026d0| 5f 6b 65 72 6e 65 6c 5f | 6f 73 62 67 65 74 0a 53 |_kernel_|osbget.S|
|000026e0| 79 6e 74 61 78 3a 09 69 | 6e 74 20 5f 6b 65 72 6e |yntax:.i|nt _kern|
|000026f0| 65 6c 5f 6f 73 62 67 65 | 74 20 28 75 6e 73 69 67 |el_osbge|t (unsig|
|00002700| 6e 65 64 20 68 61 6e 64 | 6c 65 29 3b 0a 48 65 61 |ned hand|le);.Hea|
|00002710| 64 65 72 3a 09 3c 6b 65 | 72 6e 65 6c 2e 68 3d 3e |der:.<ke|rnel.h=>|
|00002720| 6b 65 72 6e 65 6c 3e 0a | 0a 52 65 74 75 72 6e 73 |kernel>.|.Returns|
|00002730| 3a 09 54 68 65 20 62 79 | 74 65 20 72 65 61 64 2c |:.The by|te read,|
|00002740| 20 2d 31 20 66 6f 72 20 | 45 4f 46 2c 20 2d 32 20 | -1 for |EOF, -2 |
|00002750| 66 6f 72 20 65 72 72 6f | 72 2e 0a 0a 54 68 69 73 |for erro|r...This|
|00002760| 20 66 75 6e 63 74 69 6f | 6e 20 63 61 6c 6c 73 20 | functio|n calls |
|00002770| 74 68 65 20 3c 4f 53 5f | 42 47 65 74 3d 3e 53 57 |the <OS_|BGet=>SW|
|00002780| 49 3a 4f 53 5f 42 47 65 | 74 3e 20 53 57 49 20 77 |I:OS_BGe|t> SWI w|
|00002790| 68 69 63 68 20 72 65 61 | 64 73 20 61 20 62 79 74 |hich rea|ds a byt|
|000027a0| 65 20 66 72 6f 6d 20 74 | 68 65 20 6f 70 65 6e 20 |e from t|he open |
|000027b0| 66 69 6c 65 20 77 68 6f | 73 65 20 68 61 6e 64 6c |file who|se handl|
|000027c0| 65 20 69 73 20 67 69 76 | 65 6e 2e 0a 0a 4e 6f 74 |e is giv|en...Not|
|000027d0| 65 20 74 68 61 74 20 74 | 68 69 73 20 69 73 20 61 |e that t|his is a|
|000027e0| 20 52 49 53 43 20 4f 53 | 20 66 69 6c 65 20 68 61 | RISC OS| file ha|
|000027f0| 6e 64 6c 65 2c 20 6e 6f | 74 20 6f 6e 65 20 67 65 |ndle, no|t one ge|
|00002800| 6e 65 72 61 74 65 64 20 | 62 79 20 74 68 65 20 3c |nerated |by the <|
|00002810| 66 6f 70 65 6e 3e 20 66 | 75 6e 63 74 69 6f 6e 2e |fopen> f|unction.|
|00002820| 44 41 54 41 58 01 00 00 | 5f 6b 65 72 6e 65 6c 5f |DATAX...|_kernel_|
|00002830| 6f 73 62 70 75 74 0a 53 | 79 6e 74 61 78 3a 09 69 |osbput.S|yntax:.i|
|00002840| 6e 74 20 5f 6b 65 72 6e | 65 6c 5f 6f 73 62 70 75 |nt _kern|el_osbpu|
|00002850| 74 20 28 69 6e 74 20 63 | 2c 20 75 6e 73 69 67 6e |t (int c|, unsign|
|00002860| 65 64 20 68 61 6e 64 6c | 65 29 3b 0a 48 65 61 64 |ed handl|e);.Head|
|00002870| 65 72 3a 09 3c 6b 65 72 | 6e 65 6c 2e 68 3d 3e 6b |er:.<ker|nel.h=>k|
|00002880| 65 72 6e 65 6c 3e 0a 0a | 52 65 74 75 72 6e 73 3a |ernel>..|Returns:|
|00002890| 09 2d 32 20 69 66 20 61 | 6e 20 4f 53 20 65 72 72 |.-2 if a|n OS err|
|000028a0| 6f 72 20 6f 63 63 75 72 | 65 64 2c 20 65 6c 73 65 |or occur|ed, else|
|000028b0| 20 30 2e 0a 0a 54 68 69 | 73 20 66 75 6e 63 74 69 | 0...Thi|s functi|
|000028c0| 6f 6e 20 63 61 6c 6c 73 | 20 74 68 65 20 3c 4f 53 |on calls| the <OS|
|000028d0| 5f 42 50 75 74 3d 3e 53 | 57 49 3a 4f 53 5f 42 50 |_BPut=>S|WI:OS_BP|
|000028e0| 75 74 3e 20 53 57 49 20 | 77 68 69 63 68 20 77 72 |ut> SWI |which wr|
|000028f0| 69 74 65 73 20 61 20 62 | 79 74 65 20 74 6f 20 74 |ites a b|yte to t|
|00002900| 68 65 20 6f 70 65 6e 20 | 66 69 6c 65 20 77 68 6f |he open |file who|
|00002910| 73 65 20 68 61 6e 64 6c | 65 20 69 73 20 67 69 76 |se handl|e is giv|
|00002920| 65 6e 2e 0a 0a 4e 6f 74 | 65 20 74 68 61 74 20 74 |en...Not|e that t|
|00002930| 68 69 73 20 69 73 20 61 | 20 52 49 53 43 20 4f 53 |his is a| RISC OS|
|00002940| 20 66 69 6c 65 20 68 61 | 6e 64 6c 65 2c 20 6e 6f | file ha|ndle, no|
|00002950| 74 20 6f 6e 65 20 67 65 | 6e 65 72 61 74 65 64 20 |t one ge|nerated |
|00002960| 62 79 20 74 68 65 20 3c | 66 6f 70 65 6e 3e 20 66 |by the <|fopen> f|
|00002970| 75 6e 63 74 69 6f 6e 2e | 44 41 54 41 0d 02 00 00 |unction.|DATA....|
|00002980| 5f 6b 65 72 6e 65 6c 5f | 6f 73 62 79 74 65 0a 53 |_kernel_|osbyte.S|
|00002990| 79 6e 74 61 78 3a 09 69 | 6e 74 20 5f 6b 65 72 6e |yntax:.i|nt _kern|
|000029a0| 65 6c 5f 6f 73 62 79 74 | 65 20 28 69 6e 74 20 72 |el_osbyt|e (int r|
|000029b0| 30 2c 20 69 6e 74 20 72 | 31 2c 20 69 6e 74 20 72 |0, int r|1, int r|
|000029c0| 32 29 3b 0a 48 65 61 64 | 65 72 3a 09 3c 6b 65 72 |2);.Head|er:.<ker|
|000029d0| 6e 65 6c 2e 68 3d 3e 6b | 65 72 6e 65 6c 3e 0a 0a |nel.h=>k|ernel>..|
|000029e0| 52 65 74 75 72 6e 73 3a | 09 56 61 6c 75 65 73 20 |Returns:|.Values |
|000029f0| 72 65 74 75 72 6e 65 64 | 2c 20 6f 72 20 65 72 72 |returned|, or err|
|00002a00| 6f 72 20 61 73 20 66 6f | 6c 6c 6f 77 73 3a 0a 09 |or as fo|llows:..|
|00002a10| 28 2d 31 29 09 43 61 72 | 72 79 20 66 6c 61 67 20 |(-1).Car|ry flag |
|00002a20| 69 73 20 73 65 74 20 28 | 63 61 6c 6c 20 66 61 69 |is set (|call fai|
|00002a30| 6c 65 64 29 0a 09 28 2d | 32 29 09 4f 53 20 65 72 |led)..(-|2).OS er|
|00002a40| 72 6f 72 20 6f 63 63 75 | 72 73 2e 0a 0a 54 68 69 |ror occu|rs...Thi|
|00002a50| 73 20 66 75 6e 63 74 69 | 6f 6e 20 63 61 6c 6c 73 |s functi|on calls|
|00002a60| 20 74 68 65 20 3c 4f 53 | 5f 42 79 74 65 3d 3e 53 | the <OS|_Byte=>S|
|00002a70| 57 49 3a 4f 53 5f 42 79 | 74 65 3e 20 53 57 49 20 |WI:OS_By|te> SWI |
|00002a80| 77 69 74 68 20 74 68 65 | 20 72 65 67 69 73 74 65 |with the| registe|
|00002a90| 72 20 52 30 20 73 65 74 | 20 74 6f 20 74 68 65 20 |r R0 set| to the |
|00002aa0| 76 61 6c 75 65 20 70 61 | 73 73 65 64 20 69 6e 20 |value pa|ssed in |
|00002ab0| 7b 2f 7d 72 30 7b 2f 7d | 2c 20 61 6e 64 20 72 65 |{/}r0{/}|, and re|
|00002ac0| 67 69 73 74 65 72 73 20 | 52 31 20 61 6e 64 20 52 |gisters |R1 and R|
|00002ad0| 32 20 73 65 74 20 74 6f | 20 74 68 65 20 76 61 6c |2 set to| the val|
|00002ae0| 75 65 73 20 70 6f 69 6e | 74 65 64 20 74 6f 20 62 |ues poin|ted to b|
|00002af0| 79 20 7b 2f 7d 72 31 7b | 2f 7d 20 61 6e 64 20 7b |y {/}r1{|/} and {|
|00002b00| 2f 7d 72 32 7b 2f 7d 2e | 0a 0a 54 68 65 20 2f 69 |/}r2{/}.|..The /i|
|00002b10| 6e 74 2f 20 72 65 74 75 | 72 6e 65 64 20 63 6f 6e |nt/ retu|rned con|
|00002b20| 74 61 69 6e 73 20 52 31 | 20 69 6e 20 69 74 73 20 |tains R1| in its |
|00002b30| 62 6f 74 74 6f 6d 20 62 | 79 74 65 2c 20 52 32 20 |bottom b|yte, R2 |
|00002b40| 69 6e 20 74 68 65 20 73 | 65 63 6f 6e 64 20 62 79 |in the s|econd by|
|00002b50| 74 65 2c 20 61 6e 64 20 | 31 20 69 6e 20 74 68 65 |te, and |1 in the|
|00002b60| 20 74 68 69 72 64 20 62 | 79 74 65 20 69 66 20 74 | third b|yte if t|
|00002b70| 68 65 20 63 61 72 72 79 | 20 66 6c 61 67 20 69 73 |he carry| flag is|
|00002b80| 20 73 65 74 2e 00 00 00 | 44 41 54 41 c1 01 00 00 | set....|DATA....|
|00002b90| 5f 6b 65 72 6e 65 6c 5f | 6f 73 63 6c 69 0a 53 79 |_kernel_|oscli.Sy|
|00002ba0| 6e 74 61 78 3a 09 69 6e | 74 20 5f 6b 65 72 6e 65 |ntax:.in|t _kerne|
|00002bb0| 6c 5f 6f 73 63 6c 69 20 | 28 63 68 61 72 20 2a 63 |l_oscli |(char *c|
|00002bc0| 6f 6d 6d 61 6e 64 29 3b | 0a 48 65 61 64 65 72 3a |ommand);|.Header:|
|00002bd0| 09 3c 6b 65 72 6e 65 6c | 2e 68 3d 3e 6b 65 72 6e |.<kernel|.h=>kern|
|00002be0| 65 6c 3e 0a 0a 52 65 74 | 75 72 6e 73 3a 09 30 20 |el>..Ret|urns:.0 |
|00002bf0| 69 66 20 73 75 63 63 65 | 73 73 66 75 6c 2c 20 2d |if succe|ssful, -|
|00002c00| 32 20 69 66 20 61 6e 20 | 4f 53 20 65 72 72 6f 72 |2 if an |OS error|
|00002c10| 20 6f 63 63 75 72 72 65 | 64 2e 0a 0a 54 68 69 73 | occurre|d...This|
|00002c20| 20 66 75 6e 63 74 69 6f | 6e 20 70 61 73 73 65 73 | functio|n passes|
|00002c30| 20 74 68 65 20 73 74 72 | 69 6e 67 20 67 69 76 65 | the str|ing give|
|00002c40| 6e 20 74 6f 20 74 68 65 | 20 6f 70 65 72 61 74 69 |n to the| operati|
|00002c50| 6e 67 20 73 79 73 74 65 | 6d 20 43 4c 49 20 74 6f |ng syste|m CLI to|
|00002c60| 20 62 65 20 65 78 65 63 | 75 74 65 64 20 61 73 20 | be exec|uted as |
|00002c70| 69 66 20 69 74 20 68 61 | 64 20 62 65 65 6e 20 74 |if it ha|d been t|
|00002c80| 79 70 65 64 20 69 6e 20 | 61 73 20 61 20 22 73 74 |yped in |as a "st|
|00002c90| 61 72 20 63 6f 6d 6d 61 | 6e 64 22 2e 20 46 6f 72 |ar comma|nd". For|
|00002ca0| 20 69 6e 73 74 61 6e 63 | 65 2c 20 7b 66 43 6f 64 | instanc|e, {fCod|
|00002cb0| 65 7d 5f 6b 65 72 6e 65 | 6c 5f 6f 73 63 6c 69 28 |e}_kerne|l_oscli(|
|00002cc0| 22 4d 6f 64 75 6c 65 73 | 22 29 7b 66 7d 20 68 61 |"Modules|"){f} ha|
|00002cd0| 73 20 74 68 65 20 73 61 | 6d 65 20 65 66 66 65 63 |s the sa|me effec|
|00002ce0| 74 20 61 73 20 3c 2a 4d | 6f 64 75 6c 65 73 3e 2e |t as <*M|odules>.|
|00002cf0| 0a 0a 54 68 69 73 20 66 | 75 6e 63 74 69 6f 6e 20 |..This f|unction |
|00002d00| 73 68 6f 75 6c 64 20 6e | 6f 74 20 62 65 20 75 73 |should n|ot be us|
|00002d10| 65 64 20 74 6f 20 72 75 | 6e 20 6f 74 68 65 72 20 |ed to ru|n other |
|00002d20| 70 72 6f 67 72 61 6d 73 | 20 2d 20 75 73 65 20 3c |programs| - use <|
|00002d30| 5f 6b 65 72 6e 65 6c 5f | 73 79 73 74 65 6d 3e 20 |_kernel_|system> |
|00002d40| 66 6f 72 20 74 68 61 74 | 2e 00 00 00 44 41 54 41 |for that|....DATA|
|00002d50| 0b 01 00 00 5f 6b 65 72 | 6e 65 6c 5f 6f 73 65 72 |...._ker|nel_oser|
|00002d60| 72 6f 72 0a 54 68 65 20 | 74 79 70 65 20 7b 2a 7d |ror.The |type {*}|
|00002d70| 5f 6b 65 72 6e 65 6c 5f | 6f 73 65 72 72 6f 72 7b |_kernel_|oserror{|
|00002d80| 2a 7d 20 69 73 20 64 65 | 66 69 6e 65 64 20 69 6e |*} is de|fined in|
|00002d90| 20 3c 6b 65 72 6e 65 6c | 2e 68 3d 3e 6b 65 72 6e | <kernel|.h=>kern|
|00002da0| 65 6c 3e 20 61 73 20 61 | 6e 20 6f 62 6a 65 63 74 |el> as a|n object|
|00002db0| 20 68 6f 6c 64 69 6e 67 | 20 61 20 73 74 61 6e 64 | holding| a stand|
|00002dc0| 61 72 64 20 52 49 53 43 | 20 4f 53 20 65 72 72 6f |ard RISC| OS erro|
|00002dd0| 72 20 62 6c 6f 63 6b 2e | 20 49 74 20 69 73 20 64 |r block.| It is d|
|00002de0| 65 66 69 6e 65 64 20 61 | 73 20 74 68 65 20 66 6f |efined a|s the fo|
|00002df0| 6c 6c 6f 77 69 6e 67 20 | 73 74 72 75 63 74 75 72 |llowing |structur|
|00002e00| 65 3a 0a 0a 5c 7b 0a 20 | 20 20 20 69 6e 74 20 65 |e:..\{. | int e|
|00002e10| 72 72 6e 75 6d 3b 09 2f | 2a 20 45 72 72 6f 72 20 |rrnum;./|* Error |
|00002e20| 6e 75 6d 62 65 72 20 20 | 2a 2f 0a 20 20 20 20 63 |number |*/. c|
|00002e30| 68 61 72 20 65 72 72 6d | 65 73 73 5b 32 35 32 5d |har errm|ess[252]|
|00002e40| 3b 09 2f 2a 20 45 72 72 | 6f 72 20 6d 65 73 73 61 |;./* Err|or messa|
|00002e50| 67 65 20 2a 2f 0a 7d 00 | 44 41 54 41 bf 01 00 00 |ge */.}.|DATA....|
|00002e60| 5f 6b 65 72 6e 65 6c 5f | 6f 73 66 69 6c 65 0a 53 |_kernel_|osfile.S|
|00002e70| 79 6e 74 61 78 3a 09 69 | 6e 74 20 5f 6b 65 72 6e |yntax:.i|nt _kern|
|00002e80| 65 6c 5f 6f 73 66 69 6c | 65 20 28 69 6e 74 20 6f |el_osfil|e (int o|
|00002e90| 70 2c 20 63 68 61 72 20 | 2a 6e 61 6d 65 2c 20 3c |p, char |*name, <|
|00002ea0| 5f 6b 65 72 6e 65 6c 5f | 6f 73 66 69 6c 65 5f 62 |_kernel_|osfile_b|
|00002eb0| 6c 6f 63 6b 3d 3e 5f 6b | 65 72 6e 65 6c 5f 6f 73 |lock=>_k|ernel_os|
|00002ec0| 66 69 6c 65 5f 62 6c 6f | 63 3e 20 2a 62 6c 6b 29 |file_blo|c> *blk)|
|00002ed0| 3b 0a 48 65 61 64 65 72 | 3a 09 3c 6b 65 72 6e 65 |;.Header|:.<kerne|
|00002ee0| 6c 2e 68 3d 3e 6b 65 72 | 6e 65 6c 3e 0a 0a 52 65 |l.h=>ker|nel>..Re|
|00002ef0| 74 75 72 6e 73 3a 09 43 | 6f 6e 74 65 6e 74 73 20 |turns:.C|ontents |
|00002f00| 6f 66 20 72 65 67 69 73 | 74 65 72 20 52 30 2c 20 |of regis|ter R0, |
|00002f10| 6f 72 20 65 72 72 6f 72 | 3a 0a 09 2d 31 20 69 66 |or error|:..-1 if|
|00002f20| 20 66 61 69 6c 65 64 20 | 28 69 65 20 63 61 72 72 | failed |(ie carr|
|00002f30| 79 20 66 6c 61 67 20 73 | 65 74 29 0a 09 2d 32 20 |y flag s|et)..-2 |
|00002f40| 69 66 20 61 6e 20 4f 53 | 20 65 72 72 6f 72 20 6f |if an OS| error o|
|00002f50| 63 63 75 72 72 65 64 2e | 0a 0a 54 68 69 73 20 66 |ccurred.|..This f|
|00002f60| 75 6e 63 74 69 6f 6e 20 | 63 61 6c 6c 73 20 74 68 |unction |calls th|
|00002f70| 65 20 3c 4f 53 5f 46 69 | 6c 65 3d 3e 53 57 49 3a |e <OS_Fi|le=>SWI:|
|00002f80| 4f 53 5f 46 69 6c 65 3e | 20 53 57 49 20 77 68 69 |OS_File>| SWI whi|
|00002f90| 63 68 20 70 65 72 66 6f | 72 6d 73 20 76 61 72 69 |ch perfo|rms vari|
|00002fa0| 6f 75 73 20 66 75 6e 63 | 74 69 6f 6e 73 20 6f 6e |ous func|tions on|
|00002fb0| 20 77 68 6f 6c 65 20 66 | 69 6c 65 73 2e 20 52 30 | whole f|iles. R0|
|00002fc0| 20 69 73 20 73 65 74 20 | 66 72 6f 6d 20 2f 6f 70 | is set |from /op|
|00002fd0| 2f 2c 20 61 6e 64 20 52 | 31 20 69 73 20 73 65 74 |/, and R|1 is set|
|00002fe0| 20 74 6f 20 74 68 65 20 | 6e 61 6d 65 20 67 69 76 | to the |name giv|
|00002ff0| 65 6e 2e 20 52 65 67 69 | 73 74 65 72 73 20 52 32 |en. Regi|sters R2|
|00003000| 2d 52 35 20 61 72 65 20 | 73 65 74 20 66 72 6f 6d |-R5 are |set from|
|00003010| 20 2f 62 6c 6b 2f 2e 00 | 44 41 54 41 6c 01 00 00 | /blk/..|DATAl...|
|00003020| 5f 6b 65 72 6e 65 6c 5f | 6f 73 66 69 6c 65 5f 62 |_kernel_|osfile_b|
|00003030| 6c 6f 63 6b 0a 54 68 65 | 20 74 79 70 65 20 7b 2a |lock.The| type {*|
|00003040| 7d 5f 6b 65 72 6e 65 6c | 5f 6f 73 66 69 6c 65 5f |}_kernel|_osfile_|
|00003050| 62 6c 6f 63 6b 7b 2a 7d | 20 69 73 20 64 65 66 69 |block{*}| is defi|
|00003060| 6e 65 64 20 69 6e 20 3c | 6b 65 72 6e 65 6c 2e 68 |ned in <|kernel.h|
|00003070| 3d 3e 6b 65 72 6e 65 6c | 3e 20 61 73 20 61 20 74 |=>kernel|> as a t|
|00003080| 79 70 65 20 63 61 70 61 | 62 6c 65 20 6f 66 20 68 |ype capa|ble of h|
|00003090| 6f 6c 64 69 6e 67 20 69 | 6e 66 6f 72 6d 61 74 69 |olding i|nformati|
|000030a0| 6f 6e 20 74 6f 20 62 65 | 20 70 61 73 73 65 64 20 |on to be| passed |
|000030b0| 74 6f 20 74 68 65 20 3c | 5f 6b 65 72 6e 65 6c 5f |to the <|_kernel_|
|000030c0| 6f 73 66 69 6c 65 3e 20 | 66 75 6e 63 74 69 6f 6e |osfile> |function|
|000030d0| 2e 20 49 74 20 69 73 20 | 64 65 66 69 6e 65 64 20 |. It is |defined |
|000030e0| 61 73 3a 0a 0a 5c 7b 0a | 20 20 20 20 69 6e 74 20 |as:..\{.| int |
|000030f0| 6c 6f 61 64 3b 09 2f 2a | 20 6c 6f 61 64 20 61 64 |load;./*| load ad|
|00003100| 64 72 65 73 73 20 2a 2f | 0a 20 20 20 20 69 6e 74 |dress */|. int|
|00003110| 20 65 78 65 63 3b 09 2f | 2a 20 65 78 65 63 75 74 | exec;./|* execut|
|00003120| 69 6f 6e 20 61 64 64 72 | 65 73 73 20 2a 2f 0a 20 |ion addr|ess */. |
|00003130| 20 20 20 69 6e 74 20 73 | 74 61 72 74 3b 09 2f 2a | int s|tart;./*|
|00003140| 20 73 74 61 72 74 20 61 | 64 64 72 65 73 73 2f 6c | start a|ddress/l|
|00003150| 65 6e 67 74 68 20 2a 2f | 0a 20 20 20 20 69 6e 74 |ength */|. int|
|00003160| 20 65 6e 64 3b 09 2f 2a | 20 65 6e 64 20 61 64 64 | end;./*| end add|
|00003170| 72 65 73 73 2f 61 74 74 | 72 69 62 75 74 65 73 20 |ress/att|ributes |
|00003180| 2a 2f 0a 7d 44 41 54 41 | a2 01 00 00 5f 6b 65 72 |*/.}DATA|...._ker|
|00003190| 6e 65 6c 5f 6f 73 66 69 | 6e 64 0a 53 79 6e 74 61 |nel_osfi|nd.Synta|
|000031a0| 78 3a 09 69 6e 74 20 5f | 6b 65 72 6e 65 6c 5f 6f |x:.int _|kernel_o|
|000031b0| 73 66 69 6e 64 20 28 69 | 6e 74 20 6f 70 2c 20 63 |sfind (i|nt op, c|
|000031c0| 68 61 72 20 2a 6e 61 6d | 65 29 3b 0a 48 65 61 64 |har *nam|e);.Head|
|000031d0| 65 72 3a 09 3c 6b 65 72 | 6e 65 6c 2e 68 3d 3e 6b |er:.<ker|nel.h=>k|
|000031e0| 65 72 6e 65 6c 3e 0a 0a | 52 65 74 75 72 6e 73 3a |ernel>..|Returns:|
|000031f0| 09 4f 70 65 6e 69 6e 67 | 20 66 69 6c 65 3a 09 30 |.Opening| file:.0|
|00003200| 20 69 66 20 66 61 69 6c | 65 64 2c 20 65 6c 73 65 | if fail|ed, else|
|00003210| 20 66 69 6c 65 20 68 61 | 6e 64 6c 65 2e 0a 09 43 | file ha|ndle...C|
|00003220| 6c 6f 73 69 6e 67 20 66 | 69 6c 65 3a 09 30 20 69 |losing f|ile:.0 i|
|00003230| 66 20 73 75 63 63 65 73 | 73 66 75 6c 2c 0a 09 20 |f succes|sful,.. |
|00003240| 09 2d 31 20 69 66 20 66 | 61 69 6c 65 64 2c 0a 09 |.-1 if f|ailed,..|
|00003250| 20 09 2d 32 20 69 66 20 | 4f 53 20 65 72 72 6f 72 | .-2 if |OS error|
|00003260| 20 6f 63 63 75 72 65 64 | 2e 0a 0a 54 68 69 73 20 | occured|...This |
|00003270| 66 75 6e 63 74 69 6f 6e | 20 63 61 6c 6c 73 20 74 |function| calls t|
|00003280| 68 65 20 3c 4f 53 5f 46 | 69 6e 64 3d 3e 53 57 49 |he <OS_F|ind=>SWI|
|00003290| 3a 4f 53 5f 46 69 6e 64 | 3e 20 53 57 49 20 77 68 |:OS_Find|> SWI wh|
|000032a0| 69 63 68 20 68 61 6e 64 | 6c 69 6e 67 20 6f 70 65 |ich hand|ling ope|
|000032b0| 6e 69 6e 67 20 61 6e 64 | 20 63 6c 6f 73 69 6e 67 |ning and| closing|
|000032c0| 20 6f 66 20 72 61 6e 64 | 6f 6d 20 61 63 63 65 73 | of rand|om acces|
|000032d0| 73 20 66 69 6c 65 73 2e | 20 54 68 65 20 72 65 67 |s files.| The reg|
|000032e0| 69 73 74 65 72 20 52 30 | 20 69 73 20 73 65 74 20 |ister R0| is set |
|000032f0| 74 6f 20 74 68 65 20 76 | 61 6c 75 65 20 69 6e 20 |to the v|alue in |
|00003300| 2f 6f 70 2f 2c 20 52 31 | 20 73 68 6f 75 6c 64 20 |/op/, R1| should |
|00003310| 70 6f 69 6e 74 20 74 6f | 20 74 68 65 20 66 69 6c |point to| the fil|
|00003320| 65 6e 61 6d 65 2e 00 00 | 44 41 54 41 c9 01 00 00 |ename...|DATA....|
|00003330| 5f 6b 65 72 6e 65 6c 5f | 6f 73 67 62 70 62 0a 53 |_kernel_|osgbpb.S|
|00003340| 79 6e 74 61 78 3a 09 69 | 6e 74 20 5f 6b 65 72 6e |yntax:.i|nt _kern|
|00003350| 65 6c 5f 6f 73 67 62 70 | 62 20 28 69 6e 74 20 6f |el_osgbp|b (int o|
|00003360| 70 2c 20 75 6e 73 69 67 | 6e 65 64 20 68 61 6e 64 |p, unsig|ned hand|
|00003370| 6c 65 2c 20 3c 5f 6b 65 | 72 6e 65 6c 5f 6f 73 67 |le, <_ke|rnel_osg|
|00003380| 62 70 62 5f 62 6c 6f 63 | 6b 3d 3e 5f 6b 65 72 6e |bpb_bloc|k=>_kern|
|00003390| 65 6c 5f 6f 73 67 62 70 | 62 5f 62 6c 6f 63 3e 20 |el_osgbp|b_bloc> |
|000033a0| 2a 62 6c 6b 29 3b 0a 48 | 65 61 64 65 72 3a 09 3c |*blk);.H|eader:.<|
|000033b0| 6b 65 72 6e 65 6c 2e 68 | 3d 3e 6b 65 72 6e 65 6c |kernel.h|=>kernel|
|000033c0| 3e 0a 0a 52 65 74 75 72 | 6e 73 3a 09 30 09 69 66 |>..Retur|ns:.0.if|
|000033d0| 20 73 75 63 63 65 73 73 | 66 75 6c 2e 0a 09 2d 31 | success|ful...-1|
|000033e0| 09 69 66 20 66 61 69 6c | 65 64 20 28 69 65 20 63 |.if fail|ed (ie c|
|000033f0| 61 72 72 79 20 66 6c 61 | 67 20 73 65 74 29 2e 0a |arry fla|g set)..|
|00003400| 09 2d 32 09 69 66 20 61 | 6e 20 4f 53 20 65 72 72 |.-2.if a|n OS err|
|00003410| 6f 72 20 6f 63 63 75 72 | 65 64 2e 0a 0a 54 68 69 |or occur|ed...Thi|
|00003420| 73 20 66 75 6e 63 74 69 | 6f 6e 20 63 61 6c 6c 73 |s functi|on calls|
|00003430| 20 74 68 65 20 3c 4f 53 | 5f 47 42 50 42 3d 3e 53 | the <OS|_GBPB=>S|
|00003440| 57 49 3a 4f 53 5f 47 42 | 50 42 3e 20 53 57 49 20 |WI:OS_GB|PB> SWI |
|00003450| 77 68 69 63 68 20 70 65 | 72 66 6f 72 6d 73 20 61 |which pe|rforms a|
|00003460| 20 6d 79 72 69 61 64 20 | 6f 66 20 64 69 66 66 65 | myriad |of diffe|
|00003470| 72 65 6e 74 20 6f 70 65 | 72 61 74 69 6f 6e 73 2e |rent ope|rations.|
|00003480| 20 54 68 65 20 70 61 72 | 61 6d 65 74 65 72 73 20 | The par|ameters |
|00003490| 66 6f 72 20 74 68 65 20 | 63 61 6c 6c 20 61 72 65 |for the |call are|
|000034a0| 20 73 65 74 20 66 72 6f | 6d 20 61 6e 64 20 72 65 | set fro|m and re|
|000034b0| 74 75 72 6e 65 64 20 69 | 6e 20 2f 62 6c 6b 2f 2e |turned i|n /blk/.|
|000034c0| 20 54 68 65 20 61 63 74 | 69 6f 6e 20 28 69 6e 20 | The act|ion (in |
|000034d0| 52 30 29 20 64 65 70 65 | 6e 64 73 20 6f 6e 20 74 |R0) depe|nds on t|
|000034e0| 68 65 20 76 61 6c 75 65 | 20 6f 66 20 2f 6f 70 2f |he value| of /op/|
|000034f0| 2e 00 00 00 44 41 54 41 | 81 01 00 00 5f 6b 65 72 |....DATA|...._ker|
|00003500| 6e 65 6c 5f 6f 73 67 62 | 70 62 5f 62 6c 6f 63 6b |nel_osgb|pb_block|
|00003510| 0a 54 68 65 20 74 79 70 | 65 20 7b 2a 7d 5f 6b 65 |.The typ|e {*}_ke|
|00003520| 72 6e 65 6c 5f 6f 73 67 | 62 70 62 5f 62 6c 6f 63 |rnel_osg|bpb_bloc|
|00003530| 6b 7b 2a 7d 20 69 73 20 | 64 65 66 69 6e 65 64 20 |k{*} is |defined |
|00003540| 69 6e 20 3c 6b 65 72 6e | 65 6c 2e 68 3d 3e 6b 65 |in <kern|el.h=>ke|
|00003550| 72 6e 65 6c 3e 20 61 73 | 20 61 6e 20 6f 62 6a 65 |rnel> as| an obje|
|00003560| 63 74 20 63 61 70 61 62 | 6c 65 20 6f 66 20 68 6f |ct capab|le of ho|
|00003570| 6c 64 69 6e 67 20 69 6e | 66 6f 72 6d 61 74 69 6f |lding in|formatio|
|00003580| 6e 20 74 6f 20 62 65 20 | 70 61 73 73 65 64 20 74 |n to be |passed t|
|00003590| 6f 20 74 68 65 20 3c 5f | 6b 65 72 6e 65 6c 5f 6f |o the <_|kernel_o|
|000035a0| 73 67 62 70 62 3e 20 66 | 75 6e 63 74 69 6f 6e 2e |sgbpb> f|unction.|
|000035b0| 20 49 74 20 69 73 20 64 | 65 66 69 6e 65 64 20 61 | It is d|efined a|
|000035c0| 73 20 74 68 65 20 66 6f | 6c 6c 6f 77 69 6e 67 20 |s the fo|llowing |
|000035d0| 73 74 72 75 63 74 75 72 | 65 3a 0a 0a 5c 7b 0a 20 |structur|e:..\{. |
|000035e0| 20 20 20 76 6f 69 64 20 | 2a 64 61 74 61 70 74 72 | void |*dataptr|
|000035f0| 3b 09 2f 2a 20 6d 65 6d | 6f 72 79 20 61 64 64 72 |;./* mem|ory addr|
|00003600| 65 73 73 20 6f 66 20 64 | 61 74 61 2a 2f 0a 20 20 |ess of d|ata*/. |
|00003610| 20 20 69 6e 74 20 6e 62 | 79 74 65 73 3b 0a 20 20 | int nb|ytes;. |
|00003620| 20 20 69 6e 74 20 66 69 | 6c 65 70 74 72 3b 0a 20 | int fi|leptr;. |
|00003630| 20 20 20 69 6e 74 20 62 | 75 66 5f 6c 65 6e 3b 0a | int b|uf_len;.|
|00003640| 20 20 20 20 63 68 61 72 | 20 2a 77 69 6c 64 5f 66 | char| *wild_f|
|00003650| 6c 64 3b 09 2f 2a 20 70 | 6f 69 6e 74 73 20 74 6f |ld;./* p|oints to|
|00003660| 20 77 69 6c 64 63 61 72 | 64 65 64 20 6e 61 6d 65 | wildcar|ded name|
|00003670| 20 2a 2f 0a 7d 00 00 00 | 44 41 54 41 fc 00 00 00 | */.}...|DATA....|
|00003680| 5f 6b 65 72 6e 65 6c 5f | 6f 73 72 64 63 68 0a 53 |_kernel_|osrdch.S|
|00003690| 79 6e 74 61 78 3a 09 69 | 6e 74 20 5f 6b 65 72 6e |yntax:.i|nt _kern|
|000036a0| 65 6c 5f 6f 73 72 64 63 | 68 20 28 76 6f 69 64 29 |el_osrdc|h (void)|
|000036b0| 3b 0a 48 65 61 64 65 72 | 3a 09 3c 6b 65 72 6e 65 |;.Header|:.<kerne|
|000036c0| 6c 2e 68 3d 3e 6b 65 72 | 6e 65 6c 3e 0a 0a 52 65 |l.h=>ker|nel>..Re|
|000036d0| 74 75 72 6e 73 3a 09 54 | 68 65 20 63 68 61 72 61 |turns:.T|he chara|
|000036e0| 63 74 65 72 20 72 65 61 | 64 2e 0a 0a 54 68 69 73 |cter rea|d...This|
|000036f0| 20 66 75 6e 63 74 69 6f | 6e 20 63 61 6c 6c 73 20 | functio|n calls |
|00003700| 74 68 65 20 7b 2a 7d 4f | 53 5f 52 65 61 64 43 7b |the {*}O|S_ReadC{|
|00003710| 2a 7d 20 53 57 49 2c 20 | 77 68 69 63 68 20 72 65 |*} SWI, |which re|
|00003720| 61 64 73 20 61 20 63 68 | 61 72 61 63 74 65 72 20 |ads a ch|aracter |
|00003730| 66 6f 72 20 74 68 65 20 | 6b 65 79 62 6f 61 72 64 |for the |keyboard|
|00003740| 20 62 75 66 66 65 72 2c | 20 77 61 69 74 69 6e 67 | buffer,| waiting|
|00003750| 20 66 6f 72 20 6f 6e 65 | 20 74 6f 20 62 65 20 70 | for one| to be p|
|00003760| 72 65 73 73 65 64 20 69 | 66 20 6e 65 63 65 73 73 |ressed i|f necess|
|00003770| 61 72 79 2e 44 41 54 41 | b5 01 00 00 5f 6b 65 72 |ary.DATA|...._ker|
|00003780| 6e 65 6c 5f 6f 73 77 6f | 72 64 0a 53 79 6e 74 61 |nel_oswo|rd.Synta|
|00003790| 78 3a 09 69 6e 74 20 5f | 6b 65 72 6e 65 6c 5f 6f |x:.int _|kernel_o|
|000037a0| 73 77 6f 72 64 20 28 69 | 6e 74 20 72 30 2c 20 69 |sword (i|nt r0, i|
|000037b0| 6e 74 20 2a 72 31 29 3b | 0a 48 65 61 64 65 72 3a |nt *r1);|.Header:|
|000037c0| 09 3c 6b 65 72 6e 65 6c | 2e 68 3d 3e 6b 65 72 6e |.<kernel|.h=>kern|
|000037d0| 65 6c 3e 0a 0a 52 65 74 | 75 72 6e 73 3a 09 30 09 |el>..Ret|urns:.0.|
|000037e0| 69 66 20 73 75 63 63 65 | 73 73 66 75 6c 2e 0a 09 |if succe|ssful...|
|000037f0| 2d 31 09 69 66 20 66 61 | 69 6c 65 64 20 28 69 65 |-1.if fa|iled (ie|
|00003800| 20 63 61 72 72 79 20 66 | 6c 61 67 20 73 65 74 29 | carry f|lag set)|
|00003810| 2e 0a 09 2d 32 09 69 66 | 20 61 6e 20 4f 53 20 65 |...-2.if| an OS e|
|00003820| 72 72 6f 72 20 6f 63 63 | 75 72 65 64 2e 0a 0a 54 |rror occ|ured...T|
|00003830| 68 69 73 20 66 75 6e 63 | 74 69 6f 6e 20 63 61 6c |his func|tion cal|
|00003840| 6c 73 20 74 68 65 20 3c | 4f 53 5f 57 6f 72 64 3d |ls the <|OS_Word=|
|00003850| 3e 53 57 49 3a 4f 53 5f | 57 6f 72 64 3e 20 53 57 |>SWI:OS_|Word> SW|
|00003860| 49 20 77 69 74 68 20 74 | 68 65 20 72 65 67 69 73 |I with t|he regis|
|00003870| 74 65 72 20 52 30 20 73 | 65 74 20 74 6f 20 74 68 |ter R0 s|et to th|
|00003880| 65 20 76 61 6c 75 65 20 | 70 61 73 73 65 64 20 69 |e value |passed i|
|00003890| 6e 20 7b 2f 7d 72 30 7b | 2f 7d 2c 20 61 6e 64 20 |n {/}r0{|/}, and |
|000038a0| 74 68 65 20 72 65 67 69 | 73 74 65 72 20 52 31 20 |the regi|ster R1 |
|000038b0| 73 65 74 20 74 6f 20 74 | 68 65 20 70 6f 69 6e 74 |set to t|he point|
|000038c0| 65 72 20 7b 2f 7d 72 31 | 7b 2f 7d 2c 20 77 68 69 |er {/}r1|{/}, whi|
|000038d0| 63 68 20 70 6f 69 6e 74 | 73 20 74 6f 20 61 20 70 |ch point|s to a p|
|000038e0| 61 72 61 6d 65 74 65 72 | 20 62 6c 6f 63 6b 2e 20 |arameter| block. |
|000038f0| 56 61 6c 75 65 73 20 61 | 72 65 20 72 65 61 64 20 |Values a|re read |
|00003900| 66 72 6f 6d 20 61 6e 64 | 20 72 65 74 75 72 6e 65 |from and| returne|
|00003910| 64 20 69 6e 20 74 68 65 | 20 70 61 72 61 6d 65 74 |d in the| paramet|
|00003920| 65 72 20 62 6c 6f 63 6b | 2e 00 00 00 44 41 54 41 |er block|....DATA|
|00003930| 2b 01 00 00 5f 6b 65 72 | 6e 65 6c 5f 6f 73 77 72 |+..._ker|nel_oswr|
|00003940| 63 68 0a 53 79 6e 74 61 | 78 3a 09 69 6e 74 20 5f |ch.Synta|x:.int _|
|00003950| 6b 65 72 6e 65 6c 5f 6f | 73 77 72 63 68 20 28 69 |kernel_o|swrch (i|
|00003960| 6e 74 20 63 29 3b 0a 48 | 65 61 64 65 72 3a 09 3c |nt c);.H|eader:.<|
|00003970| 6b 65 72 6e 65 6c 2e 68 | 3d 3e 6b 65 72 6e 65 6c |kernel.h|=>kernel|
|00003980| 3e 0a 0a 52 65 74 75 72 | 6e 73 3a 09 2d 32 20 69 |>..Retur|ns:.-2 i|
|00003990| 66 20 61 6e 20 4f 53 20 | 65 72 72 6f 72 20 6f 63 |f an OS |error oc|
|000039a0| 63 75 72 73 2c 20 65 6c | 73 65 20 30 2e 0a 0a 54 |curs, el|se 0...T|
|000039b0| 68 69 73 20 66 75 6e 63 | 74 69 6f 6e 20 63 61 6c |his func|tion cal|
|000039c0| 6c 73 20 74 68 65 20 3c | 4f 53 5f 57 72 69 74 65 |ls the <|OS_Write|
|000039d0| 43 3d 3e 53 57 49 3a 4f | 53 5f 57 72 69 74 65 43 |C=>SWI:O|S_WriteC|
|000039e0| 3e 20 53 57 49 20 77 69 | 74 68 20 74 68 65 20 72 |> SWI wi|th the r|
|000039f0| 65 67 69 73 74 65 72 20 | 52 30 20 73 65 74 20 74 |egister |R0 set t|
|00003a00| 6f 20 2f 63 2f 2e 20 54 | 68 69 73 20 68 61 73 20 |o /c/. T|his has |
|00003a10| 74 68 65 20 72 65 73 75 | 6c 74 20 6f 66 20 77 72 |the resu|lt of wr|
|00003a20| 69 74 69 6e 67 20 74 68 | 65 20 63 68 61 72 61 74 |iting th|e charat|
|00003a30| 65 72 20 69 6e 20 2f 63 | 2f 20 74 6f 20 74 68 65 |er in /c|/ to the|
|00003a40| 20 63 75 72 72 65 6e 74 | 20 6f 75 74 70 75 74 20 | current| output |
|00003a50| 73 74 72 65 61 6d 2e 00 | 44 41 54 41 c2 00 00 00 |stream..|DATA....|
|00003a60| 5f 6b 65 72 6e 65 6c 5f | 70 72 6f 63 6e 61 6d 65 |_kernel_|procname|
|00003a70| 0a 53 79 6e 74 61 78 3a | 09 63 68 61 72 20 2a 5f |.Syntax:|.char *_|
|00003a80| 6b 65 72 6e 65 6c 5f 70 | 72 6f 63 6e 61 6d 65 20 |kernel_p|rocname |
|00003a90| 28 69 6e 74 20 70 63 29 | 3b 0a 48 65 61 64 65 72 |(int pc)|;.Header|
|00003aa0| 3a 09 3c 6b 65 72 6e 65 | 6c 2e 68 3d 3e 6b 65 72 |:.<kerne|l.h=>ker|
|00003ab0| 6e 65 6c 3e 0a 0a 52 65 | 74 75 72 6e 73 3a 09 50 |nel>..Re|turns:.P|
|00003ac0| 6f 69 6e 74 65 72 20 74 | 6f 20 6e 61 6d 65 2e 0a |ointer t|o name..|
|00003ad0| 0a 54 68 69 73 20 66 75 | 6e 63 74 69 6f 6e 20 67 |.This fu|nction g|
|00003ae0| 65 74 73 20 74 68 65 20 | 6e 61 6d 65 20 6f 66 20 |ets the |name of |
|00003af0| 74 68 65 20 70 72 6f 63 | 65 64 75 72 65 20 63 6f |the proc|edure co|
|00003b00| 6e 74 61 69 6e 69 6e 67 | 20 74 68 65 20 61 64 64 |ntaining| the add|
|00003b10| 72 65 73 73 20 2f 70 63 | 2f 2e 00 00 44 41 54 41 |ress /pc|/...DATA|
|00003b20| c6 00 00 00 5f 6b 65 72 | 6e 65 6c 5f 72 61 69 73 |...._ker|nel_rais|
|00003b30| 65 5f 65 72 72 6f 72 0a | 53 79 6e 74 61 78 3a 09 |e_error.|Syntax:.|
|00003b40| 76 6f 69 64 20 5f 6b 65 | 72 6e 65 6c 5f 72 61 69 |void _ke|rnel_rai|
|00003b50| 73 65 5f 65 72 72 6f 72 | 20 28 3c 5f 6b 65 72 6e |se_error| (<_kern|
|00003b60| 65 6c 5f 6f 73 65 72 72 | 6f 72 3e 20 2a 65 72 72 |el_oserr|or> *err|
|00003b70| 29 3b 0a 48 65 61 64 65 | 72 3a 09 3c 6b 65 72 6e |);.Heade|r:.<kern|
|00003b80| 65 6c 2e 68 3d 3e 6b 65 | 72 6e 65 6c 3e 0a 0a 54 |el.h=>ke|rnel>..T|
|00003b90| 68 69 73 20 66 75 6e 63 | 74 69 6f 6e 20 67 65 6e |his func|tion gen|
|00003ba0| 65 72 61 74 65 73 20 61 | 6e 20 65 78 74 65 72 6e |erates a|n extern|
|00003bb0| 61 6c 20 65 72 72 6f 72 | 20 77 69 74 68 20 74 68 |al error| with th|
|00003bc0| 65 20 65 72 72 6f 72 20 | 62 6c 6f 63 6b 20 70 6f |e error |block po|
|00003bd0| 69 6e 74 65 72 20 74 6f | 20 62 79 20 2f 65 72 72 |inter to| by /err|
|00003be0| 2f 2e 00 00 44 41 54 41 | 1d 01 00 00 5f 6b 65 72 |/...DATA|...._ker|
|00003bf0| 6e 65 6c 5f 73 64 69 76 | 0a 53 79 6e 74 61 78 3a |nel_sdiv|.Syntax:|
|00003c00| 09 69 6e 74 20 5f 6b 65 | 72 6e 65 6c 5f 73 64 69 |.int _ke|rnel_sdi|
|00003c10| 76 20 28 69 6e 74 20 78 | 2c 20 69 6e 74 20 79 29 |v (int x|, int y)|
|00003c20| 3b 0a 48 65 61 64 65 72 | 3a 09 3c 6b 65 72 6e 65 |;.Header|:.<kerne|
|00003c30| 6c 2e 68 3d 3e 6b 65 72 | 6e 65 6c 3e 0a 0a 52 65 |l.h=>ker|nel>..Re|
|00003c40| 74 75 72 6e 73 3a 09 54 | 68 65 20 71 75 6f 74 69 |turns:.T|he quoti|
|00003c50| 65 6e 74 20 6f 66 20 79 | 2f 78 2e 0a 0a 54 68 69 |ent of y|/x...Thi|
|00003c60| 73 20 66 75 6e 63 74 69 | 6f 6e 20 63 61 6c 63 75 |s functi|on calcu|
|00003c70| 6c 61 74 65 73 20 74 68 | 65 20 73 69 67 6e 65 64 |lates th|e signed|
|00003c80| 20 71 75 6f 74 69 65 6e | 74 20 6f 66 20 79 2f 78 | quotien|t of y/x|
|00003c90| 2e 20 49 74 20 69 73 20 | 69 6e 74 65 6e 64 65 64 |. It is |intended|
|00003ca0| 20 66 6f 72 20 75 73 65 | 20 62 79 20 6e 6f 6e 2d | for use| by non-|
|00003cb0| 43 20 70 72 6f 67 72 61 | 6d 73 20 75 73 69 6e 67 |C progra|ms using|
|00003cc0| 20 74 68 65 20 53 68 61 | 72 65 64 20 43 20 4c 69 | the Sha|red C Li|
|00003cd0| 62 72 61 72 79 2e 20 49 | 6e 20 43 20 79 6f 75 20 |brary. I|n C you |
|00003ce0| 63 61 6e 20 73 69 6d 70 | 6c 79 20 75 73 65 20 74 |can simp|ly use t|
|00003cf0| 68 65 20 64 69 76 69 73 | 69 6f 6e 20 73 69 67 6e |he divis|ion sign|
|00003d00| 21 00 00 00 44 41 54 41 | b0 00 00 00 5f 6b 65 72 |!...DATA|...._ker|
|00003d10| 6e 65 6c 5f 73 64 69 76 | 31 30 0a 53 79 6e 74 61 |nel_sdiv|10.Synta|
|00003d20| 78 3a 09 69 6e 74 20 5f | 6b 65 72 6e 65 6c 5f 73 |x:.int _|kernel_s|
|00003d30| 64 69 76 31 30 20 28 69 | 6e 74 20 78 29 3b 0a 48 |div10 (i|nt x);.H|
|00003d40| 65 61 64 65 72 3a 09 3c | 6b 65 72 6e 65 6c 2e 68 |eader:.<|kernel.h|
|00003d50| 3d 3e 6b 65 72 6e 65 6c | 3e 0a 0a 52 65 74 75 72 |=>kernel|>..Retur|
|00003d60| 6e 73 3a 09 78 20 64 69 | 76 69 64 65 64 20 62 79 |ns:.x di|vided by|
|00003d70| 20 31 30 2e 0a 0a 54 68 | 69 73 20 66 75 6e 63 74 | 10...Th|is funct|
|00003d80| 69 6f 6e 20 64 69 76 69 | 64 65 73 20 2f 78 2f 20 |ion divi|des /x/ |
|00003d90| 62 79 20 31 30 20 61 6e | 64 20 72 65 74 75 72 6e |by 10 an|d return|
|00003da0| 73 20 74 68 65 20 73 69 | 67 6e 65 64 20 72 65 73 |s the si|gned res|
|00003db0| 75 6c 74 2e 44 41 54 41 | 8c 01 00 00 5f 6b 65 72 |ult.DATA|...._ker|
|00003dc0| 6e 65 6c 5f 73 65 74 65 | 6e 76 0a 53 79 6e 74 61 |nel_sete|nv.Synta|
|00003dd0| 78 3a 09 3c 5f 6b 65 72 | 6e 65 6c 5f 6f 73 65 72 |x:.<_ker|nel_oser|
|00003de0| 72 6f 72 3e 20 2a 5f 6b | 65 72 6e 65 6c 5f 73 65 |ror> *_k|ernel_se|
|00003df0| 74 65 6e 76 20 28 63 68 | 61 72 20 2a 6e 61 6d 65 |tenv (ch|ar *name|
|00003e00| 2c 20 63 68 61 72 20 2a | 76 61 6c 29 3b 0a 48 65 |, char *|val);.He|
|00003e10| 61 64 65 72 3a 09 3c 6b | 65 72 6e 65 6c 2e 68 3d |ader:.<k|ernel.h=|
|00003e20| 3e 6b 65 72 6e 65 6c 3e | 0a 0a 52 65 74 75 72 6e |>kernel>|..Return|
|00003e30| 73 3a 09 50 6f 69 6e 74 | 65 72 20 74 6f 20 65 72 |s:.Point|er to er|
|00003e40| 72 6f 72 2c 20 6f 72 20 | 3c 4e 55 4c 4c 3e 20 69 |ror, or |<NULL> i|
|00003e50| 66 20 6e 6f 6e 65 2e 0a | 0a 54 68 69 73 20 66 75 |f none..|.This fu|
|00003e60| 6e 63 74 69 6f 6e 20 73 | 65 74 73 20 74 68 65 20 |nction s|ets the |
|00003e70| 76 61 6c 75 65 20 6f 66 | 20 74 68 65 20 73 79 73 |value of| the sys|
|00003e80| 74 65 6d 20 76 61 72 69 | 61 62 6c 65 20 77 68 6f |tem vari|able who|
|00003e90| 73 65 20 6e 61 6d 65 20 | 69 73 20 73 70 65 63 69 |se name |is speci|
|00003ea0| 66 69 65 64 20 74 6f 20 | 74 68 65 20 73 74 72 69 |fied to |the stri|
|00003eb0| 6e 67 20 70 6f 69 6e 74 | 65 64 20 74 6f 20 62 79 |ng point|ed to by|
|00003ec0| 20 2f 76 61 6c 2f 2e 20 | 49 66 20 2f 76 61 6c 2f | /val/. |If /val/|
|00003ed0| 20 69 73 20 4e 55 4c 4c | 20 74 68 65 6e 20 74 68 | is NULL| then th|
|00003ee0| 65 20 76 61 72 69 61 62 | 6c 65 20 69 73 20 64 65 |e variab|le is de|
|00003ef0| 6c 65 74 65 64 2e 0a 0a | 54 68 69 73 20 66 75 6e |leted...|This fun|
|00003f00| 63 74 69 6f 6e 20 69 73 | 20 65 71 75 69 76 61 6c |ction is| equival|
|00003f10| 65 6e 74 20 74 6f 20 74 | 68 65 20 53 57 49 20 3c |ent to t|he SWI <|
|00003f20| 4f 53 5f 53 65 74 56 61 | 72 56 61 6c 3d 3e 53 57 |OS_SetVa|rVal=>SW|
|00003f30| 49 3a 4f 53 5f 53 65 74 | 56 61 72 56 61 6c 3e 2e |I:OS_Set|VarVal>.|
|00003f40| 44 41 54 41 ab 00 00 00 | 5f 6b 65 72 6e 65 6c 5f |DATA....|_kernel_|
|00003f50| 73 65 74 72 65 74 75 72 | 6e 63 6f 64 65 0a 53 79 |setretur|ncode.Sy|
|00003f60| 6e 74 61 78 3a 09 76 6f | 69 64 20 5f 6b 65 72 6e |ntax:.vo|id _kern|
|00003f70| 65 6c 5f 73 65 74 72 65 | 74 75 72 6e 63 6f 64 65 |el_setre|turncode|
|00003f80| 20 28 75 6e 73 69 67 6e | 65 64 20 6e 29 3b 0a 48 | (unsign|ed n);.H|
|00003f90| 65 61 64 65 72 3a 09 3c | 6b 65 72 6e 65 6c 2e 68 |eader:.<|kernel.h|
|00003fa0| 3d 3e 6b 65 72 6e 65 6c | 3e 0a 0a 54 68 69 73 20 |=>kernel|>..This |
|00003fb0| 66 75 6e 63 74 69 6f 6e | 20 73 65 74 73 20 74 68 |function| sets th|
|00003fc0| 65 20 72 65 74 75 72 6e | 20 63 6f 64 65 20 74 6f |e return| code to|
|00003fd0| 20 62 65 20 75 73 65 64 | 20 62 79 20 3c 5f 6b 65 | be used| by <_ke|
|00003fe0| 72 6e 65 6c 5f 65 78 69 | 74 3e 2e 00 44 41 54 41 |rnel_exi|t>..DATA|
|00003ff0| 44 01 00 00 5f 6b 65 72 | 6e 65 6c 5f 73 72 65 6d |D..._ker|nel_srem|
|00004000| 0a 53 79 6e 74 61 78 3a | 09 69 6e 74 20 5f 6b 65 |.Syntax:|.int _ke|
|00004010| 72 6e 65 6c 5f 73 72 65 | 6d 20 28 69 6e 74 20 78 |rnel_sre|m (int x|
|00004020| 2c 20 69 6e 74 20 79 29 | 3b 0a 48 65 61 64 65 72 |, int y)|;.Header|
|00004030| 3a 09 3c 6b 65 72 6e 65 | 6c 2e 68 3d 3e 6b 65 72 |:.<kerne|l.h=>ker|
|00004040| 6e 65 6c 3e 0a 0a 52 65 | 74 75 72 6e 73 3a 09 54 |nel>..Re|turns:.T|
|00004050| 68 65 20 72 65 6d 61 69 | 6e 64 65 72 20 6f 66 20 |he remai|nder of |
|00004060| 79 2f 78 2e 0a 0a 54 68 | 69 73 20 66 75 6e 63 74 |y/x...Th|is funct|
|00004070| 69 6f 6e 20 63 61 6c 63 | 75 6c 61 74 65 73 20 74 |ion calc|ulates t|
|00004080| 68 65 20 73 69 67 6e 65 | 64 20 72 65 6d 61 69 6e |he signe|d remain|
|00004090| 64 65 72 20 6f 66 20 79 | 2f 78 2e 20 46 6f 72 6d |der of y|/x. Form|
|000040a0| 61 6c 6c 79 20 74 68 69 | 73 20 69 73 20 64 65 66 |ally thi|s is def|
|000040b0| 69 6e 65 64 20 61 73 20 | 72 3d 79 2d 28 69 2a 78 |ined as |r=y-(i*x|
|000040c0| 29 2c 20 77 68 65 72 65 | 20 2f 72 2f 20 69 73 20 |), where| /r/ is |
|000040d0| 74 68 65 20 72 65 6d 61 | 69 6e 64 65 72 20 61 6e |the rema|inder an|
|000040e0| 64 20 2f 69 2f 20 69 73 | 20 61 6e 20 69 6e 74 65 |d /i/ is| an inte|
|000040f0| 67 65 72 20 73 75 63 68 | 20 74 68 61 74 20 2f 72 |ger such| that /r|
|00004100| 2f 20 68 61 73 20 74 68 | 65 20 73 61 6d 65 20 73 |/ has th|e same s|
|00004110| 69 67 6e 20 61 73 20 2f | 79 2f 20 61 6e 64 20 69 |ign as /|y/ and i|
|00004120| 73 20 6c 65 73 73 20 74 | 68 61 6e 20 2f 78 2f 2e |s less t|han /x/.|
|00004130| 44 41 54 41 15 01 00 00 | 5f 6b 65 72 6e 65 6c 5f |DATA....|_kernel_|
|00004140| 73 74 61 63 6b 5f 63 68 | 75 6e 6b 0a 54 68 69 73 |stack_ch|unk.This|
|00004150| 20 74 79 70 65 20 69 73 | 20 64 65 66 69 6e 65 64 | type is| defined|
|00004160| 20 69 6e 20 3c 6b 65 72 | 6e 65 6c 2e 68 3d 3e 6b | in <ker|nel.h=>k|
|00004170| 65 72 6e 65 6c 3e 2e 20 | 49 74 20 63 6f 6e 74 61 |ernel>. |It conta|
|00004180| 69 6e 73 20 61 20 73 74 | 61 63 6b 20 63 68 75 6e |ins a st|ack chun|
|00004190| 6b 20 69 6e 20 74 68 65 | 20 66 6f 6c 6c 6f 77 69 |k in the| followi|
|000041a0| 6e 67 20 73 74 72 75 63 | 74 75 72 65 3a 0a 0a 20 |ng struc|ture:.. |
|000041b0| 20 5c 7b 0a 20 20 20 20 | 75 6e 73 69 67 6e 65 64 | \{. |unsigned|
|000041c0| 20 6c 6f 6e 67 20 73 63 | 5f 6d 61 72 6b 3b 20 20 | long sc|_mark; |
|000041d0| 2f 2a 20 30 78 66 36 30 | 36 39 30 66 66 20 2a 2f |/* 0xf60|690ff */|
|000041e0| 0a 20 20 20 20 73 74 72 | 75 63 74 20 73 74 61 63 |. str|uct stac|
|000041f0| 6b 5f 63 68 75 6e 6b 20 | 2a 73 63 5f 6e 65 78 74 |k_chunk |*sc_next|
|00004200| 2c 73 63 5f 70 72 65 76 | 3b 0a 20 20 20 20 75 6e |,sc_prev|;. un|
|00004210| 73 69 67 6e 65 64 20 6c | 6f 6e 67 20 73 63 5f 73 |signed l|ong sc_s|
|00004220| 69 7a 65 3b 0a 20 20 20 | 20 69 6e 74 20 28 2a 73 |ize;. | int (*s|
|00004230| 63 5f 64 65 61 6c 6c 6f | 63 61 74 65 29 20 28 29 |c_deallo|cate) ()|
|00004240| 3b 0a 20 20 7d 00 00 00 | 44 41 54 41 df 01 00 00 |;. }...|DATA....|
|00004250| 5f 6b 65 72 6e 65 6c 5f | 73 77 69 0a 53 79 6e 74 |_kernel_|swi.Synt|
|00004260| 61 78 3a 09 3c 5f 6b 65 | 72 6e 65 6c 5f 6f 73 65 |ax:.<_ke|rnel_ose|
|00004270| 72 72 6f 72 3e 20 2a 5f | 6b 65 72 6e 65 6c 5f 73 |rror> *_|kernel_s|
|00004280| 77 69 20 28 69 6e 74 20 | 6e 2c 20 3c 5f 6b 65 72 |wi (int |n, <_ker|
|00004290| 6e 65 6c 5f 73 77 69 5f | 72 65 67 73 3e 20 2a 69 |nel_swi_|regs> *i|
|000042a0| 6e 2c 20 5f 6b 65 72 6e | 65 6c 5f 73 77 69 5f 72 |n, _kern|el_swi_r|
|000042b0| 65 67 73 20 2a 6f 75 74 | 29 3b 0a 48 65 61 64 65 |egs *out|);.Heade|
|000042c0| 72 3a 09 3c 6b 65 72 6e | 65 6c 2e 68 3d 3e 6b 65 |r:.<kern|el.h=>ke|
|000042d0| 72 6e 65 6c 3e 0a 0a 52 | 65 74 75 72 6e 73 3a 09 |rnel>..R|eturns:.|
|000042e0| 50 6f 69 6e 74 65 72 20 | 74 6f 20 65 72 72 6f 72 |Pointer |to error|
|000042f0| 2c 20 6f 72 20 4e 55 4c | 4c 20 69 66 20 6e 6f 6e |, or NUL|L if non|
|00004300| 65 2e 0a 0a 54 68 69 73 | 20 66 75 6e 63 74 69 6f |e...This| functio|
|00004310| 6e 20 63 61 6c 6c 73 20 | 61 20 53 57 49 2c 20 77 |n calls |a SWI, w|
|00004320| 68 6f 73 65 20 6e 75 6d | 62 65 72 20 69 73 20 67 |hose num|ber is g|
|00004330| 69 76 65 6e 20 69 6e 20 | 2f 6e 2f 2e 20 54 68 65 |iven in |/n/. The|
|00004340| 20 72 65 67 69 73 74 65 | 72 73 20 52 30 2d 52 39 | registe|rs R0-R9|
|00004350| 20 61 72 65 20 73 65 74 | 20 74 6f 20 74 68 65 20 | are set| to the |
|00004360| 76 61 6c 75 65 73 20 69 | 6e 20 2f 69 6e 2f 2c 20 |values i|n /in/, |
|00004370| 61 6e 64 20 72 65 74 75 | 72 6e 65 64 20 69 6e 20 |and retu|rned in |
|00004380| 2f 6f 75 74 2f 2e 0a 0a | 54 68 69 73 20 6e 6f 72 |/out/...|This nor|
|00004390| 6d 61 6c 6c 79 20 63 61 | 6c 6c 65 73 20 74 68 65 |mally ca|lles the|
|000043a0| 20 58 20 66 6f 72 6d 20 | 6f 66 20 74 68 65 20 53 | X form |of the S|
|000043b0| 57 49 73 20 69 65 20 65 | 72 72 6f 72 73 20 61 72 |WIs ie e|rrors ar|
|000043c0| 65 20 72 65 74 75 72 6e | 65 64 20 62 75 74 20 6e |e return|ed but n|
|000043d0| 6f 74 20 72 65 70 6f 72 | 74 65 64 2e 20 54 6f 20 |ot repor|ted. To |
|000043e0| 63 61 6c 6c 20 74 68 65 | 20 6e 6f 72 6d 61 6c 20 |call the| normal |
|000043f0| 66 6f 72 6d 2c 20 79 6f | 75 20 73 68 6f 75 6c 64 |form, yo|u should|
|00004400| 20 4f 52 20 74 68 65 20 | 53 57 49 20 6e 75 6d 62 | OR the |SWI numb|
|00004410| 65 72 20 77 69 74 68 20 | 3c 5f 6b 65 72 6e 65 6c |er with |<_kernel|
|00004420| 5f 4e 4f 4e 58 3e 2e 00 | 44 41 54 41 ec 01 00 00 |_NONX>..|DATA....|
|00004430| 5f 6b 65 72 6e 65 6c 5f | 73 77 69 5f 63 0a 53 79 |_kernel_|swi_c.Sy|
|00004440| 6e 74 61 78 3a 09 3c 5f | 6b 65 72 6e 65 6c 5f 6f |ntax:.<_|kernel_o|
|00004450| 73 65 72 72 6f 72 3e 20 | 2a 5f 6b 65 72 6e 65 6c |serror> |*_kernel|
|00004460| 5f 73 77 69 5f 63 20 28 | 69 6e 74 20 6e 2c 20 3c |_swi_c (|int n, <|
|00004470| 5f 6b 65 72 6e 65 6c 5f | 73 77 69 5f 72 65 67 73 |_kernel_|swi_regs|
|00004480| 3e 20 2a 69 6e 2c 20 5f | 6b 65 72 6e 65 6c 5f 73 |> *in, _|kernel_s|
|00004490| 77 69 5f 72 65 67 73 20 | 2a 6f 75 74 2c 20 69 6e |wi_regs |*out, in|
|000044a0| 74 20 2a 63 29 3b 0a 48 | 65 61 64 65 72 3a 09 3c |t *c);.H|eader:.<|
|000044b0| 6b 65 72 6e 65 6c 2e 68 | 3d 3e 6b 65 72 6e 65 6c |kernel.h|=>kernel|
|000044c0| 3e 0a 0a 52 65 74 75 72 | 6e 73 3a 09 50 6f 69 6e |>..Retur|ns:.Poin|
|000044d0| 74 65 72 20 74 6f 20 65 | 72 72 6f 72 2c 20 6f 72 |ter to e|rror, or|
|000044e0| 20 3c 4e 55 4c 4c 3e 20 | 69 66 20 6e 6f 6e 65 2e | <NULL> |if none.|
|000044f0| 0a 0a 54 68 69 73 20 66 | 75 6e 63 74 69 6f 6e 20 |..This f|unction |
|00004500| 63 61 6c 6c 73 20 61 20 | 53 57 49 2c 20 77 68 6f |calls a |SWI, who|
|00004510| 73 65 20 6e 75 6d 62 65 | 72 20 69 73 20 67 69 76 |se numbe|r is giv|
|00004520| 65 6e 20 69 6e 20 2f 6e | 2f 2e 20 54 68 65 20 72 |en in /n|/. The r|
|00004530| 65 67 69 73 74 65 72 73 | 20 52 30 2d 52 39 20 61 |egisters| R0-R9 a|
|00004540| 72 65 20 73 65 74 20 74 | 6f 20 74 68 65 20 76 61 |re set t|o the va|
|00004550| 6c 75 65 73 20 69 6e 20 | 2f 69 6e 2f 2c 20 61 6e |lues in |/in/, an|
|00004560| 64 20 72 65 74 75 72 6e | 65 64 20 69 6e 20 2f 6f |d return|ed in /o|
|00004570| 75 74 2f 2e 20 49 6e 20 | 61 64 64 69 74 69 6f 6e |ut/. In |addition|
|00004580| 20 74 68 65 20 63 61 72 | 72 79 20 66 6c 61 67 20 | the car|ry flag |
|00004590| 69 73 20 72 65 74 75 72 | 6e 65 64 20 69 6e 20 74 |is retur|ned in t|
|000045a0| 68 65 20 76 61 72 69 61 | 62 6c 65 20 70 6f 69 6e |he varia|ble poin|
|000045b0| 74 65 64 20 74 6f 20 62 | 79 20 2f 63 2f 2e 0a 0a |ted to b|y /c/...|
|000045c0| 54 68 69 73 20 66 75 6e | 63 74 69 6f 6e 20 69 73 |This fun|ction is|
|000045d0| 20 69 64 65 6e 74 69 63 | 61 6c 20 74 6f 20 3c 5f | identic|al to <_|
|000045e0| 6b 65 72 6e 65 6c 5f 73 | 77 69 3e 2c 20 65 78 63 |kernel_s|wi>, exc|
|000045f0| 65 70 74 20 74 68 61 74 | 20 74 68 65 20 63 61 72 |ept that| the car|
|00004600| 72 79 20 66 6c 61 67 20 | 69 73 20 72 65 74 75 72 |ry flag |is retur|
|00004610| 6e 65 64 2e 44 41 54 41 | f6 00 00 00 5f 6b 65 72 |ned.DATA|...._ker|
|00004620| 6e 65 6c 5f 73 77 69 5f | 72 65 67 73 0a 54 68 65 |nel_swi_|regs.The|
|00004630| 20 74 79 70 65 20 7b 2a | 7d 5f 6b 65 72 6e 65 6c | type {*|}_kernel|
|00004640| 5f 73 77 69 5f 72 65 67 | 73 7b 2a 7d 20 69 73 20 |_swi_reg|s{*} is |
|00004650| 64 65 66 69 6e 65 64 20 | 69 6e 20 3c 6b 65 72 6e |defined |in <kern|
|00004660| 65 6c 2e 68 3d 3e 6b 65 | 72 6e 65 6c 3e 20 61 73 |el.h=>ke|rnel> as|
|00004670| 20 61 6e 20 6f 62 6a 65 | 63 74 20 63 61 70 61 62 | an obje|ct capab|
|00004680| 6c 65 20 6f 66 20 68 6f | 6c 64 69 6e 67 20 74 68 |le of ho|lding th|
|00004690| 65 20 72 65 67 69 73 74 | 65 72 73 20 52 30 2d 52 |e regist|ers R0-R|
|000046a0| 39 20 73 6f 20 74 68 61 | 74 20 74 68 65 79 20 63 |9 so tha|t they c|
|000046b0| 61 6e 20 62 65 20 70 61 | 73 73 65 64 20 74 6f 20 |an be pa|ssed to |
|000046c0| 74 68 65 20 6f 70 65 72 | 61 74 69 6e 67 20 73 79 |the oper|ating sy|
|000046d0| 73 74 65 6d 2e 20 49 74 | 20 69 73 20 64 65 66 69 |stem. It| is defi|
|000046e0| 6e 65 64 20 61 73 20 74 | 68 65 20 73 74 72 75 63 |ned as t|he struc|
|000046f0| 74 75 72 65 3a 0a 0a 5c | 7b 0a 20 20 20 20 69 6e |ture:..\|{. in|
|00004700| 74 20 72 5b 31 30 5d 3b | 0a 7d 00 00 44 41 54 41 |t r[10];|.}..DATA|
|00004710| 95 02 00 00 5f 6b 65 72 | 6e 65 6c 5f 73 79 73 74 |...._ker|nel_syst|
|00004720| 65 6d 0a 53 79 6e 74 61 | 78 3a 09 69 6e 74 20 5f |em.Synta|x:.int _|
|00004730| 6b 65 72 6e 65 6c 5f 73 | 79 73 74 65 6d 20 28 63 |kernel_s|ystem (c|
|00004740| 68 61 72 20 2a 63 6f 6d | 6d 61 6e 64 2c 20 69 6e |har *com|mand, in|
|00004750| 74 20 63 68 61 69 6e 29 | 3b 0a 48 65 61 64 65 72 |t chain)|;.Header|
|00004760| 3a 09 3c 6b 65 72 6e 65 | 6c 2e 68 3d 3e 6b 65 72 |:.<kerne|l.h=>ker|
|00004770| 6e 65 6c 3e 0a 0a 52 65 | 74 75 72 6e 73 3a 09 30 |nel>..Re|turns:.0|
|00004780| 20 69 66 20 73 75 63 63 | 65 73 73 66 75 6c 2c 20 | if succ|essful, |
|00004790| 2d 32 20 69 66 20 4f 53 | 20 65 72 72 6f 72 20 6f |-2 if OS| error o|
|000047a0| 63 63 75 72 73 2e 0a 0a | 54 68 69 73 20 66 75 6e |ccurs...|This fun|
|000047b0| 63 74 69 6f 6e 20 70 61 | 73 73 65 73 20 74 68 65 |ction pa|sses the|
|000047c0| 20 73 74 72 69 6e 67 20 | 67 69 76 65 6e 20 74 6f | string |given to|
|000047d0| 20 74 68 65 20 6f 70 65 | 72 61 74 69 6e 67 20 73 | the ope|rating s|
|000047e0| 79 73 74 65 6d 20 43 4c | 49 20 74 6f 20 62 65 20 |ystem CL|I to be |
|000047f0| 65 78 65 63 75 74 65 64 | 20 61 73 20 69 66 20 69 |executed| as if i|
|00004800| 74 20 68 61 64 20 62 65 | 65 6e 20 74 79 70 65 64 |t had be|en typed|
|00004810| 20 69 6e 20 61 73 20 61 | 20 22 73 74 61 72 20 63 | in as a| "star c|
|00004820| 6f 6d 6d 61 6e 64 22 2e | 20 54 68 65 20 64 69 66 |ommand".| The dif|
|00004830| 66 65 72 65 6e 63 65 20 | 62 65 74 77 65 65 6e 20 |ference |between |
|00004840| 74 68 69 73 20 61 6e 64 | 20 6f 74 68 65 72 20 73 |this and| other s|
|00004850| 69 6d 69 6c 61 72 20 66 | 75 6e 63 74 69 6f 6e 20 |imilar f|unction |
|00004860| 69 73 20 74 68 61 74 20 | 74 68 69 73 20 66 75 6e |is that |this fun|
|00004870| 63 74 69 6f 6e 20 61 6c | 6c 6f 77 73 20 6f 74 68 |ction al|lows oth|
|00004880| 65 72 20 70 72 6f 67 72 | 61 6d 73 20 74 6f 20 62 |er progr|ams to b|
|00004890| 65 20 72 75 6e 2c 20 65 | 69 74 68 65 72 20 61 73 |e run, e|ither as|
|000048a0| 20 61 20 73 75 62 2d 70 | 72 6f 67 72 61 6d 20 74 | a sub-p|rogram t|
|000048b0| 6f 2c 20 6f 72 20 69 6e | 73 74 65 61 64 20 6f 66 |o, or in|stead of|
|000048c0| 20 74 68 65 20 63 75 72 | 72 65 6e 74 20 70 72 6f | the cur|rent pro|
|000048d0| 67 72 61 6d 2e 0a 0a 49 | 66 20 2f 63 68 61 69 6e |gram...I|f /chain|
|000048e0| 2f 20 69 73 20 30 2c 20 | 74 68 65 6e 20 74 68 65 |/ is 0, |then the|
|000048f0| 20 63 6f 6d 6d 61 6e 64 | 20 69 73 20 65 78 65 63 | command| is exec|
|00004900| 75 74 65 64 20 73 6f 20 | 74 68 61 74 20 77 68 65 |uted so |that whe|
|00004910| 6e 20 69 74 20 66 69 6e | 69 73 68 65 73 2c 20 63 |n it fin|ishes, c|
|00004920| 6f 6e 74 72 6f 6c 20 69 | 73 20 70 61 73 73 65 64 |ontrol i|s passed|
|00004930| 20 62 61 63 6b 20 74 6f | 20 74 68 69 73 20 70 72 | back to| this pr|
|00004940| 6f 67 72 61 6d 2e 20 49 | 66 20 2f 63 68 61 69 6e |ogram. I|f /chain|
|00004950| 2f 20 69 73 20 31 2c 20 | 74 68 65 6e 20 74 68 65 |/ is 1, |then the|
|00004960| 20 63 6f 6d 6d 61 6e 64 | 20 69 73 20 65 78 65 63 | command| is exec|
|00004970| 75 74 65 64 20 73 6f 20 | 74 68 61 74 20 69 74 20 |uted so |that it |
|00004980| 63 6f 6d 70 6c 65 74 65 | 6c 79 20 72 65 70 6c 61 |complete|ly repla|
|00004990| 63 65 73 20 74 68 69 73 | 20 70 72 6f 67 72 61 6d |ces this| program|
|000049a0| 2e 00 00 00 44 41 54 41 | 2e 01 00 00 5f 6b 65 72 |....DATA|...._ker|
|000049b0| 6e 65 6c 5f 75 64 69 76 | 0a 53 79 6e 74 61 78 3a |nel_udiv|.Syntax:|
|000049c0| 09 75 6e 73 69 67 6e 65 | 64 20 5f 6b 65 72 6e 65 |.unsigne|d _kerne|
|000049d0| 6c 5f 75 64 69 76 20 28 | 75 6e 73 69 67 6e 65 64 |l_udiv (|unsigned|
|000049e0| 20 78 2c 20 75 6e 73 69 | 67 6e 65 64 20 79 29 3b | x, unsi|gned y);|
|000049f0| 0a 48 65 61 64 65 72 3a | 09 3c 6b 65 72 6e 65 6c |.Header:|.<kernel|
|00004a00| 2e 68 3d 3e 6b 65 72 6e | 65 6c 3e 0a 0a 52 65 74 |.h=>kern|el>..Ret|
|00004a10| 75 72 6e 73 3a 09 54 68 | 65 20 71 75 6f 74 69 65 |urns:.Th|e quotie|
|00004a20| 6e 74 20 6f 66 20 79 2f | 78 2e 0a 0a 54 68 69 73 |nt of y/|x...This|
|00004a30| 20 66 75 6e 63 74 69 6f | 6e 20 63 61 6c 63 75 6c | functio|n calcul|
|00004a40| 61 74 65 73 20 74 68 65 | 20 75 6e 73 69 67 6e 65 |ates the| unsigne|
|00004a50| 64 20 71 75 6f 74 69 65 | 6e 74 20 6f 66 20 79 2f |d quotie|nt of y/|
|00004a60| 78 2e 20 49 74 20 69 73 | 20 69 6e 74 65 6e 64 65 |x. It is| intende|
|00004a70| 64 20 66 6f 72 20 75 73 | 65 20 62 79 20 6e 6f 6e |d for us|e by non|
|00004a80| 2d 43 20 70 72 6f 67 72 | 61 6d 73 20 75 73 69 6e |-C progr|ams usin|
|00004a90| 67 20 74 68 65 20 53 68 | 61 72 65 64 20 43 20 4c |g the Sh|ared C L|
|00004aa0| 69 62 72 61 72 79 2e 20 | 49 6e 20 43 20 79 6f 75 |ibrary. |In C you|
|00004ab0| 20 63 61 6e 20 73 69 6d | 70 6c 79 20 75 73 65 20 | can sim|ply use |
|00004ac0| 74 68 65 20 64 69 76 69 | 73 69 6f 6e 20 73 69 67 |the divi|sion sig|
|00004ad0| 6e 21 00 00 44 41 54 41 | bc 00 00 00 5f 6b 65 72 |n!..DATA|...._ker|
|00004ae0| 6e 65 6c 5f 75 64 69 76 | 31 30 0a 53 79 6e 74 61 |nel_udiv|10.Synta|
|00004af0| 78 3a 09 75 6e 73 69 67 | 6e 65 64 20 5f 6b 65 72 |x:.unsig|ned _ker|
|00004b00| 6e 65 6c 5f 75 64 69 76 | 31 30 20 28 75 6e 73 69 |nel_udiv|10 (unsi|
|00004b10| 67 6e 65 64 20 78 29 3b | 0a 48 65 61 64 65 72 3a |gned x);|.Header:|
|00004b20| 09 3c 6b 65 72 6e 65 6c | 2e 68 3d 3e 6b 65 72 6e |.<kernel|.h=>kern|
|00004b30| 65 6c 3e 0a 0a 52 65 74 | 75 72 6e 73 3a 09 78 20 |el>..Ret|urns:.x |
|00004b40| 64 69 76 69 64 65 64 20 | 62 79 20 31 30 2e 0a 0a |divided |by 10...|
|00004b50| 54 68 69 73 20 66 75 6e | 63 74 69 6f 6e 20 64 69 |This fun|ction di|
|00004b60| 76 69 64 65 73 20 2f 78 | 2f 20 62 79 20 31 30 20 |vides /x|/ by 10 |
|00004b70| 61 6e 64 20 72 65 74 75 | 72 6e 73 20 74 68 65 20 |and retu|rns the |
|00004b80| 75 6e 73 69 67 6e 65 64 | 20 72 65 73 75 6c 74 2e |unsigned| result.|
|00004b90| 44 41 54 41 2d 01 00 00 | 5f 6b 65 72 6e 65 6c 5f |DATA-...|_kernel_|
|00004ba0| 75 6e 77 69 6e 64 0a 53 | 79 6e 74 61 78 3a 09 69 |unwind.S|yntax:.i|
|00004bb0| 6e 74 20 5f 6b 65 72 6e | 65 6c 5f 75 6e 77 69 6e |nt _kern|el_unwin|
|00004bc0| 64 20 28 3c 5f 6b 65 72 | 6e 65 6c 5f 75 6e 77 69 |d (<_ker|nel_unwi|
|00004bd0| 6e 64 62 6c 6f 63 6b 3e | 20 2a 62 6c 6b 2c 20 63 |ndblock>| *blk, c|
|00004be0| 68 61 72 20 2a 2a 6c 61 | 6e 29 3b 0a 48 65 61 64 |har **la|n);.Head|
|00004bf0| 65 72 3a 09 3c 6b 65 72 | 6e 65 6c 2e 68 3d 3e 6b |er:.<ker|nel.h=>k|
|00004c00| 65 72 6e 65 6c 3e 0a 0a | 52 65 74 75 72 6e 73 3a |ernel>..|Returns:|
|00004c10| 09 49 6e 64 69 63 61 74 | 69 6f 6e 20 6f 66 20 73 |.Indicat|ion of s|
|00004c20| 75 63 63 65 73 73 2f 66 | 61 69 6c 75 72 65 2e 0a |uccess/f|ailure..|
|00004c30| 0a 54 68 69 73 20 66 75 | 6e 63 74 69 6f 6e 20 75 |.This fu|nction u|
|00004c40| 6e 77 69 6e 64 73 20 74 | 68 65 20 63 61 6c 6c 20 |nwinds t|he call |
|00004c50| 73 74 61 63 6b 20 6f 6e | 65 20 6c 65 76 65 6c 2e |stack on|e level.|
|00004c60| 20 49 74 20 72 65 74 75 | 72 6e 73 20 6e 65 67 61 | It retu|rns nega|
|00004c70| 74 69 76 65 20 69 66 20 | 69 74 20 73 75 63 63 65 |tive if |it succe|
|00004c80| 65 64 73 2c 20 30 20 69 | 66 20 74 68 65 20 73 74 |eds, 0 i|f the st|
|00004c90| 61 63 6b 20 65 6e 64 20 | 69 73 20 72 65 61 63 68 |ack end |is reach|
|00004ca0| 65 64 2c 20 6f 72 20 70 | 6f 73 69 74 69 76 65 20 |ed, or p|ositive |
|00004cb0| 66 6f 72 20 61 6e 20 65 | 72 72 6f 72 2e 00 00 00 |for an e|rror....|
|00004cc0| 44 41 54 41 c3 00 00 00 | 5f 6b 65 72 6e 65 6c 5f |DATA....|_kernel_|
|00004cd0| 75 6e 77 69 6e 64 62 6c | 6f 63 6b 0a 54 68 69 73 |unwindbl|ock.This|
|00004ce0| 20 74 79 70 65 20 69 73 | 20 64 65 66 69 6e 65 64 | type is| defined|
|00004cf0| 20 69 6e 20 3c 6b 65 72 | 6e 65 6c 2e 68 3d 3e 6b | in <ker|nel.h=>k|
|00004d00| 65 72 6e 65 6c 3e 20 61 | 73 20 74 68 65 20 66 6f |ernel> a|s the fo|
|00004d10| 6c 6c 6f 77 69 6e 67 20 | 73 74 72 75 63 74 75 72 |llowing |structur|
|00004d20| 65 3a 0a 0a 20 20 5c 7b | 0a 20 20 20 20 69 6e 74 |e:.. \{|. int|
|00004d30| 20 72 34 2c 72 35 2c 72 | 36 2c 72 37 2c 72 38 2c | r4,r5,r|6,r7,r8,|
|00004d40| 72 39 3b 0a 20 20 20 20 | 69 6e 74 20 66 70 2c 73 |r9;. |int fp,s|
|00004d50| 70 2c 70 63 2c 73 6c 3b | 0a 20 20 20 20 3c 5f 65 |p,pc,sl;|. <_e|
|00004d60| 78 74 65 6e 64 65 64 5f | 66 70 5f 6e 75 6d 62 65 |xtended_|fp_numbe|
|00004d70| 72 3e 20 66 34 2c 66 35 | 2c 66 36 2c 66 37 3b 0a |r> f4,f5|,f6,f7;.|
|00004d80| 20 20 7d 00 44 41 54 41 | 55 01 00 00 5f 6b 65 72 | }.DATA|U..._ker|
|00004d90| 6e 65 6c 5f 75 72 65 6d | 0a 53 79 6e 74 61 78 3a |nel_urem|.Syntax:|
|00004da0| 09 75 6e 73 69 67 6e 65 | 64 20 5f 6b 65 72 6e 65 |.unsigne|d _kerne|
|00004db0| 6c 5f 75 72 65 6d 20 28 | 75 6e 73 69 67 6e 65 64 |l_urem (|unsigned|
|00004dc0| 20 78 2c 20 75 6e 73 69 | 67 6e 65 64 20 79 29 3b | x, unsi|gned y);|
|00004dd0| 0a 48 65 61 64 65 72 3a | 09 3c 6b 65 72 6e 65 6c |.Header:|.<kernel|
|00004de0| 2e 68 3d 3e 6b 65 72 6e | 65 6c 3e 0a 0a 52 65 74 |.h=>kern|el>..Ret|
|00004df0| 75 72 6e 73 3a 09 54 68 | 65 20 72 65 6d 61 69 6e |urns:.Th|e remain|
|00004e00| 64 65 72 20 6f 66 20 79 | 2f 78 2e 0a 0a 54 68 69 |der of y|/x...Thi|
|00004e10| 73 20 66 75 6e 63 74 69 | 6f 6e 20 63 61 6c 63 75 |s functi|on calcu|
|00004e20| 6c 61 74 65 73 20 74 68 | 65 20 75 6e 73 69 67 6e |lates th|e unsign|
|00004e30| 65 64 20 72 65 6d 61 69 | 6e 64 65 72 20 6f 66 20 |ed remai|nder of |
|00004e40| 79 2f 78 2e 20 46 6f 72 | 6d 61 6c 6c 79 20 74 68 |y/x. For|mally th|
|00004e50| 69 73 20 69 73 20 64 65 | 66 69 6e 65 64 20 61 73 |is is de|fined as|
|00004e60| 20 72 3d 79 2d 28 69 2a | 78 29 2c 20 77 68 65 72 | r=y-(i*|x), wher|
|00004e70| 65 20 2f 72 2f 20 69 73 | 20 74 68 65 20 72 65 6d |e /r/ is| the rem|
|00004e80| 61 69 6e 64 65 72 20 61 | 6e 64 20 2f 69 2f 20 69 |ainder a|nd /i/ i|
|00004e90| 73 20 61 6e 20 69 6e 74 | 65 67 65 72 20 73 75 63 |s an int|eger suc|
|00004ea0| 68 20 74 68 61 74 20 2f | 72 2f 20 68 61 73 20 74 |h that /|r/ has t|
|00004eb0| 68 65 20 73 61 6d 65 20 | 73 69 67 6e 20 61 73 20 |he same |sign as |
|00004ec0| 2f 79 2f 20 61 6e 64 20 | 69 73 20 6c 65 73 73 20 |/y/ and |is less |
|00004ed0| 74 68 61 6e 20 2f 78 2f | 2e 00 00 00 44 41 54 41 |than /x/|....DATA|
|00004ee0| 88 02 00 00 5f 6b 65 72 | 6e 65 6c 5f 72 65 67 69 |...._ker|nel_regi|
|00004ef0| 73 74 65 72 5f 73 6c 6f | 74 65 78 74 65 6e 64 0a |ster_slo|textend.|
|00004f00| 53 79 6e 74 61 78 3a 09 | 3c 5f 6b 65 72 6e 65 6c |Syntax:.|<_kernel|
|00004f10| 5f 45 78 74 65 6e 64 50 | 72 6f 63 3e 20 2a 5f 6b |_ExtendP|roc> *_k|
|00004f20| 65 72 6e 65 6c 5f 72 65 | 67 69 73 74 65 72 5f 73 |ernel_re|gister_s|
|00004f30| 6c 6f 74 65 78 74 65 6e | 64 20 28 5f 6b 65 72 6e |lotexten|d (_kern|
|00004f40| 65 6c 5f 45 78 74 65 6e | 64 50 72 6f 63 20 2a 70 |el_Exten|dProc *p|
|00004f50| 72 6f 63 29 3b 0a 48 65 | 61 64 65 72 3a 09 3c 6b |roc);.He|ader:.<k|
|00004f60| 65 72 6e 65 6c 2e 68 3d | 3e 6b 65 72 6e 65 6c 3e |ernel.h=|>kernel>|
|00004f70| 0a 0a 54 68 69 73 20 66 | 75 6e 63 74 69 6f 6e 20 |..This f|unction |
|00004f80| 72 65 67 69 73 74 65 72 | 73 20 61 20 66 75 6e 63 |register|s a func|
|00004f90| 74 69 6f 6e 20 66 6f 72 | 20 75 73 65 20 62 79 20 |tion for| use by |
|00004fa0| 74 68 65 20 6b 65 72 6e | 65 6c 20 74 6f 20 65 78 |the kern|el to ex|
|00004fb0| 74 65 6e 64 20 69 74 73 | 20 68 65 61 70 2e 20 49 |tend its| heap. I|
|00004fc0| 74 20 69 73 20 6e 6f 72 | 6d 61 6c 6c 79 20 61 62 |t is nor|mally ab|
|00004fd0| 6c 65 20 74 6f 20 64 6f | 20 74 68 69 73 20 61 75 |le to do| this au|
|00004fe0| 74 6f 6d 61 74 69 63 61 | 6c 6c 79 2c 20 62 75 74 |tomatica|lly, but|
|00004ff0| 20 69 66 20 73 6f 6d 65 | 6f 6e 65 20 65 6c 73 65 | if some|one else|
|00005000| 20 68 61 73 20 61 63 71 | 75 69 72 65 64 20 74 68 | has acq|uired th|
|00005010| 65 20 73 70 61 63 65 20 | 69 74 20 77 6f 75 6c 64 |e space |it would|
|00005020| 20 75 73 65 20 69 74 20 | 6e 65 65 64 73 20 74 6f | use it |needs to|
|00005030| 20 62 65 20 61 62 6c 65 | 20 74 6f 20 61 73 6b 20 | be able| to ask |
|00005040| 74 68 61 74 20 73 6f 6d | 65 6f 6e 65 20 65 6c 73 |that som|eone els|
|00005050| 65 20 74 6f 20 67 69 76 | 65 20 69 74 20 73 6f 6d |e to giv|e it som|
|00005060| 65 20 73 70 61 63 65 2e | 20 54 68 61 74 20 69 73 |e space.| That is|
|00005070| 20 77 68 61 74 20 74 68 | 65 20 66 75 6e 63 74 69 | what th|e functi|
|00005080| 6f 6e 20 70 6f 69 6e 74 | 65 64 20 74 6f 20 62 79 |on point|ed to by|
|00005090| 20 2f 70 72 6f 63 2f 20 | 69 73 20 75 73 65 64 20 | /proc/ |is used |
|000050a0| 66 6f 72 2e 20 49 74 20 | 69 73 20 63 61 6c 6c 65 |for. It |is calle|
|000050b0| 64 20 77 69 74 68 20 74 | 68 65 20 61 6d 6f 75 6e |d with t|he amoun|
|000050c0| 74 20 6f 66 20 73 70 61 | 63 65 20 72 65 71 75 69 |t of spa|ce requi|
|000050d0| 72 65 64 20 69 6e 20 62 | 79 74 65 73 20 61 6e 64 |red in b|ytes and|
|000050e0| 20 69 73 20 65 78 70 65 | 63 74 65 64 20 74 6f 20 | is expe|cted to |
|000050f0| 72 65 74 75 72 6e 20 65 | 69 74 68 65 72 20 30 20 |return e|ither 0 |
|00005100| 66 6f 72 20 66 61 69 6c | 75 72 65 20 6f 72 20 74 |for fail|ure or t|
|00005110| 68 65 20 61 6d 6f 75 6e | 74 20 6f 66 20 73 70 61 |he amoun|t of spa|
|00005120| 63 65 20 61 6c 6c 6f 63 | 61 74 65 64 20 28 77 68 |ce alloc|ated (wh|
|00005130| 69 63 68 20 6d 61 79 20 | 62 65 20 6d 6f 72 65 20 |ich may |be more |
|00005140| 74 68 61 6e 20 72 65 71 | 75 65 73 74 65 64 2c 20 |than req|uested, |
|00005150| 62 75 74 20 7b 5f 7d 6e | 6f 74 7b 5f 7d 20 6c 65 |but {_}n|ot{_} le|
|00005160| 73 73 29 2e 44 41 54 41 | f4 01 00 00 5f 6b 65 72 |ss).DATA|...._ker|
|00005170| 6e 65 6c 5f 72 65 67 69 | 73 74 65 72 5f 61 6c 6c |nel_regi|ster_all|
|00005180| 6f 63 73 0a 53 79 6e 74 | 61 78 3a 09 76 6f 69 64 |ocs.Synt|ax:.void|
|00005190| 20 5f 6b 65 72 6e 65 6c | 5f 72 65 67 69 73 74 65 | _kernel|_registe|
|000051a0| 72 5f 61 6c 6c 6f 63 73 | 20 28 3c 61 6c 6c 6f 63 |r_allocs| (<alloc|
|000051b0| 70 72 6f 63 3e 20 2a 6d | 61 6c 6c 6f 63 2c 20 3c |proc> *m|alloc, <|
|000051c0| 66 72 65 65 70 72 6f 63 | 3e 20 2a 66 72 65 65 29 |freeproc|> *free)|
|000051d0| 3b 0a 48 65 61 64 65 72 | 3a 09 3c 6b 65 72 6e 65 |;.Header|:.<kerne|
|000051e0| 6c 2e 68 3d 3e 6b 65 72 | 6e 65 6c 3e 0a 0a 54 68 |l.h=>ker|nel>..Th|
|000051f0| 69 73 20 66 75 6e 63 69 | 6f 6e 20 72 65 67 69 73 |is funci|on regis|
|00005200| 74 65 72 73 20 74 77 6f | 20 70 72 6f 63 65 64 75 |ters two| procedu|
|00005210| 72 65 73 20 77 68 69 63 | 68 20 61 72 65 20 75 73 |res whic|h are us|
|00005220| 65 64 20 62 79 20 74 68 | 65 20 6b 65 72 6e 65 6c |ed by th|e kernel|
|00005230| 20 74 6f 20 63 6c 61 69 | 6d 20 61 6e 64 20 72 65 | to clai|m and re|
|00005240| 6c 65 61 73 65 20 6d 65 | 6d 6f 72 79 2e 20 54 68 |lease me|mory. Th|
|00005250| 65 20 70 72 6f 63 65 64 | 75 72 65 20 67 69 76 65 |e proced|ure give|
|00005260| 6e 20 62 79 20 2f 6d 61 | 6c 6c 6f 63 2f 20 69 73 |n by /ma|lloc/ is|
|00005270| 20 75 73 65 64 20 66 6f | 72 20 63 6c 61 69 6d 69 | used fo|r claimi|
|00005280| 6e 67 20 6d 65 6d 6f 72 | 79 20 61 6e 64 20 2f 66 |ng memor|y and /f|
|00005290| 72 65 65 2f 20 69 73 20 | 75 73 65 64 20 66 6f 72 |ree/ is |used for|
|000052a0| 20 72 65 6c 65 61 73 69 | 6e 67 20 70 72 65 76 69 | releasi|ng previ|
|000052b0| 6f 75 73 6c 79 20 63 6c | 61 69 6d 65 64 20 6d 65 |ously cl|aimed me|
|000052c0| 6d 6f 72 79 2e 0a 0a 54 | 68 65 20 70 72 6f 63 65 |mory...T|he proce|
|000052d0| 64 75 72 65 20 75 73 65 | 64 20 66 6f 72 20 63 6c |dure use|d for cl|
|000052e0| 61 69 6d 69 6e 67 20 6d | 65 6d 6f 72 79 20 6d 75 |aiming m|emory mu|
|000052f0| 73 74 20 6e 6f 74 20 75 | 73 65 20 6d 6f 72 65 20 |st not u|se more |
|00005300| 74 68 61 6e 20 34 31 20 | 77 6f 72 64 73 20 6f 66 |than 41 |words of|
|00005310| 20 73 74 61 63 6b 20 28 | 6f 6e 65 20 6c 65 73 73 | stack (|one less|
|00005320| 20 74 68 61 6e 20 74 68 | 65 20 4d 65 61 6e 69 6e | than th|e Meanin|
|00005330| 67 20 6f 66 20 4c 69 66 | 65 2c 20 74 68 65 20 55 |g of Lif|e, the U|
|00005340| 6e 69 76 65 72 73 65 20 | 61 6e 64 20 45 76 65 72 |niverse |and Ever|
|00005350| 79 74 68 69 6e 67 29 2e | 44 41 54 41 c4 43 00 00 |ything).|DATA.C..|
|00005360| 06 00 00 00 10 00 00 00 | c0 43 00 00 0c 07 00 00 |........|.C......|
|00005370| 21 63 3f 00 00 00 00 00 | 00 00 00 00 05 00 00 00 |!c?.....|........|
|00005380| 21 00 00 00 00 00 00 00 | 0f 00 00 00 ac 00 00 00 |!.......|........|
|00005390| dc 03 00 00 1b 00 00 00 | 10 ff ff ff 10 ff ff ff |........|........|
|000053a0| 10 dd dd dd 10 dd dd dd | 10 bb bb bb 10 bb bb bb |........|........|
|000053b0| 10 99 99 99 10 99 99 99 | 10 77 77 77 10 77 77 77 |........|.www.www|
|000053c0| 10 55 55 55 10 55 55 55 | 10 33 33 33 10 33 33 33 |.UUU.UUU|.333.333|
|000053d0| 10 00 00 00 10 00 00 00 | 10 00 44 99 10 00 44 99 |........|..D...D.|
|000053e0| 10 ee ee 00 10 ee ee 00 | 10 00 cc 00 10 00 cc 00 |........|........|
|000053f0| 10 dd 00 00 10 dd 00 00 | 10 ee ee bb 10 ee ee bb |........|........|
|00005400| 10 55 88 00 10 55 88 00 | 10 ff bb 00 10 ff bb 00 |.U...U..|........|
|00005410| 10 00 bb ff 10 00 bb ff | 11 11 11 11 11 42 65 57 |........|.....BeW|
|00005420| 24 11 11 11 11 11 11 11 | 11 11 11 11 11 11 00 00 |$.......|........|
|00005430| 11 11 11 11 42 77 77 77 | 67 12 11 11 11 11 11 11 |....Bwww|g.......|
|00005440| 11 11 11 11 11 11 00 00 | 11 11 11 31 76 77 77 77 |........|...1vwww|
|00005450| 77 17 11 11 11 11 11 11 | 11 11 11 11 11 11 00 00 |w.......|........|
|00005460| 11 11 11 74 77 77 77 77 | 77 47 11 11 11 11 11 11 |...twwww|wG......|
|00005470| 12 12 11 11 11 11 00 00 | 11 11 11 77 77 77 77 77 |........|...wwwww|
|00005480| 77 67 11 11 11 11 32 44 | 55 55 45 24 12 11 00 00 |wg....2D|UUE$....|
|00005490| 11 11 62 77 77 77 77 77 | 77 67 12 11 11 43 35 34 |..bwwwww|wg...C54|
|000054a0| 54 55 55 55 25 11 00 00 | 11 11 75 77 77 77 77 77 |TUUU%...|..uwwwww|
|000054b0| 77 77 12 11 42 55 55 12 | 31 55 55 55 55 13 00 00 |ww..BUU.|1UUUU...|
|000054c0| 11 21 77 77 77 77 77 77 | 77 77 13 21 55 55 55 45 |.!wwwwww|ww.!UUUE|
|000054d0| 11 55 55 55 55 35 00 00 | 11 61 77 77 77 67 65 77 |.UUUU5..|.awwwgew|
|000054e0| 77 77 12 51 55 55 55 55 | 12 53 55 55 55 45 00 00 |ww.QUUUU|.SUUUE..|
|000054f0| 11 72 77 77 77 26 61 77 | 77 77 11 54 55 55 55 55 |.rwww&aw|ww.TUUUU|
|00005500| 12 53 55 55 55 45 00 00 | 11 76 77 77 77 13 63 77 |.SUUUE..|.vwww.cw|
|00005510| 77 57 11 54 55 55 55 55 | 11 54 55 55 55 45 00 00 |wW.TUUUU|.TUUUE..|
|00005520| 21 76 77 77 67 11 75 77 | 77 26 11 54 55 55 55 45 |!vwwg.uw|w&.TUUUE|
|00005530| 11 55 55 55 55 35 00 00 | 31 77 77 77 27 11 41 44 |.UUUU5..|1www'.AD|
|00005540| 34 11 11 53 55 55 55 15 | 31 55 55 55 55 14 00 00 |4..SUUU.|1UUUU...|
|00005550| 61 77 77 77 17 11 11 11 | 11 11 11 42 55 55 45 11 |awww....|...BUUE.|
|00005560| 51 55 55 55 55 11 00 00 | 71 77 77 77 15 11 11 11 |QUUUU...|qwww....|
|00005570| 11 11 11 11 33 34 12 11 | 53 55 55 55 24 11 00 00 |....34..|SUUU$...|
|00005580| 72 77 77 77 13 11 11 11 | 11 11 11 11 11 11 11 21 |rwww....|.......!|
|00005590| 55 55 55 35 11 11 00 00 | 74 77 77 77 12 11 11 11 |UUU5....|twww....|
|000055a0| 11 11 11 11 11 11 11 41 | 55 55 34 11 11 11 00 00 |.......A|UU4.....|
|000055b0| 75 77 77 67 11 11 11 11 | 11 11 11 11 11 11 11 53 |uwwg....|.......S|
|000055c0| 45 13 11 11 11 11 00 00 | 74 77 77 67 11 11 11 11 |E.......|twwg....|
|000055d0| 11 11 11 11 11 11 21 54 | 13 11 11 11 11 11 00 00 |......!T|........|
|000055e0| 76 77 77 67 11 11 21 12 | 11 11 11 11 11 11 31 25 |vwwg..!.|......1%|
|000055f0| 11 11 11 11 11 11 00 00 | 77 77 77 47 11 41 76 67 |........|wwwG.Avg|
|00005600| 14 11 11 11 11 11 41 14 | 11 11 11 11 11 11 00 00 |......A.|........|
|00005610| 77 77 77 37 11 74 77 77 | 27 11 11 11 11 11 52 12 |www7.tww|'.....R.|
|00005620| 11 11 11 11 11 11 00 00 | 77 77 77 37 21 76 77 77 |........|www7!vww|
|00005630| 27 11 11 11 11 11 32 11 | 11 11 11 11 11 11 00 00 |'.....2.|........|
|00005640| 77 77 77 37 41 77 77 77 | 26 11 11 11 21 43 54 44 |www7Awww|&...!CTD|
|00005650| 12 11 11 11 11 11 00 00 | 77 77 77 67 72 77 77 77 |........|wwwgrwww|
|00005660| 16 11 11 11 53 55 55 55 | 25 11 11 11 11 11 00 00 |....SUUU|%.......|
|00005670| 77 77 77 77 77 77 77 77 | 13 11 11 31 55 55 55 55 |wwwwwwww|...1UUUU|
|00005680| 55 11 11 11 11 11 00 00 | 75 77 77 77 77 77 77 77 |U.......|uwwwwwww|
|00005690| 12 11 11 52 55 55 55 55 | 55 11 11 11 11 11 00 00 |...RUUUU|U.......|
|000056a0| 75 77 77 77 77 77 77 47 | 11 11 11 53 55 55 55 55 |uwwwwwwG|...SUUUU|
|000056b0| 55 11 11 11 11 11 00 00 | 73 77 77 77 77 77 77 17 |U.......|swwwwww.|
|000056c0| 11 11 11 53 55 55 55 55 | 35 11 11 11 11 11 00 00 |...SUUUU|5.......|
|000056d0| 62 77 77 77 77 77 77 13 | 11 11 11 53 55 55 55 55 |bwwwwww.|...SUUUU|
|000056e0| 14 11 11 11 11 11 00 00 | 61 77 77 77 77 77 57 11 |........|awwwwwW.|
|000056f0| 11 11 11 31 55 55 55 35 | 11 11 11 11 11 11 00 00 |...1UUU5|........|
|00005700| 21 76 77 77 77 77 13 11 | 11 11 11 11 43 54 33 11 |!vwwww..|....CT3.|
|00005710| 11 11 11 11 11 11 00 00 | 11 64 77 77 77 25 11 11 |........|.dwww%..|
|00005720| 11 11 11 11 11 11 11 11 | 11 11 11 11 11 11 00 00 |........|........|
|00005730| 11 21 75 77 25 11 11 11 | 11 11 11 11 11 11 11 11 |.!uw%...|........|
|00005740| 11 11 11 11 11 11 00 00 | 00 00 00 00 00 ff ff ff |........|........|
|00005750| ff 00 00 00 00 00 00 00 | 00 00 00 00 00 00 ff ff |........|........|
|00005760| 00 00 00 00 ff ff ff ff | ff 0f 00 00 00 00 00 00 |........|........|
|00005770| 00 00 00 00 00 00 ff ff | 00 00 00 f0 ff ff ff ff |........|........|
|00005780| ff 0f 00 00 00 00 00 00 | 00 00 00 00 00 00 ff ff |........|........|
|00005790| 00 00 00 ff ff ff ff ff | ff ff 00 00 00 00 00 00 |........|........|
|000057a0| 0f 0f 00 00 00 00 ff ff | 00 00 00 ff ff ff ff ff |........|........|
|000057b0| ff ff 00 00 00 00 ff ff | ff ff ff ff 0f 00 ff ff |........|........|
|000057c0| 00 00 ff ff ff ff ff ff | ff ff 0f 00 00 ff ff ff |........|........|
|000057d0| ff ff ff ff ff 00 ff ff | 00 00 ff ff ff ff ff ff |........|........|
|000057e0| ff ff 0f 00 ff ff ff 0f | f0 ff ff ff ff 0f ff ff |........|........|
|000057f0| 00 f0 ff ff ff ff ff ff | ff ff 0f f0 ff ff ff ff |........|........|
|00005800| 00 ff ff ff ff ff ff ff | 00 f0 ff ff ff ff ff ff |........|........|
|00005810| ff ff 0f f0 ff ff ff ff | 0f ff ff ff ff ff ff ff |........|........|
|00005820| 00 ff ff ff ff ff f0 ff | ff ff 00 ff ff ff ff ff |........|........|
|00005830| 0f ff ff ff ff ff ff ff | 00 ff ff ff ff 0f ff ff |........|........|
|00005840| ff ff 00 ff ff ff ff ff | 00 ff ff ff ff ff ff ff |........|........|
|00005850| f0 ff ff ff ff 00 ff ff | ff ff 00 ff ff ff ff ff |........|........|
|00005860| 00 ff ff ff ff ff ff ff | f0 ff ff ff ff 00 f0 ff |........|........|
|00005870| ff 00 00 ff ff ff ff 0f | f0 ff ff ff ff 0f ff ff |........|........|
|00005880| f0 ff ff ff 0f 00 00 00 | 00 00 00 ff ff ff ff 00 |........|........|
|00005890| f0 ff ff ff ff 00 ff ff | f0 ff ff ff 0f 00 00 00 |........|........|
|000058a0| 00 00 00 00 ff ff 0f 00 | ff ff ff ff ff 00 ff ff |........|........|
|000058b0| ff ff ff ff 0f 00 00 00 | 00 00 00 00 00 00 00 f0 |........|........|
|000058c0| ff ff ff ff 00 00 ff ff | ff ff ff ff 0f 00 00 00 |........|........|
|000058d0| 00 00 00 00 00 00 00 f0 | ff ff ff 00 00 00 ff ff |........|........|
|000058e0| ff ff ff ff 00 00 00 00 | 00 00 00 00 00 00 00 ff |........|........|
|000058f0| ff 0f 00 00 00 00 ff ff | ff ff ff ff 00 00 00 00 |........|........|
|00005900| 00 00 00 00 00 00 f0 ff | 0f 00 00 00 00 00 ff ff |........|........|
|00005910| ff ff ff ff 00 00 f0 0f | 00 00 00 00 00 00 f0 ff |........|........|
|00005920| 00 00 00 00 00 00 ff ff | ff ff ff ff 00 f0 ff ff |........|........|
|00005930| 0f 00 00 00 00 00 f0 0f | 00 00 00 00 00 00 ff ff |........|........|
|00005940| ff ff ff ff 00 ff ff ff | ff 00 00 00 00 00 ff 0f |........|........|
|00005950| 00 00 00 00 00 00 ff ff | ff ff ff ff f0 ff ff ff |........|........|
|00005960| ff 00 00 00 00 00 ff 00 | 00 00 00 00 00 00 ff ff |........|........|
|00005970| ff ff ff ff f0 ff ff ff | ff 00 00 00 f0 ff ff ff |........|........|
|00005980| 0f 00 00 00 00 00 ff ff | ff ff ff ff ff ff ff ff |........|........|
|00005990| 0f 00 00 00 ff ff ff ff | ff 00 00 00 00 00 ff ff |........|........|
|000059a0| ff ff ff ff ff ff ff ff | 0f 00 00 f0 ff ff ff ff |........|........|
|000059b0| ff 00 00 00 00 00 ff ff | ff ff ff ff ff ff ff ff |........|........|
|000059c0| 0f 00 00 ff ff ff ff ff | ff 00 00 00 00 00 ff ff |........|........|
|000059d0| ff ff ff ff ff ff ff ff | 00 00 00 ff ff ff ff ff |........|........|
|000059e0| ff 00 00 00 00 00 ff ff | ff ff ff ff ff ff ff 0f |........|........|
|000059f0| 00 00 00 ff ff ff ff ff | ff 00 00 00 00 00 ff ff |........|........|
|00005a00| ff ff ff ff ff ff ff 0f | 00 00 00 ff ff ff ff ff |........|........|
|00005a10| 0f 00 00 00 00 00 ff ff | f0 ff ff ff ff ff ff 00 |........|........|
|00005a20| 00 00 00 f0 ff ff ff ff | 00 00 00 00 00 00 ff ff |........|........|
|00005a30| f0 ff ff ff ff ff 0f 00 | 00 00 00 00 ff ff ff 00 |........|........|
|00005a40| 00 00 00 00 00 00 ff ff | 00 ff ff ff ff ff 00 00 |........|........|
|00005a50| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 ff ff |........|........|
|00005a60| 00 f0 ff ff ff 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005a70| 00 00 00 00 00 00 ff ff | 54 03 00 00 21 64 65 73 |........|T...!des|
|00005a80| 6b 6c 69 62 00 00 00 00 | 04 00 00 00 21 00 00 00 |klib....|....!...|
|00005a90| 00 00 00 00 07 00 00 00 | ac 00 00 00 ac 00 00 00 |........|........|
|00005aa0| 1f 00 00 00 00 ff ff ff | 00 ff ff ff 00 dd dd dd |........|........|
|00005ab0| 00 dd dd dd 00 bb bb bb | 00 bb bb bb 00 99 99 99 |........|........|
|00005ac0| 00 99 99 99 00 77 77 77 | 00 77 77 77 00 55 55 55 |.....www|.www.UUU|
|00005ad0| 00 55 55 55 00 33 33 33 | 00 33 33 33 00 00 00 00 |.UUU.333|.333....|
|00005ae0| 00 00 00 00 00 00 44 99 | 00 00 44 99 00 ee ee 00 |......D.|..D.....|
|00005af0| 00 ee ee 00 00 00 cc 00 | 00 00 cc 00 00 dd 00 00 |........|........|
|00005b00| 00 dd 00 00 00 ee ee bb | 00 ee ee bb 00 55 88 00 |........|.....U..|
|00005b10| 00 55 88 00 00 ff bb 00 | 00 ff bb 00 00 00 bb ff |.U......|........|
|00005b20| 00 00 bb ff 00 00 00 00 | 00 30 00 00 03 00 00 00 |........|.0......|
|00005b30| 00 00 00 ee ee 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005b40| 03 00 00 00 00 00 e0 ee | be 00 00 00 03 00 03 33 |........|.......3|
|00005b50| 00 33 00 33 03 00 30 33 | 30 03 ee ee eb 00 00 00 |.3.3..03|0.......|
|00005b60| 30 30 30 00 03 30 30 00 | 03 00 30 00 03 e0 ee be |000..00.|..0.....|
|00005b70| be 00 00 00 30 30 30 00 | 03 30 30 00 03 00 30 00 |....000.|.00...0.|
|00005b80| 03 ee ee eb eb 00 00 00 | 00 03 30 00 03 30 30 00 |........|..0..00.|
|00005b90| 03 00 30 00 e3 ee be be | be 00 00 00 00 03 00 33 |..0.....|.......3|
|00005ba0| 00 30 00 33 03 00 30 00 | ee ee eb eb eb 00 00 00 |.0.3..0.|........|
|00005bb0| 00 00 00 00 00 00 00 00 | 00 00 00 e0 ee be be be |........|........|
|00005bc0| be 00 00 00 00 03 00 00 | 00 00 00 00 00 00 00 ee |........|........|
|00005bd0| ee eb eb eb bb 00 00 00 | 30 00 00 00 00 00 00 00 |........|0.......|
|00005be0| 00 00 e0 ee be be be be | bb 00 00 00 30 00 00 00 |........|....0...|
|00005bf0| 00 00 00 00 00 00 ee ee | eb eb eb bb bb 00 00 00 |........|........|
|00005c00| 30 00 00 00 00 00 00 00 | 00 e0 ee be be be be bb |0.......|........|
|00005c10| bb 00 00 00 03 00 00 00 | 00 00 00 00 00 ee ee eb |........|........|
|00005c20| eb eb bb bb 1b 00 00 00 | 30 00 00 00 00 00 00 00 |........|0.......|
|00005c30| e0 ee be be be be bb bb | 11 00 00 00 30 00 00 00 |........|....0...|
|00005c40| 00 00 00 00 ee ee eb eb | eb bb bb 1b 01 00 00 00 |........|........|
|00005c50| 30 00 00 00 00 00 00 e0 | ee be be be be bb bb 11 |0.......|........|
|00005c60| 00 00 00 00 00 03 00 00 | 00 00 00 ee ee eb eb eb |........|........|
|00005c70| bb bb 1b 01 00 00 00 00 | 00 00 00 00 00 00 e0 ee |........|........|
|00005c80| be be be be bb bb 11 00 | 30 00 00 00 00 00 00 00 |........|0.......|
|00005c90| 00 00 ee ee eb eb eb bb | bb 1b 01 00 03 00 00 00 |........|........|
|00005ca0| 00 00 30 00 00 e0 ee be | be be be bb bb 15 00 00 |..0.....|........|
|00005cb0| 03 00 00 00 00 00 00 03 | 03 e3 ee eb eb eb bb bb |........|........|
|00005cc0| 1b 51 00 00 03 00 00 00 | 00 00 00 03 03 9e 99 be |.Q......|........|
|00005cd0| be be bb bb 55 33 00 00 | 03 00 00 00 00 00 00 30 |....U3..|.......0|
|00005ce0| 30 9e 9c eb eb bb bb 1b | 05 00 00 00 03 00 00 00 |0.......|........|
|00005cf0| 00 00 00 30 e0 c9 99 be | be bb bb 15 30 03 00 00 |...0....|....0...|
|00005d00| 30 00 00 00 00 00 00 00 | e0 99 ee ee be bb 1b 01 |0.......|........|
|00005d10| 00 00 00 00 00 00 00 00 | 00 00 00 00 9e e9 ee ee |........|........|
|00005d20| be bb 11 00 00 00 00 00 | 00 00 00 00 00 00 30 33 |........|......03|
|00005d30| 99 ee 2e 2e be 1b 01 00 | 00 30 00 00 00 00 00 00 |........|.0......|
|00005d40| 00 00 30 40 e9 e2 e2 23 | e3 11 00 00 00 30 00 00 |..0@...#|.....0..|
|00005d50| 00 00 00 00 00 00 30 40 | 44 3e 3e 2e 51 05 30 33 |......0@|D>>.Q.03|
|00005d60| 00 33 03 00 00 00 00 00 | 00 00 30 42 77 e3 52 11 |.3......|..0Bw.R.|
|00005d70| 05 30 30 00 03 30 00 00 | 00 00 00 00 00 00 30 70 |.00..0..|......0p|
|00005d80| 27 51 51 00 33 33 30 00 | 03 30 00 00 00 00 00 00 |'QQ.330.|.0......|
|00005d90| 00 00 30 00 11 00 03 00 | 03 00 30 00 03 30 00 00 |..0.....|..0..0..|
|00005da0| 00 00 00 00 00 00 30 33 | 03 00 03 00 30 03 30 00 |......03|....0.0.|
|00005db0| 03 00 03 33 33 00 00 00 | 00 00 00 00 00 00 00 00 |...33...|........|
|00005dc0| 00 00 00 00 00 00 00 00 | 00 00 00 00 fc 05 00 00 |........|........|
|00005dd0| 21 65 61 73 79 63 00 00 | 00 00 00 00 04 00 00 00 |!easyc..|........|
|00005de0| 21 00 00 00 00 00 00 00 | 07 00 00 00 ac 00 00 00 |!.......|........|
|00005df0| 54 03 00 00 1b 00 00 00 | 00 ff ff ff 00 ff ff ff |T.......|........|
|00005e00| 00 dd dd dd 00 dd dd dd | 00 bb bb bb 00 bb bb bb |........|........|
|00005e10| 00 99 99 99 00 99 99 99 | 00 77 77 77 00 77 77 77 |........|.www.www|
|00005e20| 00 55 55 55 00 55 55 55 | 00 33 33 33 00 33 33 33 |.UUU.UUU|.333.333|
|00005e30| 00 00 00 00 00 00 00 00 | 00 00 44 99 00 00 44 99 |........|..D...D.|
|00005e40| 00 ee ee 00 00 ee ee 00 | 00 00 cc 00 00 00 cc 00 |........|........|
|00005e50| 00 dd 00 00 00 dd 00 00 | 00 ee ee bb 00 ee ee bb |........|........|
|00005e60| 00 55 88 00 00 55 88 00 | 00 ff bb 00 00 ff bb 00 |.U...U..|........|
|00005e70| 00 00 bb ff 00 00 bb ff | 00 00 00 00 00 00 20 54 |........|...... T|
|00005e80| 56 44 13 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |VD......|........|
|00005e90| 00 53 77 67 66 77 77 57 | 02 00 00 00 00 00 00 00 |.SwgfwwW|........|
|00005ea0| 00 00 00 00 62 67 f8 ff | ff ff 8f 78 67 01 00 00 |....bg..|...xg...|
|00005eb0| 00 00 00 00 00 00 00 50 | 67 ff ff ff ff ff ff ff |.......P|g.......|
|00005ec0| 78 37 00 00 00 00 00 00 | 00 00 10 76 f8 ff ff ff |x7......|...v....|
|00005ed0| ff ff ff ff ff 78 03 00 | 00 00 00 00 00 00 60 f7 |.....x..|......`.|
|00005ee0| ff ff ff ff ff ff ff ff | ff 8f 37 00 00 00 00 00 |........|..7.....|
|00005ef0| 00 00 76 ff ff ff ff ff | ff ff ff ff ff ff 78 02 |..v.....|......x.|
|00005f00| 00 00 00 00 00 30 f7 ff | ff ff ff ff ff ff ff ff |.....0..|........|
|00005f10| ff ff 6f 17 00 00 00 00 | 00 71 f8 ff ff ff ff 88 |..o.....|.q......|
|00005f20| 88 88 ff ff ff ff ff 57 | 00 00 00 00 00 76 ff ff |.......W|.....v..|
|00005f30| ff ff 8f 77 77 77 87 ff | ff ff ff 78 01 00 00 00 |...www..|...x....|
|00005f40| 10 87 ff ff ff ff 78 23 | 00 00 73 f8 ff ff ff 7f |......x#|..s.....|
|00005f50| 04 00 00 00 30 f7 ff ff | ff ff 37 00 00 00 30 87 |....0...|..7...0.|
|00005f60| ff ff ff 8f 06 00 00 00 | 50 f6 ff ff ff 8f 07 00 |........|P.......|
|00005f70| 00 00 00 87 ff ff ff ff | 07 00 00 00 70 f8 ff ff |........|....p...|
|00005f80| ff 6f 05 00 00 00 00 76 | 77 77 77 77 07 00 00 00 |.o.....v|wwww....|
|00005f90| 71 f8 ff ff ff 7f 04 00 | 00 00 00 44 44 44 44 44 |q.......|...DDDDD|
|00005fa0| 04 00 00 00 72 ff ff ff | ff 7f 03 00 00 00 00 00 |....r...|........|
|00005fb0| 00 00 00 00 00 00 00 00 | 72 ff ff ff ff 7f 02 00 |........|r.......|
|00005fc0| 00 00 00 00 00 00 00 00 | 00 00 00 00 72 ff ff ff |........|....r...|
|00005fd0| ff 7f 02 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005fe0| 72 ff ff ff ff 7f 03 00 | 00 00 00 00 00 00 00 00 |r.......|........|
|00005ff0| 00 00 00 00 71 f8 ff ff | ff 7f 04 00 00 00 00 44 |....q...|.......D|
|00006000| 44 44 44 44 04 00 00 00 | 71 f8 ff ff ff 7f 05 00 |DDDD....|q.......|
|00006010| 00 00 00 76 77 77 77 77 | 17 00 00 00 60 f7 ff ff |...vwwww|....`...|
|00006020| ff 8f 07 00 00 00 00 87 | ff ff ff ff 07 00 00 00 |........|........|
|00006030| 30 f7 ff ff ff ff 37 00 | 00 00 30 f7 ff ff ff 8f |0.....7.|..0.....|
|00006040| 06 00 00 00 00 87 ff ff | ff ff 78 03 00 00 63 f8 |........|..x...c.|
|00006050| ff ff ff 7f 04 00 00 00 | 10 76 ff ff ff ff 8f 77 |........|.v.....w|
|00006060| 77 77 86 ff ff ff ff 78 | 01 00 00 00 00 71 f8 ff |ww.....x|.....q..|
|00006070| ff ff ff 88 88 88 ff ff | ff ff ff 67 00 00 00 00 |........|...g....|
|00006080| 00 31 f7 ff ff ff ff ff | ff ff ff ff ff ff 7f 17 |.1......|........|
|00006090| 00 00 00 00 00 31 77 ff | ff ff ff ff ff ff ff ff |.....1w.|........|
|000060a0| ff ff 78 02 00 00 00 00 | 00 00 77 f7 ff ff ff ff |..x.....|..w.....|
|000060b0| ff ff ff ff ff 8f 37 01 | 00 00 00 00 00 00 10 77 |......7.|.......w|
|000060c0| f8 ff ff ff ff ff ff ff | ff 78 03 00 00 00 00 00 |........|.x......|
|000060d0| 00 00 00 75 76 ff ff ff | ff ff ff ff 78 37 00 00 |...uv...|....x7..|
|000060e0| 00 00 00 00 00 00 00 20 | 72 77 f8 ff ff ff 8f 78 |....... |rw.....x|
|000060f0| 77 01 00 00 00 00 00 00 | 00 00 00 00 40 73 77 77 |w.......|....@sww|
|00006100| 77 77 77 77 03 00 00 00 | 00 00 00 00 00 00 00 00 |wwww....|........|
|00006110| 00 10 23 74 77 44 13 03 | 00 00 00 00 00 00 00 00 |..#twD..|........|
|00006120| 00 00 00 00 00 00 f0 ff | ff ff ff 00 00 00 00 00 |........|........|
|00006130| 00 00 00 00 00 00 00 00 | 00 ff ff ff ff ff ff ff |........|........|
|00006140| 0f 00 00 00 00 00 00 00 | 00 00 00 00 ff ff ff ff |........|........|
|00006150| ff ff ff ff ff 0f 00 00 | 00 00 00 00 00 00 00 f0 |........|........|
|00006160| ff ff ff ff ff ff ff ff | ff ff 00 00 00 00 00 00 |........|........|
|00006170| 00 00 f0 ff ff ff ff ff | ff ff ff ff ff ff 0f 00 |........|........|
|00006180| 00 00 00 00 00 00 f0 ff | ff ff ff ff ff ff ff ff |........|........|
|00006190| ff ff ff 00 00 00 00 00 | 00 00 ff ff ff ff ff ff |........|........|
|000061a0| ff ff ff ff ff ff ff 0f | 00 00 00 00 00 f0 ff ff |........|........|
|000061b0| ff ff ff ff ff ff ff ff | ff ff ff ff 00 00 00 00 |........|........|
|000061c0| 00 ff ff ff ff ff ff ff | ff ff ff ff ff ff ff ff |........|........|
|000061d0| 00 00 00 00 00 ff ff ff | ff ff ff ff ff ff ff ff |........|........|
|000061e0| ff ff ff ff 0f 00 00 00 | f0 ff ff ff ff ff ff 0f |........|........|
|000061f0| 00 00 ff ff ff ff ff ff | 0f 00 00 00 f0 ff ff ff |........|........|
|00006200| ff ff ff 00 00 00 f0 ff | ff ff ff ff 0f 00 00 00 |........|........|
|00006210| f0 ff ff ff ff ff 0f 00 | 00 00 00 ff ff ff ff ff |........|........|
|00006220| 0f 00 00 00 f0 ff ff ff | ff ff 0f 00 00 00 00 ff |........|........|
|00006230| ff ff ff ff 0f 00 00 00 | ff ff ff ff ff ff 0f 00 |........|........|
|00006240| 00 00 00 ff ff ff ff ff | 0f 00 00 00 ff ff ff ff |........|........|
|00006250| ff ff 0f 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00006260| ff ff ff ff ff ff 0f 00 | 00 00 00 00 00 00 00 00 |........|........|
|00006270| 00 00 00 00 ff ff ff ff | ff ff 0f 00 00 00 00 00 |........|........|
|00006280| 00 00 00 00 00 00 00 00 | ff ff ff ff ff ff 0f 00 |........|........|
|00006290| 00 00 00 00 00 00 00 00 | 00 00 00 00 ff ff ff ff |........|........|
|000062a0| ff ff 0f 00 00 00 00 ff | ff ff ff ff 0f 00 00 00 |........|........|
|000062b0| f0 ff ff ff ff ff 0f 00 | 00 00 00 ff ff ff ff ff |........|........|
|000062c0| 0f 00 00 00 f0 ff ff ff | ff ff 0f 00 00 00 00 ff |........|........|
|000062d0| ff ff ff ff 0f 00 00 00 | f0 ff ff ff ff ff ff 00 |........|........|
|000062e0| 00 00 f0 ff ff ff ff ff | 0f 00 00 00 f0 ff ff ff |........|........|
|000062f0| ff ff ff 0f 00 00 ff ff | ff ff ff ff 0f 00 00 00 |........|........|
|00006300| 00 ff ff ff ff ff ff ff | ff ff ff ff ff ff ff ff |........|........|
|00006310| 0f 00 00 00 00 ff ff ff | ff ff ff ff ff ff ff ff |........|........|
|00006320| ff ff ff ff 00 00 00 00 | 00 f0 ff ff ff ff ff ff |........|........|
|00006330| ff ff ff ff ff ff ff ff | 00 00 00 00 00 00 ff ff |........|........|
|00006340| ff ff ff ff ff ff ff ff | ff ff ff 0f 00 00 00 00 |........|........|
|00006350| 00 00 f0 ff ff ff ff ff | ff ff ff ff ff ff ff 00 |........|........|
|00006360| 00 00 00 00 00 00 f0 ff | ff ff ff ff ff ff ff ff |........|........|
|00006370| ff ff 0f 00 00 00 00 00 | 00 00 00 f0 ff ff ff ff |........|........|
|00006380| ff ff ff ff ff ff 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00006390| ff ff ff ff ff ff ff ff | ff 0f 00 00 00 00 00 00 |........|........|
|000063a0| 00 00 00 00 00 ff ff ff | ff ff ff ff 0f 00 00 00 |........|........|
|000063b0| 00 00 00 00 00 00 00 00 | 00 00 f0 ff ff ff ff 00 |........|........|
|000063c0| 00 00 00 00 00 00 00 00 | d4 02 00 00 21 61 6e 73 |........|....!ans|
|000063d0| 69 63 00 00 00 00 00 00 | 04 00 00 00 10 00 00 00 |ic......|........|
|000063e0| 00 00 00 00 07 00 00 00 | 2c 00 00 00 80 01 00 00 |........|,.......|
|000063f0| 0c 00 00 00 00 20 00 95 | be be 7b 00 40 33 07 00 |..... ..|..{.@3..|
+--------+-------------------------+-------------------------+--------+--------+
Only 25.0 KB of data is shown above.