home *** CD-ROM | disk | FTP | other *** search
MacBinary | 1991-01-28 | 6.8 KB | [TEXT/MPS ] |
view JSON data
|
view as text
|
open on a Mac
|
open on a PC
This file was processed as: MacBinary
(archive/macBinary).
You can browse this item here: dcmd.h
Confidence | Program | Detection | Match Type | Support
|
---|
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, Mon Jan 28 12:00:00 1991, modified Mon Jan 28 12:00:00 1991, creator 'MPS ', type ASCII, 6174 bytes "dcmd.h" , at 0x189e 474 bytes resource
| default (weak)
| |
99%
| file
| data
| default
| |
49%
| TrID
| Macintosh plain text (MacBinary)
| default
| |
33%
| TrID
| TTComp archive compressed (bin-4K)
| default (weak)
| |
16%
| TrID
| MacBinary 2
| default (weak)
| |
100%
| siegfried
| fmt/1762 MacBinary (II)
| default
| |
100%
| lsar
| MacBinary
| default
|
|
id metadata |
---|
key | value |
---|
macFileType | [TEXT] |
macFileCreator | [MPS ] |
hex view+--------+-------------------------+-------------------------+--------+--------+
|00000000| 00 06 64 63 6d 64 2e 68 | 00 00 00 00 00 00 00 00 |..dcmd.h|........|
|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 18 1e 00 | 00 01 da a3 ca 09 10 a3 |........|........|
|00000060| ca 09 10 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000070| 00 00 00 00 00 00 00 00 | 00 00 81 81 a5 5f 00 00 |........|....._..|
|00000080| 2f 2a 09 64 63 6d 64 2e | 68 0d 09 54 68 69 73 20 |/*.dcmd.|h..This |
|00000090| 69 73 20 74 68 65 20 64 | 63 6d 64 20 69 6e 74 65 |is the d|cmd inte|
|000000a0| 72 66 61 63 65 2e 0d 09 | 43 6f 70 79 72 69 67 68 |rface...|Copyrigh|
|000000b0| 74 20 a9 20 31 39 38 38 | 20 41 70 70 6c 65 20 43 |t . 1988| Apple C|
|000000c0| 6f 6d 70 75 74 65 72 2c | 20 49 6e 63 2e 20 20 41 |omputer,| Inc. A|
|000000d0| 6c 6c 20 72 69 67 68 74 | 73 20 72 65 73 65 72 76 |ll right|s reserv|
|000000e0| 65 64 2e 0d 2a 2f 0d 0d | 23 69 66 6e 64 65 66 20 |ed..*/..|#ifndef |
|000000f0| 5f 5f 64 63 6d 64 5f 5f | 0d 23 64 65 66 69 6e 65 |__dcmd__|.#define|
|00000100| 20 5f 5f 64 63 6d 64 5f | 5f 0d 0d 0d 2f 2f 20 50 | __dcmd_|_...// P|
|00000110| 6f 73 73 69 62 6c 65 20 | 72 65 71 75 65 73 74 73 |ossible |requests|
|00000120| 20 66 72 6f 6d 20 74 68 | 65 20 64 65 62 75 67 67 | from th|e debugg|
|00000130| 65 72 20 74 6f 20 74 68 | 65 20 63 6f 6d 6d 61 6e |er to th|e comman|
|00000140| 64 0d 23 64 65 66 69 6e | 65 20 64 63 6d 64 49 6e |d.#defin|e dcmdIn|
|00000150| 69 74 20 30 0d 23 64 65 | 66 69 6e 65 20 64 63 6d |it 0.#de|fine dcm|
|00000160| 64 44 6f 49 74 20 31 0d | 23 64 65 66 69 6e 65 20 |dDoIt 1.|#define |
|00000170| 64 63 6d 64 48 65 6c 70 | 20 32 0d 0d 0d 2f 2f 20 |dcmdHelp| 2...// |
|00000180| 52 65 67 69 73 74 65 72 | 20 66 69 6c 65 20 69 6e |Register| file in|
|00000190| 64 69 63 65 73 0d 23 64 | 65 66 69 6e 65 20 44 30 |dices.#d|efine D0|
|000001a0| 52 65 67 69 73 74 65 72 | 20 30 0d 23 64 65 66 69 |Register| 0.#defi|
|000001b0| 6e 65 20 44 31 52 65 67 | 69 73 74 65 72 20 31 0d |ne D1Reg|ister 1.|
|000001c0| 23 64 65 66 69 6e 65 20 | 44 32 52 65 67 69 73 74 |#define |D2Regist|
|000001d0| 65 72 20 32 0d 23 64 65 | 66 69 6e 65 20 44 33 52 |er 2.#de|fine D3R|
|000001e0| 65 67 69 73 74 65 72 20 | 33 0d 23 64 65 66 69 6e |egister |3.#defin|
|000001f0| 65 20 44 34 52 65 67 69 | 73 74 65 72 20 34 0d 23 |e D4Regi|ster 4.#|
|00000200| 64 65 66 69 6e 65 20 44 | 35 52 65 67 69 73 74 65 |define D|5Registe|
|00000210| 72 20 35 0d 23 64 65 66 | 69 6e 65 20 44 36 52 65 |r 5.#def|ine D6Re|
|00000220| 67 69 73 74 65 72 20 36 | 0d 23 64 65 66 69 6e 65 |gister 6|.#define|
|00000230| 20 44 37 52 65 67 69 73 | 74 65 72 20 37 0d 0d 23 | D7Regis|ter 7..#|
|00000240| 64 65 66 69 6e 65 20 41 | 30 52 65 67 69 73 74 65 |define A|0Registe|
|00000250| 72 20 38 0d 23 64 65 66 | 69 6e 65 20 41 31 52 65 |r 8.#def|ine A1Re|
|00000260| 67 69 73 74 65 72 20 39 | 0d 23 64 65 66 69 6e 65 |gister 9|.#define|
|00000270| 20 41 32 52 65 67 69 73 | 74 65 72 20 31 30 0d 23 | A2Regis|ter 10.#|
|00000280| 64 65 66 69 6e 65 20 41 | 33 52 65 67 69 73 74 65 |define A|3Registe|
|00000290| 72 20 31 31 0d 23 64 65 | 66 69 6e 65 20 41 34 52 |r 11.#de|fine A4R|
|000002a0| 65 67 69 73 74 65 72 20 | 31 32 0d 23 64 65 66 69 |egister |12.#defi|
|000002b0| 6e 65 20 41 35 52 65 67 | 69 73 74 65 72 20 31 33 |ne A5Reg|ister 13|
|000002c0| 0d 23 64 65 66 69 6e 65 | 20 41 36 52 65 67 69 73 |.#define| A6Regis|
|000002d0| 74 65 72 20 31 34 0d 23 | 64 65 66 69 6e 65 20 41 |ter 14.#|define A|
|000002e0| 37 52 65 67 69 73 74 65 | 72 20 31 35 0d 0d 23 64 |7Registe|r 15..#d|
|000002f0| 65 66 69 6e 65 20 50 43 | 52 65 67 69 73 74 65 72 |efine PC|Register|
|00000300| 20 31 36 0d 23 64 65 66 | 69 6e 65 20 53 52 52 65 | 16.#def|ine SRRe|
|00000310| 67 69 73 74 65 72 20 31 | 37 09 09 2f 2f 20 53 52 |gister 1|7..// SR|
|00000320| 20 69 73 20 6f 6e 6c 79 | 20 31 36 20 62 69 74 73 | is only| 16 bits|
|00000330| 20 61 6e 64 20 69 73 20 | 73 74 6f 72 65 64 20 69 | and is |stored i|
|00000340| 6e 20 74 68 65 20 68 69 | 67 68 20 77 6f 72 64 0d |n the hi|gh word.|
|00000350| 0d 0d 2f 2f 20 48 65 61 | 70 20 62 6c 6f 63 6b 20 |..// Hea|p block |
|00000360| 74 79 70 65 73 0d 23 64 | 65 66 69 6e 65 20 66 72 |types.#d|efine fr|
|00000370| 65 65 42 6c 6f 63 6b 20 | 09 09 09 30 0d 23 64 65 |eeBlock |...0.#de|
|00000380| 66 69 6e 65 20 6e 6f 6e | 72 65 6c 6f 63 61 74 61 |fine non|relocata|
|00000390| 62 6c 65 42 6c 6f 63 6b | 20 31 0d 23 64 65 66 69 |bleBlock| 1.#defi|
|000003a0| 6e 65 20 72 65 6c 6f 63 | 61 74 61 62 6c 65 42 6c |ne reloc|atableBl|
|000003b0| 6f 63 6b 09 32 0d 0d 0d | 74 79 70 65 64 65 66 20 |ock.2...|typedef |
|000003c0| 73 74 72 75 63 74 0d 09 | 7b 0d 09 6c 6f 6e 67 2a |struct..|{..long*|
|000003d0| 20 72 65 67 69 73 74 65 | 72 46 69 6c 65 3b 0d 09 | registe|rFile;..|
|000003e0| 73 68 6f 72 74 20 72 65 | 71 75 65 73 74 3b 0d 09 |short re|quest;..|
|000003f0| 42 6f 6f 6c 65 61 6e 20 | 61 62 6f 72 74 65 64 3b |Boolean |aborted;|
|00000400| 09 09 2f 2f 20 53 65 74 | 20 74 6f 20 74 72 75 65 |..// Set| to true|
|00000410| 20 69 66 20 74 68 65 20 | 75 73 65 72 20 74 79 70 | if the |user typ|
|00000420| 65 73 20 61 20 6b 65 79 | 20 77 68 69 6c 65 20 73 |es a key| while s|
|00000430| 63 72 6f 6c 6c 69 6e 67 | 0d 09 7d 20 64 63 6d 64 |crolling|..} dcmd|
|00000440| 42 6c 6f 63 6b 3b 0d 0d | 2f 2f 20 45 4a 45 43 54 |Block;..|// EJECT|
|00000450| 0d 0d 2f 2f 20 44 65 62 | 75 67 67 65 72 20 72 6f |..// Deb|ugger ro|
|00000460| 75 74 69 6e 65 73 20 74 | 68 61 74 20 63 61 6e 20 |utines t|hat can |
|00000470| 62 65 20 63 61 6c 6c 65 | 64 20 62 79 20 74 68 65 |be calle|d by the|
|00000480| 20 63 6f 6d 6d 61 6e 64 | 0d 0d 20 20 2f 2a 20 44 | command|.. /* D|
|00000490| 72 61 77 20 74 68 65 20 | 74 65 78 74 20 69 6e 20 |raw the |text in |
|000004a0| 74 68 65 20 50 61 73 63 | 61 6c 20 73 74 72 69 6e |the Pasc|al strin|
|000004b0| 67 20 61 73 20 6f 6e 65 | 20 6f 72 20 6d 6f 72 65 |g as one| or more|
|000004c0| 20 6c 69 6e 65 73 20 73 | 65 70 61 72 61 74 65 64 | lines s|eparated|
|000004d0| 20 62 79 20 43 52 27 73 | 2e 0d 09 20 45 61 63 68 | by CR's|... Each|
|000004e0| 20 6c 69 6e 65 20 63 61 | 75 73 65 73 20 74 68 65 | line ca|uses the|
|000004f0| 20 4d 61 63 73 42 75 67 | 20 64 69 73 70 6c 61 79 | MacsBug| display|
|00000500| 20 74 6f 20 62 65 20 73 | 63 72 6f 6c 6c 65 64 20 | to be s|crolled |
|00000510| 61 6e 64 20 74 68 65 20 | 6e 65 77 20 6c 69 6e 65 |and the |new line|
|00000520| 20 74 6f 20 62 65 0d 09 | 20 64 72 61 77 6e 20 61 | to be..| drawn a|
|00000530| 74 20 74 68 65 20 62 6f | 74 74 6f 6d 2e 20 49 66 |t the bo|ttom. If|
|00000540| 20 74 68 65 20 75 73 65 | 72 20 74 79 70 65 73 20 | the use|r types |
|00000550| 61 20 6b 65 79 20 77 68 | 69 6c 65 20 73 63 72 6f |a key wh|ile scro|
|00000560| 6c 6c 69 6e 67 20 74 68 | 65 6e 20 74 68 65 20 61 |lling th|en the a|
|00000570| 62 6f 72 74 65 64 0d 09 | 20 66 6c 61 67 20 69 73 |borted..| flag is|
|00000580| 20 73 65 74 20 74 65 6c | 6c 69 6e 67 20 74 68 65 | set tel|ling the|
|00000590| 20 63 6f 6d 6d 61 6e 64 | 20 74 6f 20 74 65 72 6d | command| to term|
|000005a0| 69 6e 61 74 65 20 69 6d | 6d 65 64 69 61 74 65 6c |inate im|mediatel|
|000005b0| 79 2e 20 2a 2f 0d 20 20 | 70 61 73 63 61 6c 20 76 |y. */. |pascal v|
|000005c0| 6f 69 64 20 64 63 6d 64 | 44 72 61 77 4c 69 6e 65 |oid dcmd|DrawLine|
|000005d0| 28 63 6f 6e 73 74 20 53 | 74 72 32 35 35 20 73 74 |(const S|tr255 st|
|000005e0| 72 29 3b 0d 0d 20 20 2f | 2a 20 44 72 61 77 20 74 |r);.. /|* Draw t|
|000005f0| 68 65 20 74 65 78 74 20 | 69 6e 20 74 68 65 20 50 |he text |in the P|
|00000600| 61 73 63 61 6c 20 73 74 | 72 69 6e 67 20 61 73 20 |ascal st|ring as |
|00000610| 61 20 63 6f 6e 74 69 6e | 75 61 74 69 6f 6e 20 6f |a contin|uation o|
|00000620| 66 20 74 68 65 20 63 75 | 72 72 65 6e 74 20 6c 69 |f the cu|rrent li|
|00000630| 6e 65 2e 0d 20 20 09 20 | 43 52 27 73 20 61 72 65 |ne.. . |CR's are|
|00000640| 20 6e 6f 74 20 67 69 76 | 65 6e 20 73 70 65 63 69 | not giv|en speci|
|00000650| 61 6c 20 74 72 65 61 74 | 6d 65 6e 74 2e 20 2a 2f |al treat|ment. */|
|00000660| 0d 20 20 70 61 73 63 61 | 6c 20 76 6f 69 64 20 64 |. pasca|l void d|
|00000670| 63 6d 64 44 72 61 77 53 | 74 72 69 6e 67 28 63 6f |cmdDrawS|tring(co|
|00000680| 6e 73 74 20 53 74 72 32 | 35 35 20 73 74 72 29 3b |nst Str2|55 str);|
|00000690| 0d 0d 20 20 2f 2a 20 44 | 72 61 77 20 61 20 67 69 |.. /* D|raw a gi|
|000006a0| 76 65 6e 20 6e 75 6d 62 | 65 72 20 6f 66 20 63 68 |ven numb|er of ch|
|000006b0| 61 72 61 63 74 65 72 73 | 20 73 74 61 72 74 69 6e |aracters| startin|
|000006c0| 67 20 66 72 6f 6d 20 74 | 68 65 20 67 69 76 65 6e |g from t|he given|
|000006d0| 20 70 6f 69 6e 74 65 72 | 20 61 73 20 61 20 0d 20 | pointer| as a . |
|000006e0| 20 09 20 63 6f 6e 74 69 | 6e 75 61 74 69 6f 6e 20 | . conti|nuation |
|000006f0| 6f 66 20 74 68 65 20 63 | 75 72 72 65 6e 74 20 6c |of the c|urrent l|
|00000700| 69 6e 65 2e 20 43 52 27 | 73 20 61 72 65 20 6e 6f |ine. CR'|s are no|
|00000710| 74 20 67 69 76 65 6e 20 | 73 70 65 63 69 61 6c 20 |t given |special |
|00000720| 74 72 65 61 74 6d 65 6e | 74 2e 20 2a 2f 0d 20 20 |treatmen|t. */. |
|00000730| 70 61 73 63 61 6c 20 76 | 6f 69 64 20 64 63 6d 64 |pascal v|oid dcmd|
|00000740| 44 72 61 77 54 65 78 74 | 28 53 74 72 69 6e 67 50 |DrawText|(StringP|
|00000750| 74 72 20 74 65 78 74 2c | 20 73 68 6f 72 74 20 6c |tr text,| short l|
|00000760| 65 6e 67 74 68 29 3b 0d | 0d 20 20 2f 2a 20 53 63 |ength);.|. /* Sc|
|00000770| 72 6f 6c 6c 73 20 74 68 | 65 20 4d 61 63 73 42 75 |rolls th|e MacsBu|
|00000780| 67 20 64 69 73 70 6c 61 | 79 20 75 70 20 6f 6e 65 |g displa|y up one|
|00000790| 20 6c 69 6e 65 20 6c 65 | 61 76 69 6e 67 20 61 20 | line le|aving a |
|000007a0| 62 6c 61 6e 6b 20 6c 69 | 6e 65 20 61 74 20 74 68 |blank li|ne at th|
|000007b0| 65 20 62 6f 74 74 6f 6d | 2e 20 2a 2f 0d 20 20 70 |e bottom|. */. p|
|000007c0| 61 73 63 61 6c 20 76 6f | 69 64 20 64 63 6d 64 53 |ascal vo|id dcmdS|
|000007d0| 63 72 6f 6c 6c 28 29 3b | 0d 0d 20 20 2f 2a 20 44 |croll();|.. /* D|
|000007e0| 69 73 70 6c 61 79 20 74 | 68 65 20 50 61 73 63 61 |isplay t|he Pasca|
|000007f0| 6c 20 73 74 72 69 6e 67 | 20 69 6e 20 74 68 65 20 |l string| in the |
|00000800| 63 6f 6d 6d 61 6e 64 20 | 6c 69 6e 65 20 61 72 65 |command |line are|
|00000810| 61 20 61 6e 64 20 77 61 | 69 74 20 66 6f 72 20 61 |a and wa|it for a|
|00000820| 20 6b 65 79 20 74 6f 20 | 62 65 20 70 72 65 73 73 | key to |be press|
|00000830| 65 64 2e 0d 09 20 52 65 | 74 75 72 6e 20 54 52 55 |ed... Re|turn TRU|
|00000840| 45 20 69 66 20 74 68 65 | 20 75 73 65 72 20 74 79 |E if the| user ty|
|00000850| 70 65 64 20 52 65 74 75 | 72 6e 2e 20 41 6c 6c 20 |ped Retu|rn. All |
|00000860| 6f 74 68 65 72 20 6b 65 | 79 73 20 72 65 74 75 72 |other ke|ys retur|
|00000870| 6e 20 46 41 4c 53 45 2e | 20 4d 61 63 73 42 75 67 |n FALSE.| MacsBug|
|00000880| 20 73 61 76 65 73 20 74 | 68 69 73 0d 09 20 6b 65 | saves t|his.. ke|
|00000890| 79 20 61 6e 64 20 61 64 | 64 73 20 69 74 20 74 6f |y and ad|ds it to|
|000008a0| 20 74 68 65 20 63 6f 6d | 6d 61 6e 64 20 6c 69 6e | the com|mand lin|
|000008b0| 65 20 6f 6e 63 65 20 74 | 68 65 20 63 75 72 72 65 |e once t|he curre|
|000008c0| 6e 74 20 63 6f 6d 6d 61 | 6e 64 20 63 6f 6d 70 6c |nt comma|nd compl|
|000008d0| 65 74 65 73 2e 20 54 79 | 70 69 6e 67 20 61 6e 79 |etes. Ty|ping any|
|000008e0| 0d 09 20 6b 65 79 20 6f | 74 68 65 72 20 74 68 61 |.. key o|ther tha|
|000008f0| 6e 20 52 65 74 75 72 6e | 20 73 65 74 73 20 74 68 |n Return| sets th|
|00000900| 65 20 61 62 6f 72 74 65 | 64 20 66 6c 61 67 20 61 |e aborte|d flag a|
|00000910| 6e 64 20 74 65 6c 6c 73 | 20 74 68 65 20 63 6f 6d |nd tells| the com|
|00000920| 6d 61 6e 64 20 74 6f 20 | 74 65 72 6d 69 6e 61 74 |mand to |terminat|
|00000930| 65 20 69 6d 6d 65 64 69 | 61 74 65 6c 79 2e 20 2a |e immedi|ately. *|
|00000940| 2f 0d 20 20 70 61 73 63 | 61 6c 20 42 6f 6f 6c 65 |/. pasc|al Boole|
|00000950| 61 6e 20 64 63 6d 64 44 | 72 61 77 50 72 6f 6d 70 |an dcmdD|rawPromp|
|00000960| 74 28 63 6f 6e 73 74 20 | 53 74 72 32 35 35 20 73 |t(const |Str255 s|
|00000970| 74 72 29 3b 0d 0d 20 20 | 2f 2a 20 47 65 74 20 74 |tr);.. |/* Get t|
|00000980| 68 65 20 63 75 72 72 65 | 6e 74 20 63 6f 6d 6d 61 |he curre|nt comma|
|00000990| 6e 64 20 6c 69 6e 65 20 | 70 6f 73 69 74 69 6f 6e |nd line |position|
|000009a0| 20 2a 2f 0d 20 20 70 61 | 73 63 61 6c 20 73 68 6f | */. pa|scal sho|
|000009b0| 72 74 20 64 63 6d 64 47 | 65 74 50 6f 73 69 74 69 |rt dcmdG|etPositi|
|000009c0| 6f 6e 28 29 3b 0d 09 09 | 0d 20 20 2f 2a 20 53 65 |on();...|. /* Se|
|000009d0| 74 20 74 68 65 20 63 75 | 72 72 65 6e 74 20 63 6f |t the cu|rrent co|
|000009e0| 6d 6d 61 6e 64 20 6c 69 | 6e 65 20 70 6f 73 69 74 |mmand li|ne posit|
|000009f0| 69 6f 6e 2e 20 54 68 69 | 73 20 73 68 6f 75 6c 64 |ion. Thi|s should|
|00000a00| 20 6f 6e 6c 79 20 62 65 | 20 73 65 74 20 74 6f 20 | only be| set to |
|00000a10| 61 20 76 61 6c 75 65 20 | 72 65 74 75 72 6e 65 64 |a value |returned|
|00000a20| 20 0d 09 20 62 79 20 64 | 63 6d 64 47 65 74 50 6f | .. by d|cmdGetPo|
|00000a30| 73 69 74 69 6f 6e 2e 20 | 2a 2f 0d 20 20 70 61 73 |sition. |*/. pas|
|00000a40| 63 61 6c 20 76 6f 69 64 | 20 64 63 6d 64 53 65 74 |cal void| dcmdSet|
|00000a50| 50 6f 73 69 74 69 6f 6e | 28 73 68 6f 72 74 20 70 |Position|(short p|
|00000a60| 6f 73 29 3b 0d 0d 20 20 | 2f 2a 20 52 65 74 75 72 |os);.. |/* Retur|
|00000a70| 6e 20 74 68 65 20 6e 65 | 78 74 20 63 68 61 72 61 |n the ne|xt chara|
|00000a80| 63 74 65 72 20 6f 6e 20 | 74 68 65 20 63 6f 6d 6d |cter on |the comm|
|00000a90| 61 6e 64 20 6c 69 6e 65 | 20 6f 72 20 43 52 20 69 |and line| or CR i|
|00000aa0| 66 20 74 68 65 20 65 6e | 74 69 72 65 20 6c 69 6e |f the en|tire lin|
|00000ab0| 65 20 68 61 73 20 62 65 | 65 6e 20 73 63 61 6e 6e |e has be|en scann|
|00000ac0| 65 64 20 2a 2f 0d 20 20 | 70 61 73 63 61 6c 20 73 |ed */. |pascal s|
|00000ad0| 68 6f 72 74 20 64 63 6d | 64 47 65 74 4e 65 78 74 |hort dcm|dGetNext|
|00000ae0| 43 68 61 72 28 29 3b 0d | 09 09 0d 20 20 2f 2a 20 |Char();.|... /* |
|00000af0| 52 65 74 75 72 6e 20 74 | 68 65 20 6e 65 78 74 20 |Return t|he next |
|00000b00| 63 68 61 72 61 63 74 65 | 72 20 6f 6e 20 74 68 65 |characte|r on the|
|00000b10| 20 63 6f 6d 6d 61 6e 64 | 20 6c 69 6e 65 20 6f 72 | command| line or|
|00000b20| 20 43 52 20 69 66 20 74 | 68 65 20 65 6e 74 69 72 | CR if t|he entir|
|00000b30| 65 20 6c 69 6e 65 20 68 | 61 73 20 62 65 65 6e 20 |e line h|as been |
|00000b40| 73 63 61 6e 6e 65 64 2e | 0d 09 20 48 6f 77 65 76 |scanned.|.. Howev|
|00000b50| 65 72 2c 20 74 68 65 20 | 63 75 72 72 65 6e 74 20 |er, the |current |
|00000b60| 63 6f 6d 6d 61 6e 64 20 | 6c 69 6e 65 20 70 6f 73 |command |line pos|
|00000b70| 69 74 69 6f 6e 20 69 73 | 20 6e 6f 74 20 63 68 61 |ition is| not cha|
|00000b80| 6e 67 65 64 2e 20 2a 2f | 0d 20 20 70 61 73 63 61 |nged. */|. pasca|
|00000b90| 6c 20 73 68 6f 72 74 20 | 64 63 6d 64 50 65 65 6b |l short |dcmdPeek|
|00000ba0| 41 74 4e 65 78 74 43 68 | 61 72 28 29 3b 0d 0d 20 |AtNextCh|ar();.. |
|00000bb0| 20 2f 2a 20 43 6f 70 79 | 20 61 6c 6c 20 63 68 61 | /* Copy| all cha|
|00000bc0| 72 61 63 74 65 72 73 20 | 66 72 6f 6d 20 74 68 65 |racters |from the|
|00000bd0| 20 63 6f 6d 6d 61 6e 64 | 20 6c 69 6e 65 20 74 6f | command| line to|
|00000be0| 20 74 68 65 20 70 61 72 | 61 6d 65 74 65 72 20 73 | the par|ameter s|
|00000bf0| 74 72 69 6e 67 20 75 6e | 74 69 6c 20 61 20 64 65 |tring un|til a de|
|00000c00| 6c 69 6d 69 74 65 72 0d | 09 20 69 73 20 66 6f 75 |limiter.|. is fou|
|00000c10| 6e 64 20 6f 72 20 74 68 | 65 20 65 6e 64 20 6f 66 |nd or th|e end of|
|00000c20| 20 74 68 65 20 63 6f 6d | 6d 61 6e 64 20 6c 69 6e | the com|mand lin|
|00000c30| 65 20 69 73 20 72 65 61 | 63 68 65 64 2e 20 41 20 |e is rea|ched. A |
|00000c40| 64 65 6c 69 6d 69 74 65 | 72 20 69 73 20 65 69 74 |delimite|r is eit|
|00000c50| 68 65 72 20 61 20 73 70 | 61 63 65 2c 0d 09 20 61 |her a sp|ace,.. a|
|00000c60| 20 63 6f 6d 6d 61 20 6f | 72 20 61 20 43 52 2e 20 | comma o|r a CR. |
|00000c70| 42 6f 74 68 20 73 69 6e | 67 6c 65 20 61 6e 64 20 |Both sin|gle and |
|00000c80| 64 6f 75 62 6c 65 20 71 | 75 6f 74 65 64 20 73 74 |double q|uoted st|
|00000c90| 72 69 6e 67 73 20 61 72 | 65 20 61 6c 6c 6f 77 65 |rings ar|e allowe|
|00000ca0| 64 20 6f 6e 20 74 68 65 | 20 63 6f 6d 6d 61 6e 64 |d on the| command|
|00000cb0| 0d 09 20 6c 69 6e 65 2e | 20 48 6f 77 65 76 65 72 |.. line.| However|
|00000cc0| 2c 20 74 68 65 20 6c 65 | 61 64 69 6e 67 20 61 6e |, the le|ading an|
|00000cd0| 64 20 74 72 61 69 6c 69 | 6e 67 20 71 75 6f 74 65 |d traili|ng quote|
|00000ce0| 73 20 6d 75 73 74 20 62 | 65 20 6f 66 20 74 68 65 |s must b|e of the|
|00000cf0| 20 73 61 6d 65 20 74 79 | 70 65 2e 20 54 68 65 20 | same ty|pe. The |
|00000d00| 70 61 72 61 6d 65 74 65 | 72 0d 09 20 73 74 72 69 |paramete|r.. stri|
|00000d10| 6e 67 20 69 73 20 72 65 | 74 75 72 6e 65 64 20 77 |ng is re|turned w|
|00000d20| 69 74 68 6f 75 74 20 74 | 68 65 20 71 75 6f 74 65 |ithout t|he quote|
|00000d30| 73 2e 20 54 68 69 73 20 | 66 75 6e 63 74 69 6f 6e |s. This |function|
|00000d40| 20 72 65 74 75 72 6e 73 | 20 74 68 65 20 64 65 6c | returns| the del|
|00000d50| 69 6d 69 74 65 72 20 2a | 2f 0d 20 20 70 61 73 63 |imiter *|/. pasc|
|00000d60| 61 6c 20 73 68 6f 72 74 | 20 64 63 6d 64 47 65 74 |al short| dcmdGet|
|00000d70| 4e 65 78 74 50 61 72 61 | 6d 65 74 65 72 28 53 74 |NextPara|meter(St|
|00000d80| 72 32 35 35 20 73 74 72 | 29 3b 0d 0d 20 20 2f 2a |r255 str|);.. /*|
|00000d90| 20 50 61 72 73 65 20 74 | 68 65 20 63 6f 6d 6d 61 | Parse t|he comma|
|00000da0| 6e 64 20 6c 69 6e 65 20 | 66 6f 72 20 74 68 65 20 |nd line |for the |
|00000db0| 6e 65 78 74 20 65 78 70 | 72 65 73 73 69 6f 6e 2e |next exp|ression.|
|00000dc0| 20 41 6c 6c 20 65 78 70 | 72 65 73 73 69 6f 6e 73 | All exp|ressions|
|00000dd0| 20 61 72 65 20 65 76 61 | 6c 75 61 74 65 64 20 74 | are eva|luated t|
|00000de0| 6f 20 33 32 20 62 69 74 | 73 2e 0d 09 20 54 68 69 |o 32 bit|s... Thi|
|00000df0| 73 20 66 75 6e 63 74 69 | 6f 6e 20 72 65 74 75 72 |s functi|on retur|
|00000e00| 6e 73 20 74 68 65 20 64 | 65 6c 69 6d 69 74 65 72 |ns the d|elimiter|
|00000e10| 20 61 66 74 65 72 20 74 | 68 65 20 65 78 70 72 65 | after t|he expre|
|00000e20| 73 73 69 6f 6e 2e 20 54 | 68 65 20 70 6f 73 73 69 |ssion. T|he possi|
|00000e30| 62 6c 65 20 64 65 6c 69 | 6d 69 74 65 72 73 20 61 |ble deli|miters a|
|00000e40| 72 65 0d 09 20 73 70 61 | 63 65 2c 20 63 6f 6d 6d |re.. spa|ce, comm|
|00000e50| 61 20 61 6e 64 20 43 52 | 2e 20 20 53 70 61 63 65 |a and CR|. Space|
|00000e60| 20 69 73 09 6e 6f 74 20 | 74 72 65 61 74 65 64 20 | is.not |treated |
|00000e70| 61 73 20 61 20 64 65 6c | 69 6d 69 74 65 72 20 69 |as a del|imiter i|
|00000e80| 6e 20 74 68 65 20 6d 69 | 64 64 6c 65 20 6f 66 20 |n the mi|ddle of |
|00000e90| 65 78 70 72 65 73 73 69 | 6f 6e 73 2e 0d 09 20 46 |expressi|ons... F|
|00000ea0| 6f 72 20 69 6e 73 74 61 | 6e 63 65 2c 20 27 31 20 |or insta|nce, '1 |
|00000eb0| 2b 20 32 27 20 77 69 6c | 6c 20 72 65 74 75 72 6e |+ 2' wil|l return|
|00000ec0| 09 61 20 76 61 6c 75 65 | 20 6f 66 20 33 20 61 6e |.a value| of 3 an|
|00000ed0| 64 20 74 68 65 20 64 65 | 6c 69 6d 69 74 65 72 20 |d the de|limiter |
|00000ee0| 77 69 6c 6c 20 62 65 20 | 74 68 65 20 63 68 61 72 |will be |the char|
|00000ef0| 20 66 6f 6c 6c 6f 77 69 | 6e 67 0d 09 20 74 68 65 | followi|ng.. the|
|00000f00| 20 32 2e 20 54 68 65 20 | 72 65 74 75 72 6e 20 70 | 2. The |return p|
|00000f10| 61 72 61 6d 65 74 65 72 | 20 27 6f 6b 27 20 74 65 |arameter| 'ok' te|
|00000f20| 6c 6c 73 20 69 66 20 74 | 68 65 20 65 78 70 72 65 |lls if t|he expre|
|00000f30| 73 73 69 6f 6e 20 77 61 | 73 20 70 61 72 73 65 64 |ssion wa|s parsed|
|00000f40| 20 73 75 63 63 65 73 73 | 66 75 6c 6c 79 2e 20 2a | success|fully. *|
|00000f50| 2f 0d 20 20 70 61 73 63 | 61 6c 20 73 68 6f 72 74 |/. pasc|al short|
|00000f60| 20 64 63 6d 64 47 65 74 | 4e 65 78 74 45 78 70 72 | dcmdGet|NextExpr|
|00000f70| 65 73 73 69 6f 6e 28 6c | 6f 6e 67 2a 20 76 61 6c |ession(l|ong* val|
|00000f80| 75 65 2c 20 42 6f 6f 6c | 65 61 6e 2a 20 6f 6b 29 |ue, Bool|ean* ok)|
|00000f90| 3b 0d 0d 20 20 2f 2a 20 | 43 6f 70 79 20 74 68 65 |;.. /* |Copy the|
|00000fa0| 20 62 72 65 61 6b 20 6d | 65 73 73 61 67 65 20 4d | break m|essage M|
|00000fb0| 61 63 73 42 75 67 20 64 | 69 73 70 6c 61 79 65 64 |acsBug d|isplayed|
|00000fc0| 20 74 68 65 20 6c 61 73 | 74 20 74 69 6d 65 20 69 | the las|t time i|
|00000fd0| 74 20 77 61 73 20 65 6e | 74 65 72 65 64 20 69 6e |t was en|tered in|
|00000fe0| 74 6f 20 73 74 72 2e 0d | 09 20 54 68 69 73 20 6d |to str..|. This m|
|00000ff0| 61 79 20 63 6f 6e 74 61 | 69 6e 20 6d 75 6c 74 69 |ay conta|in multi|
|00001000| 70 6c 65 20 6c 69 6e 65 | 73 20 73 65 70 61 72 61 |ple line|s separa|
|00001010| 74 65 64 20 62 79 20 43 | 52 27 73 2e 2a 2f 0d 20 |ted by C|R's.*/. |
|00001020| 20 70 61 73 63 61 6c 20 | 76 6f 69 64 20 64 63 6d | pascal |void dcm|
|00001030| 64 47 65 74 42 72 65 61 | 6b 4d 65 73 73 61 67 65 |dGetBrea|kMessage|
|00001040| 28 53 74 72 32 35 35 20 | 73 74 72 29 3b 0d 09 09 |(Str255 |str);...|
|00001050| 0d 20 20 2f 2a 20 52 65 | 74 75 72 6e 20 61 20 73 |. /* Re|turn a s|
|00001060| 79 6d 62 6f 6c 69 63 20 | 72 65 70 72 65 73 65 6e |ymbolic |represen|
|00001070| 74 61 74 69 6f 6e 20 66 | 6f 72 20 61 64 64 72 65 |tation f|or addre|
|00001080| 73 73 20 69 6e 20 73 74 | 72 2e 20 49 66 20 6e 6f |ss in st|r. If no|
|00001090| 20 73 79 6d 62 6f 6c 20 | 63 61 6e 20 62 65 20 66 | symbol |can be f|
|000010a0| 6f 75 6e 64 0d 09 20 74 | 68 65 6e 20 61 6e 20 65 |ound.. t|hen an e|
|000010b0| 6d 70 74 79 20 73 74 72 | 69 6e 67 20 69 73 20 72 |mpty str|ing is r|
|000010c0| 65 74 75 72 6e 65 64 2e | 20 54 68 65 20 66 6f 72 |eturned.| The for|
|000010d0| 6d 61 74 20 6f 66 20 74 | 68 65 20 73 79 6d 62 6f |mat of t|he symbo|
|000010e0| 6c 20 72 65 74 75 72 6e | 65 64 20 69 73 20 4e 61 |l return|ed is Na|
|000010f0| 6d 65 2b 30 30 30 30 2e | 0d 09 20 57 69 74 68 20 |me+0000.|.. With |
|00001100| 74 68 65 20 6e 65 77 20 | 63 6f 6d 70 69 6c 65 72 |the new |compiler|
|00001110| 73 2c 20 74 68 65 20 6e | 61 6d 65 20 69 73 20 6e |s, the n|ame is n|
|00001120| 6f 20 6c 6f 6e 67 65 72 | 20 72 65 73 74 72 69 63 |o longer| restric|
|00001130| 74 65 64 20 74 6f 20 38 | 20 63 68 61 72 61 63 74 |ted to 8| charact|
|00001140| 65 72 73 2e 20 2a 2f 0d | 20 20 70 61 73 63 61 6c |ers. */.| pascal|
|00001150| 20 76 6f 69 64 20 64 63 | 6d 64 47 65 74 4e 61 6d | void dc|mdGetNam|
|00001160| 65 41 6e 64 4f 66 66 73 | 65 74 28 6c 6f 6e 67 20 |eAndOffs|et(long |
|00001170| 61 64 64 72 65 73 73 2c | 20 53 74 72 32 35 35 20 |address,| Str255 |
|00001180| 73 74 72 29 3b 0d 0d 20 | 20 2f 2a 20 52 65 74 75 |str);.. | /* Retu|
|00001190| 72 6e 20 74 68 65 20 74 | 72 61 70 20 6e 61 6d 65 |rn the t|rap name|
|000011a0| 20 66 6f 72 20 74 68 65 | 20 74 72 61 70 20 6e 75 | for the| trap nu|
|000011b0| 6d 62 65 72 2e 20 49 66 | 20 6e 6f 20 73 79 6d 62 |mber. If| no symb|
|000011c0| 6f 6c 20 63 61 6e 20 62 | 65 20 66 6f 75 6e 64 0d |ol can b|e found.|
|000011d0| 09 20 74 68 65 6e 20 61 | 6e 20 65 6d 70 74 79 20 |. then a|n empty |
|000011e0| 73 74 72 69 6e 67 20 69 | 73 20 72 65 74 75 72 6e |string i|s return|
|000011f0| 65 64 2e 20 2a 2f 0d 20 | 20 70 61 73 63 61 6c 20 |ed. */. | pascal |
|00001200| 76 6f 69 64 20 64 63 6d | 64 47 65 74 54 72 61 70 |void dcm|dGetTrap|
|00001210| 4e 61 6d 65 28 73 68 6f | 72 74 20 74 72 61 70 4e |Name(sho|rt trapN|
|00001220| 75 6d 62 65 72 2c 20 53 | 74 72 32 35 35 20 74 72 |umber, S|tr255 tr|
|00001230| 61 70 4e 61 6d 65 29 3b | 0d 0d 20 20 2f 2a 20 52 |apName);|.. /* R|
|00001240| 65 74 75 72 6e 20 61 20 | 70 6f 69 6e 74 65 72 20 |eturn a |pointer |
|00001250| 74 68 65 20 6d 61 63 72 | 6f 20 6e 61 6d 65 20 66 |the macr|o name f|
|00001260| 6f 72 20 74 68 65 20 67 | 69 76 65 6e 20 76 61 6c |or the g|iven val|
|00001270| 75 65 2e 20 49 66 20 6e | 6f 20 6d 61 63 72 6f 20 |ue. If n|o macro |
|00001280| 63 61 6e 20 62 65 20 66 | 6f 75 6e 64 0d 09 20 74 |can be f|ound.. t|
|00001290| 68 65 6e 20 61 20 6e 69 | 6c 20 69 73 20 72 65 74 |hen a ni|l is ret|
|000012a0| 75 72 6e 65 64 2e 20 2a | 2f 0d 20 20 70 61 73 63 |urned. *|/. pasc|
|000012b0| 61 6c 20 53 74 72 69 6e | 67 50 74 72 20 64 63 6d |al Strin|gPtr dcm|
|000012c0| 64 47 65 74 4d 61 63 72 | 6f 4e 61 6d 65 28 6c 6f |dGetMacr|oName(lo|
|000012d0| 6e 67 20 76 61 6c 75 65 | 29 3b 0d 0d 20 20 2f 2a |ng value|);.. /*|
|000012e0| 20 57 68 65 6e 20 61 20 | 64 65 62 75 67 67 65 72 | When a |debugger|
|000012f0| 20 63 6f 6d 6d 61 6e 64 | 20 69 73 20 63 61 6c 6c | command| is call|
|00001300| 65 64 2c 20 74 68 65 20 | 64 65 62 75 67 67 65 72 |ed, the |debugger|
|00001310| 27 73 20 77 6f 72 6c 64 | 20 28 6c 6f 77 20 6d 65 |'s world| (low me|
|00001320| 6d 6f 72 79 29 20 69 73 | 20 69 6e 73 74 61 6c 6c |mory) is| install|
|00001330| 65 64 2e 0d 09 20 43 6f | 6d 6d 61 6e 64 73 20 74 |ed... Co|mmands t|
|00001340| 68 61 74 20 77 61 6e 74 | 20 74 6f 20 72 65 66 65 |hat want| to refe|
|00001350| 72 65 6e 63 65 20 74 68 | 65 20 75 73 65 72 27 73 |rence th|e user's|
|00001360| 20 77 6f 72 6c 64 20 63 | 61 6e 20 73 77 61 70 20 | world c|an swap |
|00001370| 62 61 63 6b 20 61 6e 64 | 20 66 6f 72 74 68 20 62 |back and| forth b|
|00001380| 65 74 77 65 65 6e 20 74 | 68 65 0d 09 20 74 77 6f |etween t|he.. two|
|00001390| 20 77 6f 72 6c 64 73 20 | 62 79 20 6d 61 6b 69 6e | worlds |by makin|
|000013a0| 67 20 74 68 69 73 20 63 | 61 6c 6c 2e 20 54 68 69 |g this c|all. Thi|
|000013b0| 73 20 70 72 6f 63 65 64 | 75 72 65 20 64 6f 65 73 |s proced|ure does|
|000013c0| 20 6e 6f 74 68 69 6e 67 | 20 69 6e 20 4d 61 63 73 | nothing| in Macs|
|000013d0| 42 75 67 2e 20 49 74 20 | 69 73 20 69 6e 63 6c 75 |Bug. It |is inclu|
|000013e0| 64 65 64 0d 09 20 74 6f | 20 73 75 70 70 6f 72 74 |ded.. to| support|
|000013f0| 20 6f 74 68 65 72 20 64 | 65 62 75 67 67 65 72 73 | other d|ebuggers|
|00001400| 20 74 68 61 74 20 6d 69 | 67 68 74 20 77 61 6e 74 | that mi|ght want|
|00001410| 20 74 6f 20 74 61 6b 65 | 20 61 64 76 61 6e 74 61 | to take| advanta|
|00001420| 67 65 20 6f 66 20 69 74 | 2e 20 2a 2f 0d 20 20 70 |ge of it|. */. p|
|00001430| 61 73 63 61 6c 20 76 6f | 69 64 20 64 63 6d 64 53 |ascal vo|id dcmdS|
|00001440| 77 61 70 57 6f 72 6c 64 | 73 28 29 3b 0d 0d 20 20 |wapWorld|s();.. |
|00001450| 2f 2a 20 54 6f 67 67 6c | 65 20 62 65 74 77 65 65 |/* Toggl|e betwee|
|00001460| 6e 20 74 68 65 20 75 73 | 65 72 20 61 6e 64 20 64 |n the us|er and d|
|00001470| 65 62 75 67 67 65 72 20 | 64 69 73 70 6c 61 79 73 |ebugger |displays|
|00001480| 2e 0d 09 20 54 68 65 20 | 66 69 72 73 74 20 63 61 |... The |first ca|
|00001490| 6c 6c 20 72 65 73 74 6f | 72 65 73 20 74 68 65 20 |ll resto|res the |
|000014a0| 75 73 65 72 27 73 20 61 | 63 74 75 61 6c 20 73 63 |user's a|ctual sc|
|000014b0| 72 65 65 6e 2e 0d 09 20 | 54 68 65 20 73 65 63 6f |reen... |The seco|
|000014c0| 6e 64 20 63 61 6c 6c 20 | 72 65 73 74 6f 72 65 73 |nd call |restores|
|000014d0| 20 74 68 65 20 64 65 62 | 75 67 67 65 72 27 73 20 | the deb|ugger's |
|000014e0| 73 63 72 65 65 6e 2e 20 | 2a 2f 0d 20 20 70 61 73 |screen. |*/. pas|
|000014f0| 63 61 6c 20 76 6f 69 64 | 20 64 63 6d 64 53 77 61 |cal void| dcmdSwa|
|00001500| 70 53 63 72 65 65 6e 73 | 28 29 3b 0d 0d 20 20 2f |pScreens|();.. /|
|00001510| 2a 20 57 61 6c 6b 20 74 | 68 72 75 20 74 68 65 20 |* Walk t|hru the |
|00001520| 62 6c 6f 63 6b 73 20 69 | 6e 20 74 68 65 20 63 75 |blocks i|n the cu|
|00001530| 72 72 65 6e 74 20 68 65 | 61 70 2c 20 63 61 6c 6c |rrent he|ap, call|
|00001540| 69 6e 67 20 44 6f 54 68 | 69 73 20 66 6f 72 20 65 |ing DoTh|is for e|
|00001550| 61 63 68 20 62 6c 6f 63 | 6b 2e 20 44 6f 54 68 69 |ach bloc|k. DoThi|
|00001560| 73 20 73 68 6f 75 6c 64 | 0d 09 20 62 65 20 61 20 |s should|.. be a |
|00001570| 70 72 6f 63 65 64 75 72 | 65 20 6f 66 20 74 68 65 |procedur|e of the|
|00001580| 20 66 6f 72 6d 3a 0d 09 | 09 09 09 0d 09 09 70 61 | form:..|......pa|
|00001590| 73 63 61 6c 20 76 6f 69 | 64 20 44 6f 54 68 69 73 |scal voi|d DoThis|
|000015a0| 20 28 6c 6f 6e 67 20 62 | 6c 6f 63 6b 41 64 64 72 | (long b|lockAddr|
|000015b0| 65 73 73 2c 20 6c 6f 6e | 67 20 62 6c 6f 63 6b 4c |ess, lon|g blockL|
|000015c0| 65 6e 67 74 68 2c 20 6c | 6f 6e 67 20 61 64 64 72 |ength, l|ong addr|
|000015d0| 4f 66 4d 61 73 74 65 72 | 50 74 72 2c 0d 09 09 09 |OfMaster|Ptr,....|
|000015e0| 20 09 09 09 09 73 68 6f | 72 74 20 62 6c 6f 63 6b | ....sho|rt block|
|000015f0| 54 79 70 65 2c 20 42 6f | 6f 6c 65 61 6e 20 6c 6f |Type, Bo|olean lo|
|00001600| 63 6b 65 64 2c 20 42 6f | 6f 6c 65 61 6e 20 70 75 |cked, Bo|olean pu|
|00001610| 72 67 65 61 62 6c 65 2c | 20 42 6f 6f 6c 65 61 6e |rgeable,| Boolean|
|00001620| 20 72 65 73 6f 75 72 63 | 65 29 0d 0d 09 20 54 68 | resourc|e)... Th|
|00001630| 65 20 62 6c 6f 63 6b 41 | 64 64 72 65 73 73 20 61 |e blockA|ddress a|
|00001640| 6e 64 20 62 6c 6f 63 6b | 4c 65 6e 67 74 68 20 70 |nd block|Length p|
|00001650| 65 72 74 61 69 6e 20 74 | 6f 20 74 68 65 20 64 61 |ertain t|o the da|
|00001660| 74 61 20 69 6e 20 74 68 | 65 20 68 65 61 70 20 62 |ta in th|e heap b|
|00001670| 6c 6f 63 6b 2c 20 6e 6f | 74 20 69 6e 63 6c 75 64 |lock, no|t includ|
|00001680| 69 6e 67 0d 09 20 74 68 | 65 20 62 6c 6f 63 6b 20 |ing.. th|e block |
|00001690| 68 65 61 64 65 72 2e 20 | 54 68 65 20 61 64 64 72 |header. |The addr|
|000016a0| 4f 66 4d 61 73 74 65 72 | 50 74 72 20 69 73 20 74 |OfMaster|Ptr is t|
|000016b0| 68 65 20 6d 61 73 74 65 | 72 20 70 6f 69 6e 74 65 |he maste|r pointe|
|000016c0| 72 27 73 20 6c 6f 63 61 | 74 69 6f 6e 20 69 6e 20 |r's loca|tion in |
|000016d0| 74 68 65 20 68 65 61 70 | 2c 0d 09 20 6e 6f 74 20 |the heap|,.. not |
|000016e0| 74 68 65 20 76 61 6c 75 | 65 20 6f 66 20 74 68 65 |the valu|e of the|
|000016f0| 20 6d 61 73 74 65 72 20 | 70 74 72 2e 20 54 68 65 | master |ptr. The|
|00001700| 20 62 6c 6f 63 6b 54 79 | 70 65 20 69 73 20 64 65 | blockTy|pe is de|
|00001710| 66 69 6e 65 64 20 62 79 | 20 74 68 65 20 63 6f 6e |fined by| the con|
|00001720| 73 74 61 6e 74 73 20 66 | 72 65 65 42 6c 6f 63 6b |stants f|reeBlock|
|00001730| 2c 0d 09 20 6e 6f 6e 72 | 65 6c 6f 63 61 74 61 62 |,.. nonr|elocatab|
|00001740| 6c 65 42 6c 6f 63 6b 20 | 61 6e 64 20 72 65 6c 6f |leBlock |and relo|
|00001750| 63 61 74 61 62 6c 65 42 | 6c 6f 63 6b 2e 20 54 68 |catableB|lock. Th|
|00001760| 65 20 62 6f 6f 6c 65 61 | 6e 73 20 6c 6f 63 6b 65 |e boolea|ns locke|
|00001770| 64 2c 20 70 75 72 67 65 | 61 62 6c 65 20 61 6e 64 |d, purge|able and|
|00001780| 20 72 65 73 6f 75 72 63 | 65 0d 09 20 72 65 66 6c | resourc|e.. refl|
|00001790| 65 63 74 20 74 68 65 20 | 73 74 61 74 65 20 6f 66 |ect the |state of|
|000017a0| 20 74 68 65 20 62 6c 6f | 63 6b 2e 09 2a 2f 0d 20 | the blo|ck..*/. |
|000017b0| 20 74 79 70 65 64 65 66 | 20 70 61 73 63 61 6c 20 | typedef| pascal |
|000017c0| 76 6f 69 64 20 28 2a 44 | 6f 54 68 69 73 50 74 72 |void (*D|oThisPtr|
|000017d0| 29 20 28 6c 6f 6e 67 20 | 62 6c 6f 63 6b 41 64 64 |) (long |blockAdd|
|000017e0| 72 65 73 73 2c 20 6c 6f | 6e 67 20 62 6c 6f 63 6b |ress, lo|ng block|
|000017f0| 4c 65 6e 67 74 68 2c 20 | 6c 6f 6e 67 20 61 64 64 |Length, |long add|
|00001800| 72 4f 66 4d 61 73 74 65 | 72 50 74 72 2c 0d 09 09 |rOfMaste|rPtr,...|
|00001810| 09 20 09 09 09 09 09 09 | 73 68 6f 72 74 20 62 6c |. ......|short bl|
|00001820| 6f 63 6b 54 79 70 65 2c | 20 42 6f 6f 6c 65 61 6e |ockType,| Boolean|
|00001830| 20 6c 6f 63 6b 65 64 2c | 20 42 6f 6f 6c 65 61 6e | locked,| Boolean|
|00001840| 20 70 75 72 67 65 61 62 | 6c 65 2c 20 42 6f 6f 6c | purgeab|le, Bool|
|00001850| 65 61 6e 20 72 65 73 6f | 75 72 63 65 29 3b 0d 20 |ean reso|urce);. |
|00001860| 20 70 61 73 63 61 6c 20 | 76 6f 69 64 20 64 63 6d | pascal |void dcm|
|00001870| 64 46 6f 72 41 6c 6c 48 | 65 61 70 42 6c 6f 63 6b |dForAllH|eapBlock|
|00001880| 73 20 28 44 6f 54 68 69 | 73 50 74 72 20 44 6f 54 |s (DoThi|sPtr DoT|
|00001890| 68 69 73 29 3b 0d 0d 23 | 65 6e 64 69 66 0d 00 00 |his);..#|endif...|
|000018a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000018b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000018c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000018d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000018e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000018f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001900| 00 00 01 00 00 00 01 88 | 00 00 00 88 00 00 00 52 |........|.......R|
|00001910| 6e 64 6f 00 5a 00 00 01 | 2d 00 00 00 00 03 43 75 |ndo.Z...|-.....Cu|
|00001920| 74 00 58 00 00 04 43 6f | 70 79 00 43 00 00 05 50 |t.X...Co|py.C...P|
|00001930| 06 64 63 6d 64 2e 68 da | 02 00 00 00 54 45 58 54 |.dcmd.h.|....TEXT|
|00001940| 4d 50 53 20 01 00 00 40 | 00 40 00 00 00 00 03 ba |MPS ...@|.@......|
|00001950| 00 00 54 45 58 54 4d 50 | 53 20 01 00 00 40 00 40 |..TEXTMP|S ...@.@|
|00001960| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001970| 00 00 a3 c9 c2 c0 00 00 | 18 1e 00 00 01 da 00 0c |........|........|
|00001980| 00 28 00 14 00 a0 01 22 | 00 80 44 44 00 00 00 c0 |.(....."|..DD....|
|00001990| 00 04 00 00 00 00 00 58 | 00 b4 00 6c 01 04 04 02 |.......X|...l....|
|000019a0| 4f 4b 00 00 00 00 00 08 | 00 08 00 18 00 d6 88 1d |OK......|........|
|000019b0| 53 69 6d 70 6c 65 20 53 | 61 6d 70 6c 65 20 28 54 |Simple S|ample (T|
|000019c0| 72 61 66 66 69 63 20 4c | 69 67 68 74 29 00 00 00 |raffic L|ight)...|
|000019d0| 00 00 00 20 00 08 00 30 | 00 ed 88 1f 43 6f 70 79 |... ...0|....Copy|
|000019e0| 72 69 67 68 74 20 a9 20 | 31 39 38 39 20 41 70 70 |right . |1989 App|
|000019f0| 6c 65 20 43 6f 6d 70 75 | 74 65 72 00 00 00 00 00 |le Compu|ter.....|
|00001a00| 00 00 00 16 06 02 80 00 | 00 00 03 36 2e 32 0b 4d |........|...6.2.M|
|00001a10| 61 63 73 42 75 67 20 36 | 2e 32 00 00 00 48 00 09 |acsBug 6|.2...H..|
|00001a20| 4d 6f 6e 61 63 6f 00 0a | 00 00 00 00 00 8c 00 01 |Monaco..|........|
|00001a30| a7 38 00 0a 00 03 00 09 | 00 0e 00 0a 00 00 00 00 |.8......|........|
|00001a40| 00 06 00 04 00 2a 00 03 | 01 42 01 e3 00 2a 00 03 |.....*..|.B...*..|
|00001a50| 01 42 01 e3 a3 c9 c2 c0 | 00 00 00 00 00 00 00 00 |.B......|........|
|00001a60| 00 00 0d 6b 01 00 00 00 | 00 1e 00 2a 00 03 01 42 |...k....|...*...B|
|00001a70| 01 e3 00 2a 00 03 01 42 | 01 e3 00 00 0d 6b 00 00 |...*...B|.....k..|
|00001a80| 00 00 00 00 00 00 00 00 | 00 00 01 00 00 00 01 88 |........|........|
|00001a90| 00 00 00 88 00 00 00 52 | 00 50 4b 18 12 00 00 00 |.......R|.PK.....|
|00001aa0| 00 1c 00 52 00 01 76 65 | 72 73 00 00 00 12 4d 50 |...R..ve|rs....MP|
|00001ab0| 53 52 00 01 00 1e 00 02 | ff ff 20 00 00 00 00 00 |SR......|.. .....|
|00001ac0| 00 00 03 ed ff ff 00 00 | 00 1a 00 00 00 00 03 f0 |........|........|
|00001ad0| ff ff 00 00 00 66 00 52 | 2e 74 00 00 00 00 00 00 |.....f.R|.t......|
|00001ae0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001af0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
+--------+-------------------------+-------------------------+--------+--------+