home *** CD-ROM | disk | FTP | other *** search
/ MacWorld 1999 July / Macworld (1999-07).dmg / Shareware World / Info / For Developers / Mops 3.4.sea / Mops source / More classes / Multitasking < prev    next >
MacBinary  |  1998-05-02  |  16.5 KB  |  [TEXT/MSET]

open in: MacOS 8.1     |     Win98     |     DOS

view JSON data     |     view as text

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

You can browse this item here: Multitasking

ConfidenceProgramDetectionMatch TypeSupport
10% dexvert MacBinary (archive/macBinary) fallback Supported
1% dexvert Text File (text/txt) fallback Supported
100% file MacBinary II, inited, Sat May 2 13:18:40 1998, modified Sat May 2 13:18:40 1998, creator 'MSET', type ASCII, 12834 bytes "Multitasking" , at 0x32a2 3809 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[MSET]



hex view
+--------+-------------------------+-------------------------+--------+--------+
|00000000| 00 0c 4d 75 6c 74 69 74 | 61 73 6b 69 6e 67 00 00 |..Multit|asking..|
|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 53 45 | 54 01 00 00 00 00 00 00 |.TEXTMSE|T.......|
|00000050| 00 00 00 00 00 32 22 00 | 00 0e e1 b1 71 05 f0 b1 |.....2".|....q...|
|00000060| 71 05 f0 00 00 06 00 00 | 00 00 00 00 00 00 00 00 |q.......|........|
|00000070| 00 00 00 00 00 00 00 00 | 00 00 81 81 af c2 00 00 |........|........|
|00000080| 5c 20 4d 75 6c 74 69 74 | 61 73 6b 69 6e 67 2e 20 |\ Multit|asking. |
|00000090| 20 41 70 72 69 6c 20 38 | 38 2e 0d 0d 5c 20 46 65 | April 8|8...\ Fe|
|000000a0| 62 20 39 30 20 2d 20 4d | 20 73 74 61 63 6b 20 72 |b 90 - M| stack r|
|000000b0| 65 66 73 20 72 65 6d 6f | 76 65 64 20 66 6f 72 20 |efs remo|ved for |
|000000c0| 4d 6f 70 73 20 31 2e 32 | 2e 0d 0d 28 2a 0d 0d 4f |Mops 1.2|...(*..O|
|000000d0| 6e 65 20 6f 66 20 74 68 | 65 20 62 65 61 75 74 69 |ne of th|e beauti|
|000000e0| 65 73 20 6f 66 20 61 20 | 46 6f 72 74 68 2d 62 61 |es of a |Forth-ba|
|000000f0| 73 65 64 20 73 79 73 74 | 65 6d 20 69 73 20 74 68 |sed syst|em is th|
|00000100| 61 74 20 69 74 20 69 73 | 20 65 61 73 79 20 74 6f |at it is| easy to|
|00000110| 20 69 6d 70 6c 65 6d 65 | 6e 74 0d 6d 75 6c 74 69 | impleme|nt.multi|
|00000120| 74 61 73 6b 69 6e 67 2e | 20 20 54 68 69 73 20 61 |tasking.| This a|
|00000130| 6c 6c 6f 77 73 20 75 73 | 20 74 6f 20 64 6f 20 69 |llows us| to do i|
|00000140| 6e 74 65 72 65 73 74 69 | 6e 67 20 74 68 69 6e 67 |nteresti|ng thing|
|00000150| 73 20 6c 69 6b 65 20 63 | 6f 6e 74 69 6e 75 65 20 |s like c|ontinue |
|00000160| 70 72 6f 63 65 73 73 69 | 6e 67 0d 77 68 69 6c 65 |processi|ng.while|
|00000170| 20 61 20 77 69 6e 64 6f | 77 20 69 73 20 62 65 69 | a windo|w is bei|
|00000180| 6e 67 20 64 72 61 67 67 | 65 64 20 65 74 63 2e 20 |ng dragg|ed etc. |
|00000190| 20 4d 6f 73 74 20 4d 61 | 63 20 61 70 70 6c 69 63 | Most Ma|c applic|
|000001a0| 61 74 69 6f 6e 73 20 63 | 61 6e 27 74 20 6d 61 6e |ations c|an't man|
|000001b0| 61 67 65 20 74 68 69 73 | 2e 20 0d 49 74 20 6d 61 |age this|. .It ma|
|000001c0| 6b 65 73 20 6f 75 72 20 | 61 70 70 6c 69 63 61 74 |kes our |applicat|
|000001d0| 69 6f 6e 73 20 6c 6f 6f | 6b 20 75 6e 62 65 6c 69 |ions loo|k unbeli|
|000001e0| 65 76 61 62 6c 79 20 73 | 6f 70 68 69 73 74 69 63 |evably s|ophistic|
|000001f0| 61 74 65 64 2c 20 61 6e | 64 20 79 65 74 20 74 68 |ated, an|d yet th|
|00000200| 69 73 20 63 6f 64 65 20 | 69 73 0d 6f 6e 6c 79 20 |is code |is.only |
|00000210| 61 62 6f 75 74 20 32 35 | 30 30 20 62 79 74 65 73 |about 25|00 bytes|
|00000220| 2e 20 20 54 68 69 73 20 | 69 73 20 70 6f 73 73 69 |. This |is possi|
|00000230| 62 6c 65 20 62 65 63 61 | 75 73 65 20 74 68 65 20 |ble beca|use the |
|00000240| 46 6f 72 74 68 20 61 70 | 70 72 6f 61 63 68 20 74 |Forth ap|proach t|
|00000250| 6f 0d 6d 75 6c 74 69 74 | 61 73 6b 69 6e 67 2c 20 |o.multit|asking, |
|00000260| 61 73 20 75 73 75 61 6c | 2c 20 73 69 6d 70 6c 69 |as usual|, simpli|
|00000270| 66 69 65 73 20 74 68 69 | 6e 67 73 20 63 6f 6e 73 |fies thi|ngs cons|
|00000280| 69 64 65 72 61 62 6c 79 | 20 63 6f 6d 70 61 72 65 |iderably| compare|
|00000290| 64 20 77 69 74 68 20 6f | 74 68 65 72 0d 73 79 73 |d with o|ther.sys|
|000002a0| 74 65 6d 73 2e 0d 0d 54 | 68 65 20 6d 61 69 6e 20 |tems...T|he main |
|000002b0| 73 69 6d 70 6c 69 66 79 | 69 6e 67 20 66 61 63 74 |simplify|ing fact|
|000002c0| 6f 72 20 69 73 20 74 68 | 61 74 20 74 68 65 20 73 |or is th|at the s|
|000002d0| 63 68 65 6d 65 20 69 73 | 20 63 6f 6f 70 65 72 61 |cheme is| coopera|
|000002e0| 74 69 76 65 2e 20 20 54 | 61 73 6b 73 20 63 61 6e |tive. T|asks can|
|000002f0| 6e 6f 74 20 62 65 0d 69 | 6e 74 65 72 72 75 70 74 |not be.i|nterrupt|
|00000300| 65 64 20 61 74 20 61 6e | 79 20 61 72 62 69 74 72 |ed at an|y arbitr|
|00000310| 61 72 79 20 70 6f 69 6e | 74 2c 20 62 75 74 20 6d |ary poin|t, but m|
|00000320| 75 73 74 20 65 78 65 63 | 75 74 65 20 50 41 55 53 |ust exec|ute PAUS|
|00000330| 45 20 74 6f 20 61 6c 6c | 6f 77 20 6f 74 68 65 72 |E to all|ow other|
|00000340| 20 74 61 73 6b 73 0d 74 | 6f 20 68 61 76 65 20 61 | tasks.t|o have a|
|00000350| 20 74 75 72 6e 2e 20 20 | 54 68 69 73 20 61 6c 6c | turn. |This all|
|00000360| 6f 77 73 20 74 68 65 20 | 6f 76 65 72 68 65 61 64 |ows the |overhead|
|00000370| 20 66 6f 72 20 73 77 69 | 74 63 68 69 6e 67 20 74 | for swi|tching t|
|00000380| 61 73 6b 73 20 74 6f 20 | 62 65 20 6a 75 73 74 20 |asks to |be just |
|00000390| 61 62 6f 75 74 0d 32 30 | 20 6d 61 63 68 69 6e 65 |about.20| machine|
|000003a0| 20 69 6e 73 74 72 75 63 | 74 69 6f 6e 73 2e 0d 0d | instruc|tions...|
|000003b0| 54 68 69 73 20 63 6f 64 | 65 20 69 73 20 62 61 73 |This cod|e is bas|
|000003c0| 65 64 20 6f 6e 20 74 68 | 61 74 20 69 6e 20 74 68 |ed on th|at in th|
|000003d0| 65 20 4c 61 78 65 6e 2f | 50 65 72 72 79 20 46 38 |e Laxen/|Perry F8|
|000003e0| 33 2c 20 69 6e 63 6c 75 | 64 69 6e 67 20 74 68 65 |3, inclu|ding the|
|000003f0| 20 65 78 74 72 61 20 66 | 65 61 74 75 72 65 73 0d | extra f|eatures.|
|00000400| 61 64 64 65 64 20 62 79 | 20 79 6f 75 72 73 20 74 |added by| yours t|
|00000410| 72 75 6c 79 20 69 6e 20 | 74 68 65 20 50 44 50 2d |ruly in |the PDP-|
|00000420| 31 31 20 69 6d 70 6c 65 | 6d 65 6e 74 61 74 69 6f |11 imple|mentatio|
|00000430| 6e 2c 20 6e 6f 74 61 62 | 6c 79 20 74 68 65 20 6d |n, notab|ly the m|
|00000440| 65 63 68 61 6e 69 73 6d | 20 74 6f 0d 6b 65 65 70 |echanism| to.keep|
|00000450| 20 74 72 61 63 6b 20 6f | 66 20 74 68 65 20 73 74 | track o|f the st|
|00000460| 61 74 75 73 20 6f 66 20 | 61 20 74 61 73 6b 2e 20 |atus of |a task. |
|00000470| 20 57 65 20 6d 61 6b 65 | 20 73 6f 6d 65 20 6e 65 | We make| some ne|
|00000480| 63 65 73 73 61 72 79 20 | 4d 61 63 20 61 6e 64 20 |cessary |Mac and |
|00000490| 4d 6f 70 73 0d 61 64 61 | 70 74 61 74 69 6f 6e 73 |Mops.ada|ptations|
|000004a0| 20 68 65 72 65 20 2d 20 | 69 6e 20 70 61 72 74 69 | here - |in parti|
|000004b0| 63 75 6c 61 72 2c 20 61 | 20 74 61 73 6b 20 62 65 |cular, a| task be|
|000004c0| 63 6f 6d 65 73 20 61 20 | 4d 6f 70 73 20 6f 62 6a |comes a |Mops obj|
|000004d0| 65 63 74 2c 20 61 6e 64 | 20 77 65 20 73 65 74 20 |ect, and| we set |
|000004e0| 74 68 65 0d 76 61 72 69 | 6f 75 73 20 75 73 65 72 |the.vari|ous user|
|000004f0| 20 68 6f 6f 6b 20 6c 6f | 63 61 74 69 6f 6e 73 20 | hook lo|cations |
|00000500| 28 65 2e 67 2e 20 44 72 | 61 67 48 6f 6f 6b 29 20 |(e.g. Dr|agHook) |
|00000510| 74 6f 20 70 6f 69 6e 74 | 20 74 6f 20 61 20 72 6f |to point| to a ro|
|00000520| 75 74 69 6e 65 20 74 6f | 20 72 75 6e 20 74 68 65 |utine to| run the|
|00000530| 0d 74 61 73 6b 20 72 6f | 75 6e 64 2d 72 6f 62 69 |.task ro|und-robi|
|00000540| 6e 2e 20 20 41 6e 6f 74 | 68 65 72 20 61 64 64 69 |n. Anot|her addi|
|00000550| 74 69 6f 6e 20 69 73 20 | 74 68 61 74 20 65 61 63 |tion is |that eac|
|00000560| 68 20 74 61 73 6b 20 68 | 61 73 20 61 20 71 75 65 |h task h|as a que|
|00000570| 75 65 20 6f 66 20 74 61 | 73 6b 73 0d 77 61 69 74 |ue of ta|sks.wait|
|00000580| 69 6e 67 20 6f 6e 20 69 | 74 2e 20 20 54 68 69 73 |ing on i|t. This|
|00000590| 20 61 76 6f 69 64 73 20 | 61 20 77 61 69 74 69 6e | avoids |a waitin|
|000005a0| 67 20 74 61 73 6b 20 68 | 61 76 69 6e 67 20 74 6f |g task h|aving to|
|000005b0| 20 77 61 73 74 65 20 74 | 69 6d 65 20 74 65 73 74 | waste t|ime test|
|000005c0| 69 6e 67 20 74 68 65 0d | 6f 74 68 65 72 20 74 61 |ing the.|other ta|
|000005d0| 73 6b 20 65 61 63 68 20 | 74 69 6d 65 20 72 6f 75 |sk each |time rou|
|000005e0| 6e 64 2e 20 20 41 20 77 | 61 69 74 69 6e 67 20 74 |nd. A w|aiting t|
|000005f0| 61 73 6b 20 63 61 6e 20 | 6e 6f 77 20 62 65 20 70 |ask can |now be p|
|00000600| 75 74 20 74 6f 20 73 6c | 65 65 70 2c 20 61 6e 64 |ut to sl|eep, and|
|00000610| 20 74 68 65 0d 74 69 6d | 65 20 70 65 6e 61 6c 74 | the.tim|e penalt|
|00000620| 79 20 66 6f 72 20 65 61 | 63 68 20 77 61 69 74 69 |y for ea|ch waiti|
|00000630| 6e 67 20 74 61 73 6b 20 | 69 73 20 72 65 64 75 63 |ng task |is reduc|
|00000640| 65 64 20 74 6f 20 6f 6e | 65 20 6d 61 63 68 69 6e |ed to on|e machin|
|00000650| 65 20 4a 4d 50 20 69 6e | 73 74 72 75 63 74 69 6f |e JMP in|structio|
|00000660| 6e 0d 65 61 63 68 20 74 | 69 6d 65 20 72 6f 75 6e |n.each t|ime roun|
|00000670| 64 20 74 68 65 20 74 61 | 73 6b 20 6c 6f 6f 70 2e |d the ta|sk loop.|
|00000680| 20 49 66 20 69 74 20 77 | 61 73 20 77 6f 72 74 68 | If it w|as worth|
|00000690| 20 69 74 2c 20 77 65 20 | 63 6f 75 6c 64 20 65 76 | it, we |could ev|
|000006a0| 65 6e 20 72 65 6d 6f 76 | 65 20 74 68 65 0d 74 61 |en remov|e the.ta|
|000006b0| 73 6b 20 66 72 6f 6d 20 | 74 68 65 20 6c 6f 6f 70 |sk from |the loop|
|000006c0| 20 61 6c 74 6f 67 65 74 | 68 65 72 2c 20 62 75 74 | altoget|her, but|
|000006d0| 20 69 74 20 70 72 6f 62 | 61 62 6c 79 20 69 73 6e | it prob|ably isn|
|000006e0| 27 74 20 77 6f 72 74 68 | 20 69 74 2e 0d 0d 41 6e |'t worth| it...An|
|000006f0| 6f 74 68 65 72 20 6e 65 | 63 65 73 73 61 72 79 20 |other ne|cessary |
|00000700| 4d 61 63 20 61 64 6a 75 | 73 74 6d 65 6e 74 20 69 |Mac adju|stment i|
|00000710| 73 20 74 68 61 74 20 77 | 65 20 6d 75 73 74 20 64 |s that w|e must d|
|00000720| 69 73 74 69 6e 67 75 69 | 73 68 20 62 65 74 77 65 |istingui|sh betwe|
|00000730| 65 6e 20 61 0d 66 6f 72 | 65 67 72 6f 75 6e 64 20 |en a.for|eground |
|00000740| 74 61 73 6b 20 61 6e 64 | 20 76 61 72 69 6f 75 73 |task and| various|
|00000750| 20 62 61 63 6b 67 72 6f | 75 6e 64 20 74 61 73 6b | backgro|und task|
|00000760| 73 2e 20 20 41 6e 79 20 | 74 69 6d 65 20 57 61 69 |s. Any |time Wai|
|00000770| 74 4e 65 78 74 45 76 65 | 6e 74 20 69 73 0d 63 61 |tNextEve|nt is.ca|
|00000780| 6c 6c 65 64 2c 20 61 6c | 6c 20 6b 69 6e 64 73 20 |lled, al|l kinds |
|00000790| 6f 66 20 74 68 69 6e 67 | 73 20 63 61 6e 20 68 61 |of thing|s can ha|
|000007a0| 70 70 65 6e 20 77 68 69 | 63 68 20 63 61 6e 20 75 |ppen whi|ch can u|
|000007b0| 73 65 20 73 65 76 65 72 | 61 6c 20 4b 20 6f 66 20 |se sever|al K of |
|000007c0| 73 74 61 63 6b 20 73 70 | 61 63 65 2e 20 0d 54 68 |stack sp|ace. .Th|
|000007d0| 65 72 65 66 6f 72 65 20 | 77 65 20 61 73 73 75 6d |erefore |we assum|
|000007e0| 65 20 69 6e 20 61 6c 6c | 6f 63 61 74 69 6e 67 20 |e in all|ocating |
|000007f0| 74 68 69 73 20 73 70 61 | 63 65 20 74 68 61 74 20 |this spa|ce that |
|00000800| 57 4e 45 20 77 69 6c 6c | 20 6f 6e 6c 79 20 62 65 |WNE will| only be|
|00000810| 20 63 61 6c 6c 65 64 20 | 66 72 6f 6d 0d 74 68 65 | called |from.the|
|00000820| 20 66 6f 72 65 67 72 6f | 75 6e 64 20 74 61 73 6b | foregro|und task|
|00000830| 2c 20 61 6e 64 20 77 65 | 20 64 6f 6e 27 74 20 6e |, and we| don't n|
|00000840| 65 65 64 20 74 6f 20 61 | 6c 6c 6f 63 61 74 65 20 |eed to a|llocate |
|00000850| 61 73 20 6d 75 63 68 20 | 73 74 61 63 6b 20 73 70 |as much |stack sp|
|00000860| 61 63 65 20 66 6f 72 0d | 62 61 63 6b 67 72 6f 75 |ace for.|backgrou|
|00000870| 6e 64 20 74 61 73 6b 73 | 2e 20 20 41 6c 73 6f 2c |nd tasks|. Also,|
|00000880| 20 74 68 65 20 68 6f 6f | 6b 20 70 72 6f 63 65 64 | the hoo|k proced|
|00000890| 75 72 65 73 20 6d 75 73 | 74 20 62 65 20 61 62 6c |ures mus|t be abl|
|000008a0| 65 20 74 6f 20 65 6e 73 | 75 72 65 20 74 68 61 74 |e to ens|ure that|
|000008b0| 20 57 4e 45 0d 77 69 6c | 6c 20 6e 6f 74 20 62 65 | WNE.wil|l not be|
|000008c0| 20 63 61 6c 6c 65 64 20 | 64 75 72 69 6e 67 20 74 | called |during t|
|000008d0| 68 65 69 72 20 65 78 65 | 63 75 74 69 6f 6e 20 28 |heir exe|cution (|
|000008e0| 76 65 72 79 20 69 6c 6c | 65 67 61 6c 29 2e 20 20 |very ill|egal). |
|000008f0| 49 66 20 77 65 20 63 61 | 6c 6c 20 57 4e 45 20 6f |If we ca|ll WNE o|
|00000900| 6e 6c 79 0d 66 72 6f 6d | 20 74 68 65 20 66 6f 72 |nly.from| the for|
|00000910| 65 67 72 6f 75 6e 64 20 | 74 61 73 6b 2c 20 74 68 |eground |task, th|
|00000920| 65 72 65 27 73 20 6e 6f | 20 70 72 6f 62 6c 65 6d |ere's no| problem|
|00000930| 2e 20 20 54 68 65 20 68 | 6f 6f 6b 20 70 72 6f 63 |. The h|ook proc|
|00000940| 65 64 75 72 65 73 20 74 | 68 65 6e 20 61 6c 77 61 |edures t|hen alwa|
|00000950| 79 73 0d 65 78 65 63 75 | 74 65 20 61 73 20 70 61 |ys.execu|te as pa|
|00000960| 72 74 20 6f 66 20 74 68 | 65 20 66 6f 72 65 67 72 |rt of th|e foregr|
|00000970| 6f 75 6e 64 20 74 61 73 | 6b 20 28 74 68 65 79 27 |ound tas|k (they'|
|00000980| 72 65 20 63 61 6c 6c 65 | 64 20 62 79 20 74 68 65 |re calle|d by the|
|00000990| 20 73 79 73 74 65 6d 20 | 61 74 20 57 4e 45 0d 74 | system |at WNE.t|
|000009a0| 69 6d 65 29 2c 20 61 6e | 64 20 65 76 65 6e 20 69 |ime), an|d even i|
|000009b0| 66 20 74 68 65 79 20 67 | 69 76 65 20 62 61 63 6b |f they g|ive back|
|000009c0| 67 72 6f 75 6e 64 20 74 | 61 73 6b 73 20 73 6f 6d |ground t|asks som|
|000009d0| 65 20 74 69 6d 65 20 62 | 65 66 6f 72 65 20 74 68 |e time b|efore th|
|000009e0| 65 79 20 72 65 74 75 72 | 6e 2c 0d 74 68 65 73 65 |ey retur|n,.these|
|000009f0| 20 62 61 63 6b 67 72 6f | 75 6e 64 20 74 61 73 6b | backgro|und task|
|00000a00| 73 20 77 6f 6e 27 74 20 | 62 65 20 63 61 6c 6c 69 |s won't |be calli|
|00000a10| 6e 67 20 57 4e 45 2e 0d | 0d 41 6e 6f 74 68 65 72 |ng WNE..|.Another|
|00000a20| 20 74 68 69 6e 67 20 74 | 6f 20 77 61 74 63 68 20 | thing t|o watch |
|00000a30| 69 73 20 74 68 61 74 20 | 61 20 62 61 63 6b 67 72 |is that |a backgr|
|00000a40| 6f 75 6e 64 20 74 61 73 | 6b 20 73 68 6f 75 6c 64 |ound tas|k should|
|00000a50| 6e 27 74 20 64 6f 20 61 | 6e 79 20 64 72 61 77 69 |n't do a|ny drawi|
|00000a60| 6e 67 20 74 6f 0d 74 68 | 65 20 73 63 72 65 65 6e |ng to.th|e screen|
|00000a70| 20 20 4e 6f 74 20 6f 6e | 6c 79 20 64 6f 65 73 6e | Not on|ly doesn|
|00000a80| 27 74 20 69 74 20 6b 6e | 6f 77 20 77 68 69 63 68 |'t it kn|ow which|
|00000a90| 20 47 72 61 66 50 6f 72 | 74 20 69 73 20 73 77 69 | GrafPor|t is swi|
|00000aa0| 74 63 68 65 64 20 69 6e | 2c 20 49 20 68 61 76 65 |tched in|, I have|
|00000ab0| 20 61 6c 73 6f 0d 66 6f | 75 6e 64 20 51 75 69 63 | also.fo|und Quic|
|00000ac0| 6b 44 72 61 77 20 64 6f | 69 6e 67 20 73 6f 6d 65 |kDraw do|ing some|
|00000ad0| 20 73 74 72 61 6e 67 65 | 20 74 68 69 6e 67 73 20 | strange| things |
|00000ae0| 69 6e 20 74 68 65 20 22 | 75 6e 75 73 65 64 22 20 |in the "|unused" |
|00000af0| 61 72 65 61 20 6f 66 20 | 74 68 65 20 73 74 61 63 |area of |the stac|
|00000b00| 6b 0d 62 65 74 77 65 65 | 6e 20 42 75 66 50 74 72 |k.betwee|n BufPtr|
|00000b10| 20 61 6e 64 20 74 68 65 | 20 63 75 72 72 65 6e 74 | and the| current|
|00000b20| 20 41 37 20 73 74 61 63 | 6b 20 70 6f 69 6e 74 65 | A7 stac|k pointe|
|00000b30| 72 21 21 20 20 57 65 20 | 74 68 65 72 65 66 6f 72 |r!! We |therefor|
|00000b40| 65 20 6e 6f 77 20 70 75 | 74 20 74 68 65 0d 66 6f |e now pu|t the.fo|
|00000b50| 72 65 67 72 6f 75 6e 64 | 20 73 74 61 63 6b 20 4c |reground| stack L|
|00000b60| 4f 57 45 53 54 20 69 6e | 20 6d 65 6d 6f 72 79 20 |OWEST in| memory |
|00000b70| 2d 20 74 68 69 73 20 6e | 65 63 65 73 73 69 74 61 |- this n|ecessita|
|00000b80| 74 65 73 20 6d 6f 76 69 | 6e 67 20 74 68 65 20 73 |tes movi|ng the s|
|00000b90| 74 61 63 6b 20 77 68 65 | 6e 20 61 0d 62 61 63 6b |tack whe|n a.back|
|00000ba0| 67 72 6f 75 6e 64 20 74 | 61 73 6b 20 69 73 20 61 |ground t|ask is a|
|00000bb0| 6c 6c 6f 63 61 74 65 64 | 2c 20 62 75 74 20 61 74 |llocated|, but at|
|00000bc0| 20 6c 65 61 73 74 20 69 | 74 20 61 76 6f 69 64 73 | least i|t avoids|
|00000bd0| 20 61 6e 79 20 70 72 6f | 62 6c 65 6d 73 20 77 69 | any pro|blems wi|
|00000be0| 74 68 0d 51 75 69 63 6b | 44 72 61 77 2c 20 73 69 |th.Quick|Draw, si|
|00000bf0| 6e 63 65 2c 20 61 73 73 | 75 6d 69 6e 67 20 51 75 |nce, ass|uming Qu|
|00000c00| 69 63 6b 44 72 61 77 20 | 63 61 6c 6c 73 20 6f 6e |ickDraw |calls on|
|00000c10| 6c 79 20 72 65 73 75 6c | 74 20 66 72 6f 6d 20 66 |ly resul|t from f|
|00000c20| 6f 72 65 67 72 6f 75 6e | 64 20 74 61 73 6b 73 2c |oregroun|d tasks,|
|00000c30| 0d 74 68 65 20 73 74 61 | 63 6b 20 70 6f 69 6e 74 |.the sta|ck point|
|00000c40| 65 72 20 61 74 20 73 79 | 73 74 65 6d 20 63 61 6c |er at sy|stem cal|
|00000c50| 6c 20 74 69 6d 65 20 77 | 69 6c 6c 20 72 65 61 6c |l time w|ill real|
|00000c60| 6c 79 20 72 65 70 72 65 | 73 65 6e 74 20 74 68 65 |ly repre|sent the|
|00000c70| 20 6c 6f 77 65 73 74 20 | 61 64 64 72 65 73 73 0d | lowest |address.|
|00000c80| 77 65 20 6e 65 65 64 20 | 66 6f 72 20 61 6e 79 20 |we need |for any |
|00000c90| 6f 66 20 6f 75 72 20 73 | 74 61 63 6b 73 2e 00 0d |of our s|tacks...|
|00000ca0| 0d 4f 75 72 20 67 65 6e | 65 72 61 6c 20 70 68 69 |.Our gen|eral phi|
|00000cb0| 6c 6f 73 6f 70 68 79 2c | 20 74 68 65 6e 2c 20 69 |losophy,| then, i|
|00000cc0| 73 20 74 68 61 74 20 74 | 68 65 20 66 6f 72 65 67 |s that t|he foreg|
|00000cd0| 72 6f 75 6e 64 20 74 61 | 73 6b 20 77 69 6c 6c 20 |round ta|sk will |
|00000ce0| 6c 6f 6f 6b 20 61 66 74 | 65 72 20 74 68 65 0d 75 |look aft|er the.u|
|00000cf0| 73 65 72 20 69 6e 74 65 | 72 66 61 63 65 2c 20 64 |ser inte|rface, d|
|00000d00| 6f 20 61 6c 6c 20 64 72 | 61 77 69 6e 67 20 74 6f |o all dr|awing to|
|00000d10| 20 74 68 65 20 73 63 72 | 65 65 6e 2c 20 61 6e 64 | the scr|een, and|
|00000d20| 20 6d 61 6e 61 67 65 20 | 74 68 65 20 65 76 65 6e | manage |the even|
|00000d30| 74 20 6c 6f 6f 70 2e 20 | 20 49 74 0d 77 69 6c 6c |t loop. | It.will|
|00000d40| 20 64 65 6c 65 67 61 74 | 65 20 61 6e 79 20 6c 65 | delegat|e any le|
|00000d50| 6e 67 74 68 79 20 63 6f | 6d 70 75 74 61 74 69 6f |ngthy co|mputatio|
|00000d60| 6e 20 74 6f 20 62 61 63 | 6b 67 72 6f 75 6e 64 20 |n to bac|kground |
|00000d70| 74 61 73 6b 73 2c 20 77 | 68 69 63 68 20 74 68 65 |tasks, w|hich the|
|00000d80| 72 65 66 6f 72 65 20 6a | 75 73 74 0d 66 75 6e 63 |refore j|ust.func|
|00000d90| 74 69 6f 6e 20 61 73 20 | 63 6f 6d 70 75 74 69 6e |tion as |computin|
|00000da0| 67 20 65 6e 67 69 6e 65 | 73 20 66 6f 72 20 74 68 |g engine|s for th|
|00000db0| 65 20 66 6f 72 65 67 72 | 6f 75 6e 64 2e 0d 0d 54 |e foregr|ound...T|
|00000dc0| 68 69 6e 67 73 20 77 6f | 75 6c 64 20 68 61 76 65 |hings wo|uld have|
|00000dd0| 20 62 65 65 6e 20 61 20 | 6c 6f 74 20 65 61 73 69 | been a |lot easi|
|00000de0| 65 72 20 69 66 20 77 65 | 20 63 6f 75 6c 64 20 68 |er if we| could h|
|00000df0| 61 76 65 20 61 6c 6c 6f | 63 61 74 65 64 20 61 20 |ave allo|cated a |
|00000e00| 68 65 61 70 20 62 6c 6f | 63 6b 20 66 6f 72 0d 65 |heap blo|ck for.e|
|00000e10| 61 63 68 20 62 61 63 6b | 67 72 6f 75 6e 64 20 74 |ach back|ground t|
|00000e20| 61 73 6b 27 73 20 73 74 | 61 63 6b 2e 20 20 42 75 |ask's st|ack. Bu|
|00000e30| 74 20 74 68 65 6e 20 77 | 65 20 77 6f 75 6c 64 20 |t then w|e would |
|00000e40| 67 65 74 20 63 61 75 67 | 68 74 20 62 79 20 74 68 |get caug|ht by th|
|00000e50| 65 20 56 42 4c 20 22 73 | 74 61 63 6b 0d 73 6e 69 |e VBL "s|tack.sni|
|00000e60| 66 66 65 72 22 20 72 6f | 75 74 69 6e 65 2c 20 77 |ffer" ro|utine, w|
|00000e70| 68 69 63 68 20 77 6f 75 | 6c 64 20 66 69 6e 64 20 |hich wou|ld find |
|00000e80| 53 50 20 70 6f 69 6e 74 | 69 6e 67 20 62 65 6c 6f |SP point|ing belo|
|00000e90| 77 20 41 70 70 6c 4c 69 | 6d 69 74 2c 20 74 68 69 |w ApplLi|mit, thi|
|00000ea0| 6e 6b 20 74 68 61 74 20 | 74 68 65 0d 73 74 61 63 |nk that |the.stac|
|00000eb0| 6b 20 68 61 64 20 65 6e | 63 72 6f 61 63 68 65 64 |k had en|croached|
|00000ec0| 20 69 6e 74 6f 20 74 68 | 65 20 68 65 61 70 20 7a | into th|e heap z|
|00000ed0| 6f 6e 65 2c 20 61 6e 64 | 20 70 6f 6c 69 74 65 6c |one, and| politel|
|00000ee0| 79 20 62 6f 77 20 6f 75 | 74 20 77 69 74 68 20 73 |y bow ou|t with s|
|00000ef0| 79 73 74 65 6d 20 65 72 | 72 6f 72 0d 32 38 20 28 |ystem er|ror.28 (|
|00000f00| 73 74 61 63 6b 20 63 6f | 6c 6c 69 64 65 73 20 77 |stack co|llides w|
|00000f10| 69 74 68 20 68 65 61 70 | 29 2e 0d 0d 5c 09 09 09 |ith heap|)...\...|
|00000f20| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========|
|00000f30| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========|
|00000f40| 0d 0d 5c 20 48 65 72 65 | 20 77 65 20 64 65 66 69 |..\ Here| we defi|
|00000f50| 6e 65 20 76 61 6c 75 65 | 73 20 66 6f 72 20 74 68 |ne value|s for th|
|00000f60| 65 20 73 70 61 63 65 20 | 74 6f 20 62 65 20 61 6c |e space |to be al|
|00000f70| 6c 6f 63 61 74 65 64 20 | 66 6f 72 20 74 68 65 20 |located |for the |
|00000f80| 4d 6f 70 73 20 73 74 61 | 63 6b 73 20 66 6f 72 20 |Mops sta|cks for |
|00000f90| 6e 65 77 20 74 61 73 6b | 73 2e 20 20 54 68 65 73 |new task|s. Thes|
|00000fa0| 65 20 76 61 6c 75 65 73 | 20 6d 61 79 20 62 65 20 |e values| may be |
|00000fb0| 63 68 61 6e 67 65 64 20 | 61 73 20 72 65 71 75 69 |changed |as requi|
|00000fc0| 72 65 64 2e 20 20 49 74 | 27 73 20 62 65 74 74 65 |red. It|'s bette|
|00000fd0| 72 20 74 6f 20 65 72 72 | 20 6f 6e 20 74 68 65 20 |r to err| on the |
|00000fe0| 62 69 67 20 73 69 64 65 | 2e 20 20 52 65 6d 65 6d |big side|. Remem|
|00000ff0| 62 65 72 20 74 68 61 74 | 20 61 6e 79 20 54 6f 6f |ber that| any Too|
|00001000| 6c 62 6f 78 20 63 61 6c | 6c 73 20 63 61 6e 20 75 |lbox cal|ls can u|
|00001010| 73 65 20 61 20 6c 6f 74 | 20 6f 66 20 64 61 74 61 |se a lot| of data|
|00001020| 20 73 74 61 63 6b 20 73 | 70 61 63 65 2e 0d 0d 20 | stack s|pace... |
|00001030| 32 30 30 30 09 76 61 6c | 75 65 09 52 5f 53 50 41 |2000.val|ue.R_SPA|
|00001040| 43 45 0d 20 33 30 30 30 | 09 76 61 6c 75 65 09 53 |CE. 3000|.value.S|
|00001050| 5f 53 50 41 43 45 0d 0d | 31 36 30 30 30 09 76 61 |_SPACE..|16000.va|
|00001060| 6c 75 65 09 46 47 44 5f | 53 5f 53 50 41 43 45 0d |lue.FGD_|S_SPACE.|
|00001070| 0d 20 20 20 20 30 09 76 | 61 6c 75 65 09 52 45 41 |. 0.v|alue.REA|
|00001080| 4c 5f 52 50 30 0d 20 20 | 20 20 30 09 76 61 6c 75 |L_RP0. | 0.valu|
|00001090| 65 09 4e 45 57 5f 53 50 | 0d 0d 0d 5c 20 50 6f 73 |e.NEW_SP|...\ Pos|
|000010a0| 73 69 62 6c 65 20 74 61 | 73 6b 20 73 74 61 74 75 |sible ta|sk statu|
|000010b0| 73 65 73 3a 0d 0d 74 79 | 70 65 7b 20 20 41 57 41 |ses:..ty|pe{ AWA|
|000010c0| 4b 45 20 20 41 53 4c 45 | 45 50 20 20 57 41 49 54 |KE ASLE|EP WAIT|
|000010d0| 49 4e 47 20 20 53 54 4f | 50 50 45 44 20 20 54 45 |ING STO|PPED TE|
|000010e0| 52 4d 49 4e 41 54 45 44 | 20 20 41 56 41 49 4c 41 |RMINATED| AVAILA|
|000010f0| 42 4c 45 20 20 43 52 41 | 53 48 45 44 20 20 7d 0d |BLE CRA|SHED }.|
|00001100| 0d 0d 5c 20 43 6f 6e 73 | 74 61 6e 74 73 20 66 6f |..\ Cons|tants fo|
|00001110| 72 20 74 68 65 20 36 38 | 30 30 30 20 6f 70 63 6f |r the 68|000 opco|
|00001120| 64 65 73 20 77 65 20 6e | 65 65 64 3a 0d 0d 24 20 |des we n|eed:..$ |
|00001130| 34 45 46 39 20 63 6f 6e | 73 74 61 6e 74 09 51 4a |4EF9 con|stant.QJ|
|00001140| 4d 50 09 09 5c 20 4a 4d | 50 20 28 61 62 73 6f 6c |MP..\ JM|P (absol|
|00001150| 75 74 65 20 6c 6f 6e 67 | 29 0d 24 20 36 31 30 34 |ute long|).$ 6104|
|00001160| 20 63 6f 6e 73 74 61 6e | 74 09 51 42 53 52 09 09 | constan|t.QBSR..|
|00001170| 5c 20 42 53 52 20 20 2b | 34 0d 0d 6f 62 6a 50 74 |\ BSR +|4..objPt|
|00001180| 72 09 54 48 49 53 5f 54 | 41 53 4b 09 09 5c 20 50 |r.THIS_T|ASK..\ P|
|00001190| 6f 69 6e 74 73 20 74 6f | 20 74 68 65 20 63 75 72 |oints to| the cur|
|000011a0| 72 65 6e 74 6c 79 20 72 | 75 6e 6e 69 6e 67 20 74 |rently r|unning t|
|000011b0| 61 73 6b 2e 0d 0d 6f 62 | 6a 50 74 72 09 54 53 4b |ask...ob|jPtr.TSK|
|000011c0| 31 09 09 09 5c 20 55 73 | 65 64 20 66 6f 72 20 74 |1...\ Us|ed for t|
|000011d0| 72 61 63 6b 69 6e 67 20 | 74 61 73 6b 20 71 75 65 |racking |task que|
|000011e0| 75 65 73 2e 0d 6f 62 6a | 50 74 72 09 54 53 4b 32 |ues..obj|Ptr.TSK2|
|000011f0| 09 09 09 5c 20 20 57 69 | 6c 6c 20 62 65 20 73 65 |...\ Wi|ll be se|
|00001200| 74 20 74 6f 20 63 6c 61 | 73 73 20 54 61 73 6b 2e |t to cla|ss Task.|
|00001210| 0d 0d 20 20 20 20 30 09 | 76 61 6c 75 65 09 53 54 |.. 0.|value.ST|
|00001220| 50 09 09 5c 20 53 74 61 | 63 6b 20 61 6c 6c 6f 63 |P..\ Sta|ck alloc|
|00001230| 61 74 69 6f 6e 20 70 6f | 69 6e 74 65 72 2e 0d 0d |ation po|inter...|
|00001240| 0d 5c 09 09 09 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |.\...===|========|
|00001250| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 0d 0d 3a 63 6f 64 65 |========|=..:code|
|00001260| 20 20 53 55 53 50 45 4e | 44 0d 09 6d 6f 76 65 6d | SUSPEN|D..movem|
|00001270| 2e 6c 09 64 32 2d 64 37 | 2f 61 32 2f 61 35 2f 61 |.l.d2-d7|/a2/a5/a|
|00001280| 37 2c 2d 28 61 36 29 09 | 09 3b 20 53 61 76 65 20 |7,-(a6).|.; Save |
|00001290| 61 6c 6c 20 72 65 6c 65 | 76 61 6e 74 20 72 65 67 |all rele|vant reg|
|000012a0| 73 0d 09 6d 6f 76 65 6d | 2e 6c 09 64 69 63 5b 45 |s..movem|.l.dic[E|
|000012b0| 78 74 72 61 4c 6f 63 61 | 6c 73 5d 2c 64 30 2d 64 |xtraLoca|ls],d0-d|
|000012c0| 37 2f 61 30 2f 61 31 09 | 3b 20 53 61 76 65 20 45 |7/a0/a1.|; Save E|
|000012d0| 78 74 72 61 4c 6f 63 61 | 6c 73 20 61 72 65 61 0d |xtraLoca|ls area.|
|000012e0| 09 6d 6f 76 65 6d 2e 6c | 09 64 30 2d 64 37 2f 61 |.movem.l|.d0-d7/a|
|000012f0| 30 2f 61 31 2c 2d 28 61 | 36 29 0d 09 6d 6f 76 65 |0/a1,-(a|6)..move|
|00001300| 6d 2e 6c 09 34 30 28 64 | 69 63 5b 45 78 74 72 61 |m.l.40(d|ic[Extra|
|00001310| 4c 6f 63 61 6c 73 5d 29 | 2c 64 30 2d 64 37 2f 61 |Locals])|,d0-d7/a|
|00001320| 30 2f 61 31 0d 09 6d 6f | 76 65 6d 2e 6c 09 64 30 |0/a1..mo|vem.l.d0|
|00001330| 2d 64 37 2f 61 30 2f 61 | 31 2c 2d 28 61 36 29 0d |-d7/a0/a|1,-(a6).|
|00001340| 09 6d 6f 76 65 09 64 69 | 63 5b 74 68 69 73 5f 74 |.move.di|c[this_t|
|00001350| 61 73 6b 5d 2c 61 31 0d | 09 6d 6f 76 65 09 61 36 |ask],a1.|.move.a6|
|00001360| 2c 31 32 28 61 31 29 09 | 3b 20 53 61 76 65 20 64 |,12(a1).|; Save d|
|00001370| 61 74 61 20 73 74 6b 20 | 70 74 72 20 69 6e 20 74 |ata stk |ptr in t|
|00001380| 61 73 6b 20 6f 62 6a 65 | 63 74 0d 09 6d 6f 76 65 |ask obje|ct..move|
|00001390| 09 32 28 61 31 29 2c 61 | 30 0d 09 6a 6d 70 09 28 |.2(a1),a|0..jmp.(|
|000013a0| 61 30 29 09 3b 20 4a 4d | 50 20 74 6f 20 4c 49 4e |a0).; JM|P to LIN|
|000013b0| 4b 20 74 6f 20 72 65 73 | 74 61 72 74 20 6e 65 78 |K to res|tart nex|
|000013c0| 74 20 74 61 73 6b 2e 0d | 3b 63 6f 64 65 0d 0d 3a |t task..|;code..:|
|000013d0| 63 6f 64 65 20 20 52 45 | 53 54 41 52 54 0d 09 6d |code RE|START..m|
|000013e0| 6f 76 65 09 28 61 37 29 | 2b 2c 61 31 0d 09 73 75 |ove.(a7)|+,a1..su|
|000013f0| 62 71 09 23 32 2c 61 31 | 09 3b 20 41 31 20 2d 3e |bq.#2,a1|.; A1 ->|
|00001400| 20 74 61 73 6b 20 6f 62 | 6a 65 63 74 20 61 64 64 | task ob|ject add|
|00001410| 72 0d 09 6d 6f 76 65 09 | 31 38 28 61 31 29 2c 64 |r..move.|18(a1),d|
|00001420| 69 63 5b 53 50 30 5d 09 | 3b 20 53 65 74 20 53 50 |ic[SP0].|; Set SP|
|00001430| 30 0d 09 6d 6f 76 65 09 | 32 32 28 61 31 29 2c 64 |0..move.|22(a1),d|
|00001440| 69 63 5b 52 50 30 5d 09 | 3b 20 53 65 74 20 52 50 |ic[RP0].|; Set RP|
|00001450| 30 0d 09 6d 6f 76 65 09 | 31 32 28 61 31 29 2c 61 |0..move.|12(a1),a|
|00001460| 36 09 3b 20 53 65 74 20 | 53 50 0d 09 6c 65 61 09 |6.; Set |SP..lea.|
|00001470| 72 65 6c 5b 74 68 69 73 | 5f 74 61 73 6b 5d 2c 61 |rel[this|_task],a|
|00001480| 30 09 3b 20 57 65 20 6d | 61 79 20 62 65 20 62 61 |0.; We m|ay be ba|
|00001490| 73 65 64 20 6f 6e 20 41 | 35 2c 20 6e 6f 74 20 73 |sed on A|5, not s|
|000014a0| 65 74 20 75 70 20 79 65 | 74 0d 09 6d 6f 76 65 2e |et up ye|t..move.|
|000014b0| 6c 09 61 31 2c 28 61 30 | 29 0d 09 6d 6f 76 65 6d |l.a1,(a0|)..movem|
|000014c0| 2e 6c 09 28 61 36 29 2b | 2c 64 30 2d 64 37 2f 61 |.l.(a6)+|,d0-d7/a|
|000014d0| 30 2f 61 31 09 09 3b 20 | 52 65 73 74 6f 72 65 20 |0/a1..; |Restore |
|000014e0| 45 78 74 72 61 4c 6f 63 | 61 6c 73 20 61 72 65 61 |ExtraLoc|als area|
|000014f0| 0d 09 6d 6f 76 65 6d 2e | 6c 09 64 30 2d 64 37 2f |..movem.|l.d0-d7/|
|00001500| 61 30 2f 61 31 2c 34 30 | 28 64 69 63 5b 45 78 74 |a0/a1,40|(dic[Ext|
|00001510| 72 61 4c 6f 63 61 6c 73 | 5d 0d 09 6d 6f 76 65 6d |raLocals|]..movem|
|00001520| 2e 6c 09 28 61 36 29 2b | 2c 64 30 2d 64 37 2f 61 |.l.(a6)+|,d0-d7/a|
|00001530| 30 2f 61 31 0d 09 6d 6f | 76 65 6d 2e 6c 09 64 30 |0/a1..mo|vem.l.d0|
|00001540| 2d 64 37 2f 61 30 2f 61 | 31 2c 64 69 63 5b 45 78 |-d7/a0/a|1,dic[Ex|
|00001550| 74 72 61 4c 6f 63 61 6c | 73 5d 0d 09 6d 6f 76 65 |traLocal|s]..move|
|00001560| 6d 2e 6c 09 28 61 36 29 | 2b 2c 64 32 2d 64 37 2f |m.l.(a6)|+,d2-d7/|
|00001570| 61 32 2f 61 35 2f 61 37 | 09 09 3b 20 52 65 73 74 |a2/a5/a7|..; Rest|
|00001580| 6f 72 65 20 73 61 76 65 | 64 20 72 65 67 73 0d 09 |ore save|d regs..|
|00001590| 72 74 73 0d 3b 63 6f 64 | 65 0d 0d 0d 3a 20 4e 6f |rts.;cod|e...: No|
|000015a0| 52 6f 6f 6d 09 31 35 39 | 20 64 69 65 20 20 3b 0d |Room.159| die ;.|
|000015b0| 0d 3a 63 6f 64 65 20 20 | 4d 4f 56 45 5f 54 41 53 |.:code |MOVE_TAS|
|000015c0| 4b 53 09 5c 20 28 20 64 | 69 73 74 20 2d 2d 20 29 |KS.\ ( d|ist -- )|
|000015d0| 0d 09 6c 6f 63 0d 09 70 | 6f 70 2e 6c 09 64 31 09 |..loc..p|op.l.d1.|
|000015e0| 3b 20 44 31 20 3d 20 64 | 69 73 74 61 6e 63 65 20 |; D1 = d|istance |
|000015f0| 74 6f 20 6d 6f 76 65 0d | 09 6d 6f 76 65 2e 6c 09 |to move.|.move.l.|
|00001600| 61 36 2c 64 30 0d 09 73 | 75 62 2e 6c 09 64 31 2c |a6,d0..s|ub.l.d1,|
|00001610| 64 30 09 3b 20 44 30 20 | 3d 20 74 65 6e 74 61 74 |d0.; D0 |= tentat|
|00001620| 69 76 65 20 64 65 73 74 | 69 6e 61 74 69 6f 6e 0d |ive dest|ination.|
|00001630| 09 63 6d 70 2e 6c 09 67 | 6c 6f 62 5b 41 70 70 6c |.cmp.l.g|lob[Appl|
|00001640| 4c 69 6d 69 74 5d 2c 64 | 30 0d 09 62 6c 6f 2e 73 |Limit],d|0..blo.s|
|00001650| 09 64 69 63 5b 6e 6f 52 | 6f 6f 6d 5d 0d 09 73 75 |.dic[noR|oom]..su|
|00001660| 62 2e 6c 09 64 31 2c 64 | 69 63 5b 53 50 30 5d 0d |b.l.d1,d|ic[SP0].|
|00001670| 09 73 75 62 2e 6c 09 64 | 31 2c 64 69 63 5b 52 50 |.sub.l.d|1,dic[RP|
|00001680| 30 5d 0d 09 6d 6f 76 65 | 2e 6c 09 64 30 2c 61 31 |0]..move|.l.d0,a1|
|00001690| 09 3b 20 41 31 20 2d 3e | 20 64 65 73 74 69 6e 61 |.; A1 ->| destina|
|000016a0| 74 69 6f 6e 0d 09 6d 6f | 76 65 2e 6c 09 64 69 63 |tion..mo|ve.l.dic|
|000016b0| 5b 72 65 61 6c 5f 52 50 | 30 5d 2c 64 30 0d 09 73 |[real_RP|0],d0..s|
|000016c0| 75 62 2e 6c 09 61 36 2c | 64 30 09 3b 20 44 30 20 |ub.l.a6,|d0.; D0 |
|000016d0| 3d 20 23 62 79 74 65 73 | 20 74 6f 20 6d 6f 76 65 |= #bytes| to move|
|000016e0| 0d 09 6d 6f 76 65 2e 6c | 09 61 37 2c 61 30 0d 09 |..move.l|.a7,a0..|
|000016f0| 73 75 62 2e 6c 09 64 31 | 2c 61 30 0d 09 6d 6f 76 |sub.l.d1|,a0..mov|
|00001700| 65 2e 6c 09 61 30 2c 64 | 69 63 5b 6e 65 77 5f 53 |e.l.a0,d|ic[new_S|
|00001710| 50 5d 0d 09 6d 6f 76 65 | 2e 6c 09 61 36 2c 61 30 |P]..move|.l.a6,a0|
|00001720| 09 3b 20 41 30 20 2d 3e | 20 73 6f 75 72 63 65 0d |.; A0 ->| source.|
|00001730| 09 6d 6f 76 65 2e 6c 09 | 61 31 2c 61 37 09 3b 20 |.move.l.|a1,a7.; |
|00001740| 53 65 74 20 41 37 20 6c | 6f 77 20 69 6e 20 63 61 |Set A7 l|ow in ca|
|00001750| 73 65 20 6f 66 20 61 6e | 20 69 6e 74 65 72 72 75 |se of an| interru|
|00001760| 70 74 20 64 75 72 69 6e | 67 0d 09 6d 6f 76 65 2e |pt durin|g..move.|
|00001770| 6c 09 61 31 2c 61 36 09 | 3b 20 20 74 68 65 20 6c |l.a1,a6.|; the l|
|00001780| 6f 6f 70 0d 09 61 64 64 | 71 2e 6c 09 23 38 2c 64 |oop..add|q.l.#8,d|
|00001790| 30 0d 6c 6f 6f 70 09 6d | 6f 76 65 2e 6c 09 28 61 |0.loop.m|ove.l.(a|
|000017a0| 30 29 2b 2c 28 61 31 29 | 2b 0d 09 73 75 62 71 2e |0)+,(a1)|+..subq.|
|000017b0| 6c 09 23 34 2c 64 30 0d | 6c 70 74 65 73 74 09 62 |l.#4,d0.|lptest.b|
|000017c0| 67 74 2e 73 09 6c 6f 6f | 70 0d 09 6d 6f 76 65 2e |gt.s.loo|p..move.|
|000017d0| 6c 09 64 69 63 5b 6e 65 | 77 5f 53 50 5d 2c 61 37 |l.dic[ne|w_SP],a7|
|000017e0| 0d 3b 63 6f 64 65 0d 0d | 0d 66 6f 72 77 61 72 64 |.;code..|.forward|
|000017f0| 09 43 52 41 53 48 0d 66 | 6f 72 77 61 72 64 09 4e |.CRASH.f|orward.N|
|00001800| 4f 57 48 45 52 45 0d 0d | 0d 3a 63 6c 61 73 73 09 |OWHERE..|.:class.|
|00001810| 54 41 53 4b 09 73 75 70 | 65 72 7b 20 6f 62 6a 65 |TASK.sup|er{ obje|
|00001820| 63 74 20 7d 0d 72 65 63 | 6f 72 64 0d 7b 09 69 6e |ct }.rec|ord.{.in|
|00001830| 74 09 45 4e 54 52 59 0d | 09 76 61 72 09 4c 49 4e |t.ENTRY.|.var.LIN|
|00001840| 4b 0d 09 69 6e 74 09 4a | 4d 50 5f 43 4f 44 45 0d |K..int.J|MP_CODE.|
|00001850| 09 76 61 72 09 5e 52 45 | 53 54 41 52 54 0d 09 76 |.var.^RE|START..v|
|00001860| 61 72 09 5e 53 50 0d 09 | 69 6e 74 09 53 54 41 54 |ar.^SP..|int.STAT|
|00001870| 55 53 0d 09 76 61 72 09 | 74 53 50 30 0d 09 76 61 |US..var.|tSP0..va|
|00001880| 72 09 74 52 50 30 0d 09 | 76 61 72 09 51 55 45 55 |r.tRP0..|var.QUEU|
|00001890| 45 0d 09 76 61 72 09 51 | 4c 49 4e 4b 0d 09 69 6e |E..var.Q|LINK..in|
|000018a0| 74 09 51 53 54 41 54 55 | 53 0d 7d 0d 0d 27 20 74 |t.QSTATU|S.}..' t|
|000018b0| 68 69 73 5f 74 61 73 6b | 09 73 65 74 5f 74 6f 5f |his_task|.set_to_|
|000018c0| 63 6c 61 73 73 20 20 74 | 61 73 6b 0d 27 20 74 73 |class t|ask.' ts|
|000018d0| 6b 31 09 09 73 65 74 5f | 74 6f 5f 63 6c 61 73 73 |k1..set_|to_class|
|000018e0| 20 20 74 61 73 6b 0d 27 | 20 74 73 6b 32 09 09 73 | task.'| tsk2..s|
|000018f0| 65 74 5f 74 6f 5f 63 6c | 61 73 73 20 20 74 61 73 |et_to_cl|ass tas|
|00001900| 6b 0d 0d 0d 3a 6d 20 28 | 53 4c 45 45 50 29 3a 09 |k...:m (|SLEEP):.|
|00001910| 09 51 4a 4d 50 20 20 70 | 75 74 3a 20 65 6e 74 72 |.QJMP p|ut: entr|
|00001920| 79 20 20 3b 6d 0d 3a 6d | 20 53 4c 45 45 50 3a 09 |y ;m.:m| SLEEP:.|
|00001930| 09 61 73 6c 65 65 70 20 | 20 70 75 74 3a 20 73 74 |.asleep | put: st|
|00001940| 61 74 75 73 20 20 20 28 | 73 6c 65 65 70 29 3a 20 |atus (|sleep): |
|00001950| 73 65 6c 66 20 20 3b 6d | 0d 3a 6d 20 57 41 4b 45 |self ;m|.:m WAKE|
|00001960| 3a 09 09 51 42 53 52 20 | 20 70 75 74 3a 20 65 6e |:..QBSR | put: en|
|00001970| 74 72 79 20 20 20 20 61 | 77 61 6b 65 20 20 70 75 |try a|wake pu|
|00001980| 74 3a 20 73 74 61 74 75 | 73 20 20 3b 6d 0d 0d 3a |t: statu|s ;m..:|
|00001990| 6d 20 4e 45 58 54 3a 09 | 09 67 65 74 3a 20 6c 69 |m NEXT:.|.get: li|
|000019a0| 6e 6b 20 20 3b 6d 0d 3a | 6d 20 53 45 54 4e 45 58 |nk ;m.:|m SETNEX|
|000019b0| 54 3a 09 70 75 74 3a 20 | 6c 69 6e 6b 20 20 3b 6d |T:.put: |link ;m|
|000019c0| 0d 0d 3a 6d 20 4e 45 58 | 54 51 3a 09 09 67 65 74 |..:m NEX|TQ:..get|
|000019d0| 3a 20 51 6c 69 6e 6b 20 | 20 3b 6d 0d 3a 6d 20 53 |: Qlink | ;m.:m S|
|000019e0| 45 54 4e 45 58 54 51 3a | 09 70 75 74 3a 20 51 6c |ETNEXTQ:|.put: Ql|
|000019f0| 69 6e 6b 20 20 3b 6d 0d | 0d 3a 6d 20 3f 52 45 53 |ink ;m.|.:m ?RES|
|00001a00| 55 4d 45 3a 09 5c 20 28 | 20 73 74 61 74 75 73 23 |UME:.\ (| status#|
|00001a10| 20 2d 2d 20 62 20 29 0d | 09 67 65 74 3a 20 51 73 | -- b ).|.get: Qs|
|00001a20| 74 61 74 75 73 20 20 3e | 3d 20 20 64 75 70 0d 09 |tatus >|= dup..|
|00001a30| 49 46 20 20 77 61 6b 65 | 3a 20 73 65 6c 66 20 20 |IF wake|: self |
|00001a40| 54 48 45 4e 20 20 3b 6d | 0d 0d 3a 6d 20 52 45 4c |THEN ;m|..:m REL|
|00001a50| 45 41 53 45 51 3a 0d 09 | 6e 69 6c 50 20 2d 3e 20 |EASEQ:..|nilP -> |
|00001a60| 74 73 6b 31 20 20 20 67 | 65 74 3a 20 71 75 65 75 |tsk1 g|et: queu|
|00001a70| 65 20 20 2d 3e 20 74 73 | 6b 32 0d 09 42 45 47 49 |e -> ts|k2..BEGI|
|00001a80| 4e 0d 09 09 74 73 6b 32 | 20 20 6e 69 6c 50 20 3d |N...tsk2| nilP =|
|00001a90| 20 20 3f 45 58 49 54 0d | 09 09 67 65 74 3a 20 73 | ?EXIT.|..get: s|
|00001aa0| 74 61 74 75 73 20 20 3f | 72 65 73 75 6d 65 3a 20 |tatus ?|resume: |
|00001ab0| 74 73 6b 32 0d 09 09 49 | 46 20 20 28 20 72 65 73 |tsk2...I|F ( res|
|00001ac0| 75 6d 65 64 20 2d 20 72 | 65 6d 6f 76 65 20 66 72 |umed - r|emove fr|
|00001ad0| 6f 6d 20 71 75 65 75 65 | 20 29 0d 09 09 09 6e 65 |om queue| )....ne|
|00001ae0| 78 74 51 3a 20 74 73 6b | 32 0d 09 09 09 74 73 6b |xtQ: tsk|2....tsk|
|00001af0| 31 20 20 6e 69 6c 50 20 | 3d 0d 09 09 09 49 46 20 |1 nilP |=....IF |
|00001b00| 20 70 75 74 3a 20 71 75 | 65 75 65 20 20 45 4c 53 | put: qu|eue ELS|
|00001b10| 45 20 20 73 65 74 6e 65 | 78 74 51 3a 20 74 73 6b |E setne|xtQ: tsk|
|00001b20| 31 20 20 54 48 45 4e 0d | 09 09 54 48 45 4e 0d 09 |1 THEN.|..THEN..|
|00001b30| 09 74 73 6b 32 20 2d 3e | 20 74 73 6b 31 20 20 6e |.tsk2 ->| tsk1 n|
|00001b40| 65 78 74 51 3a 20 74 73 | 6b 32 20 20 2d 3e 20 74 |extQ: ts|k2 -> t|
|00001b50| 73 6b 32 0d 09 41 47 41 | 49 4e 20 20 3b 6d 0d 0d |sk2..AGA|IN ;m..|
|00001b60| 0d 3a 6d 20 28 57 41 49 | 54 29 3a 09 5c 20 28 20 |.:m (WAI|T):.\ ( |
|00001b70| 73 74 61 74 75 73 23 20 | 2d 2d 20 29 20 20 55 73 |status# |-- ) Us|
|00001b80| 65 64 20 62 79 20 57 61 | 69 74 3a 20 2d 20 73 65 |ed by Wa|it: - se|
|00001b90| 65 20 62 65 6c 6f 77 2e | 0d 09 70 75 74 3a 20 51 |e below.|..put: Q|
|00001ba0| 73 74 61 74 75 73 20 20 | 77 61 69 74 69 6e 67 20 |status |waiting |
|00001bb0| 20 70 75 74 3a 20 73 74 | 61 74 75 73 20 20 72 65 | put: st|atus re|
|00001bc0| 6c 65 61 73 65 51 3a 20 | 73 65 6c 66 0d 09 28 73 |leaseQ: |self..(s|
|00001bd0| 6c 65 65 70 29 3a 20 73 | 65 6c 66 20 20 3b 6d 0d |leep): s|elf ;m.|
|00001be0| 0d 3a 6d 20 57 41 49 54 | 3a 09 5c 20 28 20 73 74 |.:m WAIT|:.\ ( st|
|00001bf0| 61 74 75 73 23 20 2d 2d | 20 29 2e 0d 09 5c 20 49 |atus# --| )...\ I|
|00001c00| 66 20 74 68 65 20 67 69 | 76 65 6e 20 73 74 61 74 |f the gi|ven stat|
|00001c10| 75 73 23 20 69 73 20 67 | 72 65 61 74 65 72 20 74 |us# is g|reater t|
|00001c20| 68 61 6e 20 74 68 65 20 | 73 74 61 74 75 73 20 6f |han the |status o|
|00001c30| 66 20 53 45 4c 46 2c 20 | 74 68 65 20 63 75 72 72 |f SELF, |the curr|
|00001c40| 65 6e 74 6c 79 0d 09 5c | 20 72 75 6e 6e 69 6e 67 |ently..\| running|
|00001c50| 20 74 61 73 6b 20 69 73 | 20 71 75 65 75 65 64 20 | task is| queued |
|00001c60| 61 6e 64 20 70 75 74 20 | 74 6f 20 73 6c 65 65 70 |and put |to sleep|
|00001c70| 2e 20 20 49 74 20 77 69 | 6c 6c 20 62 65 20 77 6f |. It wi|ll be wo|
|00001c80| 6b 65 6e 20 77 68 65 6e | 20 74 68 65 0d 09 5c 20 |ken when| the..\ |
|00001c90| 73 74 61 74 75 73 20 6f | 66 20 53 45 4c 46 20 67 |status o|f SELF g|
|00001ca0| 6f 65 73 20 74 6f 20 74 | 68 65 20 67 69 76 65 6e |oes to t|he given|
|00001cb0| 20 73 74 61 74 75 73 23 | 20 6f 72 20 68 69 67 68 | status#| or high|
|00001cc0| 65 72 2e 20 20 49 66 20 | 74 68 65 20 67 69 76 65 |er. If |the give|
|00001cd0| 6e 20 73 74 61 74 75 73 | 23 0d 09 5c 20 69 73 20 |n status|#..\ is |
|00001ce0| 6c 65 73 73 20 74 68 61 | 6e 20 6f 72 20 65 71 75 |less tha|n or equ|
|00001cf0| 61 6c 20 74 6f 20 74 68 | 65 20 73 74 61 74 75 73 |al to th|e status|
|00001d00| 20 6f 66 20 53 45 4c 46 | 2c 20 77 65 20 64 6f 6e | of SELF|, we don|
|00001d10| 27 74 20 71 75 65 75 65 | 20 74 68 69 73 5f 74 61 |'t queue| this_ta|
|00001d20| 73 6b 2c 0d 09 5c 20 73 | 69 6e 63 65 20 74 68 65 |sk,..\ s|ince the|
|00001d30| 20 63 6f 6e 64 69 74 69 | 6f 6e 20 69 74 20 77 69 | conditi|on it wi|
|00001d40| 73 68 65 73 20 74 6f 20 | 77 61 69 74 20 66 6f 72 |shes to |wait for|
|00001d50| 20 68 61 73 20 61 6c 72 | 65 61 64 79 20 6f 63 63 | has alr|eady occ|
|00001d60| 75 72 72 65 64 2e 20 20 | 48 6f 77 65 76 65 72 0d |urred. |However.|
|00001d70| 09 5c 20 77 65 20 6d 61 | 6b 65 20 69 74 20 64 6f |.\ we ma|ke it do|
|00001d80| 20 61 20 22 70 68 61 6e | 74 6f 6d 22 20 77 61 69 | a "phan|tom" wai|
|00001d90| 74 20 73 6f 20 74 68 61 | 74 20 69 74 73 20 6f 77 |t so tha|t its ow|
|00001da0| 6e 20 71 75 65 75 65 20 | 77 69 6c 6c 20 62 65 20 |n queue |will be |
|00001db0| 72 65 6c 65 61 73 65 64 | 2e 20 20 0d 09 5c 20 4c |released|. ..\ L|
|00001dc0| 6f 67 69 63 61 6c 6c 79 | 20 69 74 20 68 61 73 20 |ogically| it has |
|00001dd0| 77 61 69 74 65 64 2c 20 | 73 6f 20 61 6e 79 20 74 |waited, |so any t|
|00001de0| 61 73 6b 73 20 77 61 69 | 74 69 6e 67 20 66 6f 72 |asks wai|ting for|
|00001df0| 20 69 74 20 74 6f 20 77 | 61 69 74 2c 20 6d 75 73 | it to w|ait, mus|
|00001e00| 74 20 62 65 0d 09 5c 20 | 72 65 6c 65 61 73 65 64 |t be..\ |released|
|00001e10| 2e 0d 0d 09 64 75 70 20 | 20 28 77 61 69 74 29 3a |....dup | (wait):|
|00001e20| 20 74 68 69 73 5f 74 61 | 73 6b 0d 09 67 65 74 3a | this_ta|sk..get:|
|00001e30| 20 73 74 61 74 75 73 20 | 20 3c 3d 0d 09 49 46 09 | status | <=..IF.|
|00001e40| 77 61 6b 65 3a 20 74 68 | 69 73 5f 74 61 73 6b 0d |wake: th|is_task.|
|00001e50| 09 45 4c 53 45 0d 09 09 | 67 65 74 3a 20 71 75 65 |.ELSE...|get: que|
|00001e60| 75 65 20 20 73 65 74 6e | 65 78 74 51 3a 20 74 68 |ue setn|extQ: th|
|00001e70| 69 73 5f 74 61 73 6b 0d | 09 09 74 68 69 73 5f 74 |is_task.|..this_t|
|00001e80| 61 73 6b 20 20 70 75 74 | 3a 20 71 75 65 75 65 20 |ask put|: queue |
|00001e90| 20 0d 09 09 6e 65 78 74 | 5f 74 61 73 6b 0d 09 54 | ...next|_task..T|
|00001ea0| 48 45 4e 20 20 3b 6d 0d | 0d 3a 6d 20 53 54 41 54 |HEN ;m.|.:m STAT|
|00001eb0| 55 53 3a 09 67 65 74 3a | 20 73 74 61 74 75 73 20 |US:.get:| status |
|00001ec0| 20 3b 6d 0d 3a 6d 20 53 | 45 54 53 54 41 54 55 53 | ;m.:m S|ETSTATUS|
|00001ed0| 3a 09 70 75 74 3a 20 73 | 74 61 74 75 73 20 20 72 |:.put: s|tatus r|
|00001ee0| 65 6c 65 61 73 65 51 3a | 20 73 65 6c 66 20 20 3b |eleaseQ:| self ;|
|00001ef0| 6d 0d 0d 3a 6d 20 41 53 | 53 49 47 4e 3a 20 20 7b |m..:m AS|SIGN: {|
|00001f00| 20 50 43 20 5c 20 73 70 | 74 72 20 2d 2d 20 7d 0d | PC \ sp|tr -- }.|
|00001f10| 09 67 65 74 3a 20 73 74 | 61 74 75 73 20 20 61 76 |.get: st|atus av|
|00001f20| 61 69 6c 61 62 6c 65 20 | 20 3c 3e 20 20 61 62 6f |ailable | <> abo|
|00001f30| 72 74 22 20 54 61 73 6b | 20 6e 6f 74 20 61 76 61 |rt" Task| not ava|
|00001f40| 69 6c 61 62 6c 65 22 0d | 09 09 5c 20 4e 6f 77 20 |ilable".|..\ Now |
|00001f50| 77 65 20 73 65 74 20 75 | 70 20 61 20 22 73 61 76 |we set u|p a "sav|
|00001f60| 65 64 20 72 65 67 22 20 | 69 6d 61 67 65 20 73 6f |ed reg" |image so|
|00001f70| 20 74 68 61 74 20 69 74 | 20 6c 6f 6f 6b 73 20 6c | that it| looks l|
|00001f80| 69 6b 65 0d 09 09 5c 20 | 77 65 27 76 65 20 62 65 |ike...\ |we've be|
|00001f90| 65 6e 20 73 75 73 70 65 | 6e 64 65 64 20 77 69 74 |en suspe|nded wit|
|00001fa0| 68 20 50 43 20 61 73 20 | 74 68 65 20 72 65 74 75 |h PC as |the retu|
|00001fb0| 72 6e 20 61 64 64 72 65 | 73 73 2e 0d 09 67 65 74 |rn addre|ss...get|
|00001fc0| 3a 20 74 53 50 30 20 20 | 2d 3e 20 73 70 74 72 0d |: tSP0 |-> sptr.|
|00001fd0| 09 2d 34 20 2b 2b 3e 20 | 73 70 74 72 0d 09 67 65 |.-4 ++> |sptr..ge|
|00001fe0| 74 3a 20 74 52 50 30 20 | 34 2d 20 20 5b 27 5d 20 |t: tRP0 |4- ['] |
|00001ff0| 6e 6f 77 68 65 72 65 09 | 6f 76 65 72 20 21 09 5c |nowhere.|over !.\|
|00002000| 20 49 6e 69 74 69 61 6c | 20 68 69 67 68 65 72 20 | Initial| higher |
|00002010| 72 74 6e 20 61 64 64 72 | 0d 09 09 20 34 2d 20 20 |rtn addr|... 4- |
|00002020| 50 43 09 09 6f 76 65 72 | 20 21 09 5c 20 49 6e 69 |PC..over| !.\ Ini|
|00002030| 74 69 61 6c 20 72 74 6e | 20 61 64 64 72 0d 09 09 |tial rtn| addr...|
|00002040| 09 09 09 73 70 74 72 20 | 21 09 5c 20 49 6e 69 74 |...sptr |!.\ Init|
|00002050| 69 61 6c 20 41 37 20 3d | 20 72 74 6e 20 73 74 6b |ial A7 =| rtn stk|
|00002060| 20 70 74 72 0d 09 20 20 | 2d 34 20 2b 2b 3e 20 73 | ptr.. |-4 ++> s|
|00002070| 70 74 72 09 6d 6f 64 62 | 61 73 65 09 09 73 70 74 |ptr.modb|ase..spt|
|00002080| 72 20 21 09 5c 20 49 6e | 69 74 69 61 6c 20 41 35 |r !.\ In|itial A5|
|00002090| 20 3d 20 6d 6f 64 62 61 | 73 65 0d 09 20 20 2d 34 | = modba|se.. -4|
|000020a0| 20 2b 2b 3e 20 73 70 74 | 72 09 2d 31 09 09 73 70 | ++> spt|r.-1..sp|
|000020b0| 74 72 20 21 09 5c 20 49 | 6e 69 74 69 61 6c 20 41 |tr !.\ I|nitial A|
|000020c0| 32 20 2d 20 68 65 72 65 | 27 73 20 68 6f 70 69 6e |2 - here|'s hopin|
|000020d0| 67 21 0d 09 2d 31 30 34 | 20 2b 2b 3e 20 73 70 74 |g!..-104| ++> spt|
|000020e0| 72 09 09 09 09 5c 20 52 | 6f 6f 6d 20 66 6f 72 20 |r....\ R|oom for |
|000020f0| 44 32 2d 44 37 20 61 6e | 64 20 45 78 74 72 61 4c |D2-D7 an|d ExtraL|
|00002100| 6f 63 61 6c 73 0d 09 73 | 70 74 72 20 20 70 75 74 |ocals..s|ptr put|
|00002110| 3a 20 5e 53 50 0d 09 73 | 6c 65 65 70 3a 20 73 65 |: ^SP..s|leep: se|
|00002120| 6c 66 20 20 3b 6d 0d 0d | 3a 6d 20 52 45 53 45 54 |lf ;m..|:m RESET|
|00002130| 3a 0d 09 61 76 61 69 6c | 61 62 6c 65 20 20 70 75 |:..avail|able pu|
|00002140| 74 3a 20 73 74 61 74 75 | 73 20 20 20 3b 6d 0d 0d |t: statu|s ;m..|
|00002150| 3a 6d 20 44 49 53 50 4c | 41 43 45 3a 20 20 7b 20 |:m DISPL|ACE: { |
|00002160| 64 69 73 74 20 2d 2d 20 | 7d 0d 09 64 69 73 74 20 |dist -- |}..dist |
|00002170| 2d 3a 20 5e 53 50 0d 09 | 64 69 73 74 20 2d 3a 20 |-: ^SP..|dist -: |
|00002180| 74 53 50 30 0d 09 64 69 | 73 74 20 2d 3a 20 74 52 |tSP0..di|st -: tR|
|00002190| 50 30 20 20 3b 6d 0d 09 | 0d 5c 20 4e 45 57 3a 20 |P0 ;m..|.\ NEW: |
|000021a0| 73 65 74 73 20 75 70 20 | 76 61 72 69 6f 75 73 20 |sets up |various |
|000021b0| 69 74 65 6d 73 20 69 6e | 20 74 68 69 73 20 74 61 |items in| this ta|
|000021c0| 73 6b 20 6f 62 6a 65 63 | 74 2c 20 77 68 69 63 68 |sk objec|t, which|
|000021d0| 20 61 72 65 20 64 65 70 | 65 6e 64 65 6e 74 20 6f | are dep|endent o|
|000021e0| 6e 0d 5c 20 74 68 65 20 | 63 75 72 72 65 6e 74 20 |n.\ the |current |
|000021f0| 4d 6f 70 73 20 62 61 73 | 65 20 61 6e 64 20 73 74 |Mops bas|e and st|
|00002200| 61 63 6b 20 6c 6f 63 61 | 74 69 6f 6e 2e 20 20 54 |ack loca|tion. T|
|00002210| 68 65 73 65 20 63 61 6e | 27 74 20 62 65 20 64 65 |hese can|'t be de|
|00002220| 74 65 72 6d 69 6e 65 64 | 0d 5c 20 75 6e 74 69 6c |termined|.\ until|
|00002230| 20 72 75 6e 20 74 69 6d | 65 2c 20 65 73 70 65 63 | run tim|e, espec|
|00002240| 69 61 6c 6c 79 20 75 6e | 64 65 72 20 4d 75 6c 74 |ially un|der Mult|
|00002250| 69 46 69 6e 64 65 72 2e | 20 20 45 61 63 68 20 74 |iFinder.| Each t|
|00002260| 61 73 6b 20 6d 75 73 74 | 20 62 65 0d 5c 20 69 6e |ask must| be.\ in|
|00002270| 69 74 69 61 6c 69 7a 65 | 64 20 61 74 20 72 75 6e |itialize|d at run|
|00002280| 20 74 69 6d 65 20 77 69 | 74 68 20 4e 45 57 3a 2c | time wi|th NEW:,|
|00002290| 20 73 74 61 72 74 69 6e | 67 20 77 69 74 68 20 46 | startin|g with F|
|000022a0| 4f 52 45 47 52 4f 55 4e | 44 2e 20 20 4e 6f 74 65 |OREGROUN|D. Note|
|000022b0| 3a 0d 5c 20 46 4f 52 45 | 47 52 4f 55 4e 44 20 4d |:.\ FORE|GROUND M|
|000022c0| 55 53 54 20 42 45 20 46 | 49 52 53 54 2e 0d 0d 3a |UST BE F|IRST...:|
|000022d0| 6d 20 4e 45 57 3a 0d 09 | 5b 27 5d 20 72 65 73 74 |m NEW:..|['] rest|
|000022e0| 61 72 74 20 20 70 75 74 | 3a 20 5e 72 65 73 74 61 |art put|: ^resta|
|000022f0| 72 74 0d 09 74 68 69 73 | 5f 74 61 73 6b 20 20 6e |rt..this|_task n|
|00002300| 69 6c 50 20 3d 0d 09 49 | 46 20 20 5c 20 54 68 69 |ilP =..I|F \ Thi|
|00002310| 73 20 69 73 20 74 68 65 | 20 66 69 72 73 74 20 6f |s is the| first o|
|00002320| 6e 65 2c 20 69 2e 65 20 | 46 4f 52 45 47 52 4f 55 |ne, i.e |FOREGROU|
|00002330| 4e 44 0d 09 09 5e 62 61 | 73 65 20 20 73 65 74 6e |ND...^ba|se setn|
|00002340| 65 78 74 3a 20 73 65 6c | 66 0d 09 09 5e 62 61 73 |ext: sel|f...^bas|
|00002350| 65 20 20 2d 3e 20 74 68 | 69 73 5f 74 61 73 6b 09 |e -> th|is_task.|
|00002360| 09 5c 20 50 6f 69 6e 74 | 20 4c 49 4e 4b 20 74 6f |.\ Point| LINK to|
|00002370| 20 6f 75 72 73 65 6c 76 | 65 73 0d 09 09 73 70 40 | ourselv|es...sp@|
|00002380| 20 2d 3e 20 73 74 70 09 | 09 09 5c 20 53 65 74 20 | -> stp.|..\ Set |
|00002390| 69 6e 69 74 69 61 6c 20 | 73 74 70 20 72 65 61 64 |initial |stp read|
|000023a0| 79 20 66 6f 72 20 62 61 | 63 6b 67 64 20 74 61 73 |y for ba|ckgd tas|
|000023b0| 6b 73 0d 09 09 53 50 30 | 20 20 70 75 74 3a 20 74 |ks...SP0| put: t|
|000023c0| 53 50 30 0d 09 09 52 50 | 30 20 20 70 75 74 3a 20 |SP0...RP|0 put: |
|000023d0| 74 52 50 30 0d 09 09 52 | 50 30 20 2d 3e 20 72 65 |tRP0...R|P0 -> re|
|000023e0| 61 6c 5f 52 50 30 0d 09 | 09 77 61 6b 65 3a 20 73 |al_RP0..|.wake: s|
|000023f0| 65 6c 66 0d 09 45 4c 53 | 45 0d 09 09 52 5f 73 70 |elf..ELS|E...R_sp|
|00002400| 61 63 65 20 53 5f 73 70 | 61 63 65 20 2b 20 20 64 |ace S_sp|ace + d|
|00002410| 75 70 20 20 6d 6f 76 65 | 5f 74 61 73 6b 73 0d 09 |up move|_tasks..|
|00002420| 09 74 68 69 73 5f 74 61 | 73 6b 20 2d 3e 20 74 73 |.this_ta|sk -> ts|
|00002430| 6b 31 09 09 5c 20 4f 75 | 67 68 74 20 74 6f 20 62 |k1..\ Ou|ght to b|
|00002440| 65 20 46 6f 72 65 67 72 | 6f 75 6e 64 0d 09 09 42 |e Foregr|ound...B|
|00002450| 45 47 49 4e 0d 09 09 09 | 64 75 70 20 20 64 69 73 |EGIN....|dup dis|
|00002460| 70 6c 61 63 65 3a 20 74 | 73 6b 31 0d 09 09 09 6e |place: t|sk1....n|
|00002470| 65 78 74 3a 20 74 73 6b | 31 20 20 2d 3e 20 74 73 |ext: tsk|1 -> ts|
|00002480| 6b 31 0d 09 09 09 74 73 | 6b 31 20 74 68 69 73 5f |k1....ts|k1 this_|
|00002490| 74 61 73 6b 20 3d 0d 09 | 09 55 4e 54 49 4c 20 20 |task =..|.UNTIL |
|000024a0| 64 72 6f 70 0d 09 09 6e | 65 78 74 3a 20 74 68 69 |drop...n|ext: thi|
|000024b0| 73 5f 74 61 73 6b 20 20 | 73 65 74 6e 65 78 74 3a |s_task |setnext:|
|000024c0| 20 73 65 6c 66 0d 09 09 | 5e 62 61 73 65 20 20 73 | self...|^base s|
|000024d0| 65 74 6e 65 78 74 3a 20 | 74 68 69 73 5f 74 61 73 |etnext: |this_tas|
|000024e0| 6b 09 5c 20 4c 69 6e 6b | 20 6f 75 72 73 65 6c 76 |k.\ Link| ourselv|
|000024f0| 65 73 20 69 6e 74 6f 20 | 63 68 61 69 6e 0d 09 09 |es into |chain...|
|00002500| 72 65 61 6c 5f 52 50 30 | 20 20 64 75 70 09 70 75 |real_RP0| dup.pu|
|00002510| 74 3a 20 74 52 50 30 0d | 09 09 52 5f 73 70 61 63 |t: tRP0.|..R_spac|
|00002520| 65 20 2d 09 70 75 74 3a | 20 74 53 50 30 0d 09 09 |e -.put:| tSP0...|
|00002530| 61 76 61 69 6c 61 62 6c | 65 20 20 70 75 74 3a 20 |availabl|e put: |
|00002540| 73 74 61 74 75 73 0d 09 | 09 5b 27 5d 20 63 72 61 |status..|.['] cra|
|00002550| 73 68 20 20 61 73 73 69 | 67 6e 3a 20 73 65 6c 66 |sh assi|gn: self|
|00002560| 09 20 20 5c 20 49 6e 20 | 63 61 73 65 20 77 65 20 |. \ In |case we |
|00002570| 77 61 6b 65 3a 20 70 72 | 65 6d 61 74 75 72 65 6c |wake: pr|ematurel|
|00002580| 79 0d 09 09 61 76 61 69 | 6c 61 62 6c 65 20 20 70 |y...avai|lable p|
|00002590| 75 74 3a 20 73 74 61 74 | 75 73 09 20 20 5c 20 6e |ut: stat|us. \ n|
|000025a0| 6f 74 20 72 65 61 6c 6c | 79 20 61 73 6c 65 65 70 |ot reall|y asleep|
|000025b0| 0d 09 54 48 45 4e 20 20 | 3b 6d 0d 0d 3a 6d 20 2e |..THEN |;m..:m .|
|000025c0| 51 3a 0d 09 67 65 74 3a | 20 71 75 65 75 65 20 20 |Q:..get:| queue |
|000025d0| 2d 3e 20 74 73 6b 31 0d | 09 74 73 6b 31 20 6e 69 |-> tsk1.|.tsk1 ni|
|000025e0| 6c 50 20 3d 20 20 49 46 | 20 20 2e 22 20 65 6d 70 |lP = IF| ." emp|
|000025f0| 74 79 22 20 20 45 58 49 | 54 20 20 54 48 45 4e 0d |ty" EXI|T THEN.|
|00002600| 09 42 45 47 49 4e 0d 09 | 09 74 73 6b 31 20 6e 69 |.BEGIN..|.tsk1 ni|
|00002610| 6c 50 20 3d 20 20 3f 45 | 58 49 54 0d 09 09 2e 69 |lP = ?E|XIT....i|
|00002620| 64 3a 20 74 73 6b 31 20 | 20 73 70 61 63 65 20 20 |d: tsk1 | space |
|00002630| 74 73 6b 31 20 2e 68 20 | 73 70 61 63 65 0d 09 09 |tsk1 .h |space...|
|00002640| 6e 65 78 74 71 3a 20 74 | 73 6b 31 20 20 2d 3e 20 |nextq: t|sk1 -> |
|00002650| 74 73 6b 31 0d 09 41 47 | 41 49 4e 20 20 3b 6d 0d |tsk1..AG|AIN ;m.|
|00002660| 0d 3a 6d 20 2e 53 54 41 | 54 55 53 3a 0d 09 31 30 |.:m .STA|TUS:..10|
|00002670| 30 30 20 20 67 65 74 3a | 20 73 74 61 74 75 73 20 |00 get:| status |
|00002680| 20 67 65 74 49 6e 64 53 | 74 72 20 20 74 79 70 65 | getIndS|tr type|
|00002690| 20 20 3b 6d 0d 0d 3a 6d | 20 44 55 4d 50 3a 0d 09 | ;m..:m| DUMP:..|
|000026a0| 2e 63 6c 61 73 73 3a 20 | 73 65 6c 66 20 20 33 20 |.class: |self 3 |
|000026b0| 73 70 61 63 65 73 20 20 | 2e 69 64 3a 20 73 65 6c |spaces |.id: sel|
|000026c0| 66 0d 09 2e 22 20 20 20 | 73 74 61 74 75 73 3a 20 |f..." |status: |
|000026d0| 22 20 20 2e 73 74 61 74 | 75 73 3a 20 73 65 6c 66 |" .stat|us: self|
|000026e0| 0d 09 2e 22 20 20 20 71 | 75 65 75 65 3a 20 22 20 |..." q|ueue: " |
|000026f0| 20 20 2e 71 3a 20 73 65 | 6c 66 20 20 63 72 20 20 | .q: se|lf cr |
|00002700| 3b 6d 0d 0d 0d 3a 6d 20 | 43 4c 41 53 53 49 4e 49 |;m...:m |CLASSINI|
|00002710| 54 3a 0d 09 71 4a 4d 50 | 20 20 70 75 74 3a 20 4a |T:..qJMP| put: J|
|00002720| 4d 50 5f 63 6f 64 65 0d | 09 6e 69 6c 50 20 20 70 |MP_code.|.nilP p|
|00002730| 75 74 3a 20 71 75 65 75 | 65 20 20 3b 6d 0d 0d 3b |ut: queu|e ;m..;|
|00002740| 63 6c 61 73 73 0d 0d 5c | 20 4e 6f 77 20 63 72 65 |class..\| Now cre|
|00002750| 61 74 65 20 74 61 73 6b | 20 46 4f 52 45 47 52 4f |ate task| FOREGRO|
|00002760| 55 4e 44 20 61 73 20 74 | 68 65 20 63 75 72 72 65 |UND as t|he curre|
|00002770| 6e 74 6c 79 20 72 75 6e | 6e 69 6e 67 20 74 61 73 |ntly run|ning tas|
|00002780| 6b 3a 0d 0d 74 61 73 6b | 20 20 46 4f 52 45 47 52 |k:..task| FOREGR|
|00002790| 4f 55 4e 44 0d 0d 5c 20 | 4e 6f 77 20 77 65 20 73 |OUND..\ |Now we s|
|000027a0| 65 74 20 75 70 20 74 68 | 65 20 75 73 65 72 20 68 |et up th|e user h|
|000027b0| 6f 6f 6b 73 20 73 6f 20 | 74 68 61 74 20 69 66 20 |ooks so |that if |
|000027c0| 77 65 20 61 72 65 20 6d | 75 6c 74 69 74 61 73 6b |we are m|ultitask|
|000027d0| 69 6e 67 2c 20 6f 74 68 | 65 72 20 74 61 73 6b 73 |ing, oth|er tasks|
|000027e0| 0d 5c 20 63 61 6e 20 6b | 65 65 70 20 72 75 6e 6e |.\ can k|eep runn|
|000027f0| 69 6e 67 20 77 68 69 6c | 65 20 77 69 6e 64 6f 77 |ing whil|e window|
|00002800| 73 20 61 72 65 20 62 65 | 69 6e 67 20 64 72 61 67 |s are be|ing drag|
|00002810| 67 65 64 20 6f 72 20 6d | 65 6e 75 73 20 62 65 69 |ged or m|enus bei|
|00002820| 6e 67 20 73 65 6c 65 63 | 74 65 64 2e 0d 0d 24 20 |ng selec|ted...$ |
|00002830| 41 33 30 09 63 6f 6e 73 | 74 61 6e 74 09 4d 45 4e |A30.cons|tant.MEN|
|00002840| 55 48 4f 4f 4b 0d 24 20 | 39 46 36 09 63 6f 6e 73 |UHOOK.$ |9F6.cons|
|00002850| 74 61 6e 74 09 44 52 41 | 47 48 4f 4f 4b 0d 0d 3a |tant.DRA|GHOOK..:|
|00002860| 70 72 6f 63 20 52 55 4e | 5f 54 48 45 4d 20 20 20 |proc RUN|_THEM |
|00002870| 73 75 73 70 65 6e 64 20 | 20 20 3b 70 72 6f 63 0d |suspend | ;proc.|
|00002880| 0d 3a 70 72 6f 63 20 28 | 53 46 44 29 0d 09 64 72 |.:proc (|SFD)..dr|
|00002890| 6f 70 09 09 5c 20 44 6c | 67 20 70 74 72 20 6e 6f |op..\ Dl|g ptr no|
|000028a0| 74 20 6e 65 65 64 65 64 | 0d 09 69 2d 3e 6c 20 3e |t needed|..i->l >|
|000028b0| 72 09 09 5c 20 49 74 65 | 6d 20 23 0d 09 77 6f 72 |r..\ Ite|m #..wor|
|000028c0| 64 30 20 64 72 6f 70 09 | 5c 20 4c 65 66 74 20 66 |d0 drop.|\ Left f|
|000028d0| 6f 72 20 72 65 74 75 72 | 6e 20 72 65 73 75 6c 74 |or retur|n result|
|000028e0| 20 2d 20 64 6f 6e 27 74 | 20 6e 65 65 64 20 69 74 | - don't| need it|
|000028f0| 20 6e 6f 77 0d 09 72 20 | 31 30 30 20 3d 0d 09 49 | now..r |100 =..I|
|00002900| 46 20 20 28 20 6e 75 6c | 6c 20 65 76 65 6e 74 20 |F ( nul|l event |
|00002910| 29 20 20 6e 65 78 74 5f | 74 61 73 6b 20 20 54 48 |) next_|task TH|
|00002920| 45 4e 0d 09 72 3e 20 6d | 61 6b 65 69 6e 74 20 20 |EN..r> m|akeint |
|00002930| 3b 70 72 6f 63 0d 0d 0d | 5c 20 4d 55 4c 54 49 20 |;proc...|\ MULTI |
|00002940| 61 6e 64 20 53 49 4e 47 | 4c 45 20 74 75 72 6e 20 |and SING|LE turn |
|00002950| 6d 75 6c 74 69 74 61 73 | 6b 69 6e 67 20 6f 6e 20 |multitas|king on |
|00002960| 61 6e 64 20 6f 66 66 20 | 72 65 73 70 65 63 74 69 |and off |respecti|
|00002970| 76 65 6c 79 2e 20 20 4d | 55 4c 54 49 2c 20 61 6d |vely. M|ULTI, am|
|00002980| 6f 6e 67 0d 5c 20 6f 74 | 68 65 72 20 74 68 69 6e |ong.\ ot|her thin|
|00002990| 67 73 2c 20 72 65 64 69 | 72 65 63 74 73 20 50 41 |gs, redi|rects PA|
|000029a0| 55 53 45 20 74 6f 20 6a | 75 73 74 20 73 77 69 74 |USE to j|ust swit|
|000029b0| 63 68 20 74 61 73 6b 73 | 2e 20 20 57 69 74 68 6f |ch tasks|. Witho|
|000029c0| 75 74 20 6d 75 6c 74 69 | 74 61 73 6b 69 6e 67 2c |ut multi|tasking,|
|000029d0| 0d 5c 20 77 65 20 6d 61 | 6b 65 20 50 41 55 53 45 |.\ we ma|ke PAUSE|
|000029e0| 20 63 61 6c 6c 20 6e 65 | 78 74 3a 20 66 45 76 65 | call ne|xt: fEve|
|000029f0| 6e 74 2c 20 62 75 74 20 | 77 69 74 68 20 6d 75 6c |nt, but |with mul|
|00002a00| 74 69 74 61 73 6b 69 6e | 67 2c 20 74 68 69 73 20 |titaskin|g, this |
|00002a10| 62 65 63 6f 6d 65 73 0d | 5c 20 74 68 65 20 66 6f |becomes.|\ the fo|
|00002a20| 72 65 67 72 6f 75 6e 64 | 20 74 61 73 6b 27 73 20 |reground| task's |
|00002a30| 73 6f 6c 65 20 72 65 73 | 70 6f 6e 73 69 62 69 6c |sole res|ponsibil|
|00002a40| 69 74 79 2c 20 61 6e 64 | 20 77 65 20 6d 75 73 74 |ity, and| we must|
|00002a50| 6e 27 74 20 64 6f 20 69 | 74 20 61 6e 79 77 68 65 |n't do i|t anywhe|
|00002a60| 72 65 0d 5c 20 65 6c 73 | 65 2e 0d 0d 3a 20 4d 55 |re.\ els|e...: MU|
|00002a70| 4c 54 49 0d 09 5b 27 5d | 20 73 75 73 70 65 6e 64 |LTI..[']| suspend|
|00002a80| 20 20 2d 3e 20 6e 65 78 | 74 5f 74 61 73 6b 20 20 | -> nex|t_task |
|00002a90| 5b 27 5d 20 73 75 73 70 | 65 6e 64 20 20 2d 3e 20 |['] susp|end -> |
|00002aa0| 70 61 75 73 65 0d 09 5b | 27 5d 20 72 75 6e 5f 74 |pause..[|'] run_t|
|00002ab0| 68 65 6d 20 20 64 75 70 | 20 20 4d 65 6e 75 48 6f |hem dup| MenuHo|
|00002ac0| 6f 6b 20 21 20 20 44 72 | 61 67 48 6f 6f 6b 20 21 |ok ! Dr|agHook !|
|00002ad0| 0d 09 5b 27 5d 20 28 73 | 66 64 29 20 20 2d 3e 20 |..['] (s|fd) -> |
|00002ae0| 53 46 64 6c 67 48 6f 6f | 6b 0d 09 30 20 2d 3e 20 |SFdlgHoo|k..0 -> |
|00002af0| 73 6c 65 65 70 74 69 63 | 6b 73 20 20 3b 0d 0d 3a |sleeptic|ks ;..:|
|00002b00| 20 53 49 4e 47 4c 45 0d | 09 5b 27 5d 20 6e 75 6c | SINGLE.|.['] nul|
|00002b10| 6c 20 20 2d 3e 20 6e 65 | 78 74 5f 74 61 73 6b 20 |l -> ne|xt_task |
|00002b20| 20 5b 27 5d 20 28 70 61 | 75 73 65 29 20 20 2d 3e | ['] (pa|use) ->|
|00002b30| 20 70 61 75 73 65 0d 09 | 30 20 4d 65 6e 75 48 6f | pause..|0 MenuHo|
|00002b40| 6f 6b 20 21 20 20 30 20 | 44 72 61 67 48 6f 6f 6b |ok ! 0 |DragHook|
|00002b50| 20 21 0d 09 30 20 2d 3e | 20 53 46 64 6c 67 48 6f | !..0 ->| SFdlgHo|
|00002b60| 6f 6b 0d 09 32 30 20 2d | 3e 20 73 6c 65 65 70 74 |ok..20 -|> sleept|
|00002b70| 69 63 6b 73 20 20 3b 0d | 0d 0d 5c 20 54 61 73 6b |icks ;.|..\ Task|
|00002b80| 20 6d 61 6e 69 70 75 6c | 61 74 69 6f 6e 0d 0d 3a | manipul|ation..:|
|00002b90| 20 28 53 54 4f 50 29 09 | 09 28 73 6c 65 65 70 29 | (STOP).|.(sleep)|
|00002ba0| 3a 20 74 68 69 73 5f 74 | 61 73 6b 20 20 73 75 73 |: this_t|ask sus|
|00002bb0| 70 65 6e 64 20 20 20 3b | 0d 3a 20 53 54 4f 50 09 |pend ;|.: STOP.|
|00002bc0| 09 73 74 6f 70 70 65 64 | 20 20 73 65 74 53 74 61 |.stopped| setSta|
|00002bd0| 74 75 73 3a 20 74 68 69 | 73 5f 74 61 73 6b 0d 09 |tus: thi|s_task..|
|00002be0| 09 72 65 6c 65 61 73 65 | 51 3a 20 74 68 69 73 5f |.release|Q: this_|
|00002bf0| 74 61 73 6b 20 20 28 73 | 74 6f 70 29 20 20 20 3b |task (s|top) ;|
|00002c00| 0d 0d 3a 66 20 43 52 41 | 53 48 0d 09 42 45 47 49 |..:f CRA|SH..BEGI|
|00002c10| 4e 0d 5c 09 09 33 20 62 | 65 65 70 20 20 2e 22 20 |N.\..3 b|eep ." |
|00002c20| 21 21 20 6e 6f 20 63 6f | 64 65 20 61 73 73 69 67 |!! no co|de assig|
|00002c30| 6e 65 64 20 74 6f 20 74 | 61 73 6b 20 22 20 2e 69 |ned to t|ask " .i|
|00002c40| 64 3a 20 74 68 69 73 5f | 74 61 73 6b 0d 09 09 63 |d: this_|task...c|
|00002c50| 72 61 73 68 65 64 20 20 | 73 65 74 53 74 61 74 75 |rashed |setStatu|
|00002c60| 73 3a 20 74 68 69 73 5f | 74 61 73 6b 20 20 28 73 |s: this_|task (s|
|00002c70| 74 6f 70 29 0d 09 41 47 | 41 49 4e 20 20 3b 66 0d |top)..AG|AIN ;f.|
|00002c80| 0d 3a 66 20 4e 4f 57 48 | 45 52 45 09 5c 20 41 20 |.:f NOWH|ERE.\ A |
|00002c90| 72 75 6e 6e 69 6e 67 20 | 74 61 73 6b 20 61 74 20 |running |task at |
|00002ca0| 69 74 73 20 74 6f 70 20 | 6c 65 76 65 6c 20 68 61 |its top |level ha|
|00002cb0| 73 20 72 65 61 6c 6c 79 | 20 62 65 65 6e 20 63 61 |s really| been ca|
|00002cc0| 6c 6c 65 64 0d 09 09 09 | 5c 20 66 72 6f 6d 20 6e |lled....|\ from n|
|00002cd0| 6f 77 68 65 72 65 2e 20 | 20 53 6f 20 77 65 20 64 |owhere. | So we d|
|00002ce0| 65 66 69 6e 65 20 4e 4f | 57 48 45 52 45 20 73 6f |efine NO|WHERE so|
|00002cf0| 20 74 68 61 74 20 69 66 | 20 69 74 20 72 65 74 75 | that if| it retu|
|00002d00| 72 6e 73 2c 0d 09 09 09 | 5c 20 69 74 20 77 69 6c |rns,....|\ it wil|
|00002d10| 6c 20 61 63 74 75 61 6c | 6c 79 20 67 6f 20 74 6f |l actual|ly go to|
|00002d20| 20 4e 4f 57 48 45 52 45 | 2c 20 77 68 69 63 68 20 | NOWHERE|, which |
|00002d30| 69 73 20 73 6f 6d 65 77 | 68 65 72 65 2c 20 6e 6f |is somew|here, no|
|00002d40| 74 20 6a 75 73 74 0d 09 | 09 09 5c 20 61 6e 79 77 |t just..|..\ anyw|
|00002d50| 68 65 72 65 2e 20 20 28 | 49 20 68 6f 70 65 20 74 |here. (|I hope t|
|00002d60| 68 61 74 27 73 20 63 6c | 65 61 72 2e 29 0d 09 09 |hat's cl|ear.)...|
|00002d70| 09 5c 20 57 65 20 64 65 | 66 69 6e 65 20 74 68 69 |.\ We de|fine thi|
|00002d80| 73 20 61 73 20 6e 6f 72 | 6d 61 6c 20 74 65 72 6d |s as nor|mal term|
|00002d90| 69 6e 61 74 69 6f 6e 20 | 6f 66 20 61 20 74 61 73 |ination |of a tas|
|00002da0| 6b 2e 20 20 41 6e 79 20 | 61 74 74 65 6d 70 74 0d |k. Any |attempt.|
|00002db0| 09 09 09 5c 20 20 74 6f | 20 77 61 6b 65 3a 20 61 |...\ to| wake: a|
|00002dc0| 20 74 65 72 6d 69 6e 61 | 74 65 64 20 74 61 73 6b | termina|ted task|
|00002dd0| 20 63 61 75 73 65 73 20 | 43 52 41 53 48 20 74 6f | causes |CRASH to|
|00002de0| 20 62 65 20 65 78 65 63 | 75 74 65 64 2e 0d 0d 09 | be exec|uted....|
|00002df0| 74 65 72 6d 69 6e 61 74 | 65 64 20 20 73 65 74 53 |terminat|ed setS|
|00002e00| 74 61 74 75 73 3a 20 74 | 68 69 73 5f 74 61 73 6b |tatus: t|his_task|
|00002e10| 0d 09 72 65 6c 65 61 73 | 65 51 3a 20 74 68 69 73 |..releas|eQ: this|
|00002e20| 5f 74 61 73 6b 20 20 28 | 73 74 6f 70 29 20 20 63 |_task (|stop) c|
|00002e30| 72 61 73 68 20 20 3b 66 | 0d 0d 0d 3a 20 2e 54 41 |rash ;f|...: .TA|
|00002e40| 53 4b 53 0d 09 66 6f 72 | 65 67 72 6f 75 6e 64 0d |SKS..for|eground.|
|00002e50| 09 42 45 47 49 4e 0d 09 | 09 64 75 70 20 64 75 6d |.BEGIN..|.dup dum|
|00002e60| 70 3a 20 2a 2a 20 20 6e | 65 78 74 3a 20 2a 2a 0d |p: ** n|ext: **.|
|00002e70| 09 09 64 75 70 20 66 6f | 72 65 67 72 6f 75 6e 64 |..dup fo|reground|
|00002e80| 20 3d 0d 09 55 4e 54 49 | 4c 20 20 64 72 6f 70 20 | =..UNTI|L drop |
|00002e90| 20 20 3b 0d 0d 3a 20 43 | 4c 54 53 4b 09 09 5c 20 | ;..: C|LTSK..\ |
|00002ea0| 54 68 69 73 20 69 73 20 | 63 61 6c 6c 65 64 20 6f |This is |called o|
|00002eb0| 6e 20 61 6e 20 61 62 6f | 72 74 2e 20 20 57 65 20 |n an abo|rt. We |
|00002ec0| 65 78 65 63 75 74 65 20 | 74 68 65 20 6e 6f 72 6d |execute |the norm|
|00002ed0| 61 6c 0d 09 09 5c 20 61 | 62 6f 72 74 20 61 63 74 |al...\ a|bort act|
|00002ee0| 69 6f 6e 2c 20 74 68 65 | 6e 20 73 74 6f 70 20 74 |ion, the|n stop t|
|00002ef0| 68 65 20 63 75 72 72 65 | 6e 74 6c 79 0d 09 09 5c |he curre|ntly...\|
|00002f00| 20 72 75 6e 6e 69 6e 67 | 20 74 61 73 6b 20 61 6e | running| task an|
|00002f10| 64 20 73 65 74 20 69 74 | 73 20 73 74 61 74 75 73 |d set it|s status|
|00002f20| 20 74 6f 20 63 72 61 73 | 68 65 64 2c 20 75 6e 6c | to cras|hed, unl|
|00002f30| 65 73 73 0d 09 09 5c 20 | 69 74 27 73 20 46 6f 72 |ess...\ |it's For|
|00002f40| 65 67 72 6f 75 6e 64 20 | 28 77 68 69 63 68 20 77 |eground |(which w|
|00002f50| 65 27 64 20 62 65 74 74 | 65 72 20 6e 6f 74 20 73 |e'd bett|er not s|
|00002f60| 74 6f 70 29 21 0d 0d 09 | 63 6c 33 09 09 09 09 5c |top)!...|cl3....\|
|00002f70| 20 50 72 65 76 69 6f 75 | 73 20 61 62 6f 72 74 20 | Previou|s abort |
|00002f80| 61 63 74 69 6f 6e 0d 09 | 74 68 69 73 5f 74 61 73 |action..|this_tas|
|00002f90| 6b 20 6e 69 6c 50 20 3d | 20 20 3f 45 58 49 54 09 |k nilP =| ?EXIT.|
|00002fa0| 09 5c 20 4f 75 74 20 69 | 66 20 6e 6f 74 68 69 6e |.\ Out i|f nothin|
|00002fb0| 67 20 69 6e 69 74 69 61 | 6c 69 7a 65 64 0d 09 74 |g initia|lized..t|
|00002fc0| 68 69 73 5f 74 61 73 6b | 20 66 6f 72 65 67 72 6f |his_task| foregro|
|00002fd0| 75 6e 64 20 3d 20 20 3f | 45 58 49 54 09 5c 20 4f |und = ?|EXIT.\ O|
|00002fe0| 72 20 69 66 20 74 68 69 | 73 20 69 73 20 66 6f 72 |r if thi|s is for|
|00002ff0| 65 67 72 6f 75 6e 64 0d | 09 63 72 61 73 68 65 64 |eground.|.crashed|
|00003000| 20 20 73 65 74 53 74 61 | 74 75 73 3a 20 74 68 69 | setSta|tus: thi|
|00003010| 73 5f 74 61 73 6b 20 20 | 5b 27 5d 20 63 72 61 73 |s_task |['] cras|
|00003020| 68 20 3e 72 0d 09 72 65 | 6c 65 61 73 65 51 3a 20 |h >r..re|leaseQ: |
|00003030| 74 68 69 73 5f 74 61 73 | 6b 20 20 28 73 74 6f 70 |this_tas|k (stop|
|00003040| 29 20 20 3b 0d 0d 27 20 | 63 6c 54 73 6b 20 2d 3e |) ;..' |clTsk ->|
|00003050| 20 61 62 6f 72 74 56 65 | 63 0d 0d 5c 20 65 6e 64 | abortVe|c..\ end|
|00003060| 6c 6f 61 64 0d 0d 5c 20 | 54 45 53 54 49 4e 47 3a |load..\ |TESTING:|
|00003070| 0d 0d 74 61 73 6b 20 20 | 54 31 20 20 20 74 61 73 |..task |T1 tas|
|00003080| 6b 20 20 54 32 0d 0d 20 | 30 20 76 61 6c 75 65 09 |k T2.. |0 value.|
|00003090| 43 4e 54 0d 31 30 20 76 | 61 6c 75 65 09 43 4e 54 |CNT.10 v|alue.CNT|
|000030a0| 31 0d 20 30 20 76 61 6c | 75 65 09 43 4e 54 32 0d |1. 0 val|ue.CNT2.|
|000030b0| 31 30 20 76 61 6c 75 65 | 09 43 4e 54 33 0d 0d 66 |10 value|.CNT3..f|
|000030c0| 69 6c 65 20 46 0d 0d 3a | 20 48 41 48 41 0d 09 31 |ile F..:| HAHA..1|
|000030d0| 20 32 20 33 0d 09 42 45 | 47 49 4e 0d 09 09 6e 65 | 2 3..BE|GIN...ne|
|000030e0| 78 74 5f 74 61 73 6b 20 | 20 63 6e 74 0d 09 09 4e |xt_task | cnt...N|
|000030f0| 49 46 09 35 30 30 20 2d | 3e 20 63 6e 74 20 20 2d |IF.500 -|> cnt -|
|00003100| 31 20 2b 2b 3e 20 63 6e | 74 31 0d 09 09 09 2e 22 |1 ++> cn|t1....."|
|00003110| 20 68 61 68 61 20 22 20 | 63 72 0d 5c 09 09 09 77 | haha " |cr.\...w|
|00003120| 61 69 74 69 6e 67 20 77 | 61 69 74 3a 20 74 32 0d |aiting w|ait: t2.|
|00003130| 09 09 45 4c 53 45 09 2d | 31 20 2b 2b 3e 20 63 6e |..ELSE.-|1 ++> cn|
|00003140| 74 0d 09 09 54 48 45 4e | 0d 09 63 6e 74 31 0d 09 |t...THEN|..cnt1..|
|00003150| 4e 55 4e 54 49 4c 20 20 | 3b 0d 0d 3a 20 48 4f 48 |NUNTIL |;..: HOH|
|00003160| 4f 0d 09 2d 34 20 2d 35 | 20 2d 36 0d 09 42 45 47 |O..-4 -5| -6..BEG|
|00003170| 49 4e 0d 09 09 6e 65 78 | 74 5f 74 61 73 6b 20 20 |IN...nex|t_task |
|00003180| 63 6e 74 32 0d 09 09 4e | 49 46 0d 09 09 09 38 30 |cnt2...N|IF....80|
|00003190| 30 20 2d 3e 20 63 6e 74 | 32 20 20 2d 31 20 2b 2b |0 -> cnt|2 -1 ++|
|000031a0| 3e 20 63 6e 74 33 0d 09 | 09 09 2e 22 20 68 6f 68 |> cnt3..|..." hoh|
|000031b0| 6f 20 22 20 63 72 0d 5c | 09 09 09 77 61 69 74 69 |o " cr.\|...waiti|
|000031c0| 6e 67 20 77 61 69 74 3a | 20 74 31 0d 09 09 45 4c |ng wait:| t1...EL|
|000031d0| 53 45 20 20 2d 31 20 2b | 2b 3e 20 63 6e 74 32 0d |SE -1 +|+> cnt2.|
|000031e0| 09 09 54 48 45 4e 0d 09 | 63 6e 74 33 0d 09 4e 55 |..THEN..|cnt3..NU|
|000031f0| 4e 54 49 4c 20 20 3b 0d | 0d 3a 20 47 4f 0d 09 6e |NTIL ;.|.: GO..n|
|00003200| 65 77 3a 20 66 6f 72 65 | 67 72 6f 75 6e 64 20 20 |ew: fore|ground |
|00003210| 6e 65 77 3a 20 74 31 20 | 20 6e 65 77 3a 20 74 32 |new: t1 | new: t2|
|00003220| 0d 5c 09 5b 27 5d 20 68 | 61 68 61 20 20 61 73 73 |.\.['] h|aha ass|
|00003230| 69 67 6e 3a 20 74 31 0d | 5c 09 5b 27 5d 20 68 6f |ign: t1.|\.['] ho|
|00003240| 68 6f 20 20 61 73 73 69 | 67 6e 3a 20 74 32 0d 09 |ho assi|gn: t2..|
|00003250| 77 61 6b 65 3a 20 74 31 | 20 20 28 20 77 61 6b 65 |wake: t1| ( wake|
|00003260| 3a 20 74 32 20 29 0d 09 | 6d 75 6c 74 69 0d 5c 09 |: t2 )..|multi.\.|
|00003270| 27 74 79 70 65 20 54 45 | 58 54 20 31 20 20 73 74 |'type TE|XT 1 st|
|00003280| 64 47 65 74 3a 20 66 20 | 20 64 72 6f 70 0d 3b 0d |dGet: f | drop.;.|
|00003290| 0d 3a 20 51 51 09 77 61 | 6b 65 3a 20 74 32 20 20 |.: QQ.wa|ke: t2 |
|000032a0| 3b 0d 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |;.......|........|
|000032b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000032c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000032d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000032e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000032f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003300| 00 00 01 00 00 00 0d 76 | 00 00 0c 76 00 00 01 6b |.......v|...v...k|
|00003310| 14 3a a6 88 85 68 82 57 | 54 22 41 17 00 ff 16 fe |.:...h.W|T"A.....|
|00003320| 00 12 05 00 75 14 68 81 | 43 63 88 a3 18 85 77 11 |....u.h.|Cc....w.|
|00003330| 0c 4d 75 6c 74 69 74 61 | 73 6b 69 6e 67 61 02 00 |.Multita|skinga..|
|00003340| 00 00 50 61 72 74 53 49 | 54 21 00 00 00 00 00 00 |..PartSI|T!......|
|00003350| 00 00 50 61 72 74 53 49 | 54 21 00 00 00 00 00 00 |..PartSI|T!......|
|00003360| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003370| 00 00 b3 66 c2 74 00 00 | 00 00 00 00 0e e1 11 a8 |...f.t..|........|
|00003380| 19 94 42 91 22 17 00 00 | ff 14 fc 00 10 07 11 75 |..B."...|.......u|
|00003390| 14 29 14 1a 68 52 93 44 | 25 21 50 00 00 ff 14 fc |.)..hR.D|%!P.....|
|000033a0| 00 10 07 51 22 51 42 dd | d6 66 93 93 34 23 17 70 |...Q"QB.|.f..4#.p|
|000033b0| 00 00 ff 14 fc 00 10 05 | 52 22 11 15 dd 22 22 21 |........|R"...""!|
|000033c0| 39 39 31 17 70 00 00 ff | 14 fc 00 0c 51 21 69 21 |991.p...|....Q!i!|
|000033d0| 15 55 54 15 12 29 99 32 | 51 fe 00 00 ff 14 fc 00 |.UT..).2|Q.......|
|000033e0| 0c 11 33 91 22 11 55 51 | 57 11 39 32 93 21 fe 00 |..3.".UQ|W.92.!..|
|000033f0| 00 ff 14 fc 00 04 12 39 | 99 92 21 fe 11 04 12 39 |.......9|..!....9|
|00003400| 00 00 00 41 03 00 80 00 | 00 00 03 33 2e 30 36 4e |...A....|...3.06N|
|00003410| 69 73 75 73 a8 20 33 2e | 30 20 46 69 6c 65 20 46 |isus. 3.|0 File F|
|00003420| 6f 72 6d 61 74 0d a9 50 | 61 72 61 67 6f 6e 20 43 |ormat..P|aragon C|
|00003430| 6f 6e 63 65 70 74 73 2c | 20 49 6e 63 2e 20 31 39 |oncepts,| Inc. 19|
|00003440| 38 38 2d 39 31 00 00 00 | 37 03 06 80 00 00 00 04 |88-91...|7.......|
|00003450| 33 2e 30 36 2b 4e 69 73 | 75 73 a8 20 33 2e 30 36 |3.06+Nis|us. 3.06|
|00003460| 0d a9 50 61 72 61 67 6f | 6e 20 43 6f 6e 63 65 70 |..Parago|n Concep|
|00003470| 74 73 2c 20 49 6e 63 2e | 20 31 39 38 38 2d 39 31 |ts, Inc.| 1988-91|
|00003480| 00 00 00 74 00 04 00 09 | 00 00 00 00 00 00 00 00 |...t....|........|
|00003490| 00 00 00 9c 30 78 00 00 | 00 00 00 00 00 00 00 00 |....0x..|........|
|000034a0| 00 00 00 9c 30 50 00 00 | 00 00 00 00 80 00 00 00 |....0P..|........|
|000034b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 04 |........|........|
|000034c0| 00 09 00 00 00 00 00 00 | 00 00 00 00 00 9c 2f e4 |........|....../.|
|000034d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 9c 30 20 |........|......0 |
|000034e0| 00 00 00 00 00 00 80 00 | 00 00 00 00 00 00 00 00 |........|........|
|000034f0| 00 00 00 00 00 00 00 00 | 00 00 00 10 00 05 04 6d |........|.......m|
|00003500| 6f 70 73 33 00 05 04 63 | 6f 64 65 75 00 00 00 10 |ops3...c|odeu....|
|00003510| 00 05 04 6d 6f 70 73 33 | 00 05 04 63 6f 64 65 75 |...mops3|...codeu|
|00003520| 00 00 00 04 00 00 00 00 | 00 00 02 b0 00 00 00 00 |........|........|
|00003530| 00 00 00 86 00 0c 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003540| 00 00 00 00 00 00 00 00 | 02 1a 00 00 00 00 00 00 |........|........|
|00003550| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003560| 00 00 00 00 00 00 00 00 | 00 00 00 08 00 38 00 00 |........|.....8..|
|00003570| 01 00 00 00 00 63 00 00 | 01 00 00 00 00 8d 00 00 |.....c..|........|
|00003580| 01 00 00 00 00 b8 00 00 | 01 00 00 00 00 e2 00 00 |........|........|
|00003590| 01 00 00 00 01 1b 00 00 | 01 00 00 00 01 61 00 00 |........|.....a..|
|000035a0| 01 00 00 00 01 9a 00 00 | 01 00 00 00 04 6d 6f 70 |........|.....mop|
|000035b0| 73 b9 00 00 00 33 00 00 | 00 6e 00 0c 00 00 00 00 |s....3..|.n......|
|000035c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 02 1a |........|........|
|000035d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000035e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000035f0| 00 05 00 38 00 00 01 00 | 00 00 00 71 00 00 01 00 |...8....|...q....|
|00003600| 00 00 00 ff 00 00 01 00 | 00 00 01 54 00 00 01 00 |........|...T....|
|00003610| 00 00 01 8c 00 00 01 00 | 00 00 04 63 6f 64 65 b9 |........|...code.|
|00003620| 00 00 00 4e 00 00 00 86 | 00 0c 00 00 00 00 00 00 |...N....|........|
|00003630| 00 00 00 00 00 00 00 00 | 00 00 00 00 02 1a 00 00 |........|........|
|00003640| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003650| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 08 |........|........|
|00003660| 00 38 00 00 01 00 00 00 | 00 63 00 00 01 00 00 00 |.8......|.c......|
|00003670| 00 8d 00 00 01 00 00 00 | 00 b8 00 00 01 00 00 00 |........|........|
|00003680| 00 e2 00 00 01 00 00 00 | 01 1b 00 00 01 00 00 00 |........|........|
|00003690| 01 61 00 00 01 00 00 00 | 01 9a 00 00 01 00 00 00 |.a......|........|
|000036a0| 04 6d 6f 70 73 b9 00 00 | 00 52 00 00 00 6e 00 0c |.mops...|.R...n..|
|000036b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000036c0| 00 00 02 1a 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000036d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000036e0| 00 00 00 00 00 05 00 38 | 00 00 01 00 00 00 00 71 |.......8|.......q|
|000036f0| 00 00 01 00 00 00 00 ff | 00 00 01 00 00 00 01 54 |........|.......T|
|00003700| 00 00 01 00 00 00 01 8c | 00 00 01 00 00 00 04 63 |........|.......c|
|00003710| 6f 64 65 b9 00 00 00 6a | 00 00 00 86 00 0c 00 00 |ode....j|........|
|00003720| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003730| 02 1a 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003740| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003750| 00 00 00 08 00 38 00 00 | 01 00 00 00 00 63 00 00 |.....8..|.....c..|
|00003760| 01 00 00 00 00 8d 00 00 | 01 00 00 00 00 b8 00 00 |........|........|
|00003770| 01 00 00 00 00 e2 00 00 | 01 00 00 00 01 1b 00 00 |........|........|
|00003780| 01 00 00 00 01 61 00 00 | 01 00 00 00 01 9a 00 00 |.....a..|........|
|00003790| 01 00 00 00 04 6d 6f 70 | 73 b9 7f ff ff ff 00 00 |.....mop|s.......|
|000037a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000037b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000037c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000037d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 5a |........|.......Z|
|000037e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 21 00 00 |........|.....!..|
|000037f0| 00 00 00 01 00 00 00 21 | 00 02 00 00 00 00 00 00 |.......!|........|
|00003800| 00 21 00 10 00 00 00 01 | 00 00 00 21 00 10 00 01 |.!......|...!....|
|00003810| 00 00 00 00 00 33 00 00 | 00 00 00 02 00 00 00 4e |.....3..|.......N|
|00003820| 00 00 00 00 00 00 00 00 | 00 52 00 00 00 00 00 02 |........|.R......|
|00003830| 00 00 00 6a 00 00 00 00 | 00 00 00 00 01 26 00 00 |...j....|.....&..|
|00003840| 00 04 00 09 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003850| 00 00 00 00 00 00 00 00 | 00 08 00 00 00 00 00 00 |........|........|
|00003860| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003870| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003880| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003890| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000038a0| 00 00 00 04 00 09 00 01 | 00 00 00 00 00 00 00 00 |........|........|
|000038b0| 00 00 00 00 00 00 00 00 | 00 00 00 08 00 00 00 00 |........|........|
|000038c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000038d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000038e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000038f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003900| 00 00 00 00 00 04 00 09 | 00 00 00 00 00 00 00 00 |........|........|
|00003910| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 08 00 01 |........|........|
|00003920| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003930| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003940| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003950| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003960| 00 00 00 00 00 00 00 02 | 00 01 00 00 02 1a 00 0d |........|........|
|00003970| 0d 5a 61 70 66 20 44 69 | 6e 67 62 61 74 73 00 12 |.Zapf Di|ngbats..|
|00003980| 0d 5a 61 70 66 20 43 68 | 61 6e 63 65 72 79 00 f3 |.Zapf Ch|ancery..|
|00003990| 05 57 75 62 75 79 00 05 | 06 56 65 6e 69 63 65 ee |.Wubuy..|.Venice.|
|000039a0| 0a b0 07 54 69 6d 65 73 | 2d 57 00 14 05 54 69 6d |...Times|-W...Tim|
|000039b0| 65 73 00 17 06 53 79 6d | 62 6f 6c 14 00 e9 06 53 |es...Sym|bol....S|
|000039c0| 63 72 65 65 6e ff 09 9c | 0a 50 61 6c 61 74 69 6e |creen...|.Palatin|
|000039d0| 6f 2d 57 3f 00 10 08 50 | 61 6c 61 74 69 6e 6f ff |o-W?...P|alatino.|
|000039e0| 08 78 0f 4e 65 77 43 65 | 6e 74 53 63 68 6c 62 6b |.x.NewCe|ntSchlbk|
|000039f0| 2d 57 05 7f 11 4e 65 77 | 2d 42 61 73 6b 65 72 76 |-W...New|-Baskerv|
|00003a00| 69 6c 6c 65 2d 57 00 02 | 08 4e 65 77 20 59 6f 72 |ille-W..|.New Yor|
|00003a10| 6b 0a 00 22 12 4e 65 77 | 20 43 65 6e 74 75 72 79 |k..".New| Century|
|00003a20| 20 53 63 68 6c 62 6b 0a | 3a 68 0f 4e 65 77 20 42 | Schlbk.|:h.New B|
|00003a30| 61 73 6b 65 72 76 69 6c | 6c 65 00 0f 12 4e 20 48 |askervil|le...N H|
|00003a40| 65 6c 76 65 74 69 63 61 | 20 4e 61 72 72 6f 77 00 |elvetica| Narrow.|
|00003a50| 00 04 06 4d 6f 6e 61 63 | 6f 7f 00 06 06 4c 6f 6e |...Monac|o....Lon|
|00003a60| 64 6f 6e 05 12 3e 09 4a | 65 72 75 73 61 6c 65 6d |don..>.J|erusalem|
|00003a70| 00 f2 0b 48 65 6c 76 65 | 74 69 63 61 2d 57 00 15 |...Helve|tica-W..|
|00003a80| 09 48 65 6c 76 65 74 69 | 63 61 00 03 06 47 65 6e |.Helveti|ca...Gen|
|00003a90| 65 76 61 fe 07 d1 0a 44 | 72 61 67 6f 6e 77 69 63 |eva....D|ragonwic|
|00003aa0| 6b 0a 00 16 07 43 6f 75 | 72 69 65 72 00 00 07 43 |k....Cou|rier...C|
|00003ab0| 68 69 63 61 67 6f 00 0e | 07 42 6f 6f 6b 6d 61 6e |hicago..|.Bookman|
|00003ac0| 00 f4 0d 42 61 73 6b 65 | 72 76 69 6c 6c 65 2d 57 |...Baske|rville-W|
|00003ad0| 00 e8 0b 42 61 73 6b 65 | 72 76 69 6c 6c 65 00 c9 |...Baske|rville..|
|00003ae0| 0d 42 61 63 63 68 75 73 | 20 47 72 65 65 6b 00 21 |.Bacchus| Greek.!|
|00003af0| 0b 41 76 61 6e 74 20 47 | 61 72 64 65 32 63 12 41 |.Avant G|arde2c.A|
|00003b00| 70 70 6c 65 47 61 72 61 | 6d 6f 6e 64 20 4c 74 49 |ppleGara|mond LtI|
|00003b10| 74 9a 32 66 10 41 70 70 | 6c 65 47 61 72 61 6d 6f |t.2f.App|leGaramo|
|00003b20| 6e 64 20 4c 74 38 32 64 | 12 41 70 70 6c 65 47 61 |nd Lt82d|.AppleGa|
|00003b30| 72 61 6d 6f 6e 64 20 42 | 6b 49 74 50 32 67 10 41 |ramond B|kItP2g.A|
|00003b40| 70 70 6c 65 47 61 72 61 | 6d 6f 6e 64 20 42 6b 25 |ppleGara|mond Bk%|
|00003b50| 32 65 12 41 70 70 6c 65 | 47 61 72 61 6d 6f 6e 64 |2e.Apple|Garamond|
|00003b60| 20 42 64 49 74 01 32 68 | 10 41 70 70 6c 65 47 61 | BdIt.2h|.AppleGa|
|00003b70| 72 61 6d 6f 6e 64 20 42 | 64 09 12 48 0a 41 6c 65 |ramond B|d..H.Ale|
|00003b80| 78 61 6e 64 72 69 61 90 | 00 00 01 36 00 00 00 00 |xandria.|...6....|
|00003b90| 00 00 00 6e 00 0c 00 00 | 00 00 00 00 00 00 00 00 |...n....|........|
|00003ba0| 00 00 00 00 00 00 00 00 | 02 2c 00 00 00 00 00 00 |........|.,......|
|00003bb0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003bc0| 00 00 00 00 00 00 00 00 | 00 00 00 05 00 38 00 00 |........|.....8..|
|00003bd0| 01 00 00 00 00 71 00 00 | 01 00 00 00 00 ff 00 00 |.....q..|........|
|00003be0| 01 00 00 00 01 54 00 00 | 01 00 00 00 01 8c 00 00 |.....T..|........|
|00003bf0| 01 00 00 00 04 63 6f 64 | 65 b9 00 00 00 00 00 00 |.....cod|e.......|
|00003c00| 00 86 00 0c 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003c10| 00 00 00 00 00 00 02 1a | 00 00 00 00 00 00 00 00 |........|........|
|00003c20| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003c30| 00 00 00 00 00 00 00 00 | 00 08 00 38 00 00 01 00 |........|...8....|
|00003c40| 00 00 00 63 00 00 01 00 | 00 00 00 8d 00 00 01 00 |...c....|........|
|00003c50| 00 00 00 b8 00 00 01 00 | 00 00 00 e2 00 00 01 00 |........|........|
|00003c60| 00 00 01 1b 00 00 01 00 | 00 00 01 61 00 00 01 00 |........|...a....|
|00003c70| 00 00 01 9a 00 00 01 00 | 00 00 04 6d 6f 70 73 b9 |........|...mops.|
|00003c80| 7f ff ff ff 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003c90| 00 00 00 00 00 00 00 00 | 00 00 00 00 01 00 00 00 |........|........|
|00003ca0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003cb0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003cc0| 00 00 00 00 00 78 00 03 | 00 00 00 48 00 48 00 00 |.....x..|...H.H..|
|00003cd0| 00 00 03 0d 02 1a ff e2 | ff e4 03 2b 02 36 03 47 |........|...+.6.G|
|00003ce0| 05 7b 03 de 00 02 00 00 | 00 48 00 48 00 00 00 00 |.{......|.H.H....|
|00003cf0| 03 0d 02 1a 00 01 00 00 | 00 64 00 00 00 01 00 01 |........|.d......|
|00003d00| 01 01 00 02 00 01 27 0f | 00 01 00 01 00 00 00 00 |......'.|........|
|00003d10| 00 00 00 00 00 00 00 00 | 00 02 00 19 01 90 00 00 |........|........|
|00003d20| 00 00 00 40 00 00 00 00 | 00 00 00 00 00 01 00 00 |...@....|........|
|00003d30| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003d40| 00 0e 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003d50| 00 00 00 a2 00 88 09 01 | 00 00 00 00 00 00 03 0d |........|........|
|00003d60| 02 1a 00 06 00 00 03 07 | 02 1a 00 06 00 00 03 07 |........|........|
|00003d70| 02 1a 00 00 00 00 00 00 | 00 00 00 24 00 00 00 03 |........|...$....|
|00003d80| 00 01 00 00 00 00 00 01 | 00 00 00 00 00 00 00 00 |........|........|
|00003d90| 01 00 00 00 00 00 00 00 | 00 00 00 00 00 00 3e d8 |........|......>.|
|00003da0| 1f a8 00 00 00 00 00 01 | 00 48 00 48 ff e2 ff e4 |........|.H.H....|
|00003db0| 03 2b 02 36 00 00 01 00 | 00 01 01 0d 01 86 00 41 |.+.6....|.......A|
|00003dc0| 00 0e 01 cc 02 74 00 00 | 00 00 00 07 00 00 00 00 |.....t..|........|
|00003dd0| 00 00 ff ff ff ff 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003de0| 03 0d 02 1a 00 00 00 00 | 00 00 00 00 00 01 00 00 |........|........|
|00003df0| 00 00 00 00 00 00 00 00 | 02 3a 00 01 00 00 2b 93 |........|.:....+.|
|00003e00| 00 00 2b 93 00 00 00 00 | 00 00 00 00 00 00 00 00 |..+.....|........|
|00003e10| 00 00 01 01 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003e20| 00 00 00 00 00 01 00 01 | 00 01 00 01 00 00 00 00 |........|........|
|00003e30| 00 00 00 00 ff ff ff ff | ff ff ff ff 00 80 08 08 |........|........|
|00003e40| 00 0a 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003e50| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003e60| 00 00 00 00 00 00 a4 dd | 9d c7 00 00 00 00 00 e8 |........|........|
|00003e70| 00 0c 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003e80| 00 00 00 01 00 00 00 00 | 00 01 00 00 00 01 00 00 |........|........|
|00003e90| 00 03 00 09 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003ea0| 00 00 00 00 00 00 00 00 | 00 00 03 00 00 00 00 00 |........|........|
|00003eb0| 00 00 00 00 00 00 00 9c | 35 00 00 00 01 99 00 00 |........|5.......|
|00003ec0| 01 4e 00 00 00 00 01 4c | 01 99 00 9c 35 6c 00 00 |.N.....L|....5l..|
|00003ed0| 00 01 00 00 00 00 00 00 | 00 00 00 00 00 01 00 00 |........|........|
|00003ee0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003ef0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003f00| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003f10| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003f20| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003f30| 00 00 00 00 00 00 ff 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003f40| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003f50| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003f60| 00 00 00 01 00 01 00 01 | 00 01 00 00 00 00 00 00 |........|........|
|00003f70| 00 00 ff ff ff ff ff ff | ff ff 00 01 08 08 00 00 |........|........|
|00003f80| 00 31 00 00 00 00 00 31 | 00 00 00 00 00 ff ff 00 |.1.....1|........|
|00003f90| 00 00 00 05 00 24 00 6c | 00 00 00 0a 00 00 00 00 |.....$.l|........|
|00003fa0| 00 00 00 00 00 00 00 00 | 00 00 00 2e 00 1c 01 c2 |........|........|
|00003fb0| 02 4e 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |.N......|........|
|00003fc0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003fd0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003fe0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003ff0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004000| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004010| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004020| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004030| 00 00 00 00 00 00 00 3e | 00 00 00 00 00 00 00 00 |.......>|........|
|00004040| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004050| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004060| 00 00 2d 33 00 00 2d 33 | 00 00 00 00 00 00 00 00 |..-3..-3|........|
|00004070| 00 00 00 00 4f 00 00 00 | 01 00 00 00 0d 76 00 00 |....O...|.....v..|
|00004080| 0c 76 00 00 01 6b 02 84 | 41 38 21 ca 00 00 00 1c |.v...k..|A8!.....|
|00004090| 01 62 00 0e 76 65 72 73 | 00 01 00 7a 53 54 59 4c |.b..vers|...zSTYL|
|000040a0| 00 00 00 92 53 54 4e 4d | 00 00 00 9e 53 54 52 4c |....STNM|....STRL|
|000040b0| 00 00 00 aa 53 54 4e 58 | 00 00 00 b6 52 55 4c 45 |....STNX|....RULE|
|000040c0| 00 01 00 c2 46 52 4d 54 | 00 00 00 da 46 54 41 42 |....FRMT|....FTAB|
|000040d0| 00 00 00 e6 50 47 52 41 | 00 00 00 f2 46 4c 53 54 |....PGRA|....FLST|
|000040e0| 00 00 00 fe 50 52 45 43 | 00 00 01 0a 43 50 52 43 |....PREC|....CPRC|
|000040f0| 00 00 01 16 50 47 4c 59 | 00 00 01 22 49 4e 46 4f |....PGLY|..."INFO|
|00004100| 00 00 01 2e 4d 49 46 4f | 00 00 01 3a 00 01 ff ff |....MIFO|...:....|
|00004110| 00 00 00 00 00 00 00 00 | 00 02 ff ff 00 00 00 45 |........|.......E|
|00004120| 00 00 00 00 03 eb ff ff | 00 00 00 80 00 00 00 00 |........|........|
|00004130| 03 eb ff ff 00 00 00 f8 | 00 00 00 00 03 eb ff ff |........|........|
|00004140| 00 00 01 0c 00 00 00 00 | 03 eb ff ff 00 00 01 20 |........|....... |
|00004150| 00 00 00 00 03 eb ff ff | 00 00 01 28 00 00 00 00 |........|...(....|
|00004160| 03 ec ff ff 00 00 07 88 | 00 00 00 00 03 eb ff ff |........|........|
|00004170| 00 00 03 dc 00 00 00 00 | 03 eb ff ff 00 00 04 3a |........|.......:|
|00004180| 00 00 00 00 4e 20 ff ff | 00 00 05 64 00 00 00 00 |....N ..|...d....|
|00004190| 03 eb ff ff 00 00 05 6a | 00 00 00 00 00 80 ff ff |.......j|........|
|000041a0| 00 00 08 c2 00 00 00 00 | 00 80 ff ff 00 00 09 3e |........|.......>|
|000041b0| 00 00 00 00 00 80 ff ff | 00 00 09 50 00 00 00 00 |........|...P....|
|000041c0| 03 eb ff ff 00 00 09 f6 | 00 00 00 00 00 80 00 00 |........|........|
|000041d0| 00 00 0c 34 02 84 48 70 | 08 4d 69 73 63 49 6e 66 |...4..Hp|.MiscInf|
|000041e0| 6f 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |o.......|........|
|000041f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
+--------+-------------------------+-------------------------+--------+--------+