home *** CD-ROM | disk | FTP | other *** search
/ developer.apple.com / developer.apple.com.tar / developer.apple.com / tools / debuggers / PowerMacDebugger / Downloads / PowerMacDebugger_2.1.sit / Power Mac Debugger / Debugger Extensions / put.c < prev    next >
MacBinary  |  1997-01-30  |  4.0 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 Compact Compressed (Unix) (archive/compact) ext Supported
10% dexvert MacBinary (archive/macBinary) fallback Supported
10% dexvert Jesper Olsen Module (music/jesperOlsen) magic Supported
1% dexvert Text File (text/txt) fallback Supported
100% file MacBinary II, inited, Thu Jan 30 11:00:00 1997, modified Thu Jan 30 11:00:00 1997, creator 'MPS ', type ASCII, 3228 bytes "put.c" , at 0xd1c 610 bytes resource default (weak)
99% file data default
49% TrID Macintosh plain text (MacBinary) default
33% TrID TTComp archive compressed (bin-2K) default (weak)
16% TrID MacBinary 2 default (weak)
0% TrID Sybase iAnywhere database files default (weak)
100% siegfried fmt/1762 MacBinary (II) default
100% lsar MacBinary default


id metadata
keyvalue
macFileType[TEXT]
macFileCreator[MPS ]



hex view
+--------+-------------------------+-------------------------+--------+--------+
|00000000| 00 05 70 75 74 2e 63 00 | 00 00 00 00 00 00 00 00 |..put.c.|........|
|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 0c 9c 00 | 00 02 62 af 16 76 00 af |........|..b..v..|
|00000060| 16 76 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |.v......|........|
|00000070| 00 00 00 00 00 00 00 00 | 00 00 81 81 2d 48 00 00 |........|....-H..|
|00000080| 2f 2a 09 70 75 74 2e 63 | 0d 09 54 68 69 73 20 69 |/*.put.c|..This i|
|00000090| 73 20 61 20 73 65 74 20 | 6f 66 20 66 6f 72 6d 61 |s a set |of forma|
|000000a0| 74 74 69 6e 67 20 72 6f | 75 74 69 6e 65 73 20 66 |tting ro|utines f|
|000000b0| 6f 72 20 75 73 65 20 62 | 79 20 64 63 6d 64 73 2e |or use b|y dcmds.|
|000000c0| 0d 09 43 6f 70 79 72 69 | 67 68 74 20 a9 20 31 39 |..Copyri|ght . 19|
|000000d0| 38 38 20 41 70 70 6c 65 | 20 43 6f 6d 70 75 74 65 |88 Apple| Compute|
|000000e0| 72 2c 20 49 6e 63 2e 20 | 20 41 6c 6c 20 72 69 67 |r, Inc. | All rig|
|000000f0| 68 74 73 20 72 65 73 65 | 72 76 65 64 2e 0d 0d 09 |hts rese|rved....|
|00000100| 4d 6f 64 69 66 69 63 61 | 74 69 6f 6e 20 68 69 73 |Modifica|tion his|
|00000110| 74 6f 72 79 3a 0d 09 09 | 32 39 4e 6f 76 38 38 20 |tory:...|29Nov88 |
|00000120| 73 61 64 09 09 72 65 76 | 69 73 65 64 20 66 6f 72 |sad..rev|ised for|
|00000130| 20 6e 65 77 20 64 63 6d | 64 20 6e 61 6d 65 73 2e | new dcm|d names.|
|00000140| 0d 09 09 20 35 4f 63 74 | 38 38 20 73 61 64 09 09 |... 5Oct|88 sad..|
|00000150| 77 72 69 74 74 65 6e 20 | 66 72 6f 6d 20 66 69 6c |written |from fil|
|00000160| 65 2e 63 0d 20 2a 2f 0d | 0d 23 69 6e 63 6c 75 64 |e.c. */.|.#includ|
|00000170| 65 20 3c 54 79 70 65 73 | 2e 68 3e 0d 23 69 6e 63 |e <Types|.h>.#inc|
|00000180| 6c 75 64 65 20 22 64 63 | 6d 64 2e 68 22 0d 0d 73 |lude "dc|md.h"..s|
|00000190| 74 61 74 69 63 20 53 74 | 72 32 35 35 20 6c 69 6e |tatic St|r255 lin|
|000001a0| 65 3b 0d 73 74 61 74 69 | 63 20 69 6e 74 20 6c 69 |e;.stati|c int li|
|000001b0| 6e 65 70 6f 73 20 3d 20 | 30 3b 0d 0d 0d 73 74 61 |nepos = |0;...sta|
|000001c0| 74 69 63 20 76 6f 69 64 | 20 6d 6f 76 65 62 79 74 |tic void| movebyt|
|000001d0| 65 73 20 28 20 75 6e 73 | 69 67 6e 65 64 20 63 68 |es ( uns|igned ch|
|000001e0| 61 72 20 2a 73 2c 20 75 | 6e 73 69 67 6e 65 64 20 |ar *s, u|nsigned |
|000001f0| 63 68 61 72 20 2a 74 2c | 20 72 65 67 69 73 74 65 |char *t,| registe|
|00000200| 72 20 6c 6f 6e 67 20 6c | 65 6e 67 74 68 20 29 20 |r long l|ength ) |
|00000210| 0d 7b 0d 09 69 66 20 28 | 28 73 20 2b 20 6c 65 6e |.{..if (|(s + len|
|00000220| 67 74 68 29 20 3c 3d 20 | 74 29 0d 09 09 77 68 69 |gth) <= |t)...whi|
|00000230| 6c 65 20 28 2d 2d 6c 65 | 6e 67 74 68 20 3e 3d 20 |le (--le|ngth >= |
|00000240| 30 29 20 2a 74 2b 2b 20 | 3d 20 2a 73 2b 2b 3b 0d |0) *t++ |= *s++;.|
|00000250| 09 65 6c 73 65 0d 09 09 | 7b 0d 09 09 73 20 2b 3d |.else...|{...s +=|
|00000260| 20 6c 65 6e 67 74 68 3b | 0d 09 09 74 20 2b 3d 20 | length;|...t += |
|00000270| 6c 65 6e 67 74 68 3b 0d | 09 09 77 68 69 6c 65 20 |length;.|..while |
|00000280| 28 2d 2d 6c 65 6e 67 74 | 68 20 3e 3d 20 30 29 20 |(--lengt|h >= 0) |
|00000290| 2a 2d 2d 74 20 3d 20 2a | 2d 2d 73 3b 0d 09 09 7d |*--t = *|--s;...}|
|000002a0| 0d 7d 20 2f 2f 20 6d 6f | 76 65 62 79 74 65 73 0d |.} // mo|vebytes.|
|000002b0| 0d 0d 23 64 65 66 69 6e | 65 20 42 6c 6f 63 6b 4d |..#defin|e BlockM|
|000002c0| 6f 76 65 09 6d 6f 76 65 | 62 79 74 65 73 0d 0d 0d |ove.move|bytes...|
|000002d0| 76 6f 69 64 20 50 75 74 | 4c 69 6e 65 28 29 0d 7b |void Put|Line().{|
|000002e0| 0d 09 42 6c 6f 63 6b 4d | 6f 76 65 28 6c 69 6e 65 |..BlockM|ove(line|
|000002f0| 2c 6c 69 6e 65 2b 31 2c | 6c 69 6e 65 70 6f 73 29 |,line+1,|linepos)|
|00000300| 3b 20 20 61 20 74 6f 6f | 6c 62 6f 78 20 63 61 6c |; a too|lbox cal|
|00000310| 6c 0d 09 6c 69 6e 65 5b | 30 5d 20 3d 20 6c 69 6e |l..line[|0] = lin|
|00000320| 65 70 6f 73 3b 0d 09 64 | 63 6d 64 44 72 61 77 4c |epos;..d|cmdDrawL|
|00000330| 69 6e 65 28 6c 69 6e 65 | 29 3b 0d 09 6c 69 6e 65 |ine(line|);..line|
|00000340| 70 6f 73 20 3d 20 30 3b | 0d 7d 20 2f 2f 20 50 75 |pos = 0;|.} // Pu|
|00000350| 74 4c 69 6e 65 0d 0d 0d | 76 6f 69 64 20 50 75 74 |tLine...|void Put|
|00000360| 43 68 61 72 28 63 68 61 | 72 20 63 29 0d 7b 0d 09 |Char(cha|r c).{..|
|00000370| 6c 69 6e 65 5b 6c 69 6e | 65 70 6f 73 2b 2b 5d 20 |line[lin|epos++] |
|00000380| 3d 20 63 3b 0d 7d 20 2f | 2f 20 50 75 74 43 68 61 |= c;.} /|/ PutCha|
|00000390| 72 0d 0d 0d 76 6f 69 64 | 20 50 75 74 53 70 61 63 |r...void| PutSpac|
|000003a0| 65 28 29 0d 7b 0d 09 50 | 75 74 43 68 61 72 28 27 |e().{..P|utChar('|
|000003b0| 20 27 29 3b 0d 7d 20 2f | 2f 20 50 75 74 53 70 61 | ');.} /|/ PutSpa|
|000003c0| 63 65 0d 0d 0d 76 6f 69 | 64 20 50 75 74 53 70 61 |ce...voi|d PutSpa|
|000003d0| 63 65 73 54 6f 28 69 6e | 74 20 70 6f 73 29 0d 7b |cesTo(in|t pos).{|
|000003e0| 0d 09 77 68 69 6c 65 20 | 28 6c 69 6e 65 70 6f 73 |..while |(linepos|
|000003f0| 20 3c 20 70 6f 73 29 20 | 50 75 74 53 70 61 63 65 | < pos) |PutSpace|
|00000400| 28 29 3b 0d 7d 20 2f 2f | 20 50 75 74 53 70 61 63 |();.} //| PutSpac|
|00000410| 65 73 54 6f 0d 0d 0d 76 | 6f 69 64 20 50 75 74 42 |esTo...v|oid PutB|
|00000420| 79 74 65 73 54 72 75 6e | 63 54 6f 28 63 6f 6e 73 |ytesTrun|cTo(cons|
|00000430| 74 20 63 68 61 72 2a 20 | 73 2c 20 69 6e 74 20 6c |t char* |s, int l|
|00000440| 65 6e 2c 20 69 6e 74 20 | 70 6f 73 29 0d 7b 0d 09 |en, int |pos).{..|
|00000450| 69 66 20 28 70 6f 73 20 | 3e 20 6c 69 6e 65 70 6f |if (pos |> linepo|
|00000460| 73 29 0d 09 09 7b 0d 09 | 09 69 66 20 28 6c 65 6e |s)...{..|.if (len|
|00000470| 20 3c 3d 20 70 6f 73 20 | 2d 20 6c 69 6e 65 70 6f | <= pos |- linepo|
|00000480| 73 29 0d 09 09 09 7b 0d | 09 09 09 42 6c 6f 63 6b |s)....{.|...Block|
|00000490| 4d 6f 76 65 28 73 2c 6c | 69 6e 65 2b 6c 69 6e 65 |Move(s,l|ine+line|
|000004a0| 70 6f 73 2c 6c 65 6e 29 | 3b 0d 09 09 09 6c 69 6e |pos,len)|;....lin|
|000004b0| 65 70 6f 73 20 2b 3d 20 | 6c 65 6e 3b 0d 09 09 09 |epos += |len;....|
|000004c0| 77 68 69 6c 65 20 28 6c | 69 6e 65 70 6f 73 20 3c |while (l|inepos <|
|000004d0| 20 70 6f 73 29 20 50 75 | 74 53 70 61 63 65 28 29 | pos) Pu|tSpace()|
|000004e0| 3b 0d 09 09 09 7d 0d 09 | 09 65 6c 73 65 0d 09 09 |;....}..|.else...|
|000004f0| 09 7b 0d 09 09 09 42 6c | 6f 63 6b 4d 6f 76 65 28 |.{....Bl|ockMove(|
|00000500| 73 2c 6c 69 6e 65 2b 6c | 69 6e 65 70 6f 73 2c 70 |s,line+l|inepos,p|
|00000510| 6f 73 2d 6c 69 6e 65 70 | 6f 73 2d 31 29 3b 0d 09 |os-linep|os-1);..|
|00000520| 09 09 6c 69 6e 65 70 6f | 73 20 3d 20 70 6f 73 20 |..linepo|s = pos |
|00000530| 2d 20 31 3b 0d 09 09 09 | 50 75 74 43 68 61 72 28 |- 1;....|PutChar(|
|00000540| 27 c9 27 29 3b 0d 09 09 | 09 7d 0d 09 09 6c 69 6e |'.');...|.}...lin|
|00000550| 65 5b 6c 69 6e 65 70 6f | 73 5d 20 3d 20 27 5c 30 |e[linepo|s] = '\0|
|00000560| 27 3b 0d 09 09 7d 0d 7d | 20 2f 2f 20 50 75 74 42 |';...}.}| // PutB|
|00000570| 79 74 65 73 54 72 75 6e | 63 54 6f 0d 0d 0d 76 6f |ytesTrun|cTo...vo|
|00000580| 69 64 20 50 75 74 42 79 | 74 65 73 54 6f 28 63 6f |id PutBy|tesTo(co|
|00000590| 6e 73 74 20 63 68 61 72 | 2a 20 73 2c 20 69 6e 74 |nst char|* s, int|
|000005a0| 20 6c 65 6e 2c 20 69 6e | 74 20 70 6f 73 29 0d 7b | len, in|t pos).{|
|000005b0| 0d 09 42 6c 6f 63 6b 4d | 6f 76 65 28 73 2c 6c 69 |..BlockM|ove(s,li|
|000005c0| 6e 65 2b 6c 69 6e 65 70 | 6f 73 2c 6c 65 6e 29 3b |ne+linep|os,len);|
|000005d0| 0d 09 6c 69 6e 65 70 6f | 73 20 2b 3d 20 6c 65 6e |..linepo|s += len|
|000005e0| 3b 0d 09 77 68 69 6c 65 | 20 28 6c 69 6e 65 70 6f |;..while| (linepo|
|000005f0| 73 20 3c 20 70 6f 73 29 | 20 50 75 74 53 70 61 63 |s < pos)| PutSpac|
|00000600| 65 28 29 3b 0d 09 6c 69 | 6e 65 5b 6c 69 6e 65 70 |e();..li|ne[linep|
|00000610| 6f 73 5d 20 3d 20 27 5c | 30 27 3b 0d 7d 20 2f 2f |os] = '\|0';.} //|
|00000620| 20 50 75 74 42 79 74 65 | 73 54 6f 0d 0d 0d 76 6f | PutByte|sTo...vo|
|00000630| 69 64 20 50 75 74 43 53 | 74 72 54 6f 28 63 6f 6e |id PutCS|trTo(con|
|00000640| 73 74 20 63 68 61 72 2a | 20 73 2c 20 69 6e 74 20 |st char*| s, int |
|00000650| 70 6f 73 29 0d 7b 0d 09 | 69 6e 74 20 73 6c 65 6e |pos).{..|int slen|
|00000660| 20 3d 20 73 74 72 6c 65 | 6e 28 73 29 3b 0d 09 50 | = strle|n(s);..P|
|00000670| 75 74 42 79 74 65 73 54 | 6f 28 73 2c 73 6c 65 6e |utBytesT|o(s,slen|
|00000680| 2c 70 6f 73 29 3b 0d 7d | 20 2f 2f 20 50 75 74 43 |,pos);.}| // PutC|
|00000690| 53 74 72 54 6f 0d 0d 0d | 76 6f 69 64 20 50 75 74 |StrTo...|void Put|
|000006a0| 43 53 74 72 54 72 75 6e | 63 54 6f 28 63 6f 6e 73 |CStrTrun|cTo(cons|
|000006b0| 74 20 63 68 61 72 2a 20 | 73 2c 20 69 6e 74 20 70 |t char* |s, int p|
|000006c0| 6f 73 29 0d 7b 0d 09 69 | 6e 74 20 73 6c 65 6e 20 |os).{..i|nt slen |
|000006d0| 3d 20 73 74 72 6c 65 6e | 28 73 29 3b 0d 09 50 75 |= strlen|(s);..Pu|
|000006e0| 74 42 79 74 65 73 54 72 | 75 6e 63 54 6f 28 73 2c |tBytesTr|uncTo(s,|
|000006f0| 73 6c 65 6e 2c 70 6f 73 | 29 3b 0d 7d 20 2f 2f 20 |slen,pos|);.} // |
|00000700| 50 75 74 43 53 74 72 54 | 6f 0d 0d 0d 76 6f 69 64 |PutCStrT|o...void|
|00000710| 20 50 75 74 43 53 74 72 | 28 63 6f 6e 73 74 20 63 | PutCStr|(const c|
|00000720| 68 61 72 2a 20 73 29 0d | 7b 0d 09 69 6e 74 20 73 |har* s).|{..int s|
|00000730| 6c 65 6e 20 3d 20 73 74 | 72 6c 65 6e 28 73 29 3b |len = st|rlen(s);|
|00000740| 0d 09 50 75 74 42 79 74 | 65 73 54 6f 28 73 2c 73 |..PutByt|esTo(s,s|
|00000750| 6c 65 6e 2c 30 29 3b 0d | 7d 20 2f 2f 20 50 75 74 |len,0);.|} // Put|
|00000760| 43 53 74 72 0d 0d 0d 76 | 6f 69 64 20 50 75 74 50 |CStr...v|oid PutP|
|00000770| 53 74 72 54 72 75 6e 63 | 54 6f 28 63 6f 6e 73 74 |StrTrunc|To(const|
|00000780| 20 63 68 61 72 2a 20 73 | 2c 20 69 6e 74 20 70 6f | char* s|, int po|
|00000790| 73 29 0d 7b 0d 09 69 6e | 74 20 73 6c 65 6e 20 3d |s).{..in|t slen =|
|000007a0| 20 2a 28 75 6e 73 69 67 | 6e 65 64 20 63 68 61 72 | *(unsig|ned char|
|000007b0| 20 2a 29 73 3b 0d 09 50 | 75 74 42 79 74 65 73 54 | *)s;..P|utBytesT|
|000007c0| 72 75 6e 63 54 6f 28 73 | 2b 31 2c 73 6c 65 6e 2c |runcTo(s|+1,slen,|
|000007d0| 70 6f 73 29 3b 0d 7d 20 | 2f 2f 20 50 75 74 50 53 |pos);.} |// PutPS|
|000007e0| 74 72 54 6f 0d 0d 0d 76 | 6f 69 64 20 50 75 74 50 |trTo...v|oid PutP|
|000007f0| 53 74 72 54 6f 28 63 6f | 6e 73 74 20 63 68 61 72 |StrTo(co|nst char|
|00000800| 2a 20 73 2c 20 69 6e 74 | 20 70 6f 73 29 0d 7b 0d |* s, int| pos).{.|
|00000810| 09 69 6e 74 20 73 6c 65 | 6e 20 3d 20 2a 28 75 6e |.int sle|n = *(un|
|00000820| 73 69 67 6e 65 64 20 63 | 68 61 72 20 2a 29 73 3b |signed c|har *)s;|
|00000830| 0d 09 50 75 74 42 79 74 | 65 73 54 6f 28 73 2b 31 |..PutByt|esTo(s+1|
|00000840| 2c 73 6c 65 6e 2c 70 6f | 73 29 3b 0d 7d 20 2f 2f |,slen,po|s);.} //|
|00000850| 20 50 75 74 50 53 74 72 | 54 6f 0d 0d 0d 76 6f 69 | PutPStr|To...voi|
|00000860| 64 20 50 75 74 50 53 74 | 72 28 63 6f 6e 73 74 20 |d PutPSt|r(const |
|00000870| 63 68 61 72 2a 20 73 29 | 0d 7b 0d 09 69 6e 74 20 |char* s)|.{..int |
|00000880| 73 6c 65 6e 20 3d 20 2a | 28 75 6e 73 69 67 6e 65 |slen = *|(unsigne|
|00000890| 64 20 63 68 61 72 20 2a | 29 73 3b 0d 09 50 75 74 |d char *|)s;..Put|
|000008a0| 42 79 74 65 73 54 6f 28 | 73 2b 31 2c 73 6c 65 6e |BytesTo(|s+1,slen|
|000008b0| 2c 30 29 3b 0d 7d 20 2f | 2f 20 50 75 74 50 53 74 |,0);.} /|/ PutPSt|
|000008c0| 72 0d 0d 0d 76 6f 69 64 | 20 50 75 74 55 48 65 78 |r...void| PutUHex|
|000008d0| 5a 54 6f 28 75 6e 73 69 | 67 6e 65 64 20 6c 6f 6e |ZTo(unsi|gned lon|
|000008e0| 67 20 69 2c 20 69 6e 74 | 20 6e 64 69 67 2c 20 69 |g i, int| ndig, i|
|000008f0| 6e 74 20 70 6f 73 29 0d | 7b 0d 75 6e 73 69 67 6e |nt pos).|{.unsign|
|00000900| 65 64 20 6c 6f 6e 67 20 | 64 69 67 20 3d 20 69 20 |ed long |dig = i |
|00000910| 25 20 30 78 31 30 3b 0d | 75 6e 73 69 67 6e 65 64 |% 0x10;.|unsigned|
|00000920| 20 6c 6f 6e 67 20 72 65 | 73 74 20 3d 20 69 20 2f | long re|st = i /|
|00000930| 20 30 78 31 30 3b 0d 09 | 69 66 20 28 72 65 73 74 | 0x10;..|if (rest|
|00000940| 20 21 3d 20 30 29 20 50 | 75 74 55 48 65 78 5a 54 | != 0) P|utUHexZT|
|00000950| 6f 28 72 65 73 74 2c 6e | 64 69 67 20 2d 20 31 2c |o(rest,n|dig - 1,|
|00000960| 70 6f 73 20 2d 20 31 29 | 3b 0d 09 65 6c 73 65 0d |pos - 1)|;..else.|
|00000970| 09 09 7b 0d 09 09 70 6f | 73 20 2d 3d 20 31 3b 09 |..{...po|s -= 1;.|
|00000980| 09 2f 2f 20 6f 6e 65 20 | 66 6f 72 20 74 68 69 73 |.// one |for this|
|00000990| 20 64 69 67 69 74 0d 09 | 09 69 66 20 28 6e 64 69 | digit..|.if (ndi|
|000009a0| 67 20 3e 20 30 29 20 70 | 6f 73 20 2d 3d 20 6e 64 |g > 0) p|os -= nd|
|000009b0| 69 67 20 2d 20 31 3b 09 | 09 2f 2f 20 74 68 65 20 |ig - 1;.|.// the |
|000009c0| 6c 65 61 64 69 6e 67 20 | 7a 65 72 6f 73 0d 09 09 |leading |zeros...|
|000009d0| 77 68 69 6c 65 20 28 6c | 69 6e 65 70 6f 73 20 3c |while (l|inepos <|
|000009e0| 20 70 6f 73 29 20 50 75 | 74 53 70 61 63 65 28 29 | pos) Pu|tSpace()|
|000009f0| 3b 0d 09 09 77 68 69 6c | 65 20 28 2d 2d 6e 64 69 |;...whil|e (--ndi|
|00000a00| 67 20 3e 20 30 29 20 50 | 75 74 43 68 61 72 28 27 |g > 0) P|utChar('|
|00000a10| 30 27 29 3b 0d 09 09 7d | 0d 09 69 66 20 28 64 69 |0');...}|..if (di|
|00000a20| 67 20 3c 20 31 30 29 20 | 50 75 74 43 68 61 72 28 |g < 10) |PutChar(|
|00000a30| 27 30 27 20 2b 20 64 69 | 67 29 3b 0d 09 65 6c 73 |'0' + di|g);..els|
|00000a40| 65 20 50 75 74 43 68 61 | 72 28 27 61 27 20 2b 20 |e PutCha|r('a' + |
|00000a50| 28 64 69 67 20 2d 20 31 | 30 29 29 3b 0d 7d 20 2f |(dig - 1|0));.} /|
|00000a60| 2f 20 50 75 74 55 48 65 | 78 5a 54 6f 0d 0d 0d 76 |/ PutUHe|xZTo...v|
|00000a70| 6f 69 64 20 50 75 74 55 | 48 65 78 5a 28 75 6e 73 |oid PutU|HexZ(uns|
|00000a80| 69 67 6e 65 64 20 6c 6f | 6e 67 20 69 2c 20 69 6e |igned lo|ng i, in|
|00000a90| 74 20 6e 7a 29 0d 7b 0d | 09 50 75 74 55 48 65 78 |t nz).{.|.PutUHex|
|00000aa0| 5a 54 6f 28 69 2c 6e 7a | 2c 30 29 3b 0d 7d 20 2f |ZTo(i,nz|,0);.} /|
|00000ab0| 2f 20 50 75 74 55 48 65 | 78 5a 0d 0d 0d 76 6f 69 |/ PutUHe|xZ...voi|
|00000ac0| 64 20 50 75 74 55 48 65 | 78 57 6f 72 64 28 75 6e |d PutUHe|xWord(un|
|00000ad0| 73 69 67 6e 65 64 20 6c | 6f 6e 67 20 69 29 0d 7b |signed l|ong i).{|
|00000ae0| 0d 09 50 75 74 55 48 65 | 78 5a 54 6f 28 28 75 6e |..PutUHe|xZTo((un|
|00000af0| 73 69 67 6e 65 64 20 73 | 68 6f 72 74 29 69 2c 34 |signed s|hort)i,4|
|00000b00| 2c 30 29 3b 0d 7d 20 2f | 2f 20 50 75 74 55 48 65 |,0);.} /|/ PutUHe|
|00000b10| 78 5a 0d 0d 0d 76 6f 69 | 64 20 50 75 74 55 44 65 |xZ...voi|d PutUDe|
|00000b20| 63 54 6f 28 75 6e 73 69 | 67 6e 65 64 20 6c 6f 6e |cTo(unsi|gned lon|
|00000b30| 67 20 69 2c 20 69 6e 74 | 20 70 6f 73 29 0d 7b 0d |g i, int| pos).{.|
|00000b40| 75 6e 73 69 67 6e 65 64 | 20 6c 6f 6e 67 20 64 69 |unsigned| long di|
|00000b50| 67 20 3d 20 69 20 25 20 | 31 30 3b 0d 75 6e 73 69 |g = i % |10;.unsi|
|00000b60| 67 6e 65 64 20 6c 6f 6e | 67 20 72 65 73 74 20 3d |gned lon|g rest =|
|00000b70| 20 69 20 2f 20 31 30 3b | 0d 09 69 66 20 28 72 65 | i / 10;|..if (re|
|00000b80| 73 74 20 21 3d 20 30 29 | 20 50 75 74 55 44 65 63 |st != 0)| PutUDec|
|00000b90| 54 6f 28 72 65 73 74 2c | 70 6f 73 20 2d 20 31 29 |To(rest,|pos - 1)|
|00000ba0| 3b 0d 09 65 6c 73 65 0d | 09 09 7b 0d 09 09 70 6f |;..else.|..{...po|
|00000bb0| 73 20 2d 3d 20 32 3b 09 | 2f 2f 20 6f 6e 65 20 66 |s -= 2;.|// one f|
|00000bc0| 6f 72 20 74 68 65 20 27 | 23 27 20 61 6e 64 20 6f |or the '|#' and o|
|00000bd0| 6e 65 20 66 6f 72 20 74 | 68 69 73 20 64 69 67 69 |ne for t|his digi|
|00000be0| 74 0d 09 09 77 68 69 6c | 65 20 28 6c 69 6e 65 70 |t...whil|e (linep|
|00000bf0| 6f 73 20 3c 20 70 6f 73 | 29 20 50 75 74 53 70 61 |os < pos|) PutSpa|
|00000c00| 63 65 28 29 3b 0d 09 09 | 50 75 74 43 68 61 72 28 |ce();...|PutChar(|
|00000c10| 27 23 27 29 3b 0d 09 09 | 7d 0d 09 50 75 74 43 68 |'#');...|}..PutCh|
|00000c20| 61 72 28 27 30 27 20 2b | 20 64 69 67 29 3b 0d 7d |ar('0' +| dig);.}|
|00000c30| 20 2f 2f 20 50 75 74 55 | 44 65 63 54 6f 0d 0d 0d | // PutU|DecTo...|
|00000c40| 76 6f 69 64 20 50 75 74 | 55 44 65 63 28 75 6e 73 |void Put|UDec(uns|
|00000c50| 69 67 6e 65 64 20 6c 6f | 6e 67 20 69 29 0d 7b 0d |igned lo|ng i).{.|
|00000c60| 09 50 75 74 55 44 65 63 | 54 6f 28 69 2c 30 29 3b |.PutUDec|To(i,0);|
|00000c70| 0d 7d 20 2f 2f 20 50 75 | 74 55 44 65 63 0d 0d 0d |.} // Pu|tUDec...|
|00000c80| 76 6f 69 64 20 50 75 74 | 4f 53 54 79 70 65 28 75 |void Put|OSType(u|
|00000c90| 6e 73 69 67 6e 65 64 20 | 6c 6f 6e 67 20 74 79 70 |nsigned |long typ|
|00000ca0| 29 0d 7b 0d 09 50 75 74 | 43 68 61 72 28 28 74 79 |).{..Put|Char((ty|
|00000cb0| 70 3e 3e 32 34 29 20 26 | 20 30 78 66 66 29 3b 0d |p>>24) &| 0xff);.|
|00000cc0| 09 50 75 74 43 68 61 72 | 28 28 74 79 70 3e 3e 31 |.PutChar|((typ>>1|
|00000cd0| 36 29 20 26 20 30 78 66 | 66 29 3b 0d 09 50 75 74 |6) & 0xf|f);..Put|
|00000ce0| 43 68 61 72 28 28 74 79 | 70 3e 3e 38 29 20 26 20 |Char((ty|p>>8) & |
|00000cf0| 30 78 66 66 29 3b 0d 09 | 50 75 74 43 68 61 72 28 |0xff);..|PutChar(|
|00000d00| 74 79 70 20 26 20 30 78 | 66 66 29 3b 0d 7d 20 2f |typ & 0x|ff);.} /|
|00000d10| 2f 20 50 75 74 4f 53 54 | 79 70 65 0d 00 00 00 00 |/ PutOST|ype.....|
|00000d20| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000d30| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000d40| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000d50| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000d60| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000d70| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000d80| 00 00 01 00 00 00 01 f2 | 00 00 00 f2 00 00 00 70 |........|.......p|
|00000d90| 2e ff d8 3f 2e ff da 42 | a7 2f 2e 00 08 4e ad 06 |...?...B|./...N..|
|00000da0| 5a 60 48 10 2e ff f2 48 | 80 53 40 67 0a 53 40 67 |Z`H....H|.S@g.S@g|
|00000db0| 05 70 75 74 2e 63 02 00 | 00 00 54 45 58 54 4d 50 |.put.c..|..TEXTMP|
|00000dc0| 53 20 01 00 ff ff ff ff | 00 00 00 00 2f 93 00 00 |S ......|..../...|
|00000dd0| 00 00 54 45 58 54 4d 50 | 53 20 01 00 ff ff ff ff |..TEXTMP|S ......|
|00000de0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000df0| 00 00 a7 3f b2 c0 00 00 | 0c 9c 00 00 02 62 08 4e |...?....|.....b.N|
|00000e00| ad 06 a2 1d 5f ff e8 10 | 2d ec 12 67 56 3f 3c ef |...._...|-..gV?<.|
|00000e10| c0 48 6e ff ee 2f 3c 00 | 00 00 03 42 a7 1f 3c 00 |.Hn../<.|...B..<.|
|00000e20| 01 70 00 10 2e ff e8 72 | 0c e3 a8 72 00 74 20 94 |.p.....r|...r.t .|
|00000e30| 47 94 6e 00 10 32 02 ed | 89 d2 80 30 2e 00 10 48 |G.n..2..|...0...H|
|00000e40| c0 d0 81 3f 00 2f 2e 00 | 08 4e ad 06 5a 10 2e 00 |...?./..|.N..Z...|
|00000e50| 0c 67 0c 1f 2e ff e8 2f | 2e 00 08 4e ad 05 8a 60 |.g...../|...N...`|
|00000e60| 00 02 5c 10 2e 00 0c 67 | 00 00 e6 70 10 b0 47 6e |..\....g|...p..Gn|
|00000e70| 18 3f 3c 48 40 10 2e ff | e8 48 80 3f 00 2f 2e 00 |.?<H@...|.H.?./..|
|00000e80| 00 00 00 48 00 09 4d 6f | 6e 61 63 6f 00 0e 01 58 |...H..Mo|naco...X|
|00000e90| 00 00 00 14 00 01 7d a8 | 00 0a 01 58 00 0a 01 63 |......}.|...X...c|
|00000ea0| 02 0e 00 0a 00 00 00 06 | 00 04 00 5a 00 cc 03 1b |........|...Z....|
|00000eb0| 03 2e 00 5a 00 cc 03 1b | 03 2e a7 56 fc c3 00 00 |...Z....|...V....|
|00000ec0| 00 00 00 00 00 00 00 00 | 00 00 01 00 00 00 00 1e |........|........|
|00000ed0| 00 5a 00 cc 03 1b 03 2e | 00 5a 00 cc 03 1b 03 2e |.Z......|.Z......|
|00000ee0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000ef0| 00 68 d7 6c 24 0c 3f e5 | 32 30 00 04 00 00 00 00 |.h.l$.?.|20......|
|00000f00| 00 00 00 00 af 16 39 55 | af 16 39 55 a7 56 f0 b2 |......9U|..9U.V..|
|00000f10| 00 28 89 7d 00 00 00 06 | 00 01 0e 4e 75 62 45 78 |.(.}....|...NubEx|
|00000f20| 74 65 6e 73 69 6f 6e 73 | ba 00 0c 47 61 72 79 20 |tensions|...Gary |
|00000f30| 4b 72 61 74 7a 65 72 00 | 01 31 00 05 70 75 74 2e |Kratzer.|.1..put.|
|00000f40| 63 00 02 23 31 00 00 11 | 46 69 72 73 74 20 63 68 |c..#1...|First ch|
|00000f50| 65 63 6b 65 64 20 69 6e | 2e 00 00 00 00 14 23 00 |ecked in|......#.|
|00000f60| 80 00 00 00 02 32 33 0a | 45 2e 54 2e 4f 2e 20 23 |.....23.|E.T.O. #|
|00000f70| 32 33 00 00 01 00 00 00 | 01 f2 00 00 00 f2 00 00 |23......|........|
|00000f80| 00 70 00 e3 24 24 0e b2 | 00 00 00 1c 00 66 00 02 |.p..$$..|.....f..|
|00000f90| 4d 50 53 52 00 01 00 1a | 63 6b 69 64 00 00 00 32 |MPSR....|ckid...2|
|00000fa0| 76 65 72 73 00 00 00 3e | 03 ed ff ff 00 00 00 00 |vers...>|........|
|00000fb0| 00 00 00 00 03 f0 ff ff | 00 00 00 4c 00 00 00 00 |........|...L....|
|00000fc0| 00 80 00 00 00 00 00 6e | 00 00 00 00 00 02 ff ff |.......n|........|
|00000fd0| 20 00 00 da 00 e3 20 cc | 09 50 72 6f 6a 65 63 74 | ..... .|.Project|
|00000fe0| 6f 72 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |or......|........|
|00000ff0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
+--------+-------------------------+-------------------------+--------+--------+