home *** CD-ROM | disk | FTP | other *** search
/ BBS in a Box 4 / BBS in a Box - Macintosh - Volume IV (January 1992) (BBS in a Box).iso / Files / MacTechNotes / TN.251.300 / TN.256.Stand-Alone Code.cpt / Sorterƒ / Sorter.p < prev    next >
MacBinary  |  1990-07-24  |  8.5 KB  |  [TEXT/MPS ]

open in: MacOS 8.1     |     Win98     |     DOS

browse contents    |     view JSON data     |     view as text


This file was processed as: MacBinary (archive/macBinary).

ConfidenceProgramDetectionMatch TypeSupport
66% dexvert ZX81 Sinclair BASIC (image/sinclairBASIC) ext Supported
10% dexvert MacBinary (archive/macBinary) fallback Supported
1% dexvert Text File (text/txt) fallback Supported
100% file MacBinary II, inited, Tue Jul 24 13:31:38 1990, modified Tue Jul 24 13:31:38 1990, creator 'MPS ', type ASCII, 7399 bytes "Sorter.p" , at 0x1d67 1075 bytes resource default (weak)
99% file data default
74% TrID Macintosh plain text (MacBinary) default
25% TrID MacBinary 2 default (weak)
100% lsar MacBinary default


id metadata
keyvalue
macFileType[TEXT]
macFileCreator[MPS ]



hex view
+--------+-------------------------+-------------------------+--------+--------+
|00000000| 00 08 53 6f 72 74 65 72 | 2e 70 00 00 00 00 00 00 |..Sorter|.p......|
|00000010| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000020| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000030| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000040| 00 54 45 58 54 4d 50 53 | 20 01 00 00 00 00 00 00 |.TEXTMPS| .......|
|00000050| 00 00 00 00 00 1c e7 00 | 00 04 33 a2 d2 36 7a a2 |........|..3..6z.|
|00000060| d2 36 7a 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |.6z.....|........|
|00000070| 00 00 00 00 00 00 00 00 | 00 00 81 81 48 c5 00 00 |........|....H...|
|00000080| 7b 24 5a 2b 7d 20 7b 20 | 54 68 69 73 20 61 6c 6c |{$Z+} { |This all|
|00000090| 6f 77 73 20 74 68 65 20 | 4c 69 6e 6b 65 72 20 74 |ows the |Linker t|
|000000a0| 6f 20 66 69 6e 64 20 22 | 45 4e 54 52 59 50 4f 49 |o find "|ENTRYPOI|
|000000b0| 4e 54 22 20 77 69 74 68 | 6f 75 74 20 6f 75 72 20 |NT" with|out our |
|000000c0| 68 61 76 69 6e 67 20 74 | 6f 20 70 75 74 20 69 74 |having t|o put it|
|000000d0| 0d 09 09 09 20 69 6e 20 | 74 68 65 20 49 4e 54 45 |.... in |the INTE|
|000000e0| 52 46 41 43 45 20 73 65 | 63 74 69 6f 6e 20 7d 0d |RFACE se|ction }.|
|000000f0| 0d 55 4e 49 54 20 46 72 | 65 64 3b 0d 0d 09 49 4e |.UNIT Fr|ed;...IN|
|00000100| 54 45 52 46 41 43 45 0d | 0d 09 09 55 53 45 53 0d |TERFACE.|...USES.|
|00000110| 09 09 09 54 79 70 65 73 | 2c 20 4d 65 6d 6f 72 79 |...Types|, Memory|
|00000120| 2c 20 4f 53 55 74 69 6c | 73 2c 20 48 79 70 65 72 |, OSUtil|s, Hyper|
|00000130| 58 43 6d 64 2c 20 53 41 | 47 6c 6f 62 61 6c 73 3b |XCmd, SA|Globals;|
|00000140| 0d 0d 09 49 4d 50 4c 45 | 4d 45 4e 54 41 54 49 4f |...IMPLE|MENTATIO|
|00000150| 4e 0d 0d 09 09 54 59 50 | 45 0d 09 09 09 4c 6f 6e |N....TYP|E....Lon|
|00000160| 67 41 72 72 61 79 20 3d | 20 41 52 52 41 59 20 5b |gArray =| ARRAY [|
|00000170| 30 2e 2e 30 5d 20 4f 46 | 20 4c 6f 6e 67 69 6e 74 |0..0] OF| Longint|
|00000180| 3b 20 7b 20 54 68 65 73 | 65 20 64 65 66 69 6e 65 |; { Thes|e define|
|00000190| 20 6f 75 72 20 6c 69 73 | 74 20 6f 66 20 65 6e 74 | our lis|t of ent|
|000001a0| 72 69 65 73 20 7d 0d 09 | 09 09 4c 6f 6e 67 50 6f |ries }..|..LongPo|
|000001b0| 69 6e 74 65 72 20 3d 20 | 5e 4c 6f 6e 67 41 72 72 |inter = |^LongArr|
|000001c0| 61 79 3b 0d 09 09 09 4c | 6f 6e 67 48 61 6e 64 6c |ay;....L|ongHandl|
|000001d0| 65 20 3d 20 5e 4c 6f 6e | 67 50 6f 69 6e 74 65 72 |e = ^Lon|gPointer|
|000001e0| 3b 0d 0d 09 09 43 4f 4e | 53 54 0d 09 09 09 6b 46 |;....CON|ST....kF|
|000001f0| 69 72 73 74 54 69 6d 65 | 20 3d 20 31 3b 20 09 09 |irstTime| = 1; ..|
|00000200| 7b 20 62 65 69 6e 67 20 | 63 61 6c 6c 65 64 20 66 |{ being |called f|
|00000210| 6f 72 20 74 68 65 20 66 | 69 72 73 74 20 74 69 6d |or the f|irst tim|
|00000220| 65 2e 20 49 6e 69 74 69 | 61 6c 69 7a 65 2e 20 7d |e. Initi|alize. }|
|00000230| 0d 09 09 09 6b 4c 61 73 | 74 54 69 6d 65 20 3d 20 |....kLas|tTime = |
|00000240| 32 3b 20 09 09 09 7b 20 | 62 65 69 6e 67 20 63 61 |2; ...{ |being ca|
|00000250| 6c 6c 65 64 20 66 6f 72 | 20 74 68 65 20 6c 61 73 |lled for| the las|
|00000260| 74 20 74 69 6d 65 2e 20 | 43 6c 65 61 6e 20 75 70 |t time. |Clean up|
|00000270| 2e 20 7d 0d 09 09 09 6b | 41 64 64 45 6e 74 72 79 |. }....k|AddEntry|
|00000280| 20 3d 20 33 3b 20 09 09 | 09 7b 20 62 65 69 6e 67 | = 3; ..|.{ being|
|00000290| 20 63 61 6c 6c 65 64 20 | 74 6f 20 61 64 64 20 61 | called |to add a|
|000002a0| 6e 20 65 6e 74 72 79 20 | 74 6f 20 6f 75 72 20 6c |n entry |to our l|
|000002b0| 69 73 74 20 74 6f 20 73 | 6f 72 74 2e 20 7d 0d 09 |ist to s|ort. }..|
|000002c0| 09 09 6b 53 6f 72 74 45 | 6e 74 72 69 65 73 20 3d |..kSortE|ntries =|
|000002d0| 20 34 3b 20 09 7b 20 62 | 65 69 6e 67 20 63 61 6c | 4; .{ b|eing cal|
|000002e0| 6c 65 64 20 74 6f 20 73 | 6f 72 74 20 61 6e 64 20 |led to s|ort and |
|000002f0| 64 69 73 70 6c 61 79 20 | 6f 75 72 20 6c 69 73 74 |display |our list|
|00000300| 2e 20 7d 0d 0d 09 09 09 | 6b 43 6f 6d 6d 61 6e 64 |. }.....|kCommand|
|00000310| 49 6e 64 65 78 20 3d 20 | 31 3b 20 09 7b 20 50 61 |Index = |1; .{ Pa|
|00000320| 72 61 6d 65 74 65 72 20 | 31 20 68 6f 6c 64 73 20 |rameter |1 holds |
|00000330| 6f 75 72 20 63 6f 6d 6d | 61 6e 64 20 6e 75 6d 62 |our comm|and numb|
|00000340| 65 72 2e 20 7d 0d 09 09 | 09 6b 41 35 52 65 66 49 |er. }...|.kA5RefI|
|00000350| 6e 64 65 78 20 3d 20 32 | 3b 20 09 09 7b 20 50 61 |ndex = 2|; ..{ Pa|
|00000360| 72 61 6d 65 74 65 72 20 | 32 20 68 6f 6c 64 73 20 |rameter |2 holds |
|00000370| 6f 75 72 20 41 35 20 77 | 6f 72 6c 64 20 72 65 66 |our A5 w|orld ref|
|00000380| 65 72 65 6e 63 65 2e 20 | 7d 0d 09 09 09 6b 45 6e |erence. |}....kEn|
|00000390| 74 72 79 49 6e 64 65 78 | 20 3d 20 33 3b 20 09 09 |tryIndex| = 3; ..|
|000003a0| 7b 20 50 61 72 61 6d 65 | 74 65 72 20 33 20 68 6f |{ Parame|ter 3 ho|
|000003b0| 6c 64 73 20 61 20 6e 75 | 6d 62 65 72 20 74 6f 20 |lds a nu|mber to |
|000003c0| 61 64 64 20 74 6f 20 6f | 75 72 20 6c 69 73 74 2e |add to o|ur list.|
|000003d0| 20 7d 0d 0d 09 09 56 41 | 52 0d 09 09 09 67 48 6f | }....VA|R....gHo|
|000003e0| 73 74 41 35 3a 20 4c 6f | 6e 67 69 6e 74 3b 20 7b |stA5: Lo|ngint; {|
|000003f0| 20 54 68 65 20 73 61 76 | 65 64 20 76 61 6c 75 65 | The sav|ed value|
|00000400| 20 6f 66 20 6f 75 72 20 | 68 6f 73 74 27 73 20 28 | of our |host's (|
|00000410| 48 79 70 65 72 43 61 72 | 64 27 73 29 20 41 35 2e |HyperCar|d's) A5.|
|00000420| 20 7d 0d 09 09 09 67 4e | 75 6d 4f 66 45 6e 74 72 | }....gN|umOfEntr|
|00000430| 69 65 73 3a 20 4c 6f 6e | 67 69 6e 74 3b 20 7b 20 |ies: Lon|gint; { |
|00000440| 54 68 65 20 6e 75 6d 62 | 65 72 20 6f 66 20 65 6e |The numb|er of en|
|00000450| 74 72 69 65 73 20 69 6e | 20 6f 75 72 20 6c 69 73 |tries in| our lis|
|00000460| 74 2e 20 7d 0d 09 09 09 | 67 45 6e 74 72 69 65 73 |t. }....|gEntries|
|00000470| 3a 20 4c 6f 6e 67 48 61 | 6e 64 6c 65 3b 20 7b 20 |: LongHa|ndle; { |
|00000480| 4f 75 72 20 6c 69 73 74 | 20 6f 66 20 65 6e 74 72 |Our list| of entr|
|00000490| 69 65 73 2e 20 47 65 74 | 73 20 65 78 70 61 6e 64 |ies. Get|s expand|
|000004a0| 65 64 20 61 73 20 6e 65 | 65 64 65 64 2e 20 7d 0d |ed as ne|eded. }.|
|000004b0| 0d 09 09 09 7b 20 46 6f | 72 77 61 72 64 20 72 65 |....{ Fo|rward re|
|000004c0| 66 65 72 65 6e 63 65 20 | 74 6f 20 74 68 65 20 6d |ference |to the m|
|000004d0| 61 69 6e 20 70 72 6f 63 | 65 64 75 72 65 2e 20 54 |ain proc|edure. T|
|000004e0| 68 69 73 20 69 73 20 73 | 6f 20 77 65 20 63 61 6e |his is s|o we can|
|000004f0| 20 6a 75 6d 70 20 74 6f | 0d 09 09 09 69 74 20 66 | jump to|....it f|
|00000500| 72 6f 6d 20 45 4e 54 52 | 59 50 4f 49 4e 54 2c 20 |rom ENTR|YPOINT, |
|00000510| 77 68 69 63 68 20 72 65 | 70 72 65 73 65 6e 74 73 |which re|presents|
|00000520| 20 74 68 65 20 62 65 67 | 69 6e 6e 69 6e 67 20 6f | the beg|inning o|
|00000530| 66 20 74 68 65 20 58 43 | 4d 44 2c 20 61 6e 64 20 |f the XC|MD, and |
|00000540| 69 73 0d 09 09 09 77 68 | 61 74 20 48 79 70 65 72 |is....wh|at Hyper|
|00000550| 43 61 72 64 20 63 61 6c | 6c 73 20 77 68 65 6e 20 |Card cal|ls when |
|00000560| 69 74 20 63 61 6c 6c 73 | 20 75 73 2e 20 7d 0d 0d |it calls| us. }..|
|00000570| 09 09 50 52 4f 43 45 44 | 55 52 45 20 53 6f 72 74 |..PROCED|URE Sort|
|00000580| 65 72 28 70 61 72 61 6d | 50 74 72 3a 20 58 43 6d |er(param|Ptr: XCm|
|00000590| 64 50 74 72 29 3b 0d 09 | 09 09 46 4f 52 57 41 52 |dPtr);..|..FORWAR|
|000005a0| 44 3b 0d 0d 09 09 50 52 | 4f 43 45 44 55 52 45 20 |D;....PR|OCEDURE |
|000005b0| 45 4e 54 52 59 50 4f 49 | 4e 54 28 70 61 72 61 6d |ENTRYPOI|NT(param|
|000005c0| 50 74 72 3a 20 58 43 6d | 64 50 74 72 29 3b 0d 0d |Ptr: XCm|dPtr);..|
|000005d0| 09 09 09 42 45 47 49 4e | 0d 09 09 09 09 53 6f 72 |...BEGIN|.....Sor|
|000005e0| 74 65 72 28 70 61 72 61 | 6d 50 74 72 29 3b 0d 09 |ter(para|mPtr);..|
|000005f0| 09 09 45 4e 44 3b 0d 0d | 09 09 7b 20 55 74 69 6c |..END;..|..{ Util|
|00000600| 69 74 79 20 72 6f 75 74 | 69 6e 65 73 20 66 6f 72 |ity rout|ines for|
|00000610| 20 75 73 69 6e 67 20 74 | 68 65 20 48 79 70 65 72 | using t|he Hyper|
|00000620| 43 61 72 64 20 63 61 6c | 6c 62 61 63 6b 73 2e 20 |Card cal|lbacks. |
|00000630| 54 68 65 72 65 20 61 72 | 65 20 73 6f 6d 65 0d 09 |There ar|e some..|
|00000640| 09 09 66 75 6e 63 74 69 | 6f 6e 73 20 74 68 61 74 |..functi|ons that|
|00000650| 20 77 65 20 6e 65 65 64 | 20 74 6f 20 70 65 72 66 | we need| to perf|
|00000660| 6f 72 6d 20 6d 61 6e 79 | 20 74 69 6d 65 73 2c 20 |orm many| times, |
|00000670| 6f 72 20 77 6f 75 6c 64 | 20 6c 69 6b 65 20 74 6f |or would| like to|
|00000680| 0d 09 09 09 65 6e 63 61 | 70 73 75 6c 61 74 65 20 |....enca|psulate |
|00000690| 69 6e 74 6f 20 6c 69 74 | 74 6c 65 20 72 6f 75 74 |into lit|tle rout|
|000006a0| 69 6e 65 73 20 66 6f 72 | 20 63 6c 61 72 69 74 79 |ines for| clarity|
|000006b0| 3a 0d 0d 09 09 09 09 56 | 61 6c 75 65 4f 66 45 78 |:......V|alueOfEx|
|000006c0| 70 72 65 73 73 69 6f 6e | 20 2d 20 67 69 76 65 6e |pression| - given|
|000006d0| 20 61 6e 20 69 6e 64 65 | 78 20 66 72 6f 6d 20 31 | an inde|x from 1|
|000006e0| 20 74 6f 20 31 36 2c 20 | 74 68 69 73 20 65 76 61 | to 16, |this eva|
|000006f0| 6c 75 61 74 65 73 20 74 | 68 65 0d 09 09 09 09 09 |luates t|he......|
|00000700| 09 65 78 70 72 65 73 73 | 69 6f 6e 20 6f 66 20 74 |.express|ion of t|
|00000710| 68 61 74 20 70 61 72 61 | 6d 65 74 65 72 2e 20 54 |hat para|meter. T|
|00000720| 68 69 73 20 69 73 20 75 | 73 65 64 20 74 6f 20 73 |his is u|sed to s|
|00000730| 63 6f 6f 70 20 6f 75 74 | 20 74 68 65 20 76 61 6c |coop out| the val|
|00000740| 75 65 0d 09 09 09 09 09 | 09 6f 66 20 74 68 65 20 |ue......|.of the |
|00000750| 63 6f 6d 6d 61 6e 64 20 | 73 65 6c 65 63 74 6f 72 |command |selector|
|00000760| 2c 20 6f 75 72 20 41 35 | 20 70 6f 69 6e 74 65 72 |, our A5| pointer|
|00000770| 2c 20 61 6e 64 20 74 68 | 65 20 76 61 6c 75 65 20 |, and th|e value |
|00000780| 6f 66 20 74 68 65 0d 09 | 09 09 09 09 09 6e 75 6d |of the..|.....num|
|00000790| 62 65 72 20 77 65 20 61 | 72 65 20 74 6f 20 73 74 |ber we a|re to st|
|000007a0| 69 63 6b 20 69 6e 74 6f | 20 6f 75 72 20 6c 69 73 |ick into| our lis|
|000007b0| 74 20 6f 66 20 6e 75 6d | 62 65 72 73 20 74 6f 20 |t of num|bers to |
|000007c0| 73 6f 72 74 2e 0d 0d 09 | 09 09 09 4c 6f 6e 67 54 |sort....|...LongT|
|000007d0| 6f 5a 65 72 6f 20 2d 20 | 43 6f 6e 76 65 72 74 20 |oZero - |Convert |
|000007e0| 61 20 4c 4f 4e 47 49 4e | 54 20 69 6e 74 6f 20 61 |a LONGIN|T into a|
|000007f0| 20 43 20 28 7a 65 72 6f | 20 64 65 6c 69 6d 69 74 | C (zero| delimit|
|00000800| 65 64 29 20 73 74 72 69 | 6e 67 2e 0d 09 09 09 09 |ed) stri|ng......|
|00000810| 09 09 52 65 74 75 72 6e | 73 20 61 20 68 61 6e 64 |..Return|s a hand|
|00000820| 6c 65 20 74 68 61 74 20 | 63 6f 6e 74 61 69 6e 73 |le that |contains|
|00000830| 20 74 68 61 74 20 73 74 | 72 69 6e 67 2e 0d 0d 09 | that st|ring....|
|00000840| 09 09 09 53 65 74 47 6c | 6f 62 61 6c 41 74 20 2d |...SetGl|obalAt -|
|00000850| 20 67 69 76 65 6e 20 74 | 68 65 20 69 6e 64 65 78 | given t|he index|
|00000860| 20 74 6f 20 6f 6e 65 20 | 6f 66 20 74 68 65 20 31 | to one |of the 1|
|00000870| 36 20 70 61 72 61 6d 65 | 74 65 72 73 20 61 6e 64 |6 parame|ters and|
|00000880| 20 61 0d 09 09 09 09 09 | 09 4c 4f 4e 47 49 4e 54 | a......|.LONGINT|
|00000890| 2c 20 74 68 69 73 20 72 | 6f 75 74 69 6e 65 73 20 |, this r|outines |
|000008a0| 73 65 74 73 20 74 68 65 | 20 67 6c 6f 62 61 6c 20 |sets the| global |
|000008b0| 66 6f 75 6e 64 20 69 6e | 20 74 68 61 74 20 70 61 |found in| that pa|
|000008c0| 72 61 6d 65 74 65 72 20 | 74 6f 0d 09 09 09 09 09 |rameter |to......|
|000008d0| 09 74 68 65 20 4c 4f 4e | 47 49 4e 54 2e 0d 09 09 |.the LON|GINT....|
|000008e0| 7d 0d 0d 09 09 46 55 4e | 43 54 49 4f 4e 20 56 61 |}....FUN|CTION Va|
|000008f0| 6c 75 65 4f 66 45 78 70 | 72 65 73 73 69 6f 6e 28 |lueOfExp|ression(|
|00000900| 70 61 72 61 6d 50 74 72 | 3a 20 58 43 6d 64 50 74 |paramPtr|: XCmdPt|
|00000910| 72 3b 0d 09 09 09 09 09 | 09 09 09 09 09 09 09 09 |r;......|........|
|00000920| 09 09 20 69 6e 64 65 78 | 3a 20 69 6e 74 65 67 65 |.. index|: intege|
|00000930| 72 29 3a 20 4c 6f 6e 67 | 69 6e 74 3b 0d 0d 09 09 |r): Long|int;....|
|00000940| 09 56 41 52 0d 09 09 09 | 09 74 65 6d 70 53 74 72 |.VAR....|.tempStr|
|00000950| 3a 20 53 74 72 32 35 35 | 3b 0d 09 09 09 09 74 65 |: Str255|;.....te|
|00000960| 6d 70 48 61 6e 64 6c 65 | 3a 20 48 61 6e 64 6c 65 |mpHandle|: Handle|
|00000970| 3b 0d 0d 09 09 09 42 45 | 47 49 4e 0d 09 09 09 09 |;.....BE|GIN.....|
|00000980| 5a 65 72 6f 54 6f 50 61 | 73 28 70 61 72 61 6d 50 |ZeroToPa|s(paramP|
|00000990| 74 72 2c 20 70 61 72 61 | 6d 50 74 72 5e 2e 70 61 |tr, para|mPtr^.pa|
|000009a0| 72 61 6d 73 5b 69 6e 64 | 65 78 5d 5e 2c 20 74 65 |rams[ind|ex]^, te|
|000009b0| 6d 70 53 74 72 29 3b 0d | 09 09 09 09 74 65 6d 70 |mpStr);.|....temp|
|000009c0| 48 61 6e 64 6c 65 20 3a | 3d 20 45 76 61 6c 45 78 |Handle :|= EvalEx|
|000009d0| 70 72 28 70 61 72 61 6d | 50 74 72 2c 20 74 65 6d |pr(param|Ptr, tem|
|000009e0| 70 53 74 72 29 3b 0d 09 | 09 09 09 5a 65 72 6f 54 |pStr);..|...ZeroT|
|000009f0| 6f 50 61 73 28 70 61 72 | 61 6d 50 74 72 2c 20 74 |oPas(par|amPtr, t|
|00000a00| 65 6d 70 48 61 6e 64 6c | 65 5e 2c 20 74 65 6d 70 |empHandl|e^, temp|
|00000a10| 53 74 72 29 3b 0d 09 09 | 09 09 44 69 73 70 6f 73 |Str);...|..Dispos|
|00000a20| 48 61 6e 64 6c 65 28 74 | 65 6d 70 48 61 6e 64 6c |Handle(t|empHandl|
|00000a30| 65 29 3b 0d 09 09 09 09 | 56 61 6c 75 65 4f 66 45 |e);.....|ValueOfE|
|00000a40| 78 70 72 65 73 73 69 6f | 6e 20 3a 3d 20 53 74 72 |xpressio|n := Str|
|00000a50| 54 6f 4c 6f 6e 67 28 70 | 61 72 61 6d 50 74 72 2c |ToLong(p|aramPtr,|
|00000a60| 20 74 65 6d 70 53 74 72 | 29 3b 0d 09 09 09 45 4e | tempStr|);....EN|
|00000a70| 44 3b 0d 0d 09 09 46 55 | 4e 43 54 49 4f 4e 20 4c |D;....FU|NCTION L|
|00000a80| 6f 6e 67 54 6f 5a 65 72 | 6f 28 70 61 72 61 6d 50 |ongToZer|o(paramP|
|00000a90| 74 72 3a 20 58 43 6d 64 | 50 74 72 3b 0d 09 09 09 |tr: XCmd|Ptr;....|
|00000aa0| 09 09 09 09 09 09 09 09 | 09 6c 6f 6e 67 3a 20 4c |........|.long: L|
|00000ab0| 6f 6e 67 69 6e 74 29 3a | 20 48 61 6e 64 6c 65 3b |ongint):| Handle;|
|00000ac0| 0d 0d 09 09 09 56 41 52 | 0d 09 09 09 09 74 65 6d |.....VAR|.....tem|
|00000ad0| 70 53 74 72 3a 20 53 74 | 72 32 35 35 3b 0d 0d 09 |pStr: St|r255;...|
|00000ae0| 09 09 42 45 47 49 4e 0d | 09 09 09 09 4c 6f 6e 67 |..BEGIN.|....Long|
|00000af0| 54 6f 53 74 72 28 70 61 | 72 61 6d 50 74 72 2c 20 |ToStr(pa|ramPtr, |
|00000b00| 6c 6f 6e 67 2c 20 74 65 | 6d 70 53 74 72 29 3b 0d |long, te|mpStr);.|
|00000b10| 09 09 09 09 4c 6f 6e 67 | 54 6f 5a 65 72 6f 20 3a |....Long|ToZero :|
|00000b20| 3d 20 50 61 73 54 6f 5a | 65 72 6f 28 70 61 72 61 |= PasToZ|ero(para|
|00000b30| 6d 50 74 72 2c 20 74 65 | 6d 70 53 74 72 29 3b 0d |mPtr, te|mpStr);.|
|00000b40| 09 09 09 45 4e 44 3b 0d | 0d 09 09 50 52 4f 43 45 |...END;.|...PROCE|
|00000b50| 44 55 52 45 20 53 65 74 | 47 6c 6f 62 61 6c 41 74 |DURE Set|GlobalAt|
|00000b60| 28 70 61 72 61 6d 50 74 | 72 3a 20 58 43 6d 64 50 |(paramPt|r: XCmdP|
|00000b70| 74 72 3b 0d 09 09 09 09 | 09 09 09 09 09 09 09 09 |tr;.....|........|
|00000b80| 09 69 6e 64 65 78 3a 20 | 69 6e 74 65 67 65 72 3b |.index: |integer;|
|00000b90| 0d 09 09 09 09 09 09 09 | 09 09 09 09 09 09 6c 6f |........|......lo|
|00000ba0| 6e 67 3a 20 4c 6f 6e 67 | 69 6e 74 29 3b 0d 0d 09 |ng: Long|int);...|
|00000bb0| 09 09 56 41 52 0d 09 09 | 09 09 67 6c 6f 62 61 6c |..VAR...|..global|
|00000bc0| 4e 61 6d 65 3a 20 53 74 | 72 32 35 35 3b 0d 09 09 |Name: St|r255;...|
|00000bd0| 09 09 68 4c 6f 6e 67 3a | 20 48 61 6e 64 6c 65 3b |..hLong:| Handle;|
|00000be0| 0d 0d 09 09 09 42 45 47 | 49 4e 0d 09 09 09 09 5a |.....BEG|IN.....Z|
|00000bf0| 65 72 6f 54 6f 50 61 73 | 28 70 61 72 61 6d 50 74 |eroToPas|(paramPt|
|00000c00| 72 2c 20 70 61 72 61 6d | 50 74 72 5e 2e 70 61 72 |r, param|Ptr^.par|
|00000c10| 61 6d 73 5b 69 6e 64 65 | 78 5d 5e 2c 20 67 6c 6f |ams[inde|x]^, glo|
|00000c20| 62 61 6c 4e 61 6d 65 29 | 3b 0d 09 09 09 09 68 4c |balName)|;.....hL|
|00000c30| 6f 6e 67 20 3a 3d 20 4c | 6f 6e 67 54 6f 5a 65 72 |ong := L|ongToZer|
|00000c40| 6f 28 70 61 72 61 6d 50 | 74 72 2c 20 6c 6f 6e 67 |o(paramP|tr, long|
|00000c50| 29 3b 0d 09 09 09 09 53 | 65 74 47 6c 6f 62 61 6c |);.....S|etGlobal|
|00000c60| 28 70 61 72 61 6d 50 74 | 72 2c 20 67 6c 6f 62 61 |(paramPt|r, globa|
|00000c70| 6c 4e 61 6d 65 2c 20 68 | 4c 6f 6e 67 29 3b 0d 09 |lName, h|Long);..|
|00000c80| 09 09 09 44 69 73 70 6f | 73 48 61 6e 64 6c 65 28 |...Dispo|sHandle(|
|00000c90| 68 4c 6f 6e 67 29 3b 0d | 09 09 09 45 4e 44 3b 0d |hLong);.|...END;.|
|00000ca0| 0d 09 09 7b 20 54 68 65 | 73 65 20 34 20 72 6f 75 |...{ The|se 4 rou|
|00000cb0| 74 69 6e 65 73 20 61 72 | 65 20 63 61 6c 6c 65 64 |tines ar|e called|
|00000cc0| 20 61 63 63 6f 72 64 69 | 6e 67 20 74 6f 20 74 68 | accordi|ng to th|
|00000cd0| 65 20 63 6f 6d 6d 61 6e | 64 20 70 61 73 73 65 64 |e comman|d passed|
|00000ce0| 20 74 6f 20 74 68 65 20 | 58 43 4d 44 3a 0d 0d 09 | to the |XCMD:...|
|00000cf0| 09 09 09 49 6e 69 74 69 | 61 6c 69 7a 65 20 2d 20 |...Initi|alize - |
|00000d00| 75 73 65 64 20 74 6f 20 | 69 6e 69 74 69 61 6c 69 |used to |initiali|
|00000d10| 7a 65 20 6f 75 72 20 67 | 6c 6f 62 61 6c 73 20 61 |ze our g|lobals a|
|00000d20| 72 65 61 2e 20 41 35 49 | 6e 69 74 20 77 69 6c 6c |rea. A5I|nit will|
|00000d30| 20 63 6c 65 61 72 0d 09 | 09 09 09 09 09 6f 75 72 | clear..|.....our|
|00000d40| 20 67 6c 6f 62 61 6c 73 | 20 74 6f 20 7a 65 72 6f | globals| to zero|
|00000d50| 2c 20 61 6e 64 20 73 65 | 74 20 75 70 20 61 6e 79 |, and se|t up any|
|00000d60| 20 70 72 65 2d 69 6e 69 | 74 69 61 6c 69 7a 65 64 | pre-ini|tialized|
|00000d70| 20 76 61 72 69 61 62 6c | 65 73 20 69 66 20 77 65 | variabl|es if we|
|00000d80| 0d 09 09 09 09 09 09 77 | 72 6f 74 65 20 6f 75 72 |.......w|rote our|
|00000d90| 20 70 72 6f 67 72 61 6d | 20 69 6e 20 43 20 6f 72 | program| in C or|
|00000da0| 20 41 73 73 65 6d 62 6c | 79 2c 20 62 75 74 20 69 | Assembl|y, but i|
|00000db0| 74 20 63 61 6e 27 74 20 | 64 6f 20 65 76 65 72 79 |t can't |do every|
|00000dc0| 74 68 69 6e 67 2e 20 46 | 6f 72 0d 09 09 09 09 09 |thing. F|or......|
|00000dd0| 09 69 6e 73 74 61 6e 63 | 65 2c 20 69 6e 20 74 68 |.instanc|e, in th|
|00000de0| 69 73 20 58 43 4d 44 2c | 20 77 65 20 6e 65 65 64 |is XCMD,| we need|
|00000df0| 20 74 6f 20 63 72 65 61 | 74 65 20 61 20 68 61 6e | to crea|te a han|
|00000e00| 64 6c 65 20 74 6f 20 68 | 6f 6c 64 20 6f 75 72 20 |dle to h|old our |
|00000e10| 6c 69 73 74 0d 09 09 09 | 09 09 09 6f 66 20 65 6e |list....|...of en|
|00000e20| 74 72 69 65 73 2e 0d 09 | 09 09 09 41 64 64 41 6e |tries...|...AddAn|
|00000e30| 45 6e 74 72 79 20 2d 20 | 54 61 6b 65 73 20 74 68 |Entry - |Takes th|
|00000e40| 65 20 76 61 6c 75 65 20 | 72 65 70 72 65 73 65 6e |e value |represen|
|00000e50| 74 65 64 20 62 79 20 74 | 68 65 20 33 20 70 61 72 |ted by t|he 3 par|
|00000e60| 61 6d 65 74 65 72 73 20 | 70 61 73 73 65 64 20 74 |ameters |passed t|
|00000e70| 6f 0d 09 09 09 09 09 09 | 75 73 20 62 79 20 48 79 |o.......|us by Hy|
|00000e80| 70 65 72 43 61 72 64 20 | 61 6e 64 20 61 64 64 73 |perCard |and adds|
|00000e90| 20 69 74 20 74 6f 20 6f | 75 72 20 6c 69 73 74 2e | it to o|ur list.|
|00000ea0| 0d 09 09 09 09 53 6f 72 | 74 45 6e 74 72 69 65 73 |.....Sor|tEntries|
|00000eb0| 20 2d 20 53 6f 72 74 73 | 20 74 68 65 20 65 6e 74 | - Sorts| the ent|
|00000ec0| 72 69 65 73 20 77 65 20 | 68 61 76 65 20 73 6f 20 |ries we |have so |
|00000ed0| 66 61 72 2e 20 43 6f 6e | 76 65 72 74 73 20 74 68 |far. Con|verts th|
|00000ee0| 65 6d 20 69 6e 74 6f 20 | 61 0d 09 09 09 09 09 09 |em into |a.......|
|00000ef0| 73 74 72 69 6e 67 20 61 | 6e 64 20 74 65 6c 6c 73 |string a|nd tells|
|00000f00| 20 48 79 70 65 72 43 61 | 72 64 20 74 6f 20 64 69 | HyperCa|rd to di|
|00000f10| 73 70 6c 61 79 20 74 68 | 65 6d 20 69 6e 20 74 68 |splay th|em in th|
|00000f20| 65 20 6d 65 73 73 61 67 | 65 20 62 6f 78 2e 0d 09 |e messag|e box...|
|00000f30| 09 09 09 46 72 65 65 44 | 61 74 61 20 2d 20 57 65 |...FreeD|ata - We|
|00000f40| 20 6a 75 73 74 20 72 65 | 63 65 69 76 65 20 74 68 | just re|ceive th|
|00000f50| 65 20 6d 65 73 73 61 67 | 65 20 73 61 79 69 6e 67 |e messag|e saying|
|00000f60| 20 74 68 61 74 20 77 65 | 20 61 72 65 20 6e 65 76 | that we| are nev|
|00000f70| 65 72 20 67 6f 69 6e 67 | 0d 09 09 09 09 09 09 74 |er going|.......t|
|00000f80| 6f 20 62 65 20 63 61 6c | 6c 65 64 20 61 67 61 69 |o be cal|led agai|
|00000f90| 6e 2e 20 54 68 65 72 65 | 66 6f 72 65 2c 20 77 65 |n. There|fore, we|
|00000fa0| 20 6d 75 73 74 20 67 65 | 74 20 72 69 64 20 6f 66 | must ge|t rid of|
|00000fb0| 20 61 6e 79 20 6d 65 6d | 6f 72 79 20 77 65 0d 09 | any mem|ory we..|
|00000fc0| 09 09 09 09 09 68 61 76 | 65 20 61 6c 6c 6f 63 61 |.....hav|e alloca|
|00000fd0| 74 65 64 20 66 6f 72 20 | 6f 75 72 20 6f 77 6e 20 |ted for |our own |
|00000fe0| 75 73 65 2e 0d 09 09 7d | 0d 0d 09 09 50 52 4f 43 |use....}|....PROC|
|00000ff0| 45 44 55 52 45 20 49 6e | 69 74 69 61 6c 69 7a 65 |EDURE In|itialize|
|00001000| 3b 0d 0d 09 09 09 42 45 | 47 49 4e 0d 09 09 09 09 |;.....BE|GIN.....|
|00001010| 67 45 6e 74 72 69 65 73 | 20 3a 3d 20 4c 6f 6e 67 |gEntries| := Long|
|00001020| 48 61 6e 64 6c 65 28 4e | 65 77 48 61 6e 64 6c 65 |Handle(N|ewHandle|
|00001030| 28 30 29 29 3b 0d 09 09 | 09 09 67 4e 75 6d 4f 66 |(0));...|..gNumOf|
|00001040| 45 6e 74 72 69 65 73 20 | 3a 3d 20 30 3b 0d 09 09 |Entries |:= 0;...|
|00001050| 09 45 4e 44 3b 0d 0d 09 | 09 50 52 4f 43 45 44 55 |.END;...|.PROCEDU|
|00001060| 52 45 20 41 64 64 41 6e | 45 6e 74 72 79 28 70 61 |RE AddAn|Entry(pa|
|00001070| 72 61 6d 50 74 72 3a 20 | 58 43 6d 64 50 74 72 29 |ramPtr: |XCmdPtr)|
|00001080| 3b 0d 0d 09 09 09 56 41 | 52 0d 09 09 09 09 6f 75 |;.....VA|R.....ou|
|00001090| 72 41 35 3a 20 4c 6f 6e | 67 69 6e 74 3b 0d 09 09 |rA5: Lon|gint;...|
|000010a0| 09 09 74 65 6d 70 53 74 | 72 3a 20 53 74 72 32 35 |..tempSt|r: Str25|
|000010b0| 35 3b 0d 09 09 09 09 74 | 65 6d 70 3a 20 4c 6f 6e |5;.....t|emp: Lon|
|000010c0| 67 69 6e 74 3b 0d 0d 09 | 09 09 42 45 47 49 4e 0d |gint;...|..BEGIN.|
|000010d0| 09 09 09 09 6f 75 72 41 | 35 20 3a 3d 20 53 65 74 |....ourA|5 := Set|
|000010e0| 41 35 28 67 48 6f 73 74 | 41 35 29 3b 0d 09 09 09 |A5(gHost|A5);....|
|000010f0| 09 74 65 6d 70 20 3a 3d | 20 56 61 6c 75 65 4f 66 |.temp :=| ValueOf|
|00001100| 45 78 70 72 65 73 73 69 | 6f 6e 28 70 61 72 61 6d |Expressi|on(param|
|00001110| 50 74 72 2c 20 6b 45 6e | 74 72 79 49 6e 64 65 78 |Ptr, kEn|tryIndex|
|00001120| 29 3b 0d 09 09 09 09 6f | 75 72 41 35 20 3a 3d 20 |);.....o|urA5 := |
|00001130| 53 65 74 41 35 28 6f 75 | 72 41 35 29 3b 0d 0d 09 |SetA5(ou|rA5);...|
|00001140| 09 09 09 53 65 74 48 61 | 6e 64 6c 65 53 69 7a 65 |...SetHa|ndleSize|
|00001150| 28 48 61 6e 64 6c 65 28 | 67 45 6e 74 72 69 65 73 |(Handle(|gEntries|
|00001160| 29 2c 20 28 67 4e 75 6d | 4f 66 45 6e 74 72 69 65 |), (gNum|OfEntrie|
|00001170| 73 20 2b 20 31 29 20 2a | 20 34 29 3b 0d 09 09 09 |s + 1) *| 4);....|
|00001180| 09 7b 24 50 55 53 48 7d | 20 7b 24 52 2d 7d 0d 09 |.{$PUSH}| {$R-}..|
|00001190| 09 09 09 67 45 6e 74 72 | 69 65 73 5e 5e 5b 67 4e |...gEntr|ies^^[gN|
|000011a0| 75 6d 4f 66 45 6e 74 72 | 69 65 73 5d 20 3a 3d 20 |umOfEntr|ies] := |
|000011b0| 74 65 6d 70 3b 0d 09 09 | 09 09 7b 24 50 4f 50 7d |temp;...|..{$POP}|
|000011c0| 0d 09 09 09 09 67 4e 75 | 6d 4f 66 45 6e 74 72 69 |.....gNu|mOfEntri|
|000011d0| 65 73 20 3a 3d 20 67 4e | 75 6d 4f 66 45 6e 74 72 |es := gN|umOfEntr|
|000011e0| 69 65 73 20 2b 20 31 3b | 0d 09 09 09 45 4e 44 3b |ies + 1;|....END;|
|000011f0| 0d 0d 09 09 50 52 4f 43 | 45 44 55 52 45 20 53 6f |....PROC|EDURE So|
|00001200| 72 74 45 6e 74 72 69 65 | 73 28 70 61 72 61 6d 50 |rtEntrie|s(paramP|
|00001210| 74 72 3a 20 58 43 6d 64 | 50 74 72 29 3b 0d 0d 09 |tr: XCmd|Ptr);...|
|00001220| 09 09 56 41 52 0d 09 09 | 09 09 6f 75 72 41 35 3a |..VAR...|..ourA5:|
|00001230| 20 4c 6f 6e 67 69 6e 74 | 3b 0d 09 09 09 09 69 2c | Longint|;.....i,|
|00001240| 20 6a 3a 20 69 6e 74 65 | 67 65 72 3b 0d 09 09 09 | j: inte|ger;....|
|00001250| 09 66 75 6c 6c 53 74 72 | 3a 20 53 74 72 32 35 35 |.fullStr|: Str255|
|00001260| 3b 0d 09 09 09 09 74 65 | 6d 70 53 74 72 3a 20 53 |;.....te|mpStr: S|
|00001270| 74 72 32 35 35 3b 0d 09 | 09 09 09 74 65 6d 70 3a |tr255;..|...temp:|
|00001280| 20 4c 6f 6e 67 69 6e 74 | 3b 0d 0d 09 09 09 42 45 | Longint|;.....BE|
|00001290| 47 49 4e 0d 09 09 09 09 | 49 46 20 67 4e 75 6d 4f |GIN.....|IF gNumO|
|000012a0| 66 45 6e 74 72 69 65 73 | 20 3e 20 31 20 54 48 45 |fEntries| > 1 THE|
|000012b0| 4e 0d 09 09 09 09 09 42 | 45 47 49 4e 0d 09 09 09 |N......B|EGIN....|
|000012c0| 09 09 7b 24 50 55 53 48 | 7d 20 7b 24 52 2d 7d 0d |..{$PUSH|} {$R-}.|
|000012d0| 09 09 09 09 09 46 4f 52 | 20 69 20 3a 3d 20 30 20 |.....FOR| i := 0 |
|000012e0| 54 4f 20 67 4e 75 6d 4f | 66 45 6e 74 72 69 65 73 |TO gNumO|fEntries|
|000012f0| 20 2d 20 32 20 44 4f 0d | 09 09 09 09 09 09 42 45 | - 2 DO.|......BE|
|00001300| 47 49 4e 0d 09 09 09 09 | 09 09 46 4f 52 20 6a 20 |GIN.....|..FOR j |
|00001310| 3a 3d 20 69 20 2b 20 31 | 20 54 4f 20 67 4e 75 6d |:= i + 1| TO gNum|
|00001320| 4f 66 45 6e 74 72 69 65 | 73 20 2d 20 31 20 44 4f |OfEntrie|s - 1 DO|
|00001330| 0d 09 09 09 09 09 09 09 | 42 45 47 49 4e 0d 09 09 |........|BEGIN...|
|00001340| 09 09 09 09 09 49 46 20 | 67 45 6e 74 72 69 65 73 |.....IF |gEntries|
|00001350| 5e 5e 5b 69 5d 20 3e 20 | 67 45 6e 74 72 69 65 73 |^^[i] > |gEntries|
|00001360| 5e 5e 5b 6a 5d 20 54 48 | 45 4e 0d 09 09 09 09 09 |^^[j] TH|EN......|
|00001370| 09 09 09 42 45 47 49 4e | 0d 09 09 09 09 09 09 09 |...BEGIN|........|
|00001380| 09 74 65 6d 70 20 3a 3d | 20 67 45 6e 74 72 69 65 |.temp :=| gEntrie|
|00001390| 73 5e 5e 5b 69 5d 3b 0d | 09 09 09 09 09 09 09 09 |s^^[i];.|........|
|000013a0| 67 45 6e 74 72 69 65 73 | 5e 5e 5b 69 5d 20 3a 3d |gEntries|^^[i] :=|
|000013b0| 20 67 45 6e 74 72 69 65 | 73 5e 5e 5b 6a 5d 3b 0d | gEntrie|s^^[j];.|
|000013c0| 09 09 09 09 09 09 09 09 | 67 45 6e 74 72 69 65 73 |........|gEntries|
|000013d0| 5e 5e 5b 6a 5d 20 3a 3d | 20 74 65 6d 70 3b 0d 09 |^^[j] :=| temp;..|
|000013e0| 09 09 09 09 09 09 09 45 | 4e 44 3b 0d 09 09 09 09 |.......E|ND;.....|
|000013f0| 09 09 09 45 4e 44 3b 0d | 09 09 09 09 09 09 45 4e |...END;.|......EN|
|00001400| 44 3b 0d 09 09 09 09 09 | 7b 24 50 4f 50 7d 0d 09 |D;......|{$POP}..|
|00001410| 09 09 09 09 45 4e 44 3b | 0d 0d 09 09 09 09 49 46 |....END;|......IF|
|00001420| 20 67 4e 75 6d 4f 66 45 | 6e 74 72 69 65 73 20 3e | gNumOfE|ntries >|
|00001430| 20 30 20 54 48 45 4e 0d | 09 09 09 09 09 42 45 47 | 0 THEN.|.....BEG|
|00001440| 49 4e 0d 09 09 09 09 09 | 66 75 6c 6c 53 74 72 20 |IN......|fullStr |
|00001450| 3a 3d 20 27 27 3b 0d 09 | 09 09 09 09 46 4f 52 20 |:= '';..|....FOR |
|00001460| 69 20 3a 3d 20 30 20 54 | 4f 20 67 4e 75 6d 4f 66 |i := 0 T|O gNumOf|
|00001470| 45 6e 74 72 69 65 73 20 | 2d 20 31 20 44 4f 0d 09 |Entries |- 1 DO..|
|00001480| 09 09 09 09 09 42 45 47 | 49 4e 0d 09 09 09 09 09 |.....BEG|IN......|
|00001490| 09 7b 24 50 55 53 48 7d | 20 7b 24 52 2d 7d 0d 09 |.{$PUSH}| {$R-}..|
|000014a0| 09 09 09 09 09 74 65 6d | 70 20 3a 3d 20 67 45 6e |.....tem|p := gEn|
|000014b0| 74 72 69 65 73 5e 5e 5b | 69 5d 3b 0d 09 09 09 09 |tries^^[|i];.....|
|000014c0| 09 09 7b 24 50 4f 50 7d | 0d 09 09 09 09 09 09 6f |..{$POP}|.......o|
|000014d0| 75 72 41 35 20 3a 3d 20 | 53 65 74 41 35 28 67 48 |urA5 := |SetA5(gH|
|000014e0| 6f 73 74 41 35 29 3b 0d | 09 09 09 09 09 09 4e 75 |ostA5);.|......Nu|
|000014f0| 6d 54 6f 53 74 72 28 70 | 61 72 61 6d 50 74 72 2c |mToStr(p|aramPtr,|
|00001500| 20 74 65 6d 70 2c 20 74 | 65 6d 70 53 74 72 29 3b | temp, t|empStr);|
|00001510| 0d 09 09 09 09 09 09 6f | 75 72 41 35 20 3a 3d 20 |.......o|urA5 := |
|00001520| 53 65 74 41 35 28 6f 75 | 72 41 35 29 3b 0d 09 09 |SetA5(ou|rA5);...|
|00001530| 09 09 09 09 66 75 6c 6c | 53 74 72 20 3a 3d 20 63 |....full|Str := c|
|00001540| 6f 6e 63 61 74 28 66 75 | 6c 6c 53 74 72 2c 20 27 |oncat(fu|llStr, '|
|00001550| 2c 20 27 2c 20 74 65 6d | 70 53 74 72 29 3b 0d 09 |, ', tem|pStr);..|
|00001560| 09 09 09 09 09 45 4e 44 | 3b 0d 09 09 09 09 09 64 |.....END|;......d|
|00001570| 65 6c 65 74 65 28 66 75 | 6c 6c 53 74 72 2c 20 31 |elete(fu|llStr, 1|
|00001580| 2c 20 32 29 3b 20 7b 20 | 72 65 6d 6f 76 65 20 74 |, 2); { |remove t|
|00001590| 68 65 20 66 69 72 73 74 | 20 22 2c 20 22 20 7d 0d |he first| ", " }.|
|000015a0| 09 09 09 09 09 6f 75 72 | 41 35 20 3a 3d 20 53 65 |.....our|A5 := Se|
|000015b0| 74 41 35 28 67 48 6f 73 | 74 41 35 29 3b 0d 09 09 |tA5(gHos|tA5);...|
|000015c0| 09 09 09 53 65 6e 64 48 | 43 4d 65 73 73 61 67 65 |...SendH|CMessage|
|000015d0| 28 70 61 72 61 6d 50 74 | 72 2c 20 63 6f 6e 63 61 |(paramPt|r, conca|
|000015e0| 74 28 27 70 75 74 20 22 | 27 2c 20 66 75 6c 6c 53 |t('put "|', fullS|
|000015f0| 74 72 2c 20 27 22 27 29 | 29 3b 0d 09 09 09 09 09 |tr, '"')|);......|
|00001600| 6f 75 72 41 35 20 3a 3d | 20 53 65 74 41 35 28 6f |ourA5 :=| SetA5(o|
|00001610| 75 72 41 35 29 3b 0d 09 | 09 09 09 09 45 4e 44 3b |urA5);..|....END;|
|00001620| 0d 09 09 09 45 4e 44 3b | 0d 0d 09 09 50 52 4f 43 |....END;|....PROC|
|00001630| 45 44 55 52 45 20 46 72 | 65 65 44 61 74 61 3b 0d |EDURE Fr|eeData;.|
|00001640| 0d 09 09 09 42 45 47 49 | 4e 0d 09 09 09 09 44 69 |....BEGI|N.....Di|
|00001650| 73 70 6f 73 48 61 6e 64 | 6c 65 28 48 61 6e 64 6c |sposHand|le(Handl|
|00001660| 65 28 67 45 6e 74 72 69 | 65 73 29 29 3b 0d 09 09 |e(gEntri|es));...|
|00001670| 09 45 4e 44 3b 0d 0d 09 | 09 7b 20 4d 61 69 6e 20 |.END;...|.{ Main |
|00001680| 72 6f 75 74 69 6e 65 2e | 20 42 69 67 20 43 68 65 |routine.| Big Che|
|00001690| 65 73 65 2e 20 48 65 61 | 64 20 48 6f 6e 63 68 6f |ese. Hea|d Honcho|
|000016a0| 2e 20 54 68 65 20 42 6f | 73 73 2e 20 54 68 65 20 |. The Bo|ss. The |
|000016b0| 4d 61 6e 20 77 69 74 68 | 20 61 6c 6c 20 74 68 65 |Man with| all the|
|000016c0| 0d 09 09 09 6d 6f 76 65 | 73 2e 20 59 6f 75 20 67 |....move|s. You g|
|000016d0| 65 74 20 74 68 65 20 69 | 64 65 61 2e 20 54 68 69 |et the i|dea. Thi|
|000016e0| 73 20 69 73 20 74 68 65 | 20 63 6f 6e 74 72 6f 6c |s is the| control|
|000016f0| 6c 69 6e 67 20 72 6f 75 | 74 69 6e 65 2e 20 49 74 |ling rou|tine. It|
|00001700| 20 66 69 72 73 74 0d 09 | 09 09 63 68 65 63 6b 73 | first..|..checks|
|00001710| 20 74 6f 20 73 65 65 20 | 69 66 20 77 65 20 68 61 | to see |if we ha|
|00001720| 76 65 20 74 68 65 20 63 | 6f 72 72 65 63 74 20 6e |ve the c|orrect n|
|00001730| 75 6d 62 65 72 20 6f 66 | 20 70 61 72 61 6d 65 74 |umber of| paramet|
|00001740| 65 72 73 20 28 73 6f 72 | 74 20 6f 66 29 2e 0d 09 |ers (sor|t of)...|
|00001750| 09 09 49 66 20 74 68 61 | 74 27 73 20 4f 4b 2c 20 |..If tha|t's OK, |
|00001760| 74 68 65 6e 20 69 74 20 | 65 69 74 68 65 72 20 63 |then it |either c|
|00001770| 72 65 61 74 65 73 20 61 | 20 6e 65 77 20 41 35 20 |reates a| new A5 |
|00001780| 77 6f 72 6c 64 20 61 6e | 64 20 69 6e 69 74 69 61 |world an|d initia|
|00001790| 6c 69 7a 65 73 20 69 74 | 2c 0d 09 09 09 6f 72 20 |lizes it|,....or |
|000017a0| 69 74 20 73 65 74 73 20 | 75 70 20 6f 6e 65 20 74 |it sets |up one t|
|000017b0| 68 61 74 20 77 65 27 76 | 65 20 70 72 65 76 69 6f |hat we'v|e previo|
|000017c0| 75 73 6c 79 20 63 72 65 | 61 74 65 64 2e 20 20 49 |usly cre|ated. I|
|000017d0| 74 20 74 68 65 6e 20 64 | 69 73 70 61 74 63 68 65 |t then d|ispatche|
|000017e0| 73 20 74 6f 0d 09 09 09 | 74 68 65 20 61 70 70 72 |s to....|the appr|
|000017f0| 6f 70 72 69 61 74 65 20 | 72 6f 75 74 69 6e 65 2c |opriate |routine,|
|00001800| 20 64 65 70 65 6e 64 69 | 6e 67 20 6f 6e 20 77 68 | dependi|ng on wh|
|00001810| 61 74 20 63 6f 6d 6d 61 | 6e 64 20 77 61 73 20 70 |at comma|nd was p|
|00001820| 61 73 73 65 64 20 74 6f | 20 75 73 2e 0d 09 09 09 |assed to| us.....|
|00001830| 46 69 6e 61 6c 6c 79 2c | 20 69 74 20 72 65 73 74 |Finally,| it rest|
|00001840| 6f 72 65 73 20 74 68 65 | 20 68 6f 73 74 20 61 70 |ores the| host ap|
|00001850| 70 6c 69 63 61 74 69 6f | 6e 27 73 20 41 35 20 77 |plicatio|n's A5 w|
|00001860| 6f 72 6c 64 2c 20 61 6e | 64 20 64 69 73 70 6f 73 |orld, an|d dispos|
|00001870| 65 73 20 6f 66 0d 09 09 | 09 6f 75 72 73 20 69 66 |es of...|.ours if|
|00001880| 20 74 68 69 73 20 69 73 | 20 74 68 65 20 6c 61 73 | this is| the las|
|00001890| 74 20 74 69 6d 65 20 77 | 65 20 61 72 65 20 62 65 |t time w|e are be|
|000018a0| 69 6e 67 20 63 61 6c 6c | 65 64 2e 20 7d 0d 0d 09 |ing call|ed. }...|
|000018b0| 09 50 52 4f 43 45 44 55 | 52 45 20 53 6f 72 74 65 |.PROCEDU|RE Sorte|
|000018c0| 72 28 70 61 72 61 6d 50 | 74 72 3a 20 58 43 6d 64 |r(paramP|tr: XCmd|
|000018d0| 50 74 72 29 3b 0d 0d 09 | 09 09 56 41 52 0d 09 09 |Ptr);...|..VAR...|
|000018e0| 09 09 63 6f 6d 6d 61 6e | 64 3a 20 69 6e 74 65 67 |..comman|d: integ|
|000018f0| 65 72 3b 0d 09 09 09 09 | 41 35 52 65 66 3a 20 41 |er;.....|A5Ref: A|
|00001900| 35 52 65 66 54 79 70 65 | 3b 0d 09 09 09 09 65 72 |5RefType|;.....er|
|00001910| 72 53 74 72 3a 20 53 74 | 72 32 35 35 3b 0d 09 09 |rStr: St|r255;...|
|00001920| 09 09 41 35 4e 61 6d 65 | 3a 20 53 74 72 32 35 35 |..A5Name|: Str255|
|00001930| 3b 0d 0d 09 09 09 42 45 | 47 49 4e 20 7b 4d 61 69 |;.....BE|GIN {Mai|
|00001940| 6e 7d 0d 0d 09 09 09 09 | 57 49 54 48 20 70 61 72 |n}......|WITH par|
|00001950| 61 6d 50 74 72 5e 20 44 | 4f 0d 09 09 09 09 09 49 |amPtr^ D|O......I|
|00001960| 46 20 28 70 61 72 61 6d | 43 6f 75 6e 74 20 3c 20 |F (param|Count < |
|00001970| 32 29 20 4f 52 20 28 70 | 61 72 61 6d 43 6f 75 6e |2) OR (p|aramCoun|
|00001980| 74 20 3e 20 33 29 20 54 | 48 45 4e 0d 09 09 09 09 |t > 3) T|HEN.....|
|00001990| 09 09 42 45 47 49 4e 0d | 09 09 09 09 09 09 65 72 |..BEGIN.|......er|
|000019a0| 72 53 74 72 20 3a 3d 20 | 27 43 6f 72 72 65 63 74 |rStr := |'Correct|
|000019b0| 20 75 73 61 67 65 20 69 | 73 3a 20 22 53 6f 72 74 | usage i|s: "Sort|
|000019c0| 65 72 20 3c 66 75 6e 63 | 74 69 6f 6e 3e 20 3c 41 |er <func|tion> <A|
|000019d0| 35 3e 20 5b 3c 65 6e 74 | 72 79 3e 5d 22 27 3b 0d |5> [<ent|ry>]"';.|
|000019e0| 09 09 09 09 09 09 70 61 | 72 61 6d 50 74 72 5e 2e |......pa|ramPtr^.|
|000019f0| 72 65 74 75 72 6e 56 61 | 6c 75 65 20 3a 3d 20 50 |returnVa|lue := P|
|00001a00| 61 73 54 6f 5a 65 72 6f | 28 70 61 72 61 6d 50 74 |asToZero|(paramPt|
|00001a10| 72 2c 20 65 72 72 53 74 | 72 29 3b 0d 09 09 09 09 |r, errSt|r);.....|
|00001a20| 09 09 45 58 49 54 28 53 | 6f 72 74 65 72 29 3b 20 |..EXIT(S|orter); |
|00001a30| 7b 6c 65 61 76 65 20 74 | 68 65 20 58 43 4d 44 7d |{leave t|he XCMD}|
|00001a40| 0d 09 09 09 09 09 09 45 | 4e 44 3b 0d 0d 09 09 09 |.......E|ND;.....|
|00001a50| 09 63 6f 6d 6d 61 6e 64 | 20 3a 3d 20 56 61 6c 75 |.command| := Valu|
|00001a60| 65 4f 66 45 78 70 72 65 | 73 73 69 6f 6e 28 70 61 |eOfExpre|ssion(pa|
|00001a70| 72 61 6d 50 74 72 2c 20 | 6b 43 6f 6d 6d 61 6e 64 |ramPtr, |kCommand|
|00001a80| 49 6e 64 65 78 29 3b 0d | 0d 09 09 09 09 49 46 20 |Index);.|.....IF |
|00001a90| 63 6f 6d 6d 61 6e 64 20 | 3d 20 6b 46 69 72 73 74 |command |= kFirst|
|00001aa0| 54 69 6d 65 20 54 48 45 | 4e 0d 09 09 09 09 09 42 |Time THE|N......B|
|00001ab0| 45 47 49 4e 0d 09 09 09 | 09 09 4d 61 6b 65 41 35 |EGIN....|..MakeA5|
|00001ac0| 57 6f 72 6c 64 28 41 35 | 52 65 66 29 3b 0d 09 09 |World(A5|Ref);...|
|00001ad0| 09 09 09 53 65 74 47 6c | 6f 62 61 6c 41 74 28 70 |...SetGl|obalAt(p|
|00001ae0| 61 72 61 6d 50 74 72 2c | 20 6b 41 35 52 65 66 49 |aramPtr,| kA5RefI|
|00001af0| 6e 64 65 78 2c 20 4c 6f | 6e 67 69 6e 74 28 41 35 |ndex, Lo|ngint(A5|
|00001b00| 52 65 66 29 29 3b 0d 09 | 09 09 09 09 45 4e 44 0d |Ref));..|....END.|
|00001b10| 09 09 09 09 45 4c 53 45 | 0d 09 09 09 09 09 42 45 |....ELSE|......BE|
|00001b20| 47 49 4e 0d 09 09 09 09 | 09 41 35 52 65 66 20 3a |GIN.....|.A5Ref :|
|00001b30| 3d 20 41 35 52 65 66 54 | 79 70 65 28 56 61 6c 75 |= A5RefT|ype(Valu|
|00001b40| 65 4f 66 45 78 70 72 65 | 73 73 69 6f 6e 28 70 61 |eOfExpre|ssion(pa|
|00001b50| 72 61 6d 50 74 72 2c 20 | 6b 41 35 52 65 66 49 6e |ramPtr, |kA5RefIn|
|00001b60| 64 65 78 29 29 3b 0d 09 | 09 09 09 09 45 4e 44 3b |dex));..|....END;|
|00001b70| 0d 0d 09 09 09 09 49 46 | 20 28 41 35 52 65 66 20 |......IF| (A5Ref |
|00001b80| 3d 20 4e 49 4c 29 20 54 | 48 45 4e 0d 09 09 09 09 |= NIL) T|HEN.....|
|00001b90| 09 42 45 47 49 4e 0d 09 | 09 09 09 09 65 72 72 53 |.BEGIN..|....errS|
|00001ba0| 74 72 20 3a 3d 20 27 43 | 6f 75 6c 64 20 6e 6f 74 |tr := 'C|ould not|
|00001bb0| 20 67 65 74 20 61 6e 20 | 41 35 20 57 6f 72 6c 64 | get an |A5 World|
|00001bc0| 21 21 21 27 3b 0d 09 09 | 09 09 09 70 61 72 61 6d |!!!';...|...param|
|00001bd0| 50 74 72 5e 2e 72 65 74 | 75 72 6e 56 61 6c 75 65 |Ptr^.ret|urnValue|
|00001be0| 20 3a 3d 20 50 61 73 54 | 6f 5a 65 72 6f 28 70 61 | := PasT|oZero(pa|
|00001bf0| 72 61 6d 50 74 72 2c 20 | 65 72 72 53 74 72 29 3b |ramPtr, |errStr);|
|00001c00| 0d 09 09 09 09 09 45 58 | 49 54 28 53 6f 72 74 65 |......EX|IT(Sorte|
|00001c10| 72 29 3b 20 7b 6c 65 61 | 76 65 20 74 68 65 20 58 |r); {lea|ve the X|
|00001c20| 43 4d 44 7d 0d 09 09 09 | 09 09 45 4e 44 3b 0d 0d |CMD}....|..END;..|
|00001c30| 09 09 09 09 67 48 6f 73 | 74 41 35 20 3a 3d 20 53 |....gHos|tA5 := S|
|00001c40| 65 74 41 35 57 6f 72 6c | 64 28 41 35 52 65 66 29 |etA5Worl|d(A5Ref)|
|00001c50| 3b 0d 09 09 09 09 43 41 | 53 45 20 63 6f 6d 6d 61 |;.....CA|SE comma|
|00001c60| 6e 64 20 4f 46 0d 09 09 | 09 09 09 6b 46 69 72 73 |nd OF...|...kFirs|
|00001c70| 74 54 69 6d 65 3a 20 49 | 6e 69 74 69 61 6c 69 7a |tTime: I|nitializ|
|00001c80| 65 3b 0d 09 09 09 09 09 | 6b 41 64 64 45 6e 74 72 |e;......|kAddEntr|
|00001c90| 79 3a 20 41 64 64 41 6e | 45 6e 74 72 79 28 70 61 |y: AddAn|Entry(pa|
|00001ca0| 72 61 6d 50 74 72 29 3b | 0d 09 09 09 09 09 6b 53 |ramPtr);|......kS|
|00001cb0| 6f 72 74 45 6e 74 72 69 | 65 73 3a 20 53 6f 72 74 |ortEntri|es: Sort|
|00001cc0| 45 6e 74 72 69 65 73 28 | 70 61 72 61 6d 50 74 72 |Entries(|paramPtr|
|00001cd0| 29 3b 0d 09 09 09 09 09 | 6b 4c 61 73 74 54 69 6d |);......|kLastTim|
|00001ce0| 65 3a 20 46 72 65 65 44 | 61 74 61 3b 0d 09 09 09 |e: FreeD|ata;....|
|00001cf0| 09 45 4e 44 3b 0d 09 09 | 09 09 52 65 73 74 6f 72 |.END;...|..Restor|
|00001d00| 65 41 35 57 6f 72 6c 64 | 28 67 48 6f 73 74 41 35 |eA5World|(gHostA5|
|00001d10| 2c 20 41 35 52 65 66 29 | 3b 0d 0d 09 09 09 09 49 |, A5Ref)|;......I|
|00001d20| 46 20 63 6f 6d 6d 61 6e | 64 20 3d 20 6b 4c 61 73 |F comman|d = kLas|
|00001d30| 74 54 69 6d 65 20 54 48 | 45 4e 20 44 69 73 70 6f |tTime TH|EN Dispo|
|00001d40| 73 65 41 35 57 6f 72 6c | 64 28 41 35 52 65 66 29 |seA5Worl|d(A5Ref)|
|00001d50| 0d 0d 09 09 09 45 4e 44 | 3b 20 7b 6d 61 69 6e 7d |.....END|; {main}|
|00001d60| 0d 0d 45 4e 44 2e 0d 00 | 00 00 00 00 00 00 00 00 |..END...|........|
|00001d70| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001d80| 00 00 01 00 00 00 03 d0 | 00 00 02 d0 00 00 00 63 |........|.......c|
|00001d90| 65 63 65 69 76 65 73 2e | 20 54 68 69 73 20 72 65 |eceives.| This re|
|00001da0| 71 75 69 72 65 73 20 20 | 7d 0d 7b 20 74 68 65 20 |quires |}.{ the |
|00001db0| 08 53 6f 72 74 65 72 2e | 70 72 02 00 00 00 00 00 |.Sorter.|pr......|
|00001dc0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001dd0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001de0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001df0| 00 00 a3 20 02 b2 00 00 | 00 00 00 00 04 33 74 68 |... ....|.....3th|
|00001e00| 65 20 6d 6f 64 75 6c 65 | 20 77 68 65 6e 20 74 6f |e module| when to|
|00001e10| 20 69 6e 69 74 69 61 6c | 69 7a 65 20 61 6e 64 20 | initial|ize and |
|00001e20| 77 68 65 6e 20 74 6f 20 | 20 20 7d 0d 7b 20 74 65 |when to | }.{ te|
|00001e30| 61 72 20 64 6f 77 6e 2e | 20 54 68 65 20 68 6f 73 |ar down.| The hos|
|00001e40| 74 20 61 6c 73 6f 20 6d | 75 73 74 20 6d 61 69 6e |t also m|ust main|
|00001e50| 74 61 69 6e 20 61 20 68 | 61 6e 64 6c 65 20 74 6f |tain a h|andle to|
|00001e60| 20 74 68 65 20 20 20 20 | 20 20 20 7d 0d 7b 20 6d | the | }.{ m|
|00001e70| 6f 64 75 6c 65 27 73 20 | 41 35 20 77 6f 72 6c 64 |odule's |A5 world|
|00001e80| 00 00 00 48 00 09 4d 6f | 6e 61 63 6f 00 00 00 00 |...H..Mo|naco....|
|00001e90| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001ea0| 00 00 00 00 00 00 00 06 | 00 02 00 50 00 20 01 dd |........|...P. ..|
|00001eb0| 02 3d 00 50 00 20 01 dd | 02 3d a2 d1 fe 3a 00 00 |.=.P. ..|.=...:..|
|00001ec0| 00 00 00 00 00 00 00 00 | 00 00 01 00 00 00 00 36 |........|.......6|
|00001ed0| 00 75 64 82 ff ff ff ff | 5f 45 58 49 ff ff ff ff |.ud.....|_EXI....|
|00001ee0| ff ff ff ff 00 00 00 00 | 00 00 00 00 01 00 06 2e |........|........|
|00001ef0| 00 00 00 00 01 00 00 36 | 00 00 00 00 a2 d2 04 c9 |.......6|........|
|00001f00| 00 3a 00 a2 ff af 00 00 | 02 46 a1 52 96 6f a2 d2 |.:......|.F.R.o..|
|00001f10| 04 cd a2 d1 fe 3a 00 01 | 02 92 ff ff ff ff 4a 05 |.....:..|......J.|
|00001f20| 0a 01 00 00 00 00 00 00 | 00 00 00 00 00 06 00 4e |........|.......N|
|00001f30| 82 16 00 4e 99 8c 00 01 | 62 54 61 62 17 53 74 61 |...N....|bTab.Sta|
|00001f40| 6e 64 61 72 64 20 50 61 | 73 63 61 6c 20 53 79 6d |ndard Pa|scal Sym|
|00001f50| 62 6f 6c 73 79 6d 73 06 | 55 6e 64 65 66 73 06 48 |bolsyms.|Undefs.H|
|00001f60| 65 61 64 65 72 5c 00 00 | 01 ec 00 00 00 00 00 10 |eader\..|........|
|00001f70| 00 0c 00 00 00 00 00 00 | 00 00 00 00 00 4f 6b 62 |........|.....Okb|
|00001f80| 00 4f 6b 98 00 02 a2 d2 | 04 c9 04 46 52 45 44 2e |.Ok.....|...FRED.|
|00001f90| 00 00 04 00 00 4e ed 44 | 00 4e b0 92 2e 07 00 47 |.....N.D|.N.....G|
|00001fa0| 00 5b 4a 8c 00 57 9a 5e | 00 57 9a 5e 02 99 00 4e |.[J..W.^|.W.^...N|
|00001fb0| ed 76 00 00 04 00 00 4e | ed 44 00 4e 0f 92 0d ff |.v.....N|.D.N....|
|00001fc0| ff ff 00 5b 4a ae 00 57 | 9a 5e 00 00 00 00 00 00 |...[J..W|.^......|
|00001fd0| 00 00 00 00 a2 d2 04 cc | 09 53 41 47 4c 4f 42 41 |........|.SAGLOBA|
|00001fe0| 4c 53 00 4e ed 44 00 4e | b0 92 2e 07 00 47 00 5b |LS.N.D.N|.....G.[|
|00001ff0| 4a 8c 00 57 9a 5e 00 57 | 9a 5e 02 99 00 4e ed 76 |J..W.^.W|.^...N.v|
|00002000| 00 00 04 00 00 4e ed 44 | 00 4e 0f 92 0d ff ff ff |.....N.D|.N......|
|00002010| 00 5b 4a ae 00 57 9a 5e | 00 00 00 00 00 00 00 00 |.[J..W.^|........|
|00002020| 00 00 a2 d2 04 cc 09 48 | 59 50 45 52 58 43 4d 44 |.......H|YPERXCMD|
|00002030| 00 4e ed 44 00 4e b0 92 | 2e 07 00 47 00 5b 4a 8c |.N.D.N..|...G.[J.|
|00002040| 00 57 9a 5e 00 57 9a 5e | 02 99 00 4e ed 76 00 00 |.W.^.W.^|...N.v..|
|00002050| 04 00 00 4e ed 44 00 4e | 0f 92 0d ff ff ff 00 5b |...N.D.N|.......[|
|00002060| 4a ae 00 57 9a 5e 00 00 | 00 00 00 00 00 00 00 00 |J..W.^..|........|
|00002070| a2 d2 04 cb 07 4f 53 55 | 54 49 4c 53 4d 44 00 4e |.....OSU|TILSMD.N|
|00002080| ed 44 00 4e b0 92 2e 07 | 00 47 00 5b 4a 8c 00 57 |.D.N....|.G.[J..W|
|00002090| 9a 5e 00 57 9a 5e 02 99 | 00 4e ed 76 00 00 04 00 |.^.W.^..|.N.v....|
|000020a0| 00 4e ed 44 00 4e 0f 92 | 0d ff ff ff 00 5b 4a ae |.N.D.N..|.....[J.|
|000020b0| 00 57 9a 5e 00 00 00 00 | 00 00 00 00 00 00 a2 d2 |.W.^....|........|
|000020c0| 04 ca 06 4d 45 4d 4f 52 | 59 53 4d 44 00 4e ed 44 |...MEMOR|YSMD.N.D|
|000020d0| 00 4e b0 92 2e 07 00 47 | 00 5b 4a 8c 00 57 9a 5e |.N.....G|.[J..W.^|
|000020e0| 00 57 9a 5e 02 99 00 4e | ed 76 00 00 04 00 00 4e |.W.^...N|.v.....N|
|000020f0| ed 44 00 4e 0f 92 0d ff | ff ff 00 5b 4a ae 00 57 |.D.N....|...[J..W|
|00002100| 9a 5e 00 00 00 00 00 00 | 00 00 00 00 a2 d2 04 c9 |.^......|........|
|00002110| 05 54 59 50 45 53 59 53 | 4d 44 00 4e ed 44 00 4e |.TYPESYS|MD.N.D.N|
|00002120| b0 92 2e 07 00 47 00 5b | 4a 8c 00 57 9a 5e 00 57 |.....G.[|J..W.^.W|
|00002130| 9a 5e 02 99 00 4e ed 76 | 00 00 04 00 00 4e ed 44 |.^...N.v|.....N.D|
|00002140| 00 4e 0f 92 0d ff ff ff | 00 5b 4a ae 00 57 9a 5e |.N......|.[J..W.^|
|00002150| 00 00 01 00 00 00 03 d0 | 00 00 02 d0 00 00 00 63 |........|.......c|
|00002160| 00 4d 51 44 0d 3a 00 00 | 00 1c 00 52 00 01 4d 50 |.MQD.:..|...R..MP|
|00002170| 53 52 00 00 00 12 75 6e | 69 74 00 01 00 1e 03 ed |SR....un|it......|
|00002180| ff ff 00 00 00 00 00 00 | 00 00 00 03 00 00 00 00 |........|........|
|00002190| 00 4c 00 00 00 00 00 00 | 00 0a 00 00 00 86 00 00 |.L......|........|
|000021a0| 00 00 09 53 79 6d 62 54 | 61 62 6c 65 06 48 65 61 |...SymbT|able.Hea|
|000021b0| 64 65 72 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |der.....|........|
|000021c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000021d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000021e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000021f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
+--------+-------------------------+-------------------------+--------+--------+