home *** CD-ROM | disk | FTP | other *** search
Unknown | 1995-10-17 | 2.1 KB |
open in:
MacOS 8.1
|
Win98
|
DOS
view JSON data
|
view as text
This file was not able to be converted.
This format is not currently supported by dexvert.
Confidence | Program | Detection | Match Type | Support
|
---|
100%
| file
| data
| default
|
|
hex view+--------+-------------------------+-------------------------+--------+--------+
|00000000| 0d 00 01 04 0d 00 02 48 | 2a 57 54 49 66 4e 6f 74 |.......H|*WTIfNot|
|00000010| 46 6f 75 6e 64 44 20 57 | 54 65 78 61 6d 70 6c 65 |FoundD W|Texample|
|00000020| 73 3a 6f 76 65 72 6c 61 | 79 73 2e 77 74 6d 64 73 |s:overla|ys.wtmds|
|00000030| 20 2f 57 54 65 78 61 6d | 70 6c 65 73 3a 6f 76 65 | /WTexam|ples:ove|
|00000040| 72 6c 61 79 73 2e 77 74 | 6d 64 73 21 0d 00 03 04 |rlays.wt|mds!....|
|00000050| 0d 00 04 26 ee 20 85 20 | c8 99 22 58 57 54 5f 46 |...&. . |.."XWT_F|
|00000060| 6f 72 67 65 74 22 2c 22 | 4c 65 76 65 6c 2e 22 3a |orget","|Level.":|
|00000070| f6 3a f1 9e 3a e0 0d 00 | 05 11 eb 30 3a fb 31 2c |.:..:...|...0:.1,|
|00000080| 30 2c 32 35 35 2c 30 0d | 00 06 2c 70 61 74 68 24 |0,255,0.|..,path$|
|00000090| 3d 22 3c 57 54 45 78 61 | 6d 70 6c 65 73 24 44 69 |="<WTExa|mples$Di|
|000000a0| 72 3e 2e 6f 76 65 72 6c | 61 79 73 2e 77 74 6d 64 |r>.overl|ays.wtmd|
|000000b0| 73 2e 22 0d 00 07 08 6c | 25 3d 30 0d 00 08 04 0d |s."....l|%=0.....|
|000000c0| 00 09 09 5b 6f 70 74 32 | 0d 00 0a 43 3b 20 57 54 |...[opt2|...C; WT|
|000000d0| 20 6d 6f 64 75 6c 65 73 | 20 61 72 65 20 64 65 73 | modules| are des|
|000000e0| 69 67 6e 65 64 20 69 6e | 20 61 20 77 61 79 20 74 |igned in| a way t|
|000000f0| 68 61 74 20 63 61 6e 20 | 68 61 76 65 20 6d 65 6d |hat can |have mem|
|00000100| 6f 72 79 20 73 74 61 74 | 75 73 2c 0d 00 0b 40 3b |ory stat|us,...@;|
|00000110| 20 74 68 69 73 20 73 69 | 6d 70 6c 65 20 74 65 63 | this si|mple tec|
|00000120| 68 6e 69 71 75 65 20 6d | 61 6b 65 73 20 74 68 65 |hnique m|akes the|
|00000130| 6d 20 74 6f 20 65 78 69 | 73 74 20 65 61 73 79 20 |m to exi|st easy |
|00000140| 61 73 20 6f 76 65 72 6c | 61 79 73 0d 00 0c 42 3b |as overl|ays...B;|
|00000150| 20 6e 6f 74 20 74 68 65 | 20 62 65 73 74 20 6f 66 | not the| best of|
|00000160| 20 74 68 65 20 6b 69 6e | 64 20 62 75 74 20 61 6e | the kin|d but an|
|00000170| 20 65 66 66 69 63 69 65 | 6e 74 20 72 6f 75 74 69 | efficie|nt routi|
|00000180| 6e 65 20 69 6e 73 69 64 | 65 20 74 68 65 0d 00 0d |ne insid|e the...|
|00000190| 40 3b 20 6d 61 6e 61 67 | 65 72 20 61 6c 6c 6f 77 |@; manag|er allow|
|000001a0| 73 20 74 68 65 20 6d 61 | 78 69 6d 75 6d 20 73 69 |s the ma|ximum si|
|000001b0| 7a 65 20 6f 66 20 6d 6f | 64 75 6c 65 73 20 74 6f |ze of mo|dules to|
|000001c0| 20 62 65 20 69 6e 20 6d | 65 6d 6f 72 79 0d 00 0e | be in m|emory...|
|000001d0| 32 3b 20 77 69 74 68 6f | 75 74 20 61 6e 79 20 73 |2; witho|ut any s|
|000001e0| 69 64 65 20 65 66 66 65 | 63 74 20 6f 66 20 74 68 |ide effe|ct of th|
|000001f0| 65 20 6d 69 73 73 69 6e | 67 20 6f 6e 65 73 2e 0d |e missin|g ones..|
|00000200| 00 0f 4a 3b 20 41 20 74 | 68 69 6e 67 20 74 6f 20 |..J; A t|hing to |
|00000210| 6d 65 6e 74 69 6f 6e 20 | 69 73 20 74 68 61 74 20 |mention |is that |
|00000220| 79 6f 75 20 63 61 6e 20 | 68 61 76 65 20 74 77 6f |you can |have two|
|00000230| 2c 20 6f 72 20 6d 6f 72 | 65 2c 20 20 72 6f 75 74 |, or mor|e, rout|
|00000240| 69 6e 65 73 20 77 69 74 | 68 0d 00 10 4b 3b 20 74 |ines wit|h...K; t|
|00000250| 68 65 20 73 61 6d 65 20 | 6e 61 6d 65 20 6c 6f 61 |he same |name loa|
|00000260| 64 65 64 20 61 6e 64 20 | 2a 61 75 74 6f 6d 61 74 |ded and |*automat|
|00000270| 69 63 2a 20 63 68 6f 6f | 73 65 20 77 68 69 63 68 |ic* choo|se which|
|00000280| 20 6f 6e 65 20 77 69 6c | 6c 20 62 65 20 63 61 6c | one wil|l be cal|
|00000290| 6c 65 64 2c 0d 00 11 1d | 3b 20 69 73 20 74 68 69 |led,....|; is thi|
|000002a0| 73 20 70 6f 73 73 69 62 | 6c 65 20 69 6e 20 43 20 |s possib|le in C |
|000002b0| 3f 0d 00 12 05 3b 0d 00 | 13 46 3b 20 54 68 69 73 |?....;..|.F; This|
|000002c0| 20 69 73 20 61 20 77 6f | 72 73 74 20 63 61 73 65 | is a wo|rst case|
|000002d0| 20 6f 76 65 72 6c 61 79 | 20 64 65 6d 6f 20 62 65 | overlay| demo be|
|000002e0| 63 61 75 73 65 20 63 61 | 6c 6c 73 20 74 68 65 20 |cause ca|lls the |
|000002f0| 72 6f 75 74 69 6e 65 73 | 20 6f 6e 65 0d 00 14 2b |routines| one...+|
|00000300| 3b 20 61 66 74 65 72 20 | 74 68 65 20 6f 74 68 65 |; after |the othe|
|00000310| 72 20 77 69 74 68 20 61 | 20 63 6f 6d 70 6c 65 74 |r with a| complet|
|00000320| 65 20 6c 6f 6f 70 2e 0d | 00 15 05 5d 0d 00 16 04 |e loop..|...]....|
|00000330| 0d 00 17 04 0d 00 18 05 | f5 0d 00 19 20 20 20 6c |........|.... l|
|00000340| 25 3d 6c 25 83 31 32 2b | 31 3a 77 74 24 3d 22 4c |%=l%.12+|1:wt$="L|
|00000350| 65 76 65 6c 22 2b c3 6c | 25 0d 00 1a 04 0d 00 1b |evel"+.l|%.......|
|00000360| 43 20 20 20 20 20 20 f4 | 20 54 68 69 73 20 6e 65 |C .| This ne|
|00000370| 78 74 20 53 57 49 20 77 | 69 6c 6c 20 6d 61 6b 65 |xt SWI w|ill make|
|00000380| 20 61 20 57 54 20 6d 6f | 64 75 6c 65 20 27 62 65 | a WT mo|dule 'be|
|00000390| 73 74 20 6f 66 20 61 6c | 6c 27 20 77 68 69 63 68 |st of al|l' which|
|000003a0| 0d 00 1c 40 20 20 20 20 | 20 20 f4 20 6d 65 61 6e |...@ | . mean|
|000003b0| 73 20 74 68 61 74 20 69 | 66 20 74 68 65 72 65 20 |s that i|f there |
|000003c0| 61 72 65 20 6d 6f 72 65 | 20 74 68 61 6e 20 6f 6e |are more| than on|
|000003d0| 65 20 6d 6f 64 75 6c 65 | 73 20 6c 6f 61 64 65 64 |e module|s loaded|
|000003e0| 0d 00 1d 46 20 20 20 20 | 20 20 f4 20 77 69 74 68 |...F | . with|
|000003f0| 20 74 68 65 20 73 61 6d | 65 20 63 68 75 6e 6b 73 | the sam|e chunks|
|00000400| 20 74 68 65 20 62 65 73 | 74 20 6f 66 20 61 6c 6c | the bes|t of all|
|00000410| 20 77 69 6c 6c 20 62 65 | 65 6e 20 73 65 65 6e 20 | will be|en seen |
|00000420| 62 79 20 74 68 65 0d 00 | 1e 1a 20 20 20 20 20 20 |by the..|.. |
|00000430| f4 20 6d 61 6e 61 67 65 | 72 20 66 69 72 73 74 2e |. manage|r first.|
|00000440| 0d 00 1f 41 20 20 20 20 | 20 20 f4 20 49 66 20 74 |...A | . If t|
|00000450| 68 65 20 6d 6f 64 75 6c | 65 20 69 73 6e 27 74 20 |he modul|e isn't |
|00000460| 69 6e 20 6d 65 6d 6f 72 | 79 2c 20 69 74 20 77 69 |in memor|y, it wi|
|00000470| 6c 6c 20 62 65 20 6c 6f | 61 64 65 64 20 6e 6f 77 |ll be lo|aded now|
|00000480| 2e 0d 00 20 42 20 20 20 | 20 20 20 f4 20 54 68 69 |... B | . Thi|
|00000490| 73 20 53 57 49 20 61 6c | 73 6f 20 73 61 79 73 20 |s SWI al|so says |
|000004a0| 64 6f 6e 27 74 20 67 69 | 76 65 20 74 68 65 20 73 |don't gi|ve the s|
|000004b0| 70 61 63 65 20 6f 66 20 | 74 68 69 73 20 6d 6f 64 |pace of |this mod|
|000004c0| 75 6c 65 0d 00 21 2e 20 | 20 20 20 20 20 f4 20 74 |ule..!. | . t|
|000004d0| 6f 20 73 6f 6d 65 6f 6e | 65 20 74 68 61 74 20 6d |o someon|e that m|
|000004e0| 61 79 20 6e 65 65 64 20 | 6d 65 6d 6f 72 79 2e 2e |ay need |memory..|
|000004f0| 2e 0d 00 22 2f 20 20 c8 | 99 22 57 54 5f 4d 6f 64 |..."/ .|."WT_Mod|
|00000500| 75 6c 65 53 74 61 74 65 | 22 2c 77 74 24 2c 70 61 |uleState|",wt$,pa|
|00000510| 74 68 24 2b 77 74 24 2c | 31 2c 37 20 b8 3b 66 25 |th$+wt$,|1,7 .;f%|
|00000520| 0d 00 23 04 0d 00 24 4e | 20 20 20 20 20 20 f4 20 |..#...$N| . |
|00000530| 49 66 20 74 68 65 20 6e | 65 65 64 65 64 20 57 54 |If the n|eeded WT|
|00000540| 20 6d 6f 64 75 6c 65 20 | 63 6f 75 6c 64 20 6e 6f | module |could no|
|00000550| 74 20 62 65 20 6c 6f 61 | 64 65 64 3b 20 74 68 65 |t be loa|ded; the|
|00000560| 72 65 20 69 73 20 6e 6f | 20 6d 65 6d 6f 72 79 2e |re is no| memory.|
|00000570| 2e 2e 0d 00 25 0d 20 20 | e7 66 25 80 32 20 8c 0d |....%. |.f%.2 ..|
|00000580| 00 26 48 20 20 20 20 e7 | 66 25 80 32 20 85 20 30 |.&H .|f%.2 . 0|
|00000590| 2c 22 59 6f 75 20 77 69 | 6c 6c 20 68 61 76 65 20 |,"You wi|ll have |
|000005a0| 74 6f 20 69 6e 63 72 65 | 61 73 65 20 52 4d 41 20 |to incre|ase RMA |
|000005b0| 6f 72 20 46 72 65 65 20 | 73 6c 6f 74 73 20 61 20 |or Free |slots a |
|000005c0| 62 69 74 2e 2e 2e 22 0d | 00 27 07 20 20 cd 0d 00 |bit...".|.'. ...|
|000005d0| 28 04 0d 00 29 45 20 20 | 20 20 20 20 f4 20 4e 6f |(...)E | . No|
|000005e0| 77 20 49 20 77 69 6c 6c | 20 63 61 6c 6c 20 74 68 |w I will| call th|
|000005f0| 65 20 6d 61 69 6e 20 67 | 61 6d 65 20 72 6f 75 74 |e main g|ame rout|
|00000600| 69 6e 65 2c 20 77 68 69 | 63 68 20 69 6e 20 74 68 |ine, whi|ch in th|
|00000610| 69 73 20 64 65 6d 6f 0d | 00 2a 4b 20 20 20 20 20 |is demo.|.*K |
|00000620| 20 f4 20 69 73 20 64 69 | 66 66 65 72 65 6e 74 20 | . is di|fferent |
|00000630| 66 6f 72 20 65 61 63 68 | 20 6c 65 76 65 6c 2c 20 |for each| level, |
|00000640| 62 75 74 20 61 73 20 79 | 6f 75 20 63 61 6e 20 73 |but as y|ou can s|
|00000650| 65 65 20 49 20 6a 75 73 | 74 20 63 61 6c 6c 20 6f |ee I jus|t call o|
|00000660| 6e 65 0d 00 2b 43 20 20 | 20 20 20 20 f4 20 72 6f |ne..+C | . ro|
|00000670| 75 74 69 6e 65 20 66 6f | 72 20 61 6c 6c 20 74 68 |utine fo|r all th|
|00000680| 65 20 6c 65 76 65 6c 73 | 2e 20 49 20 64 6f 6e 27 |e levels|. I don'|
|00000690| 74 20 68 61 76 65 20 74 | 6f 20 63 68 65 63 6b 20 |t have t|o check |
|000006a0| 77 68 69 63 68 0d 00 2c | 47 20 20 20 20 20 20 f4 |which..,|G .|
|000006b0| 20 6c 65 76 65 6c 27 73 | 20 72 6f 75 74 69 6e 65 | level's| routine|
|000006c0| 20 69 73 20 74 68 69 73 | 2c 20 61 6c 74 68 6f 75 | is this|, althou|
|000006d0| 67 68 20 74 77 6f 20 6f | 72 20 6d 6f 72 65 20 6c |gh two o|r more l|
|000006e0| 65 76 65 6c 73 20 63 61 | 6e 20 62 65 0d 00 2d 29 |evels ca|n be..-)|
|000006f0| 20 20 20 20 20 20 f4 20 | 69 6e 74 6f 20 6d 65 6d | . |into mem|
|00000700| 6f 72 79 20 61 74 20 74 | 68 65 20 73 61 6d 65 20 |ory at t|he same |
|00000710| 74 69 6d 65 2e 0d 00 2e | 22 20 20 c8 99 22 57 54 |time....|" .."WT|
|00000720| 5f 43 61 6c 6c 44 4c 52 | 44 22 2c 2c 22 47 61 6d |_CallDLR|D",,"Gam|
|00000730| 65 5f 50 6c 61 79 22 0d | 00 2f 04 0d 00 30 2b 20 |e_Play".|./...0+ |
|00000740| 20 20 20 20 20 f4 20 4c | 69 73 74 20 74 68 65 20 | . L|ist the |
|00000750| 27 6c 65 76 65 6c 2e 27 | 20 57 54 20 6d 6f 64 75 |'level.'| WT modu|
|00000760| 6c 65 73 2e 2e 2e 0d 00 | 31 18 20 20 2a 3e 57 54 |les.....|1. *>WT|
|00000770| 4d 6f 64 75 6c 65 73 20 | 4c 65 76 65 6c 2e 0d 00 |Modules |Level...|
|00000780| 32 04 0d 00 33 44 20 20 | 20 20 20 20 f4 20 54 68 |2...3D | . Th|
|00000790| 69 73 20 69 73 20 74 68 | 65 20 66 69 6e 61 6c 20 |is is th|e final |
|000007a0| 53 57 49 20 69 6e 74 6f | 20 6c 6f 6f 70 2c 20 61 |SWI into| loop, a|
|000007b0| 6c 6c 6f 77 73 20 74 68 | 65 20 6d 6f 64 75 6c 65 |llows th|e module|
|000007c0| 20 74 6f 20 62 65 0d 00 | 34 2a 20 20 20 20 20 20 | to be..|4* |
|000007d0| f4 20 6b 69 6c 6c 65 64 | 20 77 68 65 6e 20 69 74 |. killed| when it|
|000007e0| 73 20 6d 65 6d 6f 72 79 | 20 6e 65 65 64 65 64 2e |s memory| needed.|
|000007f0| 0d 00 35 21 20 20 c8 99 | 22 57 54 5f 4d 6f 64 75 |..5! ..|"WT_Modu|
|00000800| 6c 65 53 74 61 74 65 22 | 2c 77 74 24 2c 2c 32 2c |leState"|,wt$,,2,|
|00000810| 32 0d 00 36 04 0d 00 37 | 1c 20 20 f5 c8 97 78 25 |2..6...7|. ...x%|
|00000820| 2c 79 25 2c 6d 25 3a fd | 6d 25 3d 30 84 6d 25 3d |,y%,m%:.|m%=0.m%=|
|00000830| 32 0d 00 38 15 20 20 f5 | c8 97 78 25 2c 79 25 2c |2..8. .|..x%,y%,|
|00000840| 6d 25 3a fd 6d 25 0d 00 | 39 09 fd 6d 25 3d 31 0d |m%:.m%..|9..m%=1.|
|00000850| 00 3a 04 0d 00 3b 0b 2a | 57 54 46 72 65 65 0d ff |.:...;.*|WTFree..|
+--------+-------------------------+-------------------------+--------+--------+