home *** CD-ROM | disk | FTP | other *** search
open in:
MacOS 8.1
|
Win98
|
DOS
browse contents |
view JSON data
|
view as text
This file was processed as: EPOC Installation Package
(archive/epocInstallationPackage).
Confidence | Program | Detection | Match Type | Support
|
---|
100%
| dexvert
| EPOC Installation Package (archive/epocInstallationPackage)
| magic
| Supported |
1%
| dexvert
| Symbian Series 3 Installation file (other/symbianSeries3InstallationFile)
| ext
| Unsupported |
100%
| file
| Symbian installation file (EPOC release 3/4/5)
| default
| |
99%
| file
| data
| default
| |
100%
| TrID
| EPOC Installation package (rel. 2,3,5)
| default
| |
100%
| xdgMime
| application/vnd.symbian.install
| default
|
|
hex view+--------+-------------------------+-------------------------+--------+--------+
|00000000| 00 00 00 00 6d 00 00 10 | 19 04 00 10 bf d9 96 9d |....m...|........|
|00000010| e2 33 01 00 19 00 00 00 | 00 00 00 00 00 00 00 00 |.3......|........|
|00000020| 64 00 00 00 00 00 00 00 | 02 00 00 00 00 00 00 00 |d.......|........|
|00000030| 44 00 00 00 46 00 00 00 | ca 03 00 00 00 00 00 00 |D...F...|........|
|00000040| ca 03 00 00 01 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000050| 00 00 11 00 00 00 d2 03 | 00 00 24 00 00 00 e3 03 |........|..$.....|
|00000060| 00 00 66 0d 00 00 90 09 | 00 00 00 00 00 00 00 00 |..f.....|........|
|00000070| 00 00 00 00 00 00 0d 00 | 00 00 07 04 00 00 20 00 |........|...... .|
|00000080| 00 00 14 04 00 00 e0 0d | 00 00 f6 16 00 00 00 00 |........|........|
|00000090| 00 00 00 00 00 00 00 00 | 00 00 16 00 00 00 34 04 |........|......4.|
|000000a0| 00 00 29 00 00 00 4a 04 | 00 00 e5 03 00 00 d6 24 |..)...J.|.......$|
|000000b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 15 00 |........|........|
|000000c0| 00 00 73 04 00 00 28 00 | 00 00 88 04 00 00 0a 05 |..s...(.|........|
|000000d0| 00 00 bb 28 00 00 00 00 | 00 00 00 00 00 00 00 00 |...(....|........|
|000000e0| 00 00 16 00 00 00 b0 04 | 00 00 29 00 00 00 c6 04 |........|..).....|
|000000f0| 00 00 38 d7 01 00 c5 2d | 00 00 00 00 00 00 00 00 |..8....-|........|
|00000100| 00 00 00 00 00 00 12 00 | 00 00 ef 04 00 00 25 00 |........|......%.|
|00000110| 00 00 01 05 00 00 7f c4 | 01 00 fd 04 02 00 00 00 |........|........|
|00000120| 00 00 00 00 00 00 00 00 | 00 00 15 00 00 00 26 05 |........|......&.|
|00000130| 00 00 28 00 00 00 3b 05 | 00 00 0a 06 00 00 7c c9 |..(...;.|......|.|
|00000140| 03 00 00 00 00 00 00 00 | 00 00 00 00 00 00 16 00 |........|........|
|00000150| 00 00 63 05 00 00 29 00 | 00 00 79 05 00 00 26 0b |..c...).|..y...&.|
|00000160| 00 00 86 cf 03 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000170| 00 00 12 00 00 00 a2 05 | 00 00 25 00 00 00 b4 05 |........|..%.....|
|00000180| 00 00 a9 0b 00 00 ac da | 03 00 00 00 00 00 00 00 |........|........|
|00000190| 00 00 00 00 00 00 13 00 | 00 00 d9 05 00 00 26 00 |........|......&.|
|000001a0| 00 00 ec 05 00 00 84 06 | 00 00 55 e6 03 00 00 00 |........|..U.....|
|000001b0| 00 00 00 00 00 00 00 00 | 00 00 0f 00 00 00 12 06 |........|........|
|000001c0| 00 00 22 00 00 00 21 06 | 00 00 2e 07 00 00 d9 ec |.."...!.|........|
|000001d0| 03 00 00 00 00 00 00 00 | 00 00 00 00 00 00 16 00 |........|........|
|000001e0| 00 00 43 06 00 00 29 00 | 00 00 59 06 00 00 a9 07 |..C...).|..Y.....|
|000001f0| 00 00 07 f4 03 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000200| 00 00 12 00 00 00 82 06 | 00 00 25 00 00 00 94 06 |........|..%.....|
|00000210| 00 00 4d 08 00 00 b0 fb | 03 00 00 00 00 00 00 00 |..M.....|........|
|00000220| 00 00 00 00 00 00 11 00 | 00 00 b9 06 00 00 24 00 |........|......$.|
|00000230| 00 00 ca 06 00 00 a3 0e | 00 00 fd 03 04 00 00 00 |........|........|
|00000240| 00 00 00 00 00 00 00 00 | 00 00 0d 00 00 00 ee 06 |........|........|
|00000250| 00 00 20 00 00 00 fb 06 | 00 00 f2 0e 00 00 a0 12 |.. .....|........|
|00000260| 04 00 00 00 00 00 00 00 | 00 00 00 00 00 00 16 00 |........|........|
|00000270| 00 00 1b 07 00 00 29 00 | 00 00 31 07 00 00 e4 47 |......).|..1....G|
|00000280| 00 00 92 21 04 00 00 00 | 00 00 00 00 00 00 00 00 |...!....|........|
|00000290| 00 00 17 00 00 00 5a 07 | 00 00 2a 00 00 00 71 07 |......Z.|..*...q.|
|000002a0| 00 00 d9 04 00 00 76 69 | 04 00 00 00 00 00 00 00 |......vi|........|
|000002b0| 00 00 00 00 00 00 13 00 | 00 00 9b 07 00 00 26 00 |........|......&.|
|000002c0| 00 00 ae 07 00 00 98 05 | 00 00 4f 6e 04 00 00 00 |........|..On....|
|000002d0| 00 00 00 00 00 00 00 00 | 00 00 16 00 00 00 d4 07 |........|........|
|000002e0| 00 00 29 00 00 00 ea 07 | 00 00 8d 04 00 00 e7 73 |..).....|.......s|
|000002f0| 04 00 00 00 00 00 00 00 | 00 00 00 00 00 00 12 00 |........|........|
|00000300| 00 00 13 08 00 00 25 00 | 00 00 25 08 00 00 50 05 |......%.|..%...P.|
|00000310| 00 00 74 78 04 00 00 00 | 00 00 00 00 00 00 00 00 |..tx....|........|
|00000320| 00 00 16 00 00 00 4a 08 | 00 00 29 00 00 00 60 08 |......J.|..)...`.|
|00000330| 00 00 3c 05 00 00 c4 7d | 04 00 00 00 00 00 00 00 |..<....}|........|
|00000340| 00 00 00 00 00 00 12 00 | 00 00 89 08 00 00 25 00 |........|......%.|
|00000350| 00 00 9b 08 00 00 f8 05 | 00 00 00 83 04 00 00 00 |........|........|
|00000360| 00 00 00 00 00 00 00 00 | 00 00 18 00 00 00 c0 08 |........|........|
|00000370| 00 00 2b 00 00 00 d8 08 | 00 00 c5 05 00 00 f8 88 |..+.....|........|
|00000380| 04 00 00 00 00 00 00 00 | 00 00 00 00 00 00 14 00 |........|........|
|00000390| 00 00 03 09 00 00 27 00 | 00 00 17 09 00 00 78 06 |......'.|......x.|
|000003a0| 00 00 bd 8e 04 00 00 00 | 00 00 01 00 00 00 02 00 |........|........|
|000003b0| 00 00 12 00 00 00 3e 09 | 00 00 25 00 00 00 50 09 |......>.|..%...P.|
|000003c0| 00 00 88 02 00 00 35 95 | 04 00 1b 00 00 00 75 09 |......5.|......u.|
|000003d0| 00 00 43 3a 5c 53 69 73 | 74 65 6d 70 5c 77 63 2e |..C:\Sis|temp\wc.|
|000003e0| 74 78 74 21 3a 5c 50 73 | 69 6f 6e 35 43 44 31 5c |txt!:\Ps|ion5CD1\|
|000003f0| 53 68 65 6c 6c 35 53 6f | 75 72 63 65 43 6f 64 65 |Shell5So|urceCode|
|00000400| 5c 77 63 2e 74 78 74 43 | 3a 5c 53 69 73 74 65 6d |\wc.txtC|:\Sistem|
|00000410| 70 5c 77 63 21 3a 5c 50 | 73 69 6f 6e 35 43 44 31 |p\wc!:\P|sion5CD1|
|00000420| 5c 53 68 65 6c 6c 35 53 | 6f 75 72 63 65 43 6f 64 |\Shell5S|ourceCod|
|00000430| 65 5c 77 63 43 3a 5c 53 | 69 73 74 65 6d 70 5c 73 |e\wcC:\S|istemp\s|
|00000440| 79 73 72 61 6d 31 2e 6f | 78 68 21 3a 5c 50 73 69 |ysram1.o|xh!:\Psi|
|00000450| 6f 6e 35 43 44 31 5c 53 | 68 65 6c 6c 35 53 6f 75 |on5CD1\S|hell5Sou|
|00000460| 72 63 65 43 6f 64 65 5c | 73 79 73 72 61 6d 31 2e |rceCode\|sysram1.|
|00000470| 6f 78 68 43 3a 5c 53 69 | 73 74 65 6d 70 5c 73 68 |oxhC:\Si|stemp\sh|
|00000480| 65 6c 6c 35 2e 6d 62 6d | 21 3a 5c 50 73 69 6f 6e |ell5.mbm|!:\Psion|
|00000490| 35 43 44 31 5c 53 68 65 | 6c 6c 35 53 6f 75 72 63 |5CD1\She|ll5Sourc|
|000004a0| 65 43 6f 64 65 5c 73 68 | 65 6c 6c 35 2e 6d 62 6d |eCode\sh|ell5.mbm|
|000004b0| 43 3a 5c 53 69 73 74 65 | 6d 70 5c 73 68 35 5f 30 |C:\Siste|mp\sh5_0|
|000004c0| 32 31 2e 74 78 74 21 3a | 5c 50 73 69 6f 6e 35 43 |21.txt!:|\Psion5C|
|000004d0| 44 31 5c 53 68 65 6c 6c | 35 53 6f 75 72 63 65 43 |D1\Shell|5SourceC|
|000004e0| 6f 64 65 5c 73 68 35 5f | 30 32 31 2e 74 78 74 43 |ode\sh5_|021.txtC|
|000004f0| 3a 5c 53 69 73 74 65 6d | 70 5c 73 68 35 5f 30 32 |:\Sistem|p\sh5_02|
|00000500| 31 21 3a 5c 50 73 69 6f | 6e 35 43 44 31 5c 53 68 |1!:\Psio|n5CD1\Sh|
|00000510| 65 6c 6c 35 53 6f 75 72 | 63 65 43 6f 64 65 5c 73 |ell5Sour|ceCode\s|
|00000520| 68 35 5f 30 32 31 43 3a | 5c 53 69 73 74 65 6d 70 |h5_021C:|\Sistemp|
|00000530| 5c 52 65 61 64 6d 65 2e | 73 72 63 21 3a 5c 50 73 |\Readme.|src!:\Ps|
|00000540| 69 6f 6e 35 43 44 31 5c | 53 68 65 6c 6c 35 53 6f |ion5CD1\|Shell5So|
|00000550| 75 72 63 65 43 6f 64 65 | 5c 52 65 61 64 6d 65 2e |urceCode|\Readme.|
|00000560| 73 72 63 43 3a 5c 53 69 | 73 74 65 6d 70 5c 70 75 |srcC:\Si|stemp\pu|
|00000570| 74 63 6c 69 70 2e 74 78 | 74 21 3a 5c 50 73 69 6f |tclip.tx|t!:\Psio|
|00000580| 6e 35 43 44 31 5c 53 68 | 65 6c 6c 35 53 6f 75 72 |n5CD1\Sh|ell5Sour|
|00000590| 63 65 43 6f 64 65 5c 70 | 75 74 63 6c 69 70 2e 74 |ceCode\p|utclip.t|
|000005a0| 78 74 43 3a 5c 53 69 73 | 74 65 6d 70 5c 70 75 74 |xtC:\Sis|temp\put|
|000005b0| 63 6c 69 70 21 3a 5c 50 | 73 69 6f 6e 35 43 44 31 |clip!:\P|sion5CD1|
|000005c0| 5c 53 68 65 6c 6c 35 53 | 6f 75 72 63 65 43 6f 64 |\Shell5S|ourceCod|
|000005d0| 65 5c 70 75 74 63 6c 69 | 70 43 3a 5c 53 69 73 74 |e\putcli|pC:\Sist|
|000005e0| 65 6d 70 5c 70 6c 61 79 | 2e 74 78 74 21 3a 5c 50 |emp\play|.txt!:\P|
|000005f0| 73 69 6f 6e 35 43 44 31 | 5c 53 68 65 6c 6c 35 53 |sion5CD1|\Shell5S|
|00000600| 6f 75 72 63 65 43 6f 64 | 65 5c 70 6c 61 79 2e 74 |ourceCod|e\play.t|
|00000610| 78 74 43 3a 5c 53 69 73 | 74 65 6d 70 5c 70 6c 61 |xtC:\Sis|temp\pla|
|00000620| 79 21 3a 5c 50 73 69 6f | 6e 35 43 44 31 5c 53 68 |y!:\Psio|n5CD1\Sh|
|00000630| 65 6c 6c 35 53 6f 75 72 | 63 65 43 6f 64 65 5c 70 |ell5Sour|ceCode\p|
|00000640| 6c 61 79 43 3a 5c 53 69 | 73 74 65 6d 70 5c 67 65 |layC:\Si|stemp\ge|
|00000650| 74 63 6c 69 70 2e 74 78 | 74 21 3a 5c 50 73 69 6f |tclip.tx|t!:\Psio|
|00000660| 6e 35 43 44 31 5c 53 68 | 65 6c 6c 35 53 6f 75 72 |n5CD1\Sh|ell5Sour|
|00000670| 63 65 43 6f 64 65 5c 67 | 65 74 63 6c 69 70 2e 74 |ceCode\g|etclip.t|
|00000680| 78 74 43 3a 5c 53 69 73 | 74 65 6d 70 5c 67 65 74 |xtC:\Sis|temp\get|
|00000690| 63 6c 69 70 21 3a 5c 50 | 73 69 6f 6e 35 43 44 31 |clip!:\P|sion5CD1|
|000006a0| 5c 53 68 65 6c 6c 35 53 | 6f 75 72 63 65 43 6f 64 |\Shell5S|ourceCod|
|000006b0| 65 5c 67 65 74 63 6c 69 | 70 43 3a 5c 53 69 73 74 |e\getcli|pC:\Sist|
|000006c0| 65 6d 70 5c 64 75 2e 74 | 78 74 21 3a 5c 50 73 69 |emp\du.t|xt!:\Psi|
|000006d0| 6f 6e 35 43 44 31 5c 53 | 68 65 6c 6c 35 53 6f 75 |on5CD1\S|hell5Sou|
|000006e0| 72 63 65 43 6f 64 65 5c | 64 75 2e 74 78 74 43 3a |rceCode\|du.txtC:|
|000006f0| 5c 53 69 73 74 65 6d 70 | 5c 64 75 21 3a 5c 50 73 |\Sistemp|\du!:\Ps|
|00000700| 69 6f 6e 35 43 44 31 5c | 53 68 65 6c 6c 35 53 6f |ion5CD1\|Shell5So|
|00000710| 75 72 63 65 43 6f 64 65 | 5c 64 75 43 3a 5c 53 69 |urceCode|\duC:\Si|
|00000720| 73 74 65 6d 70 5c 43 6f | 70 79 69 6e 67 2e 74 78 |stemp\Co|pying.tx|
|00000730| 74 21 3a 5c 50 73 69 6f | 6e 35 43 44 31 5c 53 68 |t!:\Psio|n5CD1\Sh|
|00000740| 65 6c 6c 35 53 6f 75 72 | 63 65 43 6f 64 65 5c 43 |ell5Sour|ceCode\C|
|00000750| 6f 70 79 69 6e 67 2e 74 | 78 74 43 3a 5c 53 69 73 |opying.t|xtC:\Sis|
|00000760| 74 65 6d 70 5c 63 6f 6e | 74 72 61 73 74 2e 74 78 |temp\con|trast.tx|
|00000770| 74 21 3a 5c 50 73 69 6f | 6e 35 43 44 31 5c 53 68 |t!:\Psio|n5CD1\Sh|
|00000780| 65 6c 6c 35 53 6f 75 72 | 63 65 43 6f 64 65 5c 63 |ell5Sour|ceCode\c|
|00000790| 6f 6e 74 72 61 73 74 2e | 74 78 74 43 3a 5c 53 69 |ontrast.|txtC:\Si|
|000007a0| 73 74 65 6d 70 5c 63 6f | 6e 74 72 61 73 74 21 3a |stemp\co|ntrast!:|
|000007b0| 5c 50 73 69 6f 6e 35 43 | 44 31 5c 53 68 65 6c 6c |\Psion5C|D1\Shell|
|000007c0| 35 53 6f 75 72 63 65 43 | 6f 64 65 5c 63 6f 6e 74 |5SourceC|ode\cont|
|000007d0| 72 61 73 74 43 3a 5c 53 | 69 73 74 65 6d 70 5c 63 |rastC:\S|istemp\c|
|000007e0| 6f 6d 70 61 63 74 2e 74 | 78 74 21 3a 5c 50 73 69 |ompact.t|xt!:\Psi|
|000007f0| 6f 6e 35 43 44 31 5c 53 | 68 65 6c 6c 35 53 6f 75 |on5CD1\S|hell5Sou|
|00000800| 72 63 65 43 6f 64 65 5c | 63 6f 6d 70 61 63 74 2e |rceCode\|compact.|
|00000810| 74 78 74 43 3a 5c 53 69 | 73 74 65 6d 70 5c 63 6f |txtC:\Si|stemp\co|
|00000820| 6d 70 61 63 74 21 3a 5c | 50 73 69 6f 6e 35 43 44 |mpact!:\|Psion5CD|
|00000830| 31 5c 53 68 65 6c 6c 35 | 53 6f 75 72 63 65 43 6f |1\Shell5|SourceCo|
|00000840| 64 65 5c 63 6f 6d 70 61 | 63 74 43 3a 5c 53 69 73 |de\compa|ctC:\Sis|
|00000850| 74 65 6d 70 5c 63 68 61 | 72 73 65 74 2e 74 78 74 |temp\cha|rset.txt|
|00000860| 21 3a 5c 50 73 69 6f 6e | 35 43 44 31 5c 53 68 65 |!:\Psion|5CD1\She|
|00000870| 6c 6c 35 53 6f 75 72 63 | 65 43 6f 64 65 5c 63 68 |ll5Sourc|eCode\ch|
|00000880| 61 72 73 65 74 2e 74 78 | 74 43 3a 5c 53 69 73 74 |arset.tx|tC:\Sist|
|00000890| 65 6d 70 5c 63 68 61 72 | 73 65 74 21 3a 5c 50 73 |emp\char|set!:\Ps|
|000008a0| 69 6f 6e 35 43 44 31 5c | 53 68 65 6c 6c 35 53 6f |ion5CD1\|Shell5So|
|000008b0| 75 72 63 65 43 6f 64 65 | 5c 63 68 61 72 73 65 74 |urceCode|\charset|
|000008c0| 43 3a 5c 53 69 73 74 65 | 6d 70 5c 62 61 63 6b 6c |C:\Siste|mp\backl|
|000008d0| 69 67 68 74 2e 74 78 74 | 21 3a 5c 50 73 69 6f 6e |ight.txt|!:\Psion|
|000008e0| 35 43 44 31 5c 53 68 65 | 6c 6c 35 53 6f 75 72 63 |5CD1\She|ll5Sourc|
|000008f0| 65 43 6f 64 65 5c 62 61 | 63 6b 6c 69 67 68 74 2e |eCode\ba|cklight.|
|00000900| 74 78 74 43 3a 5c 53 69 | 73 74 65 6d 70 5c 62 61 |txtC:\Si|stemp\ba|
|00000910| 63 6b 6c 69 67 68 74 21 | 3a 5c 50 73 69 6f 6e 35 |cklight!|:\Psion5|
|00000920| 43 44 31 5c 53 68 65 6c | 6c 35 53 6f 75 72 63 65 |CD1\Shel|l5Source|
|00000930| 43 6f 64 65 5c 62 61 63 | 6b 6c 69 67 68 74 43 3a |Code\bac|klightC:|
|00000940| 5c 53 69 73 74 65 6d 70 | 5c 42 69 73 2e 74 78 74 |\Sistemp|\Bis.txt|
|00000950| 21 3a 5c 50 73 69 6f 6e | 35 43 44 31 5c 53 68 65 |!:\Psion|5CD1\She|
|00000960| 6c 6c 35 53 6f 75 72 63 | 65 43 6f 64 65 5c 42 69 |ll5Sourc|eCode\Bi|
|00000970| 73 2e 74 78 74 53 68 65 | 6c 6c 35 20 53 6f 75 72 |s.txtShe|ll5 Sour|
|00000980| 63 65 20 43 6f 64 65 20 | 31 33 36 2e 36 20 6b 42 |ce Code |136.6 kB|
|00000990| 52 65 6d 20 20 20 77 63 | 2c 20 61 6e 20 61 64 64 |Rem wc|, an add|
|000009a0| 6f 6e 20 63 6f 6d 6d 61 | 6e 64 20 66 6f 72 20 53 |on comma|nd for S|
|000009b0| 68 65 6c 6c 35 0d 0a 52 | 65 6d 20 20 20 44 69 73 |hell5..R|em Dis|
|000009c0| 70 6c 61 79 20 74 68 65 | 20 6e 75 6d 62 65 72 20 |play the| number |
|000009d0| 6f 66 20 6c 69 6e 65 73 | 2c 20 77 6f 72 64 73 20 |of lines|, words |
|000009e0| 61 6e 64 20 63 68 61 72 | 61 63 74 65 72 20 69 6e |and char|acter in|
|000009f0| 20 61 20 66 69 6c 65 0d | 0a 52 65 6d 0d 0a 52 65 | a file.|.Rem..Re|
|00000a00| 6d 20 20 20 43 6f 70 79 | 72 69 67 68 74 20 28 43 |m Copy|right (C|
|00000a10| 29 20 31 39 39 38 20 20 | 4e 69 63 6b 20 4d 75 72 |) 1998 |Nick Mur|
|00000a20| 72 61 79 0d 0a 52 65 6d | 0d 0a 52 65 6d 20 20 20 |ray..Rem|..Rem |
|00000a30| 54 68 69 73 20 70 72 6f | 67 72 61 6d 20 69 73 20 |This pro|gram is |
|00000a40| 66 72 65 65 20 73 6f 66 | 74 77 61 72 65 3b 20 79 |free sof|tware; y|
|00000a50| 6f 75 20 63 61 6e 20 72 | 65 64 69 73 74 72 69 62 |ou can r|edistrib|
|00000a60| 75 74 65 20 69 74 20 61 | 6e 64 2f 6f 72 0d 0a 52 |ute it a|nd/or..R|
|00000a70| 65 6d 20 20 20 6d 6f 64 | 69 66 79 20 69 74 20 75 |em mod|ify it u|
|00000a80| 6e 64 65 72 20 74 68 65 | 20 74 65 72 6d 73 20 6f |nder the| terms o|
|00000a90| 66 20 74 68 65 20 47 4e | 55 20 47 65 6e 65 72 61 |f the GN|U Genera|
|00000aa0| 6c 20 50 75 62 6c 69 63 | 20 4c 69 63 65 6e 73 65 |l Public| License|
|00000ab0| 0d 0a 52 65 6d 20 20 20 | 61 73 20 70 75 62 6c 69 |..Rem |as publi|
|00000ac0| 73 68 65 64 20 62 79 20 | 74 68 65 20 46 72 65 65 |shed by |the Free|
|00000ad0| 20 53 6f 66 74 77 61 72 | 65 20 46 6f 75 6e 64 61 | Softwar|e Founda|
|00000ae0| 74 69 6f 6e 3b 20 65 69 | 74 68 65 72 20 76 65 72 |tion; ei|ther ver|
|00000af0| 73 69 6f 6e 20 32 0d 0a | 52 65 6d 20 20 20 6f 66 |sion 2..|Rem of|
|00000b00| 20 74 68 65 20 4c 69 63 | 65 6e 73 65 2c 20 6f 72 | the Lic|ense, or|
|00000b10| 20 28 61 74 20 79 6f 75 | 72 20 6f 70 74 69 6f 6e | (at you|r option|
|00000b20| 29 20 61 6e 79 20 6c 61 | 74 65 72 20 76 65 72 73 |) any la|ter vers|
|00000b30| 69 6f 6e 2e 0d 0a 52 65 | 6d 0d 0a 52 65 6d 20 20 |ion...Re|m..Rem |
|00000b40| 20 54 68 69 73 20 70 72 | 6f 67 72 61 6d 20 69 73 | This pr|ogram is|
|00000b50| 20 64 69 73 74 72 69 62 | 75 74 65 64 20 69 6e 20 | distrib|uted in |
|00000b60| 74 68 65 20 68 6f 70 65 | 20 74 68 61 74 20 69 74 |the hope| that it|
|00000b70| 20 77 69 6c 6c 20 62 65 | 20 75 73 65 66 75 6c 2c | will be| useful,|
|00000b80| 0d 0a 52 65 6d 20 20 20 | 62 75 74 20 57 49 54 48 |..Rem |but WITH|
|00000b90| 4f 55 54 20 41 4e 59 20 | 57 41 52 52 41 4e 54 59 |OUT ANY |WARRANTY|
|00000ba0| 3b 20 77 69 74 68 6f 75 | 74 20 65 76 65 6e 20 74 |; withou|t even t|
|00000bb0| 68 65 20 69 6d 70 6c 69 | 65 64 20 77 61 72 72 61 |he impli|ed warra|
|00000bc0| 6e 74 79 20 6f 66 0d 0a | 52 65 6d 20 20 20 4d 45 |nty of..|Rem ME|
|00000bd0| 52 43 48 41 4e 54 41 42 | 49 4c 49 54 59 20 6f 72 |RCHANTAB|ILITY or|
|00000be0| 20 46 49 54 4e 45 53 53 | 20 46 4f 52 20 41 20 50 | FITNESS| FOR A P|
|00000bf0| 41 52 54 49 43 55 4c 41 | 52 20 50 55 52 50 4f 53 |ARTICULA|R PURPOS|
|00000c00| 45 2e 0d 0a 52 65 6d 20 | 20 20 53 65 65 20 74 68 |E...Rem | See th|
|00000c10| 65 20 47 4e 55 20 47 65 | 6e 65 72 61 6c 20 50 75 |e GNU Ge|neral Pu|
|00000c20| 62 6c 69 63 20 4c 69 63 | 65 6e 73 65 20 66 6f 72 |blic Lic|ense for|
|00000c30| 20 6d 6f 72 65 20 64 65 | 74 61 69 6c 73 2e 0d 0a | more de|tails...|
|00000c40| 52 65 6d 0d 0a 52 65 6d | 20 20 20 59 6f 75 20 73 |Rem..Rem| You s|
|00000c50| 68 6f 75 6c 64 20 68 61 | 76 65 20 72 65 63 65 69 |hould ha|ve recei|
|00000c60| 76 65 64 20 61 20 63 6f | 70 79 20 6f 66 20 74 68 |ved a co|py of th|
|00000c70| 65 20 47 4e 55 20 47 65 | 6e 65 72 61 6c 20 50 75 |e GNU Ge|neral Pu|
|00000c80| 62 6c 69 63 20 4c 69 63 | 65 6e 73 65 0d 0a 52 65 |blic Lic|ense..Re|
|00000c90| 6d 20 20 20 61 6c 6f 6e | 67 20 77 69 74 68 20 74 |m alon|g with t|
|00000ca0| 68 69 73 20 70 72 6f 67 | 72 61 6d 3b 20 69 66 20 |his prog|ram; if |
|00000cb0| 6e 6f 74 2c 20 77 72 69 | 74 65 20 74 6f 20 74 68 |not, wri|te to th|
|00000cc0| 65 20 46 72 65 65 20 53 | 6f 66 74 77 61 72 65 20 |e Free S|oftware |
|00000cd0| 46 6f 75 6e 64 61 74 69 | 6f 6e 2c 0d 0a 52 65 6d |Foundati|on,..Rem|
|00000ce0| 20 20 20 49 6e 63 2e 2c | 20 35 39 20 54 65 6d 70 | Inc.,| 59 Temp|
|00000cf0| 6c 65 20 50 6c 61 63 65 | 20 2d 20 53 75 69 74 65 |le Place| - Suite|
|00000d00| 20 33 33 30 2c 20 42 6f | 73 74 6f 6e 2c 20 4d 41 | 330, Bo|ston, MA|
|00000d10| 20 20 30 32 31 31 31 2d | 31 33 30 37 2c 20 55 53 | 02111-|1307, US|
|00000d20| 41 2e 0d 0a 52 65 6d 0d | 0a 50 52 4f 43 20 77 63 |A...Rem.|.PROC wc|
|00000d30| 25 3a 28 6e 25 29 0d 0a | 4c 4f 43 41 4c 20 69 25 |%:(n%)..|LOCAL i%|
|00000d40| 2c 72 65 74 25 2c 64 24 | 28 32 35 35 29 2c 68 61 |,ret%,d$|(255),ha|
|00000d50| 6e 64 6c 65 25 2c 74 78 | 74 24 28 32 35 35 29 2c |ndle%,tx|t$(255),|
|00000d60| 70 25 0d 0a 4c 4f 43 41 | 4c 20 6c 69 6e 65 73 26 |p%..LOCA|L lines&|
|00000d70| 2c 77 6f 72 64 73 26 2c | 63 68 61 72 73 26 2c 73 |,words&,|chars&,s|
|00000d80| 69 7a 65 26 0d 0a 09 4f | 4e 45 52 52 20 45 72 72 |ize&...O|NERR Err|
|00000d90| 54 72 61 70 3a 3a 0d 0a | 09 49 46 20 6e 25 3c 32 |Trap::..|.IF n%<2|
|00000da0| 20 41 4e 44 20 5f 69 6e | 25 3d 30 09 52 65 6d 20 | AND _in|%=0.Rem |
|00000db0| 6e 6f 20 61 72 67 73 20 | 61 6e 64 20 6e 6f 20 72 |no args |and no r|
|00000dc0| 65 64 69 72 65 63 74 65 | 64 20 69 6e 70 75 74 0d |edirecte|d input.|
|00000dd0| 0a 09 09 50 52 49 4e 54 | 20 22 55 73 61 67 65 3a |...PRINT| "Usage:|
|00000de0| 20 77 63 20 3c 66 69 6c | 65 6e 61 6d 65 3e 22 0d | wc <fil|ename>".|
|00000df0| 0a 09 09 52 45 54 55 52 | 4e 0d 0a 09 45 4e 44 49 |...RETUR|N...ENDI|
|00000e00| 46 0d 0a 09 69 25 3d 32 | 09 09 52 65 6d 20 61 72 |F...i%=2|..Rem ar|
|00000e10| 67 76 26 28 32 29 20 69 | 73 20 74 68 65 20 46 49 |gv&(2) i|s the FI|
|00000e20| 52 53 54 20 61 72 67 75 | 6d 65 6e 74 20 61 66 74 |RST argu|ment aft|
|00000e30| 65 72 20 74 68 65 20 63 | 6f 6d 6d 61 6e 20 64 0d |er the c|omman d.|
|00000e40| 0a 09 49 46 20 5f 69 6e | 25 09 09 09 09 52 65 6d |..IF _in|%....Rem|
|00000e50| 20 69 6e 70 75 74 20 69 | 73 20 72 65 64 69 72 65 | input i|s redire|
|00000e60| 63 74 65 64 2c 20 73 6f | 20 73 65 74 20 74 68 65 |cted, so| set the|
|00000e70| 20 66 69 6c 65 0d 0a 09 | 09 68 61 6e 64 6c 65 25 | file...|.handle%|
|00000e80| 3d 5f 69 6e 25 09 52 65 | 6d 20 68 61 6e 64 6c 65 |=_in%.Re|m handle|
|00000e90| 20 74 6f 20 53 48 69 6e | 25 20 61 6e 64 20 6a 75 | to SHin|% and ju|
|00000ea0| 6d 70 20 6f 76 65 72 20 | 74 68 65 0d 0a 09 09 47 |mp over |the....G|
|00000eb0| 4f 54 4f 20 6c 6f 6f 70 | 3a 3a 09 09 52 65 6d 20 |OTO loop|::..Rem |
|00000ec0| 66 69 6c 65 20 68 61 6e | 64 6c 69 6e 67 20 72 6f |file han|dling ro|
|00000ed0| 75 74 69 6e 65 73 2e 0d | 0a 09 45 4e 44 49 46 0d |utines..|..ENDIF.|
|00000ee0| 0a 09 57 48 49 4c 45 20 | 69 25 3c 3d 6e 25 09 09 |..WHILE |i%<=n%..|
|00000ef0| 52 65 6d 20 77 68 69 6c | 73 74 20 77 65 20 68 61 |Rem whil|st we ha|
|00000f00| 76 65 20 6d 6f 72 65 20 | 61 72 67 75 6d 65 6e 74 |ve more |argument|
|00000f10| 73 0d 0a 09 09 52 65 6d | 20 70 61 72 73 65 20 74 |s....Rem| parse t|
|00000f20| 68 65 20 69 25 20 74 68 | 20 61 72 67 75 6d 65 6e |he i% th| argumen|
|00000f30| 74 20 74 6f 20 63 68 65 | 63 6b 20 69 66 20 69 74 |t to che|ck if it|
|00000f40| 27 73 20 61 20 76 61 6c | 69 64 20 66 69 6c 65 0d |'s a val|id file.|
|00000f50| 0a 09 09 72 65 74 25 3d | 46 70 61 72 73 65 25 3a |...ret%=|Fparse%:|
|00000f60| 28 41 44 44 52 28 64 24 | 29 2c 50 45 45 4b 24 28 |(ADDR(d$|),PEEK$(|
|00000f70| 61 72 67 76 26 28 69 25 | 29 29 29 0d 0a 09 09 49 |argv&(i%|)))....I|
|00000f80| 46 20 72 65 74 25 3c 30 | 09 09 09 09 09 52 65 6d |F ret%<0|.....Rem|
|00000f90| 20 65 72 72 6f 72 20 6f | 70 65 6e 69 6e 67 20 74 | error o|pening t|
|00000fa0| 68 69 73 20 66 69 6c 65 | 0d 0a 09 09 09 5f 45 72 |his file|....._Er|
|00000fb0| 72 3a 28 69 25 2c 72 65 | 74 25 29 0d 0a 09 09 45 |r:(i%,re|t%)....E|
|00000fc0| 4c 53 45 49 46 20 72 65 | 74 25 20 41 4e 44 20 31 |LSEIF re|t% AND 1|
|00000fd0| 36 09 52 65 6d 20 74 68 | 69 73 20 69 73 20 61 20 |6.Rem th|is is a |
|00000fe0| 64 69 72 65 63 74 6f 72 | 79 0d 0a 09 09 09 5f 45 |director|y....._E|
|00000ff0| 72 72 3a 28 69 25 2c 33 | 29 0d 0a 09 09 45 4c 53 |rr:(i%,3|)....ELS|
|00001000| 45 0d 0a 09 09 09 72 65 | 74 25 3d 49 4f 4f 50 45 |E.....re|t%=IOOPE|
|00001010| 4e 28 68 61 6e 64 6c 65 | 25 2c 64 24 2c 24 30 36 |N(handle|%,d$,$06|
|00001020| 30 30 29 09 09 52 65 6d | 20 72 61 6e 64 6f 6d 20 |00)..Rem| random |
|00001030| 61 63 63 65 73 73 20 6f | 70 65 6e 69 6e 67 20 66 |access o|pening f|
|00001040| 69 72 73 74 0d 0a 09 09 | 09 49 46 20 72 65 74 25 |irst....|.IF ret%|
|00001050| 0d 0a 09 09 09 09 5f 45 | 72 72 3a 28 69 25 2c 72 |......_E|rr:(i%,r|
|00001060| 65 74 25 29 0d 0a 09 09 | 09 45 4e 44 49 46 0d 0a |et%)....|.ENDIF..|
|00001070| 09 09 09 49 4f 53 45 45 | 4b 28 68 61 6e 64 6c 65 |...IOSEE|K(handle|
|00001080| 25 2c 32 2c 73 69 7a 65 | 26 29 09 09 09 09 09 09 |%,2,size|&)......|
|00001090| 09 09 52 65 6d 20 67 65 | 74 20 73 69 7a 65 0d 0a |..Rem ge|t size..|
|000010a0| 09 09 09 49 4f 43 4c 4f | 53 45 28 68 61 6e 64 6c |...IOCLO|SE(handl|
|000010b0| 65 25 29 0d 0a 09 09 09 | 68 61 6e 64 6c 65 25 3d |e%).....|handle%=|
|000010c0| 30 0d 0a 09 09 09 52 45 | 4d 20 6f 70 65 6e 3d 24 |0.....RE|M open=$|
|000010d0| 30 30 30 30 2c 20 74 65 | 78 74 3d 24 30 30 32 30 |0000, te|xt=$0020|
|000010e0| 2c 20 73 68 61 72 65 3d | 24 30 34 30 30 0d 0a 09 |, share=|$0400...|
|000010f0| 09 09 72 65 74 25 3d 49 | 4f 4f 50 45 4e 28 68 61 |..ret%=I|OOPEN(ha|
|00001100| 6e 64 6c 65 25 2c 64 24 | 2c 24 30 34 32 30 29 0d |ndle%,d$|,$0420).|
|00001110| 0a 09 09 09 49 46 20 72 | 65 74 25 0d 0a 09 09 09 |....IF r|et%.....|
|00001120| 09 5f 45 72 72 3a 28 69 | 25 2c 72 65 74 25 29 0d |._Err:(i|%,ret%).|
|00001130| 0a 09 09 09 45 4c 53 45 | 0d 0a 09 09 09 09 6c 69 |....ELSE|......li|
|00001140| 6e 65 73 26 3d 30 09 09 | 09 52 65 6d 20 69 6e 69 |nes&=0..|.Rem ini|
|00001150| 74 69 61 6c 69 7a 65 20 | 63 6f 75 6e 74 65 72 73 |tialize |counters|
|00001160| 0d 0a 09 09 09 09 77 6f | 72 64 73 26 3d 30 0d 0a |......wo|rds&=0..|
|00001170| 09 09 09 09 63 68 61 72 | 73 26 3d 30 0d 0a 6c 6f |....char|s&=0..lo|
|00001180| 6f 70 3a 3a 09 09 57 48 | 49 4c 45 20 31 0d 0a 09 |op::..WH|ILE 1...|
|00001190| 09 09 09 09 49 4f 59 49 | 45 4c 44 0d 0a 09 09 09 |....IOYI|ELD.....|
|000011a0| 09 09 49 46 20 5f 73 74 | 61 74 25 3c 3e 2d 34 36 |..IF _st|at%<>-46|
|000011b0| 0d 0a 09 09 09 09 09 09 | 49 46 20 5f 6b 65 79 25 |........|IF _key%|
|000011c0| 28 31 29 3d 32 37 0d 0a | 09 09 09 09 09 09 09 47 |(1)=27..|.......G|
|000011d0| 4f 54 4f 20 51 75 69 74 | 3a 3a 0d 0a 09 09 09 09 |OTO Quit|::......|
|000011e0| 09 09 45 4c 53 45 0d 0a | 09 09 09 09 09 09 09 4b |..ELSE..|.......K|
|000011f0| 45 59 41 28 5f 73 74 61 | 74 25 2c 5f 6b 65 79 25 |EYA(_sta|t%,_key%|
|00001200| 28 29 29 0d 0a 09 09 09 | 09 09 09 45 4e 44 49 46 |()).....|...ENDIF|
|00001210| 0d 0a 09 09 09 09 09 45 | 4e 44 49 46 0d 0a 09 09 |.......E|NDIF....|
|00001220| 09 09 09 52 65 6d 20 72 | 65 61 64 20 74 68 65 20 |...Rem r|ead the |
|00001230| 6e 65 78 74 20 6c 69 6e | 65 20 6f 66 20 69 6e 70 |next lin|e of inp|
|00001240| 75 74 2c 20 75 70 20 74 | 6f 20 32 35 34 20 63 68 |ut, up t|o 254 ch|
|00001250| 61 72 73 0d 0a 09 09 09 | 09 09 72 65 74 25 3d 49 |ars.....|..ret%=I|
|00001260| 4f 52 45 41 44 28 68 61 | 6e 64 6c 65 25 2c 41 44 |OREAD(ha|ndle%,AD|
|00001270| 44 52 28 74 78 74 24 29 | 2b 31 2c 32 35 35 29 0d |DR(txt$)|+1,255).|
|00001280| 0a 09 09 09 09 09 49 46 | 20 72 65 74 25 3c 30 09 |......IF| ret%<0.|
|00001290| 09 09 09 09 52 65 6d 20 | 61 6e 20 65 72 72 6f 72 |....Rem |an error|
|000012a0| 20 6f 66 20 73 6f 6d 65 | 20 73 6f 72 74 0d 0a 09 | of some| sort...|
|000012b0| 09 09 09 09 09 49 46 20 | 72 65 74 25 3c 3e 2d 33 |.....IF |ret%<>-3|
|000012c0| 36 09 09 52 65 6d 20 2d | 33 36 20 6d 65 72 65 6c |6..Rem -|36 merel|
|000012d0| 79 20 69 6e 64 69 63 61 | 74 65 73 20 45 4f 46 0d |y indica|tes EOF.|
|000012e0| 0a 09 09 09 09 09 09 09 | 5f 45 72 72 3a 28 69 25 |........|_Err:(i%|
|000012f0| 2c 72 65 74 25 29 09 52 | 65 6d 20 61 6e 6f 74 68 |,ret%).R|em anoth|
|00001300| 65 72 20 65 72 72 6f 72 | 2c 20 64 69 73 70 6c 61 |er error|, displa|
|00001310| 79 0d 0a 09 09 09 09 09 | 09 45 4e 44 49 46 0d 0a |y.......|.ENDIF..|
|00001320| 09 09 09 09 09 09 47 4f | 54 4f 20 45 6e 64 66 69 |......GO|TO Endfi|
|00001330| 6c 65 3a 3a 0d 0a 09 09 | 09 09 09 45 4e 44 49 46 |le::....|...ENDIF|
|00001340| 0d 0a 09 09 09 09 09 50 | 4f 4b 45 42 20 41 44 44 |.......P|OKEB ADD|
|00001350| 52 28 74 78 74 24 29 2c | 72 65 74 25 09 09 52 65 |R(txt$),|ret%..Re|
|00001360| 6d 20 73 65 74 20 6c 65 | 6e 67 74 68 20 6f 66 20 |m set le|ngth of |
|00001370| 69 6e 70 75 74 0d 0a 09 | 09 09 09 09 63 68 61 72 |input...|....char|
|00001380| 73 26 3d 63 68 61 72 73 | 26 2b 72 65 74 25 2b 32 |s&=chars|&+ret%+2|
|00001390| 09 09 52 65 6d 20 2b 20 | 30 44 20 2b 20 30 41 0d |..Rem + |0D + 0A.|
|000013a0| 0a 09 09 09 09 09 6c 69 | 6e 65 73 26 3d 6c 69 6e |......li|nes&=lin|
|000013b0| 65 73 26 2b 31 0d 0a 09 | 09 09 09 09 57 48 49 4c |es&+1...|....WHIL|
|000013c0| 45 20 4c 45 4e 28 74 78 | 74 24 29 0d 0a 09 09 09 |E LEN(tx|t$).....|
|000013d0| 09 09 09 70 25 3d 4c 4f | 43 28 74 78 74 24 2c 22 |...p%=LO|C(txt$,"|
|000013e0| 20 22 29 0d 0a 09 09 09 | 09 09 09 49 46 20 70 25 | ").....|...IF p%|
|000013f0| 3e 31 09 52 65 6d 20 6e | 6f 74 20 62 6c 61 6e 6b |>1.Rem n|ot blank|
|00001400| 20 66 69 72 73 74 0d 0a | 09 09 09 09 09 09 09 77 | first..|.......w|
|00001410| 6f 72 64 73 26 3d 77 6f | 72 64 73 26 2b 31 0d 0a |ords&=wo|rds&+1..|
|00001420| 09 09 09 09 09 09 45 4c | 53 45 49 46 20 70 25 3d |......EL|SEIF p%=|
|00001430| 30 20 41 4e 44 20 4c 45 | 4e 28 74 78 74 24 29 0d |0 AND LE|N(txt$).|
|00001440| 0a 09 09 09 09 09 09 09 | 77 6f 72 64 73 26 3d 77 |........|words&=w|
|00001450| 6f 72 64 73 26 2b 31 0d | 0a 09 09 09 09 09 09 09 |ords&+1.|........|
|00001460| 42 52 45 41 4b 0d 0a 09 | 09 09 09 09 09 45 4e 44 |BREAK...|.....END|
|00001470| 49 46 0d 0a 09 09 09 09 | 09 09 74 78 74 24 3d 52 |IF......|..txt$=R|
|00001480| 49 47 48 54 24 28 74 78 | 74 24 2c 4c 45 4e 28 74 |IGHT$(tx|t$,LEN(t|
|00001490| 78 74 24 29 2d 70 25 29 | 0d 0a 09 09 09 09 09 45 |xt$)-p%)|.......E|
|000014a0| 4e 44 57 48 0d 0a 09 09 | 09 09 45 4e 44 57 48 0d |NDWH....|..ENDWH.|
|000014b0| 0a 45 6e 64 46 69 6c 65 | 3a 3a 09 74 78 74 24 3d |.EndFile|::.txt$=|
|000014c0| 6e 75 6d 24 28 6c 69 6e | 65 73 26 2c 31 30 29 2b |num$(lin|es&,10)+|
|000014d0| 22 20 6c 69 6e 65 28 73 | 29 2c 20 22 2b 4e 55 4d |" line(s|), "+NUM|
|000014e0| 24 28 77 6f 72 64 73 26 | 2c 31 30 29 2b 22 20 77 |$(words&|,10)+" w|
|000014f0| 6f 72 64 28 73 29 2c 20 | 22 0d 0a 09 09 09 09 49 |ord(s), |"......I|
|00001500| 46 20 68 61 6e 64 6c 65 | 25 3c 3e 5f 69 6e 25 09 |F handle|%<>_in%.|
|00001510| 09 09 09 52 65 6d 20 6f | 6e 6c 79 20 63 6c 6f 73 |...Rem o|nly clos|
|00001520| 65 20 69 6e 70 75 74 20 | 66 69 6c 65 0d 0a 09 09 |e input |file....|
|00001530| 09 09 09 72 65 74 25 3d | 49 4f 43 4c 4f 53 45 28 |...ret%=|IOCLOSE(|
|00001540| 68 61 6e 64 6c 65 25 29 | 09 09 52 65 6d 20 69 66 |handle%)|..Rem if|
|00001550| 20 69 74 27 73 20 6e 6f | 74 20 53 48 69 6e 25 0d | it's no|t SHin%.|
|00001560| 0a 09 09 09 09 09 74 78 | 74 24 3d 74 78 74 24 2b |......tx|t$=txt$+|
|00001570| 4e 55 4d 24 28 73 69 7a | 65 26 2c 31 30 29 2b 22 |NUM$(siz|e&,10)+"|
|00001580| 20 63 68 61 72 73 20 20 | 22 2b 50 72 50 41 54 48 | chars |"+PrPATH|
|00001590| 24 3a 28 64 24 29 0d 0a | 09 09 09 09 45 4c 53 45 |$:(d$)..|....ELSE|
|000015a0| 0d 0a 09 09 09 09 09 74 | 78 74 24 3d 74 78 74 24 |.......t|xt$=txt$|
|000015b0| 2b 4e 55 4d 24 28 63 68 | 61 72 73 26 2c 31 30 29 |+NUM$(ch|ars&,10)|
|000015c0| 2b 22 20 63 68 61 72 73 | 22 0d 0a 09 09 09 09 45 |+" chars|"......E|
|000015d0| 4e 44 49 46 0d 0a 09 09 | 09 09 66 70 72 69 6e 74 |NDIF....|..fprint|
|000015e0| 25 3a 28 74 78 74 24 29 | 09 09 52 65 6d 20 75 73 |%:(txt$)|..Rem us|
|000015f0| 65 20 66 70 72 69 6e 74 | 25 20 73 6f 20 6f 75 74 |e fprint|% so out|
|00001600| 70 75 74 20 63 61 6e 20 | 62 65 0d 0a 09 09 09 45 |put can |be.....E|
|00001610| 4e 44 49 46 09 09 09 09 | 09 09 52 65 6d 20 72 65 |NDIF....|..Rem re|
|00001620| 64 69 72 65 63 74 65 64 | 0d 0a 09 09 45 4e 44 49 |directed|....ENDI|
|00001630| 46 0d 0a 09 09 69 25 3d | 69 25 2b 31 0d 0a 09 45 |F....i%=|i%+1...E|
|00001640| 4e 44 57 48 0d 0a 09 52 | 45 54 55 52 4e 0d 0a 45 |NDWH...R|ETURN..E|
|00001650| 72 72 54 72 61 70 3a 3a | 0d 0a 09 4f 4e 45 52 52 |rrTrap::|...ONERR|
|00001660| 20 6f 66 66 0d 0a 09 50 | 52 49 4e 54 20 65 72 72 | off...P|RINT err|
|00001670| 24 3a 28 45 52 52 29 0d | 0a 71 75 69 74 3a 3a 09 |$:(ERR).|.quit::.|
|00001680| 52 65 6d 20 63 61 6c 6c | 65 64 20 6f 6e 20 65 73 |Rem call|ed on es|
|00001690| 63 61 70 65 20 6b 65 79 | 2c 20 61 6c 73 6f 20 6f |cape key|, also o|
|000016a0| 6e 20 61 6e 20 65 72 72 | 6f 72 0d 0a 09 49 46 20 |n an err|or...IF |
|000016b0| 68 61 6e 64 6c 65 25 20 | 41 4e 44 20 68 61 6e 64 |handle% |AND hand|
|000016c0| 6c 65 25 3c 3e 5f 69 6e | 25 0d 0a 09 09 49 4f 43 |le%<>_in|%....IOC|
|000016d0| 4c 4f 53 45 28 68 61 6e | 64 6c 65 25 29 0d 0a 09 |LOSE(han|dle%)...|
|000016e0| 45 4e 44 49 46 0d 0a 09 | 52 45 54 55 52 4e 0d 0a |ENDIF...|RETURN..|
|000016f0| 45 4e 44 50 0d 0a 37 00 | 00 10 6d 00 00 10 85 00 |ENDP..7.|..m.....|
|00001700| 00 10 f4 63 08 55 c7 0d | 00 00 5c 00 00 10 63 00 |...c.U..|..\...c.|
|00001710| 00 10 00 00 00 00 64 00 | 00 10 ed 33 52 65 6d 20 |......d.|...3Rem |
|00001720| 20 20 77 63 2c 20 61 6e | 20 61 64 64 6f 6e 20 63 | wc, an| addon c|
|00001730| 6f 6d 6d 61 6e 64 20 66 | 6f 72 20 53 68 65 6c 6c |ommand f|or Shell|
|00001740| 35 06 52 65 6d 20 20 20 | 44 69 73 70 6c 61 79 20 |5.Rem |Display |
|00001750| 74 68 65 20 6e 75 6d 62 | 65 72 20 6f 66 20 6c 69 |the numb|er of li|
|00001760| 6e 65 73 2c 20 77 6f 72 | 64 73 20 61 6e 64 20 63 |nes, wor|ds and c|
|00001770| 68 61 72 61 63 74 65 72 | 20 69 6e 20 61 20 66 69 |haracter| in a fi|
|00001780| 6c 65 06 52 65 6d 06 52 | 65 6d 20 20 20 43 6f 70 |le.Rem.R|em Cop|
|00001790| 79 72 69 67 68 74 20 28 | 43 29 20 31 39 39 38 20 |yright (|C) 1998 |
|000017a0| 20 4e 69 63 6b 20 4d 75 | 72 72 61 79 06 52 65 6d | Nick Mu|rray.Rem|
|000017b0| 06 52 65 6d 20 20 20 54 | 68 69 73 20 70 72 6f 67 |.Rem T|his prog|
|000017c0| 72 61 6d 20 69 73 20 66 | 72 65 65 20 73 6f 66 74 |ram is f|ree soft|
|000017d0| 77 61 72 65 3b 20 79 6f | 75 20 63 61 6e 20 72 65 |ware; yo|u can re|
|000017e0| 64 69 73 74 72 69 62 75 | 74 65 20 69 74 20 61 6e |distribu|te it an|
|000017f0| 64 2f 6f 72 06 52 65 6d | 20 20 20 6d 6f 64 69 66 |d/or.Rem| modif|
|00001800| 79 20 69 74 20 75 6e 64 | 65 72 20 74 68 65 20 74 |y it und|er the t|
|00001810| 65 72 6d 73 20 6f 66 20 | 74 68 65 20 47 4e 55 20 |erms of |the GNU |
|00001820| 47 65 6e 65 72 61 6c 20 | 50 75 62 6c 69 63 20 4c |General |Public L|
|00001830| 69 63 65 6e 73 65 06 52 | 65 6d 20 20 20 61 73 20 |icense.R|em as |
|00001840| 70 75 62 6c 69 73 68 65 | 64 20 62 79 20 74 68 65 |publishe|d by the|
|00001850| 20 46 72 65 65 20 53 6f | 66 74 77 61 72 65 20 46 | Free So|ftware F|
|00001860| 6f 75 6e 64 61 74 69 6f | 6e 3b 20 65 69 74 68 65 |oundatio|n; eithe|
|00001870| 72 20 76 65 72 73 69 6f | 6e 20 32 06 52 65 6d 20 |r versio|n 2.Rem |
|00001880| 20 20 6f 66 20 74 68 65 | 20 4c 69 63 65 6e 73 65 | of the| License|
|00001890| 2c 20 6f 72 20 28 61 74 | 20 79 6f 75 72 20 6f 70 |, or (at| your op|
|000018a0| 74 69 6f 6e 29 20 61 6e | 79 20 6c 61 74 65 72 20 |tion) an|y later |
|000018b0| 76 65 72 73 69 6f 6e 2e | 06 52 65 6d 06 52 65 6d |version.|.Rem.Rem|
|000018c0| 20 20 20 54 68 69 73 20 | 70 72 6f 67 72 61 6d 20 | This |program |
|000018d0| 69 73 20 64 69 73 74 72 | 69 62 75 74 65 64 20 69 |is distr|ibuted i|
|000018e0| 6e 20 74 68 65 20 68 6f | 70 65 20 74 68 61 74 20 |n the ho|pe that |
|000018f0| 69 74 20 77 69 6c 6c 20 | 62 65 20 75 73 65 66 75 |it will |be usefu|
|00001900| 6c 2c 06 52 65 6d 20 20 | 20 62 75 74 20 57 49 54 |l,.Rem | but WIT|
|00001910| 48 4f 55 54 20 41 4e 59 | 20 57 41 52 52 41 4e 54 |HOUT ANY| WARRANT|
|00001920| 59 3b 20 77 69 74 68 6f | 75 74 20 65 76 65 6e 20 |Y; witho|ut even |
|00001930| 74 68 65 20 69 6d 70 6c | 69 65 64 20 77 61 72 72 |the impl|ied warr|
|00001940| 61 6e 74 79 20 6f 66 06 | 52 65 6d 20 20 20 4d 45 |anty of.|Rem ME|
|00001950| 52 43 48 41 4e 54 41 42 | 49 4c 49 54 59 20 6f 72 |RCHANTAB|ILITY or|
|00001960| 20 46 49 54 4e 45 53 53 | 20 46 4f 52 20 41 20 50 | FITNESS| FOR A P|
|00001970| 41 52 54 49 43 55 4c 41 | 52 20 50 55 52 50 4f 53 |ARTICULA|R PURPOS|
|00001980| 45 2e 06 52 65 6d 20 20 | 20 53 65 65 20 74 68 65 |E..Rem | See the|
|00001990| 20 47 4e 55 20 47 65 6e | 65 72 61 6c 20 50 75 62 | GNU Gen|eral Pub|
|000019a0| 6c 69 63 20 4c 69 63 65 | 6e 73 65 20 66 6f 72 20 |lic Lice|nse for |
|000019b0| 6d 6f 72 65 20 64 65 74 | 61 69 6c 73 2e 06 52 65 |more det|ails..Re|
|000019c0| 6d 06 52 65 6d 20 20 20 | 59 6f 75 20 73 68 6f 75 |m.Rem |You shou|
|000019d0| 6c 64 20 68 61 76 65 20 | 72 65 63 65 69 76 65 64 |ld have |received|
|000019e0| 20 61 20 63 6f 70 79 20 | 6f 66 20 74 68 65 20 47 | a copy |of the G|
|000019f0| 4e 55 20 47 65 6e 65 72 | 61 6c 20 50 75 62 6c 69 |NU Gener|al Publi|
|00001a00| 63 20 4c 69 63 65 6e 73 | 65 06 52 65 6d 20 20 20 |c Licens|e.Rem |
|00001a10| 61 6c 6f 6e 67 20 77 69 | 74 68 20 74 68 69 73 20 |along wi|th this |
|00001a20| 70 72 6f 67 72 61 6d 3b | 20 69 66 20 6e 6f 74 2c |program;| if not,|
|00001a30| 20 77 72 69 74 65 20 74 | 6f 20 74 68 65 20 46 72 | write t|o the Fr|
|00001a40| 65 65 20 53 6f 66 74 77 | 61 72 65 20 46 6f 75 6e |ee Softw|are Foun|
|00001a50| 64 61 74 69 6f 6e 2c 06 | 52 65 6d 20 20 20 49 6e |dation,.|Rem In|
|00001a60| 63 2e 2c 20 35 39 20 54 | 65 6d 70 6c 65 20 50 6c |c., 59 T|emple Pl|
|00001a70| 61 63 65 20 2d 20 53 75 | 69 74 65 20 33 33 30 2c |ace - Su|ite 330,|
|00001a80| 20 42 6f 73 74 6f 6e 2c | 20 4d 41 20 20 30 32 31 | Boston,| MA 021|
|00001a90| 31 31 2d 31 33 30 37 2c | 20 55 53 41 2e 06 52 65 |11-1307,| USA..Re|
|00001aa0| 6d 06 50 52 4f 43 20 77 | 63 25 3a 28 6e 25 29 06 |m.PROC w|c%:(n%).|
|00001ab0| 4c 4f 43 41 4c 20 69 25 | 2c 72 65 74 25 2c 64 24 |LOCAL i%|,ret%,d$|
|00001ac0| 28 32 35 35 29 2c 68 61 | 6e 64 6c 65 25 2c 74 78 |(255),ha|ndle%,tx|
|00001ad0| 74 24 28 32 35 35 29 2c | 70 25 06 4c 4f 43 41 4c |t$(255),|p%.LOCAL|
|00001ae0| 20 6c 69 6e 65 73 26 2c | 77 6f 72 64 73 26 2c 63 | lines&,|words&,c|
|00001af0| 68 61 72 73 26 2c 73 69 | 7a 65 26 06 09 4f 4e 45 |hars&,si|ze&..ONE|
|00001b00| 52 52 20 45 72 72 54 72 | 61 70 3a 3a 06 09 49 46 |RR ErrTr|ap::..IF|
|00001b10| 20 6e 25 3c 32 20 41 4e | 44 20 5f 69 6e 25 3d 30 | n%<2 AN|D _in%=0|
|00001b20| 09 52 65 6d 20 6e 6f 20 | 61 72 67 73 20 61 6e 64 |.Rem no |args and|
|00001b30| 20 6e 6f 20 72 65 64 69 | 72 65 63 74 65 64 20 69 | no redi|rected i|
|00001b40| 6e 70 75 74 06 09 09 50 | 52 49 4e 54 20 22 55 73 |nput...P|RINT "Us|
|00001b50| 61 67 65 3a 20 77 63 20 | 3c 66 69 6c 65 6e 61 6d |age: wc |<filenam|
|00001b60| 65 3e 22 06 09 09 52 45 | 54 55 52 4e 06 09 45 4e |e>"...RE|TURN..EN|
|00001b70| 44 49 46 06 09 69 25 3d | 32 09 09 52 65 6d 20 61 |DIF..i%=|2..Rem a|
|00001b80| 72 67 76 26 28 32 29 20 | 69 73 20 74 68 65 20 46 |rgv&(2) |is the F|
|00001b90| 49 52 53 54 20 61 72 67 | 75 6d 65 6e 74 20 61 66 |IRST arg|ument af|
|00001ba0| 74 65 72 20 74 68 65 20 | 63 6f 6d 6d 61 6e 20 64 |ter the |comman d|
|00001bb0| 06 09 49 46 20 5f 69 6e | 25 09 09 09 09 52 65 6d |..IF _in|%....Rem|
|00001bc0| 20 69 6e 70 75 74 20 69 | 73 20 72 65 64 69 72 65 | input i|s redire|
|00001bd0| 63 74 65 64 2c 20 73 6f | 20 73 65 74 20 74 68 65 |cted, so| set the|
|00001be0| 20 66 69 6c 65 06 09 09 | 68 61 6e 64 6c 65 25 3d | file...|handle%=|
|00001bf0| 5f 69 6e 25 09 52 65 6d | 20 68 61 6e 64 6c 65 20 |_in%.Rem| handle |
|00001c00| 74 6f 20 53 48 69 6e 25 | 20 61 6e 64 20 6a 75 6d |to SHin%| and jum|
|00001c10| 70 20 6f 76 65 72 20 74 | 68 65 06 09 09 47 4f 54 |p over t|he...GOT|
|00001c20| 4f 20 6c 6f 6f 70 3a 3a | 09 09 52 65 6d 20 66 69 |O loop::|..Rem fi|
|00001c30| 6c 65 20 68 61 6e 64 6c | 69 6e 67 20 72 6f 75 74 |le handl|ing rout|
|00001c40| 69 6e 65 73 2e 06 09 45 | 4e 44 49 46 06 09 57 48 |ines...E|NDIF..WH|
|00001c50| 49 4c 45 20 69 25 3c 3d | 6e 25 09 09 52 65 6d 20 |ILE i%<=|n%..Rem |
|00001c60| 77 68 69 6c 73 74 20 77 | 65 20 68 61 76 65 20 6d |whilst w|e have m|
|00001c70| 6f 72 65 20 61 72 67 75 | 6d 65 6e 74 73 06 09 09 |ore argu|ments...|
|00001c80| 52 65 6d 20 70 61 72 73 | 65 20 74 68 65 20 69 25 |Rem pars|e the i%|
|00001c90| 20 74 68 20 61 72 67 75 | 6d 65 6e 74 20 74 6f 20 | th argu|ment to |
|00001ca0| 63 68 65 63 6b 20 69 66 | 20 69 74 27 73 20 61 20 |check if| it's a |
|00001cb0| 76 61 6c 69 64 20 66 69 | 6c 65 06 09 09 72 65 74 |valid fi|le...ret|
|00001cc0| 25 3d 46 70 61 72 73 65 | 25 3a 28 41 44 44 52 28 |%=Fparse|%:(ADDR(|
|00001cd0| 64 24 29 2c 50 45 45 4b | 24 28 61 72 67 76 26 28 |d$),PEEK|$(argv&(|
|00001ce0| 69 25 29 29 29 06 09 09 | 49 46 20 72 65 74 25 3c |i%)))...|IF ret%<|
|00001cf0| 30 09 09 09 09 09 52 65 | 6d 20 65 72 72 6f 72 20 |0.....Re|m error |
|00001d00| 6f 70 65 6e 69 6e 67 20 | 74 68 69 73 20 66 69 6c |opening |this fil|
|00001d10| 65 06 09 09 09 5f 45 72 | 72 3a 28 69 25 2c 72 65 |e...._Er|r:(i%,re|
|00001d20| 74 25 29 06 09 09 45 4c | 53 45 49 46 20 72 65 74 |t%)...EL|SEIF ret|
|00001d30| 25 20 41 4e 44 20 31 36 | 09 52 65 6d 20 74 68 69 |% AND 16|.Rem thi|
|00001d40| 73 20 69 73 20 61 20 64 | 69 72 65 63 74 6f 72 79 |s is a d|irectory|
|00001d50| 06 09 09 09 5f 45 72 72 | 3a 28 69 25 2c 33 29 06 |...._Err|:(i%,3).|
|00001d60| 09 09 45 4c 53 45 06 09 | 09 09 72 65 74 25 3d 49 |..ELSE..|..ret%=I|
|00001d70| 4f 4f 50 45 4e 28 68 61 | 6e 64 6c 65 25 2c 64 24 |OOPEN(ha|ndle%,d$|
|00001d80| 2c 24 30 36 30 30 29 09 | 09 52 65 6d 20 72 61 6e |,$0600).|.Rem ran|
|00001d90| 64 6f 6d 20 61 63 63 65 | 73 73 20 6f 70 65 6e 69 |dom acce|ss openi|
|00001da0| 6e 67 20 66 69 72 73 74 | 06 09 09 09 49 46 20 72 |ng first|....IF r|
|00001db0| 65 74 25 06 09 09 09 09 | 5f 45 72 72 3a 28 69 25 |et%.....|_Err:(i%|
|00001dc0| 2c 72 65 74 25 29 06 09 | 09 09 45 4e 44 49 46 06 |,ret%)..|..ENDIF.|
|00001dd0| 09 09 09 49 4f 53 45 45 | 4b 28 68 61 6e 64 6c 65 |...IOSEE|K(handle|
|00001de0| 25 2c 32 2c 73 69 7a 65 | 26 29 09 09 09 09 09 09 |%,2,size|&)......|
|00001df0| 09 09 52 65 6d 20 67 65 | 74 20 73 69 7a 65 06 09 |..Rem ge|t size..|
|00001e00| 09 09 49 4f 43 4c 4f 53 | 45 28 68 61 6e 64 6c 65 |..IOCLOS|E(handle|
|00001e10| 25 29 06 09 09 09 68 61 | 6e 64 6c 65 25 3d 30 06 |%)....ha|ndle%=0.|
|00001e20| 09 09 09 52 45 4d 20 6f | 70 65 6e 3d 24 30 30 30 |...REM o|pen=$000|
|00001e30| 30 2c 20 74 65 78 74 3d | 24 30 30 32 30 2c 20 73 |0, text=|$0020, s|
|00001e40| 68 61 72 65 3d 24 30 34 | 30 30 06 09 09 09 72 65 |hare=$04|00....re|
|00001e50| 74 25 3d 49 4f 4f 50 45 | 4e 28 68 61 6e 64 6c 65 |t%=IOOPE|N(handle|
|00001e60| 25 2c 64 24 2c 24 30 34 | 32 30 29 06 09 09 09 49 |%,d$,$04|20)....I|
|00001e70| 46 20 72 65 74 25 06 09 | 09 09 09 5f 45 72 72 3a |F ret%..|..._Err:|
|00001e80| 28 69 25 2c 72 65 74 25 | 29 06 09 09 09 45 4c 53 |(i%,ret%|)....ELS|
|00001e90| 45 06 09 09 09 09 6c 69 | 6e 65 73 26 3d 30 09 09 |E.....li|nes&=0..|
|00001ea0| 09 52 65 6d 20 69 6e 69 | 74 69 61 6c 69 7a 65 20 |.Rem ini|tialize |
|00001eb0| 63 6f 75 6e 74 65 72 73 | 06 09 09 09 09 77 6f 72 |counters|.....wor|
|00001ec0| 64 73 26 3d 30 06 09 09 | 09 09 63 68 61 72 73 26 |ds&=0...|..chars&|
|00001ed0| 3d 30 06 6c 6f 6f 70 3a | 3a 09 09 57 48 49 4c 45 |=0.loop:|:..WHILE|
|00001ee0| 20 31 06 09 09 09 09 09 | 49 4f 59 49 45 4c 44 06 | 1......|IOYIELD.|
|00001ef0| 09 09 09 09 09 49 46 20 | 5f 73 74 61 74 25 3c 3e |.....IF |_stat%<>|
|00001f00| 2d 34 36 06 09 09 09 09 | 09 09 49 46 20 5f 6b 65 |-46.....|..IF _ke|
|00001f10| 79 25 28 31 29 3d 32 37 | 06 09 09 09 09 09 09 09 |y%(1)=27|........|
|00001f20| 47 4f 54 4f 20 51 75 69 | 74 3a 3a 06 09 09 09 09 |GOTO Qui|t::.....|
|00001f30| 09 09 45 4c 53 45 06 09 | 09 09 09 09 09 09 4b 45 |..ELSE..|......KE|
|00001f40| 59 41 28 5f 73 74 61 74 | 25 2c 5f 6b 65 79 25 28 |YA(_stat|%,_key%(|
|00001f50| 29 29 06 09 09 09 09 09 | 09 45 4e 44 49 46 06 09 |))......|.ENDIF..|
|00001f60| 09 09 09 09 45 4e 44 49 | 46 06 09 09 09 09 09 52 |....ENDI|F......R|
|00001f70| 65 6d 20 72 65 61 64 20 | 74 68 65 20 6e 65 78 74 |em read |the next|
|00001f80| 20 6c 69 6e 65 20 6f 66 | 20 69 6e 70 75 74 2c 20 | line of| input, |
|00001f90| 75 70 20 74 6f 20 32 35 | 34 20 63 68 61 72 73 06 |up to 25|4 chars.|
|00001fa0| 09 09 09 09 09 72 65 74 | 25 3d 49 4f 52 45 41 44 |.....ret|%=IOREAD|
|00001fb0| 28 68 61 6e 64 6c 65 25 | 2c 41 44 44 52 28 74 78 |(handle%|,ADDR(tx|
|00001fc0| 74 24 29 2b 31 2c 32 35 | 35 29 06 09 09 09 09 09 |t$)+1,25|5)......|
|00001fd0| 49 46 20 72 65 74 25 3c | 30 09 09 09 09 09 52 65 |IF ret%<|0.....Re|
|00001fe0| 6d 20 61 6e 20 65 72 72 | 6f 72 20 6f 66 20 73 6f |m an err|or of so|
|00001ff0| 6d 65 20 73 6f 72 74 06 | 09 09 09 09 09 09 49 46 |me sort.|......IF|
|00002000| 20 72 65 74 25 3c 3e 2d | 33 36 09 09 52 65 6d 20 | ret%<>-|36..Rem |
|00002010| 2d 33 36 20 6d 65 72 65 | 6c 79 20 69 6e 64 69 63 |-36 mere|ly indic|
|00002020| 61 74 65 73 20 45 4f 46 | 06 09 09 09 09 09 09 09 |ates EOF|........|
|00002030| 5f 45 72 72 3a 28 69 25 | 2c 72 65 74 25 29 09 52 |_Err:(i%|,ret%).R|
|00002040| 65 6d 20 61 6e 6f 74 68 | 65 72 20 65 72 72 6f 72 |em anoth|er error|
|00002050| 2c 20 64 69 73 70 6c 61 | 79 06 09 09 09 09 09 09 |, displa|y.......|
|00002060| 45 4e 44 49 46 06 09 09 | 09 09 09 09 47 4f 54 4f |ENDIF...|....GOTO|
|00002070| 20 45 6e 64 66 69 6c 65 | 3a 3a 06 09 09 09 09 09 | Endfile|::......|
|00002080| 45 4e 44 49 46 06 09 09 | 09 09 09 50 4f 4b 45 42 |ENDIF...|...POKEB|
|00002090| 20 41 44 44 52 28 74 78 | 74 24 29 2c 72 65 74 25 | ADDR(tx|t$),ret%|
|000020a0| 09 09 52 65 6d 20 73 65 | 74 20 6c 65 6e 67 74 68 |..Rem se|t length|
|000020b0| 20 6f 66 20 69 6e 70 75 | 74 06 09 09 09 09 09 63 | of inpu|t......c|
|000020c0| 68 61 72 73 26 3d 63 68 | 61 72 73 26 2b 72 65 74 |hars&=ch|ars&+ret|
|000020d0| 25 2b 32 09 09 52 65 6d | 20 2b 20 30 44 20 2b 20 |%+2..Rem| + 0D + |
|000020e0| 30 41 06 09 09 09 09 09 | 6c 69 6e 65 73 26 3d 6c |0A......|lines&=l|
|000020f0| 69 6e 65 73 26 2b 31 06 | 09 09 09 09 09 57 48 49 |ines&+1.|.....WHI|
|00002100| 4c 45 20 4c 45 4e 28 74 | 78 74 24 29 06 09 09 09 |LE LEN(t|xt$)....|
|00002110| 09 09 09 70 25 3d 4c 4f | 43 28 74 78 74 24 2c 22 |...p%=LO|C(txt$,"|
|00002120| 20 22 29 06 09 09 09 09 | 09 09 49 46 20 70 25 3e | ").....|..IF p%>|
|00002130| 31 09 52 65 6d 20 6e 6f | 74 20 62 6c 61 6e 6b 20 |1.Rem no|t blank |
|00002140| 66 69 72 73 74 06 09 09 | 09 09 09 09 09 77 6f 72 |first...|.....wor|
|00002150| 64 73 26 3d 77 6f 72 64 | 73 26 2b 31 06 09 09 09 |ds&=word|s&+1....|
|00002160| 09 09 09 45 4c 53 45 49 | 46 20 70 25 3d 30 20 41 |...ELSEI|F p%=0 A|
|00002170| 4e 44 20 4c 45 4e 28 74 | 78 74 24 29 06 09 09 09 |ND LEN(t|xt$)....|
|00002180| 09 09 09 09 77 6f 72 64 | 73 26 3d 77 6f 72 64 73 |....word|s&=words|
|00002190| 26 2b 31 06 09 09 09 09 | 09 09 09 42 52 45 41 4b |&+1.....|...BREAK|
|000021a0| 06 09 09 09 09 09 09 45 | 4e 44 49 46 06 09 09 09 |.......E|NDIF....|
|000021b0| 09 09 09 74 78 74 24 3d | 52 49 47 48 54 24 28 74 |...txt$=|RIGHT$(t|
|000021c0| 78 74 24 2c 4c 45 4e 28 | 74 78 74 24 29 2d 70 25 |xt$,LEN(|txt$)-p%|
|000021d0| 29 06 09 09 09 09 09 45 | 4e 44 57 48 06 09 09 09 |)......E|NDWH....|
|000021e0| 09 45 4e 44 57 48 06 45 | 6e 64 46 69 6c 65 3a 3a |.ENDWH.E|ndFile::|
|000021f0| 09 74 78 74 24 3d 6e 75 | 6d 24 28 6c 69 6e 65 73 |.txt$=nu|m$(lines|
|00002200| 26 2c 31 30 29 2b 22 20 | 6c 69 6e 65 28 73 29 2c |&,10)+" |line(s),|
|00002210| 20 22 2b 4e 55 4d 24 28 | 77 6f 72 64 73 26 2c 31 | "+NUM$(|words&,1|
|00002220| 30 29 2b 22 20 77 6f 72 | 64 28 73 29 2c 20 22 06 |0)+" wor|d(s), ".|
|00002230| 09 09 09 09 49 46 20 68 | 61 6e 64 6c 65 25 3c 3e |....IF h|andle%<>|
|00002240| 5f 69 6e 25 09 09 09 09 | 52 65 6d 20 6f 6e 6c 79 |_in%....|Rem only|
|00002250| 20 63 6c 6f 73 65 20 69 | 6e 70 75 74 20 66 69 6c | close i|nput fil|
|00002260| 65 06 09 09 09 09 09 72 | 65 74 25 3d 49 4f 43 4c |e......r|et%=IOCL|
|00002270| 4f 53 45 28 68 61 6e 64 | 6c 65 25 29 09 09 52 65 |OSE(hand|le%)..Re|
|00002280| 6d 20 69 66 20 69 74 27 | 73 20 6e 6f 74 20 53 48 |m if it'|s not SH|
|00002290| 69 6e 25 06 09 09 09 09 | 09 74 78 74 24 3d 74 78 |in%.....|.txt$=tx|
|000022a0| 74 24 2b 4e 55 4d 24 28 | 73 69 7a 65 26 2c 31 30 |t$+NUM$(|size&,10|
|000022b0| 29 2b 22 20 63 68 61 72 | 73 20 20 22 2b 50 72 50 |)+" char|s "+PrP|
|000022c0| 41 54 48 24 3a 28 64 24 | 29 06 09 09 09 09 45 4c |ATH$:(d$|).....EL|
|000022d0| 53 45 06 09 09 09 09 09 | 74 78 74 24 3d 74 78 74 |SE......|txt$=txt|
|000022e0| 24 2b 4e 55 4d 24 28 63 | 68 61 72 73 26 2c 31 30 |$+NUM$(c|hars&,10|
|000022f0| 29 2b 22 20 63 68 61 72 | 73 22 06 09 09 09 09 45 |)+" char|s".....E|
|00002300| 4e 44 49 46 06 09 09 09 | 09 66 70 72 69 6e 74 25 |NDIF....|.fprint%|
|00002310| 3a 28 74 78 74 24 29 09 | 09 52 65 6d 20 75 73 65 |:(txt$).|.Rem use|
|00002320| 20 66 70 72 69 6e 74 25 | 20 73 6f 20 6f 75 74 70 | fprint%| so outp|
|00002330| 75 74 20 63 61 6e 20 62 | 65 06 09 09 09 45 4e 44 |ut can b|e....END|
|00002340| 49 46 09 09 09 09 09 09 | 52 65 6d 20 72 65 64 69 |IF......|Rem redi|
|00002350| 72 65 63 74 65 64 06 09 | 09 45 4e 44 49 46 06 09 |rected..|.ENDIF..|
|00002360| 09 69 25 3d 69 25 2b 31 | 06 09 45 4e 44 57 48 06 |.i%=i%+1|..ENDWH.|
|00002370| 09 52 45 54 55 52 4e 06 | 45 72 72 54 72 61 70 3a |.RETURN.|ErrTrap:|
|00002380| 3a 06 09 4f 4e 45 52 52 | 20 6f 66 66 06 09 50 52 |:..ONERR| off..PR|
|00002390| 49 4e 54 20 65 72 72 24 | 3a 28 45 52 52 29 06 71 |INT err$|:(ERR).q|
|000023a0| 75 69 74 3a 3a 09 52 65 | 6d 20 63 61 6c 6c 65 64 |uit::.Re|m called|
|000023b0| 20 6f 6e 20 65 73 63 61 | 70 65 20 6b 65 79 2c 20 | on esca|pe key, |
|000023c0| 61 6c 73 6f 20 6f 6e 20 | 61 6e 20 65 72 72 6f 72 |also on |an error|
|000023d0| 06 09 49 46 20 68 61 6e | 64 6c 65 25 20 41 4e 44 |..IF han|dle% AND|
|000023e0| 20 68 61 6e 64 6c 65 25 | 3c 3e 5f 69 6e 25 06 09 | handle%|<>_in%..|
|000023f0| 09 49 4f 43 4c 4f 53 45 | 28 68 61 6e 64 6c 65 25 |.IOCLOSE|(handle%|
|00002400| 29 06 09 45 4e 44 49 46 | 06 09 52 45 54 55 52 4e |)..ENDIF|..RETURN|
|00002410| 06 45 4e 44 50 06 06 01 | 00 00 00 00 00 00 00 01 |.ENDP...|........|
|00002420| 00 00 00 00 00 00 00 01 | 00 00 00 d0 02 00 00 d0 |........|........|
|00002430| 02 00 00 a0 05 00 00 a0 | 05 00 00 a0 05 00 00 a0 |........|........|
|00002440| 05 00 00 01 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002450| 5c 00 00 10 63 00 00 10 | 21 0d 00 00 65 00 00 10 |\...c...|!...e...|
|00002460| 00 00 00 00 66 00 00 10 | 00 00 00 00 64 00 00 10 |....f...|....d...|
|00002470| 02 06 01 00 00 00 00 00 | 00 00 00 00 00 00 00 5c |........|.......\|
|00002480| 00 00 10 63 00 00 10 29 | 0d 00 00 65 00 00 10 00 |...c...)|...e....|
|00002490| 00 00 00 66 00 00 10 00 | 00 00 00 64 00 00 10 02 |...f....|...d....|
|000024a0| 06 fd 00 00 10 82 2e 00 | 00 c6 41 00 00 00 85 00 |........|..A.....|
|000024b0| 00 10 2a 54 65 78 74 45 | 64 2e 61 70 70 06 85 00 |..*TextE|d.app...|
|000024c0| 00 10 14 00 00 00 05 01 | 00 10 31 0d 00 00 89 00 |........|..1.....|
|000024d0| 00 10 b8 0d 00 00 37 00 | 00 10 6d 00 00 10 85 00 |......7.|..m.....|
|000024e0| 00 10 f4 63 08 55 cc 03 | 00 00 5c 00 00 10 63 00 |...c.U..|..\...c.|
|000024f0| 00 10 00 00 00 00 64 00 | 00 10 01 0c 72 65 6d 20 |......d.|....rem |
|00002500| 53 59 53 52 41 4d 31 2e | 4f 58 48 20 76 65 72 73 |SYSRAM1.|OXH vers|
|00002510| 69 6f 6e 20 31 2e 30 06 | 72 65 6d 20 48 65 61 64 |ion 1.0.|rem Head|
|00002520| 65 72 20 46 69 6c 65 20 | 66 6f 72 20 53 59 53 52 |er File |for SYSR|
|00002530| 41 4d 31 2e 4f 50 58 06 | 72 65 6d 20 28 63 29 43 |AM1.OPX.|rem (c)C|
|00002540| 6f 70 79 72 69 67 68 74 | 20 50 73 69 6f 6e 20 50 |opyright| Psion P|
|00002550| 4c 43 20 31 39 39 37 06 | 63 6f 6e 73 74 20 4b 55 |LC 1997.|const KU|
|00002560| 69 64 4f 70 78 53 79 73 | 52 41 4d 31 26 3d 26 31 |idOpxSys|RAM1&=&1|
|00002570| 30 30 30 30 34 30 35 06 | 63 6f 6e 73 74 20 4b 4f |0000405.|const KO|
|00002580| 70 78 53 79 73 52 41 4d | 31 56 65 72 73 69 6f 6e |pxSysRAM|1Version|
|00002590| 25 3d 24 31 30 30 06 06 | 44 45 43 4c 41 52 45 20 |%=$100..|DECLARE |
|000025a0| 4f 50 58 20 53 59 53 52 | 41 4d 31 2c 4b 55 69 64 |OPX SYSR|AM1,KUid|
|000025b0| 4f 70 78 53 79 73 52 41 | 4d 31 26 2c 4b 4f 70 78 |OpxSysRA|M1&,KOpx|
|000025c0| 53 79 73 52 41 4d 31 56 | 65 72 73 69 6f 6e 25 06 |SysRAM1V|ersion%.|
|000025d0| 20 20 20 20 44 62 46 69 | 6e 64 26 3a 28 73 74 72 | DbFi|nd&:(str|
|000025e0| 69 6e 67 24 29 20 3a 20 | 31 06 09 44 62 46 69 6e |ing$) : |1..DbFin|
|000025f0| 64 46 69 65 6c 64 26 3a | 28 73 74 72 69 6e 67 24 |dField&:|(string$|
|00002600| 2c 73 74 61 72 74 26 2c | 6e 75 6d 26 2c 66 6c 61 |,start&,|num&,fla|
|00002610| 67 73 26 29 20 3a 20 32 | 06 09 47 65 74 54 68 72 |gs&) : 2|..GetThr|
|00002620| 65 61 64 49 64 46 72 6f | 6d 43 61 70 74 69 6f 6e |eadIdFro|mCaption|
|00002630| 26 3a 28 43 61 70 74 69 | 6f 6e 24 2c 20 42 59 52 |&:(Capti|on$, BYR|
|00002640| 45 46 20 70 72 65 76 69 | 6f 75 73 26 29 20 20 3a |EF previ|ous&) :|
|00002650| 33 06 09 45 78 74 65 72 | 6e 61 6c 50 6f 77 65 72 |3..Exter|nalPower|
|00002660| 26 3a 20 20 3a 34 06 09 | 4c 43 4e 65 61 72 65 73 |&: :4..|LCNeares|
|00002670| 74 4c 61 6e 67 75 61 67 | 65 46 69 6c 65 24 3a 28 |tLanguag|eFile$:(|
|00002680| 66 69 6c 65 24 29 20 3a | 35 06 09 4c 43 4c 61 6e |file$) :|5..LCLan|
|00002690| 67 75 61 67 65 26 3a 20 | 20 3a 36 06 09 4f 73 56 |guage&: | :6..OsV|
|000026a0| 65 72 73 69 6f 6e 4d 61 | 6a 6f 72 26 3a 20 20 3a |ersionMa|jor&: :|
|000026b0| 37 09 06 09 4f 73 56 65 | 72 73 69 6f 6e 4d 69 6e |7...OsVe|rsionMin|
|000026c0| 6f 72 26 3a 20 20 3a 38 | 06 09 4f 73 56 65 72 73 |or&: :8|..OsVers|
|000026d0| 69 6f 6e 42 75 69 6c 64 | 26 3a 20 20 3a 39 06 09 |ionBuild|&: :9..|
|000026e0| 52 6f 6d 56 65 72 73 69 | 6f 6e 4d 61 6a 6f 72 26 |RomVersi|onMajor&|
|000026f0| 3a 20 20 3a 31 30 06 09 | 52 6f 6d 56 65 72 73 69 |: :10..|RomVersi|
|00002700| 6f 6e 4d 69 6e 6f 72 26 | 3a 20 20 3a 31 31 06 09 |onMinor&|: :11..|
|00002710| 52 6f 6d 56 65 72 73 69 | 6f 6e 42 75 69 6c 64 26 |RomVersi|onBuild&|
|00002720| 3a 20 20 3a 31 32 06 09 | 47 65 74 46 69 6c 65 53 |: :12..|GetFileS|
|00002730| 69 7a 65 26 3a 28 66 69 | 6c 65 24 29 20 3a 31 33 |ize&:(fi|le$) :13|
|00002740| 06 09 44 54 44 61 79 4e | 61 6d 65 46 75 6c 6c 24 |..DTDayN|ameFull$|
|00002750| 3a 28 44 61 79 26 29 20 | 3a 31 34 06 09 44 54 4d |:(Day&) |:14..DTM|
|00002760| 6f 6e 74 68 4e 61 6d 65 | 46 75 6c 6c 24 3a 28 4d |onthName|Full$:(M|
|00002770| 6f 6e 74 68 26 29 20 3a | 31 35 06 09 44 54 49 73 |onth&) :|15..DTIs|
|00002780| 4c 65 61 70 59 65 61 72 | 26 3a 28 79 65 61 72 26 |LeapYear|&:(year&|
|00002790| 29 20 3a 31 36 06 09 4c | 43 44 61 74 65 53 65 70 |) :16..L|CDateSep|
|000027a0| 61 72 61 74 6f 72 24 3a | 28 69 6e 64 65 78 26 29 |arator$:|(index&)|
|000027b0| 20 3a 31 37 06 09 4c 43 | 54 69 6d 65 53 65 70 61 | :17..LC|TimeSepa|
|000027c0| 72 61 74 6f 72 24 3a 28 | 69 6e 64 65 78 26 29 20 |rator$:(|index&) |
|000027d0| 3a 31 38 06 09 4c 43 41 | 6d 50 6d 53 70 61 63 65 |:18..LCA|mPmSpace|
|000027e0| 42 65 74 77 65 65 6e 26 | 3a 20 3a 31 39 06 45 4e |Between&|: :19.EN|
|000027f0| 44 20 44 45 43 4c 41 52 | 45 06 06 06 01 00 00 00 |D DECLAR|E.......|
|00002800| 00 00 00 00 01 00 00 00 | 00 00 00 00 01 00 00 00 |........|........|
|00002810| d0 02 00 00 d0 02 00 00 | a0 05 00 00 a0 05 00 00 |........|........|
|00002820| a0 05 00 00 a0 05 00 00 | 01 00 00 00 00 00 00 00 |........|........|
|00002830| 00 00 00 00 00 5c 00 00 | 10 63 00 00 10 26 03 00 |.....\..|.c...&..|
|00002840| 00 65 00 00 10 00 00 00 | 00 66 00 00 10 00 00 00 |.e......|.f......|
|00002850| 00 64 00 00 10 02 06 01 | 00 00 00 00 00 00 00 00 |.d......|........|
|00002860| 00 00 00 00 5c 00 00 10 | 63 00 00 10 2e 03 00 00 |....\...|c.......|
|00002870| 65 00 00 10 00 00 00 00 | 66 00 00 10 00 00 00 00 |e.......|f.......|
|00002880| 64 00 00 10 02 06 fd 00 | 00 10 82 2e 00 00 c6 41 |d.......|.......A|
|00002890| 00 00 00 85 00 00 10 2a | 54 65 78 74 45 64 2e 61 |.......*|TextEd.a|
|000028a0| 70 70 06 85 00 00 10 14 | 00 00 00 05 01 00 10 36 |pp......|.......6|
|000028b0| 03 00 00 89 00 00 10 bd | 03 00 00 37 00 00 10 42 |........|...7...B|
|000028c0| 00 00 10 00 00 00 00 39 | 64 39 47 ee 04 00 00 4b |.......9|d9G....K|
|000028d0| 01 00 00 28 00 00 00 30 | 00 00 00 30 00 00 00 00 |...(...0|...0....|
|000028e0| 00 00 00 00 00 00 00 02 | 00 00 00 00 00 00 00 00 |........|........|
|000028f0| 00 00 00 01 00 00 00 ff | 0f 03 00 fe 55 01 03 00 |........|....U...|
|00002900| fd c0 03 14 02 00 f7 55 | 01 00 00 40 55 01 03 f4 |.......U|...@U...|
|00002910| 08 ff fa 03 03 34 20 88 | fc 05 ff fd 03 03 f4 07 |.....4 .|........|
|00002920| ff fa 55 03 03 f4 80 c8 | 06 ff fd 03 03 f4 07 ff |..U.....|........|
|00002930| f6 55 03 03 f4 20 fe f0 | 20 fe f0 02 ff fd 03 03 |.U... ..| .......|
|00002940| f4 07 ff f6 55 03 03 f4 | 88 ff f2 08 ff f0 02 ff |....U...|........|
|00002950| fd 03 03 f4 07 ff f6 55 | 03 03 f4 88 f8 f1 08 fe |.......U|........|
|00002960| f2 02 ff fd 03 03 f4 07 | ff f0 d7 03 03 f4 60 c8 |........|......`.|
|00002970| 22 23 23 fe ff ff 55 03 | 03 f4 07 ff fa 55 03 03 |"##...U.|.....U..|
|00002980| 34 88 c8 05 ff fc d7 03 | 03 f4 08 ff fd 03 03 54 |4.......|.......T|
|00002990| 08 55 fd 01 03 14 02 f0 | ff c0 02 0f fc fc 50 01 |.U......|......P.|
|000029a0| 03 0a 00 ff d3 02 d1 03 | 74 ff 34 02 1d ff 53 02 |........|t.4...S.|
|000029b0| 51 03 54 ff 14 02 15 ff | 03 0a 00 ff 13 0a 15 ff |Q.T.....|........|
|000029c0| 13 0a 1d ff 03 0a 15 ff | 03 09 00 fe 14 53 09 54 |........|.....S.T|
|000029d0| fe 14 f3 09 74 fe 14 53 | 09 54 fe 14 03 0a 00 ff |....t..S|.T......|
|000029e0| 43 09 45 fe 05 43 09 47 | fe 07 43 09 45 fe 05 03 |C.E..C.G|..C.E...|
|000029f0| 0a 00 ff 43 02 45 02 55 | 03 45 fe 05 43 02 47 02 |...C.E.U|.E..C.G.|
|00002a00| 55 ff 45 02 47 fe 07 4f | 02 45 02 55 03 45 fe c5 |U.E.G..O|.E.U.E..|
|00002a10| 0f 09 00 ff c0 69 ff fe | ff ff cd 00 00 00 28 00 |.....i..|......(.|
|00002a20| 00 00 30 00 00 00 30 00 | 00 00 00 00 00 00 00 00 |..0...0.|........|
|00002a30| 00 00 02 00 00 00 00 00 | 00 00 00 00 00 00 01 00 |........|........|
|00002a40| 00 00 ff 0f 09 00 fe c0 | 03 0a 00 ff 03 0a 00 ff |........|........|
|00002a50| 03 0a 00 ff 03 0a 00 ff | 03 0a 00 ff 03 0a 00 ff |........|........|
|00002a60| 03 0a 00 ff 03 0a 00 ff | 03 0a 00 ff 03 0a 00 ff |........|........|
|00002a70| 03 0a 00 ff 03 0a 00 ff | 03 0a 00 ff 03 0a 00 ff |........|........|
|00002a80| 03 0a 00 ff 03 0a 00 ff | 03 0a 00 ff 03 0a 00 ff |........|........|
|00002a90| 03 0a 00 ff 03 0a 00 ff | 03 0a 00 ff 03 0a 00 ff |........|........|
|00002aa0| 03 0a 00 ff 03 0a 00 ff | 03 0a 00 ff 03 0a 00 ff |........|........|
|00002ab0| 03 0a 00 ff 03 0a 00 ff | 03 0a 00 ff 03 0a 00 ff |........|........|
|00002ac0| 03 0a 00 ff 03 0a 00 ff | 03 0a 00 ff 03 0a 00 ff |........|........|
|00002ad0| 03 0a 00 ff 03 0a 00 ff | 0f 09 00 fe c0 0f 09 00 |........|........|
|00002ae0| ff c0 69 ff fe ff ff e6 | 00 00 00 28 00 00 00 20 |..i.....|...(... |
|00002af0| 00 00 00 20 00 00 00 00 | 00 00 00 00 00 00 00 02 |... ....|........|
|00002b00| 00 00 00 00 00 00 00 00 | 00 00 00 01 00 00 00 f6 |........|........|
|00002b10| 0f 01 00 50 01 00 50 c5 | 03 fd 04 ff f5 0f 03 0d |...P..P.|........|
|00002b20| 22 fd ff ff 7f 0d 03 fd | 04 ff dd 0f 03 3d 08 eb |".......|.....=..|
|00002b30| e8 fd 7f 0d 03 3d ea cb | e0 fe ff 0f 03 bd d5 e3 |.....=..|........|
|00002b40| e2 fd 7f 0d 03 3d 00 8b | a0 fe ff 0f 03 fd 03 ff |.....=..|........|
|00002b50| fb 7f 0d 03 0d 22 02 ff | fc 7f 0d 03 fd 04 ff fe |....."..|........|
|00002b60| 0f 03 05 55 fe 05 03 06 | 00 f7 13 45 11 45 51 44 |...U....|...E.EQD|
|00002b70| 51 14 03 06 00 ef d3 34 | 4d d3 34 4d d3 34 53 14 |Q......4|M.4M.4S.|
|00002b80| 45 51 14 45 51 34 03 05 | 00 ee 10 33 d3 34 4d d3 |EQ.EQ4..|...3.4M.|
|00002b90| 34 4d 13 13 51 14 45 51 | 14 45 11 03 06 00 ef d3 |4M..Q.EQ|.E......|
|00002ba0| 34 4d d3 34 4d d3 34 53 | 14 45 51 14 45 51 14 03 |4M.4M.4S|.EQ.EQ..|
|00002bb0| 06 00 ef 43 d3 34 55 55 | d1 34 0d 4f 51 14 55 55 |...C.4UU|.4.OQ.UU|
|00002bc0| 51 14 c5 0f 05 00 ff c0 | 25 ff fe ff ff 9d 00 00 |Q.......|%.......|
|00002bd0| 00 28 00 00 00 20 00 00 | 00 20 00 00 00 00 00 00 |.(... ..|. ......|
|00002be0| 00 00 00 00 00 02 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002bf0| 00 01 00 00 00 ff 0f 05 | 00 fe c0 03 06 00 ff 03 |........|........|
|00002c00| 06 00 ff 03 06 00 ff 03 | 06 00 ff 03 06 00 ff 03 |........|........|
|00002c10| 06 00 ff 03 06 00 ff 03 | 06 00 ff 03 06 00 ff 03 |........|........|
|00002c20| 06 00 ff 03 06 00 ff 03 | 06 00 ff 03 06 00 ff 03 |........|........|
|00002c30| 06 00 ff 03 06 00 ff 03 | 06 00 ff 03 06 00 ff 03 |........|........|
|00002c40| 06 00 ff 03 06 00 ff 03 | 06 00 ff 03 06 00 ff 03 |........|........|
|00002c50| 06 00 ff 03 06 00 ff 03 | 06 00 ff 0f 05 00 fe c0 |........|........|
|00002c60| 0f 05 00 ff c0 25 ff fe | ff ff b0 00 00 00 28 00 |.....%..|......(.|
|00002c70| 00 00 18 00 00 00 18 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002c80| 00 00 02 00 00 00 00 00 | 00 00 00 00 00 00 01 00 |........|........|
|00002c90| 00 00 f7 13 00 54 00 40 | d5 ff ff f0 03 ff fb 2b |.....T.@|.......+|
|00002ca0| ff ff 30 c0 02 ff dc 27 | ff ff 30 3a a3 f3 ff 2b |..0....'|..0:...+|
|00002cb0| ff ff 30 bc c3 f3 ff 27 | ff ff 30 70 83 fb ff 2b |..0....'|..0p...+|
|00002cc0| ff ff 30 82 ee fa ff 27 | ff ff f0 03 ff fc 27 ff |..0....'|......'.|
|00002cd0| ff 50 03 55 f5 15 ff ff | 48 21 52 88 14 22 ff ff |.P.U....|H!R.."..|
|00002ce0| 05 00 fe ff ff 04 88 fd | 28 ff ff 04 00 fc 20 ff |........|(..... .|
|00002cf0| ff 18 03 22 fd 12 ff ff | 05 00 fe ff ff 04 88 fd |..."....|........|
|00002d00| 08 ff ff 05 00 f5 ff ff | 88 48 55 85 88 08 ff ff |........|.HU.....|
|00002d10| 03 03 00 ff c0 27 ff fe | ff ff 8f 00 00 00 28 00 |.....'..|......(.|
|00002d20| 00 00 18 00 00 00 18 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002d30| 00 00 02 00 00 00 00 00 | 00 00 00 00 00 00 01 00 |........|........|
|00002d40| 00 00 ff 03 03 00 fd c0 | ff ff 05 00 fe ff ff 05 |........|........|
|00002d50| 00 fe ff ff 05 00 fe ff | ff 05 00 fe ff ff 05 00 |........|........|
|00002d60| fe ff ff 05 00 fe ff ff | 05 00 fe ff ff 05 00 fe |........|........|
|00002d70| ff ff 05 00 fe ff ff 05 | 00 fe ff ff 05 00 fe ff |........|........|
|00002d80| ff 05 00 fe ff ff 05 00 | fe ff ff 05 00 fe ff ff |........|........|
|00002d90| 05 00 fe ff ff 05 00 fe | ff ff 05 00 fd ff ff 03 |........|........|
|00002da0| 03 00 ff c0 27 ff fe ff | ff 06 00 00 00 14 00 00 |....'...|........|
|00002db0| 00 5f 01 00 00 2c 02 00 | 00 12 03 00 00 af 03 00 |._...,..|........|
|00002dc0| 00 5f 04 00 00 52 65 6d | 20 20 20 53 68 65 6c 6c |._...Rem| Shell|
|00002dd0| 35 2c 20 61 20 63 6f 6d | 6d 61 6e 64 20 6c 69 6e |5, a com|mand lin|
|00002de0| 65 20 69 6e 74 65 72 70 | 72 65 74 65 72 20 66 6f |e interp|reter fo|
|00002df0| 72 20 74 68 65 20 50 73 | 69 6f 6e 20 53 65 72 69 |r the Ps|ion Seri|
|00002e00| 65 73 20 35 20 43 6f 6d | 70 75 74 65 72 2e 0d 0a |es 5 Com|puter...|
|00002e10| 52 65 6d 20 20 20 56 65 | 72 73 69 6f 6e 20 32 2e |Rem Ve|rsion 2.|
|00002e20| 30 20 62 65 74 61 20 32 | 2c 20 62 75 69 6c 64 20 |0 beta 2|, build |
|00002e30| 32 31 0d 0a 52 65 6d 20 | 20 20 43 6f 70 79 72 69 |21..Rem | Copyri|
|00002e40| 67 68 74 20 28 43 29 20 | 31 39 39 38 20 20 4e 69 |ght (C) |1998 Ni|
|00002e50| 63 6b 20 4d 75 72 72 61 | 79 0d 0a 52 65 6d 0d 0a |ck Murra|y..Rem..|
|00002e60| 52 65 6d 20 20 20 54 68 | 69 73 20 70 72 6f 67 72 |Rem Th|is progr|
|00002e70| 61 6d 20 69 73 20 66 72 | 65 65 20 73 6f 66 74 77 |am is fr|ee softw|
|00002e80| 61 72 65 3b 20 79 6f 75 | 20 63 61 6e 20 72 65 64 |are; you| can red|
|00002e90| 69 73 74 72 69 62 75 74 | 65 20 69 74 20 61 6e 64 |istribut|e it and|
|00002ea0| 2f 6f 72 0d 0a 52 65 6d | 20 20 20 6d 6f 64 69 66 |/or..Rem| modif|
|00002eb0| 79 20 69 74 20 75 6e 64 | 65 72 20 74 68 65 20 74 |y it und|er the t|
|00002ec0| 65 72 6d 73 20 6f 66 20 | 74 68 65 20 47 4e 55 20 |erms of |the GNU |
|00002ed0| 47 65 6e 65 72 61 6c 20 | 50 75 62 6c 69 63 20 4c |General |Public L|
|00002ee0| 69 63 65 6e 73 65 0d 0a | 52 65 6d 20 20 20 61 73 |icense..|Rem as|
|00002ef0| 20 70 75 62 6c 69 73 68 | 65 64 20 62 79 20 74 68 | publish|ed by th|
|00002f00| 65 20 46 72 65 65 20 53 | 6f 66 74 77 61 72 65 20 |e Free S|oftware |
|00002f10| 46 6f 75 6e 64 61 74 69 | 6f 6e 3b 20 65 69 74 68 |Foundati|on; eith|
|00002f20| 65 72 20 76 65 72 73 69 | 6f 6e 20 32 0d 0a 52 65 |er versi|on 2..Re|
|00002f30| 6d 20 20 20 6f 66 20 74 | 68 65 20 4c 69 63 65 6e |m of t|he Licen|
|00002f40| 73 65 2c 20 6f 72 20 28 | 61 74 20 79 6f 75 72 20 |se, or (|at your |
|00002f50| 6f 70 74 69 6f 6e 29 20 | 61 6e 79 20 6c 61 74 65 |option) |any late|
|00002f60| 72 20 76 65 72 73 69 6f | 6e 2e 0d 0a 52 65 6d 0d |r versio|n...Rem.|
|00002f70| 0a 52 65 6d 20 20 20 54 | 68 69 73 20 70 72 6f 67 |.Rem T|his prog|
|00002f80| 72 61 6d 20 69 73 20 64 | 69 73 74 72 69 62 75 74 |ram is d|istribut|
|00002f90| 65 64 20 69 6e 20 74 68 | 65 20 68 6f 70 65 20 74 |ed in th|e hope t|
|00002fa0| 68 61 74 20 69 74 20 77 | 69 6c 6c 20 62 65 20 75 |hat it w|ill be u|
|00002fb0| 73 65 66 75 6c 2c 0d 0a | 52 65 6d 20 20 20 62 75 |seful,..|Rem bu|
|00002fc0| 74 20 57 49 54 48 4f 55 | 54 20 41 4e 59 20 57 41 |t WITHOU|T ANY WA|
|00002fd0| 52 52 41 4e 54 59 3b 20 | 77 69 74 68 6f 75 74 20 |RRANTY; |without |
|00002fe0| 65 76 65 6e 20 74 68 65 | 20 69 6d 70 6c 69 65 64 |even the| implied|
|00002ff0| 20 77 61 72 72 61 6e 74 | 79 20 6f 66 0d 0a 52 65 | warrant|y of..Re|
|00003000| 6d 20 20 20 4d 45 52 43 | 48 41 4e 54 41 42 49 4c |m MERC|HANTABIL|
|00003010| 49 54 59 20 6f 72 20 46 | 49 54 4e 45 53 53 20 46 |ITY or F|ITNESS F|
|00003020| 4f 52 20 41 20 50 41 52 | 54 49 43 55 4c 41 52 20 |OR A PAR|TICULAR |
|00003030| 50 55 52 50 4f 53 45 2e | 0d 0a 52 65 6d 20 20 20 |PURPOSE.|..Rem |
|00003040| 53 65 65 20 74 68 65 20 | 47 4e 55 20 47 65 6e 65 |See the |GNU Gene|
|00003050| 72 61 6c 20 50 75 62 6c | 69 63 20 4c 69 63 65 6e |ral Publ|ic Licen|
|00003060| 73 65 20 66 6f 72 20 6d | 6f 72 65 20 64 65 74 61 |se for m|ore deta|
|00003070| 69 6c 73 2e 0d 0a 52 65 | 6d 0d 0a 52 65 6d 20 20 |ils...Re|m..Rem |
|00003080| 20 59 6f 75 20 73 68 6f | 75 6c 64 20 68 61 76 65 | You sho|uld have|
|00003090| 20 72 65 63 65 69 76 65 | 64 20 61 20 63 6f 70 79 | receive|d a copy|
|000030a0| 20 6f 66 20 74 68 65 20 | 47 4e 55 20 47 65 6e 65 | of the |GNU Gene|
|000030b0| 72 61 6c 20 50 75 62 6c | 69 63 20 4c 69 63 65 6e |ral Publ|ic Licen|
|000030c0| 73 65 0d 0a 52 65 6d 20 | 20 20 61 6c 6f 6e 67 20 |se..Rem | along |
|000030d0| 77 69 74 68 20 74 68 69 | 73 20 70 72 6f 67 72 61 |with thi|s progra|
|000030e0| 6d 3b 20 69 66 20 6e 6f | 74 2c 20 77 72 69 74 65 |m; if no|t, write|
|000030f0| 20 74 6f 20 74 68 65 20 | 46 72 65 65 20 53 6f 66 | to the |Free Sof|
|00003100| 74 77 61 72 65 20 46 6f | 75 6e 64 61 74 69 6f 6e |tware Fo|undation|
|00003110| 2c 0d 0a 52 65 6d 20 20 | 20 49 6e 63 2e 2c 20 35 |,..Rem | Inc., 5|
|00003120| 39 20 54 65 6d 70 6c 65 | 20 50 6c 61 63 65 20 2d |9 Temple| Place -|
|00003130| 20 53 75 69 74 65 20 33 | 33 30 2c 20 42 6f 73 74 | Suite 3|30, Bost|
|00003140| 6f 6e 2c 20 4d 41 20 20 | 30 32 31 31 31 2d 31 33 |on, MA |02111-13|
|00003150| 30 37 2c 20 55 53 41 2e | 0d 0a 52 65 6d 0d 0a 49 |07, USA.|..Rem..I|
|00003160| 4e 43 4c 55 44 45 20 22 | 73 79 73 74 65 6d 2e 6f |NCLUDE "|system.o|
|00003170| 78 68 22 0d 0a 49 4e 43 | 4c 55 44 45 20 22 73 79 |xh"..INC|LUDE "sy|
|00003180| 73 72 61 6d 31 2e 6f 78 | 68 22 0d 0a 49 4e 43 4c |sram1.ox|h"..INCL|
|00003190| 55 44 45 20 22 74 6f 6f | 6c 62 61 72 2e 6f 70 68 |UDE "too|lbar.oph|
|000031a0| 22 0d 0a 49 4e 43 4c 55 | 44 45 20 22 63 6f 6e 73 |"..INCLU|DE "cons|
|000031b0| 74 2e 6f 70 68 22 0d 0a | 49 4e 43 4c 55 44 45 20 |t.oph"..|INCLUDE |
|000031c0| 22 64 61 74 65 2e 6f 78 | 68 22 0d 0a 43 4f 4e 53 |"date.ox|h"..CONS|
|000031d0| 54 20 5f 56 45 52 53 49 | 4f 4e 24 3d 22 32 2e 30 |T _VERSI|ON$="2.0|
|000031e0| 28 62 32 29 22 0d 0a 52 | 65 6d 20 56 45 52 59 2c |(b2)"..R|em VERY,|
|000031f0| 20 56 45 52 59 20 69 6d | 70 6f 72 74 61 6e 74 2e | VERY im|portant.|
|00003200| 20 49 66 20 74 68 65 20 | 6f 72 64 65 72 20 6f 66 | If the |order of|
|00003210| 20 74 68 65 20 6f 66 66 | 73 65 74 73 20 62 65 6c | the off|sets bel|
|00003220| 6f 77 20 69 73 0d 0a 52 | 65 6d 09 63 68 61 6e 67 |ow is..R|em.chang|
|00003230| 65 64 20 74 68 65 20 73 | 6f 75 72 63 65 20 4d 55 |ed the s|ource MU|
|00003240| 53 54 20 62 65 20 63 68 | 65 63 6b 65 64 2c 20 61 |ST be ch|ecked, a|
|00003250| 73 20 6d 61 6e 79 20 6f | 66 20 74 68 65 73 65 0d |s many o|f these.|
|00003260| 0a 52 65 6d 09 76 61 6c | 75 65 73 20 61 72 65 20 |.Rem.val|ues are |
|00003270| 73 65 74 20 73 69 6d 75 | 6c 74 61 6e 65 6f 75 73 |set simu|ltaneous|
|00003280| 6c 79 20 77 69 74 68 20 | 50 4f 4b 45 57 20 26 20 |ly with |POKEW & |
|00003290| 50 4f 4b 45 4c 27 73 0d | 0a 43 4f 4e 53 54 20 50 |POKEL's.|.CONST P|
|000032a0| 52 5f 41 52 47 43 25 3d | 30 0d 0a 43 4f 4e 53 54 |R_ARGC%=|0..CONST|
|000032b0| 20 50 52 5f 4c 45 56 25 | 3d 31 0d 0a 43 4f 4e 53 | PR_LEV%|=1..CONS|
|000032c0| 54 20 50 52 5f 46 4c 41 | 47 25 3d 32 0d 0a 43 4f |T PR_FLA|G%=2..CO|
|000032d0| 4e 53 54 20 50 52 5f 41 | 52 47 4e 25 3d 33 0d 0a |NST PR_A|RGN%=3..|
|000032e0| 43 4f 4e 53 54 20 50 52 | 5f 4f 55 54 25 3d 34 0d |CONST PR|_OUT%=4.|
|000032f0| 0a 43 4f 4e 53 54 20 50 | 52 5f 49 4e 25 3d 36 0d |.CONST P|R_IN%=6.|
|00003300| 0a 43 4f 4e 53 54 20 50 | 52 5f 49 4e 50 53 54 25 |.CONST P|R_INPST%|
|00003310| 3d 38 0d 0a 43 4f 4e 53 | 54 20 50 52 5f 49 4e 50 |=8..CONS|T PR_INP|
|00003320| 50 53 25 3d 39 0d 0a 43 | 4f 4e 53 54 20 50 52 5f |PS%=9..C|ONST PR_|
|00003330| 4f 46 46 53 45 54 25 3d | 31 30 0d 0a 43 4f 4e 53 |OFFSET%=|10..CONS|
|00003340| 54 20 50 52 5f 42 41 43 | 4b 25 3d 31 31 0d 0a 43 |T PR_BAC|K%=11..C|
|00003350| 4f 4e 53 54 20 50 52 5f | 4e 55 4d 25 3d 31 35 0d |ONST PR_|NUM%=15.|
|00003360| 0a 43 4f 4e 53 54 20 50 | 52 5f 53 54 41 54 55 53 |.CONST P|R_STATUS|
|00003370| 25 3d 31 37 0d 0a 43 4f | 4e 53 54 20 50 52 5f 41 |%=17..CO|NST PR_A|
|00003380| 52 47 56 25 3d 31 39 0d | 0a 43 4f 4e 53 54 20 53 |RGV%=19.|.CONST S|
|00003390| 45 47 5f 53 49 5a 45 25 | 3d 35 33 31 0d 0a 43 4f |EG_SIZE%|=531..CO|
|000033a0| 4e 53 54 20 76 61 72 55 | 4e 49 58 50 61 74 68 25 |NST varU|NIXPath%|
|000033b0| 3d 31 0d 0a 43 4f 4e 53 | 54 20 76 61 72 55 4e 49 |=1..CONS|T varUNI|
|000033c0| 58 56 61 72 25 3d 32 0d | 0a 43 4f 4e 53 54 20 76 |XVar%=2.|.CONST v|
|000033d0| 61 72 41 70 70 65 6e 64 | 25 3d 33 0d 0a 43 4f 4e |arAppend|%=3..CON|
|000033e0| 53 54 20 76 61 72 45 63 | 68 6f 25 3d 34 0d 0a 43 |ST varEc|ho%=4..C|
|000033f0| 4f 4e 53 54 20 76 61 72 | 63 77 64 63 6d 64 25 3d |ONST var|cwdcmd%=|
|00003400| 35 0d 0a 43 4f 4e 53 54 | 20 53 68 65 6c 6c 55 49 |5..CONST| ShellUI|
|00003410| 44 26 3d 26 31 30 30 30 | 30 43 36 34 09 09 52 65 |D&=&1000|0C64..Re|
|00003420| 6d 20 61 6c 73 6f 20 75 | 73 65 64 20 69 6e 20 65 |m also u|sed in e|
|00003430| 64 69 74 25 20 73 6f 20 | 64 65 66 69 6e 65 20 6f |dit% so |define o|
|00003440| 6e 63 65 0d 0a 41 50 50 | 20 53 68 65 6c 6c 35 2c |nce..APP| Shell5,|
|00003450| 53 68 65 6c 6c 55 49 44 | 26 0d 0a 09 49 43 4f 4e |ShellUID|&...ICON|
|00003460| 20 22 73 68 65 6c 6c 35 | 2e 6d 62 6d 22 0d 0a 09 | "shell5|.mbm"...|
|00003470| 43 41 50 54 49 4f 4e 20 | 22 53 68 65 6c 6c 35 22 |CAPTION |"Shell5"|
|00003480| 2c 31 0d 0a 45 4e 44 41 | 0d 0a 0d 0a 43 4f 4e 53 |,1..ENDA|....CONS|
|00003490| 54 20 4e 42 55 49 4c 54 | 49 4e 25 3d 34 30 0d 0a |T NBUILT|IN%=40..|
|000034a0| 0d 0a 50 52 4f 43 20 6d | 61 69 6e 3a 0d 0a 47 4c |..PROC m|ain:..GL|
|000034b0| 4f 42 41 4c 20 53 63 72 | 57 69 64 25 09 09 09 09 |OBAL Scr|Wid%....|
|000034c0| 09 09 09 09 52 65 6d 20 | 70 69 78 65 6c 20 77 69 |....Rem |pixel wi|
|000034d0| 64 74 68 20 69 6e 69 74 | 69 61 6c 6c 79 0d 0a 47 |dth init|ially..G|
|000034e0| 4c 4f 42 41 4c 20 53 63 | 72 48 67 68 74 25 09 09 |LOBAL Sc|rHght%..|
|000034f0| 09 09 09 09 09 52 65 6d | 20 70 69 78 65 6c 20 68 |.....Rem| pixel h|
|00003500| 65 69 67 68 74 20 69 6e | 69 74 69 61 6c 6c 79 0d |eight in|itially.|
|00003510| 0a 09 53 63 72 57 69 64 | 25 3d 67 57 69 64 74 68 |..ScrWid|%=gWidth|
|00003520| 0d 0a 09 53 63 72 48 67 | 68 74 25 3d 67 48 65 69 |...ScrHg|ht%=gHei|
|00003530| 67 68 74 0d 0a 09 4c 4f | 41 44 4d 20 22 7a 3a 5c |ght...LO|ADM "z:\|
|00003540| 73 79 73 74 65 6d 5c 6f | 70 6c 5c 54 6f 6f 6c 62 |system\o|pl\Toolb|
|00003550| 61 72 22 0d 0a 09 54 42 | 61 72 4c 69 6e 6b 3a 28 |ar"...TB|arLink:(|
|00003560| 22 5f 6d 61 69 6e 22 29 | 09 09 09 52 65 6d 20 27 |"_main")|...Rem '|
|00003570| 6c 69 6e 6b 73 27 20 74 | 6f 6f 6c 62 61 72 20 67 |links' t|oolbar g|
|00003580| 6c 6f 62 61 6c 73 20 61 | 6e 64 20 74 68 65 6e 20 |lobals a|nd then |
|00003590| 63 61 6c 6c 73 20 5f 6d | 61 69 6e 0d 0a 45 4e 44 |calls _m|ain..END|
|000035a0| 50 0d 0a 0d 0a 52 65 6d | 20 50 52 4f 43 20 41 4c |P....Rem| PROC AL|
|000035b0| 4c 4f 43 26 3a 28 73 69 | 7a 65 26 2c 6e 61 6d 65 |LOC&:(si|ze&,name|
|000035c0| 24 29 0d 0a 52 65 6d 20 | 77 72 61 70 70 65 72 20 |$)..Rem |wrapper |
|000035d0| 66 6f 72 20 41 4c 4c 4f | 43 20 73 75 63 68 20 74 |for ALLO|C such t|
|000035e0| 68 61 74 20 6d 65 6d 6f | 72 79 20 6c 65 61 6b 73 |hat memo|ry leaks|
|000035f0| 20 61 6e 64 20 64 65 62 | 75 67 67 69 6e 67 20 63 | and deb|ugging c|
|00003600| 61 6e 20 62 65 0d 0a 52 | 65 6d 20 70 65 72 66 6f |an be..R|em perfo|
|00003610| 72 6d 65 64 20 61 73 20 | 77 65 6c 6c 20 61 73 20 |rmed as |well as |
|00003620| 66 69 6e 64 69 6e 67 20 | 77 68 65 72 65 20 6d 65 |finding |where me|
|00003630| 6d 6f 72 79 20 6c 65 61 | 6b 73 20 61 72 65 0d 0a |mory lea|ks are..|
|00003640| 52 65 6d 20 4c 4f 43 41 | 4c 20 70 26 0d 0a 52 65 |Rem LOCA|L p&..Re|
|00003650| 6d 09 70 26 3d 41 4c 4c | 4f 43 28 73 69 7a 65 26 |m.p&=ALL|OC(size&|
|00003660| 2b 32 30 2b 34 29 0d 0a | 52 65 6d 09 52 65 6d 20 |+20+4)..|Rem.Rem |
|00003670| 70 6f 69 6e 74 65 72 20 | 74 6f 20 6e 65 78 74 2c |pointer |to next,|
|00003680| 20 6d 65 6d 62 65 72 20 | 6e 75 6d 62 65 72 2c 20 | member |number, |
|00003690| 6e 61 6d 65 24 20 70 6f | 69 6e 74 65 72 2c 20 6c |name$ po|inter, l|
|000036a0| 65 6e 67 74 68 2c 0d 0a | 52 65 6d 09 52 65 6d 20 |ength,..|Rem.Rem |
|000036b0| 34 2d 62 79 74 65 2d 63 | 68 65 63 6b 2c 20 41 4c |4-byte-c|heck, AL|
|000036c0| 4c 4f 43 2c 20 34 2d 62 | 79 74 65 20 63 68 65 63 |LOC, 4-b|yte chec|
|000036d0| 6b 0d 0a 52 65 6d 09 49 | 46 20 70 26 3d 30 0d 0a |k..Rem.I|F p&=0..|
|000036e0| 52 65 6d 20 4e 6f 4d 65 | 6d 3a 3a 0d 0a 52 65 6d |Rem NoMe|m::..Rem|
|000036f0| 09 09 50 52 49 4e 54 20 | 22 4f 55 54 20 4f 46 20 |..PRINT |"OUT OF |
|00003700| 4d 45 4d 4f 52 59 22 0d | 0a 52 65 6d 09 09 47 45 |MEMORY".|.Rem..GE|
|00003710| 54 0d 0a 52 65 6d 09 09 | 53 54 4f 50 0d 0a 52 65 |T..Rem..|STOP..Re|
|00003720| 6d 09 45 4e 44 49 46 0d | 0a 52 65 6d 09 49 46 20 |m.ENDIF.|.Rem.IF |
|00003730| 5f 70 61 6c 6c 6f 63 26 | 3d 30 0d 0a 52 65 6d 09 |_palloc&|=0..Rem.|
|00003740| 09 5f 70 61 6c 6c 6f 63 | 26 3d 41 44 44 52 28 5f |._palloc|&=ADDR(_|
|00003750| 61 6c 6c 6f 63 26 29 0d | 0a 52 65 6d 09 45 4e 44 |alloc&).|.Rem.END|
|00003760| 49 46 0d 0a 52 65 6d 09 | 50 4f 4b 45 4c 20 5f 70 |IF..Rem.|POKEL _p|
|00003770| 61 6c 6c 6f 63 26 2c 70 | 26 0d 0a 52 65 6d 09 5f |alloc&,p|&..Rem._|
|00003780| 70 61 6c 6c 6f 63 26 3d | 70 26 0d 0a 52 65 6d 09 |palloc&=|p&..Rem.|
|00003790| 50 4f 4b 45 4c 20 70 26 | 2c 30 09 09 09 09 09 09 |POKEL p&|,0......|
|000037a0| 09 52 65 6d 20 6e 65 78 | 74 0d 0a 52 65 6d 09 50 |.Rem nex|t..Rem.P|
|000037b0| 4f 4b 45 4c 20 70 26 2b | 34 2c 5f 6e 61 6c 6c 6f |OKEL p&+|4,_nallo|
|000037c0| 63 26 09 52 65 6d 20 63 | 6f 75 6e 74 65 72 0d 0a |c&.Rem c|ounter..|
|000037d0| 52 65 6d 09 50 4f 4b 45 | 4c 20 70 26 2b 38 2c 41 |Rem.POKE|L p&+8,A|
|000037e0| 4c 4c 4f 43 28 28 4c 45 | 4e 28 6e 61 6d 65 24 29 |LLOC((LE|N(name$)|
|000037f0| 2b 31 36 29 20 41 4e 44 | 20 24 46 46 46 30 29 0d |+16) AND| $FFF0).|
|00003800| 0a 52 65 6d 09 49 46 20 | 50 45 45 4b 4c 28 70 26 |.Rem.IF |PEEKL(p&|
|00003810| 2b 38 29 3d 30 0d 0a 52 | 65 6d 09 09 47 4f 54 4f |+8)=0..R|em..GOTO|
|00003820| 20 4e 6f 4d 65 6d 3a 3a | 0d 0a 52 65 6d 09 45 4e | NoMem::|..Rem.EN|
|00003830| 44 49 46 0d 0a 52 65 6d | 09 50 4f 4b 45 24 20 50 |DIF..Rem|.POKE$ P|
|00003840| 45 45 4b 4c 28 70 26 2b | 38 29 2c 6e 61 6d 65 24 |EEKL(p&+|8),name$|
|00003850| 0d 0a 52 65 6d 09 50 4f | 4b 45 4c 20 70 26 2b 31 |..Rem.PO|KEL p&+1|
|00003860| 32 2c 73 69 7a 65 26 0d | 0a 52 65 6d 09 50 4f 4b |2,size&.|.Rem.POK|
|00003870| 45 4c 20 70 26 2b 31 36 | 2c 4e 4f 54 20 5f 6e 61 |EL p&+16|,NOT _na|
|00003880| 6c 6c 6f 63 26 09 09 52 | 65 6d 20 63 68 65 63 6b |lloc&..R|em check|
|00003890| 20 66 6f 72 20 6f 76 65 | 72 66 6c 6f 77 73 0d 0a | for ove|rflows..|
|000038a0| 52 65 6d 09 50 4f 4b 45 | 4c 20 70 26 2b 73 69 7a |Rem.POKE|L p&+siz|
|000038b0| 65 26 2b 32 30 2c 4e 4f | 54 20 5f 6e 61 6c 6c 6f |e&+20,NO|T _nallo|
|000038c0| 63 26 09 09 52 65 6d 20 | 63 68 65 63 6b 20 66 6f |c&..Rem |check fo|
|000038d0| 72 20 6f 76 65 72 66 6c | 6f 77 73 0d 0a 52 65 6d |r overfl|ows..Rem|
|000038e0| 09 5f 74 61 6c 6c 6f 63 | 26 3d 5f 74 61 6c 6c 6f |._talloc|&=_tallo|
|000038f0| 63 26 2b 31 0d 0a 52 65 | 6d 09 49 46 20 76 61 72 |c&+1..Re|m.IF var|
|00003900| 4d 65 6d 44 65 62 75 67 | 25 3e 31 0d 0a 52 65 6d |MemDebug|%>1..Rem|
|00003910| 09 09 50 52 49 4e 54 20 | 70 26 2c 5f 61 6c 6c 6f |..PRINT |p&,_allo|
|00003920| 63 26 2c 5f 70 61 6c 6c | 6f 63 26 2c 5f 6e 61 6c |c&,_pall|oc&,_nal|
|00003930| 6c 6f 63 26 2c 22 41 6c | 6c 6f 63 61 74 65 64 22 |loc&,"Al|located"|
|00003940| 2c 73 69 7a 65 26 2c 22 | 62 79 74 65 73 2c 20 70 |,size&,"|bytes, p|
|00003950| 72 6f 63 65 64 75 72 65 | 3a 22 2c 6e 61 6d 65 24 |rocedure|:",name$|
|00003960| 2c 22 54 6f 74 61 6c 3a | 22 2c 0d 0a 52 65 6d 09 |,"Total:|",..Rem.|
|00003970| 45 4e 44 49 46 0d 0a 52 | 65 6d 09 49 46 20 76 61 |ENDIF..R|em.IF va|
|00003980| 72 4d 65 6d 44 65 62 75 | 67 25 0d 0a 52 65 6d 09 |rMemDebu|g%..Rem.|
|00003990| 09 50 52 49 4e 54 20 22 | 5b 22 3b 5f 74 61 6c 6c |.PRINT "|[";_tall|
|000039a0| 6f 63 26 3b 22 5d 22 2c | 0d 0a 52 65 6d 09 09 49 |oc&;"]",|..Rem..I|
|000039b0| 46 20 76 61 72 4d 65 6d | 44 65 62 75 67 25 3e 31 |F varMem|Debug%>1|
|000039c0| 0d 0a 52 65 6d 09 09 09 | 50 52 49 4e 54 0d 0a 52 |..Rem...|PRINT..R|
|000039d0| 65 6d 09 09 45 4e 44 49 | 46 0d 0a 52 65 6d 09 45 |em..ENDI|F..Rem.E|
|000039e0| 4e 44 49 46 0d 0a 52 65 | 6d 09 5f 6e 61 6c 6c 6f |NDIF..Re|m._nallo|
|000039f0| 63 26 3d 5f 6e 61 6c 6c | 6f 63 26 2b 31 0d 0a 52 |c&=_nall|oc&+1..R|
|00003a00| 65 6d 09 52 45 54 55 52 | 4e 20 70 26 2b 32 30 09 |em.RETUR|N p&+20.|
|00003a10| 09 52 65 6d 20 73 74 61 | 72 74 20 6f 66 20 62 6c |.Rem sta|rt of bl|
|00003a20| 6f 63 6b 20 74 68 61 74 | 20 63 61 6e 20 62 65 20 |ock that| can be |
|00003a30| 75 73 65 64 0d 0a 52 65 | 6d 20 45 4e 44 50 0d 0a |used..Re|m ENDP..|
|00003a40| 0d 0a 52 65 6d 20 50 52 | 4f 43 20 46 52 45 45 41 |..Rem PR|OC FREEA|
|00003a50| 4c 4c 4f 43 26 3a 28 61 | 64 64 72 26 29 0d 0a 52 |LLOC&:(a|ddr&)..R|
|00003a60| 65 6d 20 77 72 61 70 70 | 65 72 20 66 6f 72 20 46 |em wrapp|er for F|
|00003a70| 52 45 45 41 4c 4c 4f 43 | 2e 20 43 68 65 63 6b 20 |REEALLOC|. Check |
|00003a80| 65 6c 65 6d 65 6e 74 73 | 20 69 6e 20 5f 61 6c 6c |elements| in _all|
|00003a90| 6f 63 26 20 73 74 72 75 | 63 74 75 72 65 20 66 6f |oc& stru|cture fo|
|00003aa0| 72 0d 0a 52 65 6d 20 6f | 6e 65 20 6d 61 74 63 68 |r..Rem o|ne match|
|00003ab0| 69 6e 67 20 61 64 64 72 | 26 0d 0a 52 65 6d 20 4c |ing addr|&..Rem L|
|00003ac0| 4f 43 41 4c 20 70 26 2c | 71 26 2c 6e 26 0d 0a 52 |OCAL p&,|q&,n&..R|
|00003ad0| 65 6d 09 70 26 3d 41 44 | 44 52 28 5f 61 6c 6c 6f |em.p&=AD|DR(_allo|
|00003ae0| 63 26 29 0d 0a 52 65 6d | 09 49 46 20 76 61 72 4d |c&)..Rem|.IF varM|
|00003af0| 65 6d 44 65 62 75 67 25 | 3e 31 0d 0a 52 65 6d 09 |emDebug%|>1..Rem.|
|00003b00| 09 50 52 49 4e 54 20 22 | 43 68 65 63 6b 69 6e 67 |.PRINT "|Checking|
|00003b10| 20 66 6f 72 22 2c 61 64 | 64 72 26 2c 22 69 6e 22 | for",ad|dr&,"in"|
|00003b20| 2c 0d 0a 52 65 6d 09 45 | 4e 44 49 46 0d 0a 52 65 |,..Rem.E|NDIF..Re|
|00003b30| 6d 09 57 48 49 4c 45 20 | 50 45 45 4b 4c 28 70 26 |m.WHILE |PEEKL(p&|
|00003b40| 29 0d 0a 52 65 6d 09 09 | 71 26 3d 70 26 0d 0a 52 |)..Rem..|q&=p&..R|
|00003b50| 65 6d 09 09 70 26 3d 50 | 45 45 4b 4c 28 70 26 29 |em..p&=P|EEKL(p&)|
|00003b60| 0d 0a 52 65 6d 09 09 49 | 46 20 76 61 72 4d 65 6d |..Rem..I|F varMem|
|00003b70| 44 65 62 75 67 25 3e 31 | 0d 0a 52 65 6d 09 09 09 |Debug%>1|..Rem...|
|00003b80| 50 52 49 4e 54 20 70 26 | 2c 0d 0a 52 65 6d 09 09 |PRINT p&|,..Rem..|
|00003b90| 45 4e 44 49 46 0d 0a 52 | 65 6d 09 09 49 46 20 70 |ENDIF..R|em..IF p|
|00003ba0| 26 2b 32 30 3d 61 64 64 | 72 26 0d 0a 52 65 6d 09 |&+20=add|r&..Rem.|
|00003bb0| 09 09 49 46 20 76 61 72 | 4d 65 6d 44 65 62 75 67 |..IF var|MemDebug|
|00003bc0| 25 3e 31 0d 0a 52 65 6d | 09 09 09 09 50 52 49 4e |%>1..Rem|....PRIN|
|00003bd0| 54 20 22 46 6f 75 6e 64 | 20 69 74 21 21 21 21 22 |T "Found| it!!!!"|
|00003be0| 2c 50 45 45 4b 4c 28 70 | 26 2b 34 29 2c 50 45 45 |,PEEKL(p|&+4),PEE|
|00003bf0| 4b 24 28 50 45 45 4b 4c | 28 70 26 2b 38 29 29 2c |K$(PEEKL|(p&+8)),|
|00003c00| 22 4c 65 6e 67 74 68 22 | 2c 50 45 45 4b 4c 28 70 |"Length"|,PEEKL(p|
|00003c10| 26 2b 31 32 29 2c 0d 0a | 52 65 6d 09 09 09 45 4e |&+12),..|Rem...EN|
|00003c20| 44 49 46 0d 0a 52 65 6d | 09 09 09 6e 26 3d 50 45 |DIF..Rem|...n&=PE|
|00003c30| 45 4b 4c 28 70 26 2b 34 | 29 09 09 52 65 6d 20 6e |EKL(p&+4|)..Rem n|
|00003c40| 75 6d 62 65 72 0d 0a 52 | 65 6d 09 09 09 49 46 20 |umber..R|em...IF |
|00003c50| 50 45 45 4b 4c 28 70 26 | 2b 31 36 29 20 3c 3e 20 |PEEKL(p&|+16) <> |
|00003c60| 4e 4f 54 20 6e 26 0d 0a | 52 65 6d 09 09 09 09 50 |NOT n&..|Rem....P|
|00003c70| 52 49 4e 54 20 50 45 45 | 4b 24 28 50 45 45 4b 4c |RINT PEE|K$(PEEKL|
|00003c80| 28 70 26 2b 38 29 29 2c | 22 45 52 52 4f 52 3a 20 |(p&+8)),|"ERROR: |
|00003c90| 63 6f 72 72 75 70 74 69 | 6f 6e 20 61 74 20 73 74 |corrupti|on at st|
|00003ca0| 61 72 74 22 0d 0a 52 65 | 6d 09 09 09 45 4c 53 45 |art"..Re|m...ELSE|
|00003cb0| 49 46 20 50 45 45 4b 4c | 28 70 26 2b 32 30 2b 50 |IF PEEKL|(p&+20+P|
|00003cc0| 45 45 4b 4c 28 70 26 2b | 31 32 29 29 20 3c 3e 20 |EEKL(p&+|12)) <> |
|00003cd0| 4e 4f 54 20 6e 26 0d 0a | 52 65 6d 09 09 09 09 50 |NOT n&..|Rem....P|
|00003ce0| 52 49 4e 54 20 50 45 45 | 4b 24 28 50 45 45 4b 4c |RINT PEE|K$(PEEKL|
|00003cf0| 28 70 26 2b 38 29 29 2c | 22 45 52 52 4f 52 3a 20 |(p&+8)),|"ERROR: |
|00003d00| 63 6f 72 72 75 70 74 69 | 6f 6e 20 61 74 20 65 6e |corrupti|on at en|
|00003d10| 64 22 0d 0a 52 65 6d 09 | 09 09 45 4e 44 49 46 0d |d"..Rem.|..ENDIF.|
|00003d20| 0a 52 65 6d 09 09 09 46 | 52 45 45 41 4c 4c 4f 43 |.Rem...F|REEALLOC|
|00003d30| 28 50 45 45 4b 4c 28 70 | 26 2b 38 29 29 09 09 09 |(PEEKL(p|&+8))...|
|00003d40| 52 65 6d 20 6e 61 6d 65 | 24 0d 0a 52 65 6d 09 09 |Rem name|$..Rem..|
|00003d50| 09 50 4f 4b 45 4c 20 71 | 26 2c 50 45 45 4b 4c 28 |.POKEL q|&,PEEKL(|
|00003d60| 70 26 29 09 09 09 09 09 | 52 65 6d 20 70 61 74 63 |p&).....|Rem patc|
|00003d70| 68 20 73 74 72 75 63 74 | 75 72 65 0d 0a 52 65 6d |h struct|ure..Rem|
|00003d80| 09 09 09 49 46 20 50 45 | 45 4b 4c 28 70 26 29 3d |...IF PE|EKL(p&)=|
|00003d90| 30 09 09 52 65 6d 20 6c | 61 73 74 0d 0a 52 65 6d |0..Rem l|ast..Rem|
|00003da0| 09 09 09 09 5f 70 61 6c | 6c 6f 63 26 3d 71 26 0d |...._pal|loc&=q&.|
|00003db0| 0a 52 65 6d 09 09 09 45 | 4e 44 49 46 0d 0a 52 65 |.Rem...E|NDIF..Re|
|00003dc0| 6d 09 09 09 46 52 45 45 | 41 4c 4c 4f 43 28 70 26 |m...FREE|ALLOC(p&|
|00003dd0| 29 09 09 09 09 09 09 09 | 09 52 65 6d 20 66 72 65 |).......|.Rem fre|
|00003de0| 65 20 72 65 73 74 20 6f | 66 20 73 74 72 75 74 75 |e rest o|f strutu|
|00003df0| 72 65 0d 0a 52 65 6d 09 | 09 09 5f 74 61 6c 6c 6f |re..Rem.|.._tallo|
|00003e00| 63 26 3d 5f 74 61 6c 6c | 6f 63 26 2d 31 0d 0a 52 |c&=_tall|oc&-1..R|
|00003e10| 65 6d 09 09 09 49 46 20 | 76 61 72 4d 65 6d 44 65 |em...IF |varMemDe|
|00003e20| 62 75 67 25 0d 0a 52 65 | 6d 09 09 09 09 50 52 49 |bug%..Re|m....PRI|
|00003e30| 4e 54 20 22 5b 22 3b 5f | 74 61 6c 6c 6f 63 26 3b |NT "[";_|talloc&;|
|00003e40| 22 5d 22 2c 0d 0a 52 65 | 6d 09 09 09 09 49 46 20 |"]",..Re|m....IF |
|00003e50| 76 61 72 4d 65 6d 44 65 | 62 75 67 25 3e 31 0d 0a |varMemDe|bug%>1..|
|00003e60| 52 65 6d 09 09 09 09 09 | 50 52 49 4e 54 0d 0a 52 |Rem.....|PRINT..R|
|00003e70| 65 6d 09 09 09 09 45 4e | 44 49 46 0d 0a 52 65 6d |em....EN|DIF..Rem|
|00003e80| 09 09 09 45 4e 44 49 46 | 0d 0a 52 65 6d 09 09 09 |...ENDIF|..Rem...|
|00003e90| 70 26 3d 30 0d 0a 52 65 | 6d 09 09 09 42 52 45 41 |p&=0..Re|m...BREA|
|00003ea0| 4b 0d 0a 52 65 6d 09 09 | 45 4e 44 49 46 0d 0a 52 |K..Rem..|ENDIF..R|
|00003eb0| 65 6d 09 45 4e 44 57 48 | 0d 0a 52 65 6d 09 49 46 |em.ENDWH|..Rem.IF|
|00003ec0| 20 70 26 0d 0a 52 65 6d | 09 09 50 52 49 4e 54 20 | p&..Rem|..PRINT |
|00003ed0| 70 26 2c 22 45 52 52 4f | 52 3a 20 4e 4f 54 20 66 |p&,"ERRO|R: NOT f|
|00003ee0| 6f 75 6e 64 21 21 21 21 | 22 0d 0a 52 65 6d 09 09 |ound!!!!|"..Rem..|
|00003ef0| 47 45 54 0d 0a 52 65 6d | 09 45 4e 44 49 46 0d 0a |GET..Rem|.ENDIF..|
|00003f00| 52 65 6d 20 45 4e 44 50 | 0d 0a 0d 0a 50 52 4f 43 |Rem ENDP|....PROC|
|00003f10| 20 5f 6d 61 69 6e 3a 0d | 0a 52 45 4d 20 43 6f 6e | _main:.|.REM Con|
|00003f20| 74 69 6e 75 65 20 66 72 | 6f 6d 20 74 6f 6f 6c 62 |tinue fr|om toolb|
|00003f30| 61 72 20 6c 69 6e 6b 20 | 54 42 61 72 4c 69 6e 6b |ar link |TBarLink|
|00003f40| 3a 0d 0a 47 4c 4f 42 41 | 4c 20 5f 73 74 61 74 25 |:..GLOBA|L _stat%|
|00003f50| 2c 5f 6b 65 79 25 28 32 | 29 09 09 09 52 65 6d 20 |,_key%(2|)...Rem |
|00003f60| 66 6f 72 20 4b 45 59 41 | 20 45 73 63 20 6b 65 79 |for KEYA| Esc key|
|00003f70| 2e 2e 2e 0d 0a 47 4c 4f | 42 41 4c 20 5f 73 70 65 |.....GLO|BAL _spe|
|00003f80| 63 24 28 31 39 29 0d 0a | 47 4c 4f 42 41 4c 20 5f |c$(19)..|GLOBAL _|
|00003f90| 62 6c 74 69 6e 24 28 4e | 42 55 49 4c 54 49 4e 25 |bltin$(N|BUILTIN%|
|00003fa0| 2c 37 29 0d 0a 47 4c 4f | 42 41 4c 20 5f 63 75 72 |,7)..GLO|BAL _cur|
|00003fb0| 72 26 09 09 09 09 09 52 | 65 6d 20 61 64 64 72 65 |r&.....R|em addre|
|00003fc0| 73 73 20 6f 66 20 63 75 | 72 72 65 6e 74 20 61 72 |ss of cu|rrent ar|
|00003fd0| 67 75 6d 65 6e 74 20 62 | 6c 6f 63 6b 0d 0a 47 4c |gument b|lock..GL|
|00003fe0| 4f 42 41 4c 20 5f 70 69 | 64 25 09 09 09 09 09 09 |OBAL _pi|d%......|
|00003ff0| 52 65 6d 20 63 75 72 72 | 65 6e 74 20 73 75 62 73 |Rem curr|ent subs|
|00004000| 68 65 6c 6c 20 63 6f 75 | 6e 74 65 72 0d 0a 47 4c |hell cou|nter..GL|
|00004010| 4f 42 41 4c 20 5f 68 61 | 73 68 26 09 09 09 09 09 |OBAL _ha|sh&.....|
|00004020| 52 65 6d 20 62 61 73 65 | 20 6f 66 20 68 61 73 68 |Rem base| of hash|
|00004030| 65 64 20 70 61 74 68 20 | 6c 69 73 74 0d 0a 47 4c |ed path |list..GL|
|00004040| 4f 42 41 4c 20 5f 64 69 | 72 42 26 2c 5f 64 69 72 |OBAL _di|rB&,_dir|
|00004050| 43 26 0d 0a 47 4c 4f 42 | 41 4c 20 5f 61 74 61 62 |C&..GLOB|AL _atab|
|00004060| 26 0d 0a 47 4c 4f 42 41 | 4c 20 5f 63 77 64 24 28 |&..GLOBA|L _cwd$(|
|00004070| 32 35 35 29 0d 0a 47 4c | 4f 42 41 4c 20 5f 68 70 |255)..GL|OBAL _hp|
|00004080| 6f 73 26 2c 5f 68 6e 75 | 6d 25 2c 5f 68 73 7a 25 |os&,_hnu|m%,_hsz%|
|00004090| 2c 5f 68 72 73 7a 25 0d | 0a 47 4c 4f 42 41 4c 20 |,_hrsz%.|.GLOBAL |
|000040a0| 5f 63 70 6f 73 26 09 09 | 09 09 09 52 65 6d 20 74 |_cpos&..|...Rem t|
|000040b0| 68 69 73 20 61 6c 6c 6f | 77 73 20 73 65 74 2c 20 |his allo|ws set, |
|000040c0| 65 74 63 20 74 6f 20 72 | 65 73 65 74 20 74 68 65 |etc to r|eset the|
|000040d0| 20 70 6f 73 69 74 69 6f | 6e 20 69 6e 20 74 68 65 | positio|n in the|
|000040e0| 0d 0a 09 09 09 09 09 09 | 09 09 09 09 09 09 52 65 |........|......Re|
|000040f0| 6d 20 68 69 73 74 6f 72 | 79 20 6c 69 73 74 20 66 |m histor|y list f|
|00004100| 6f 72 20 67 65 74 69 6e | 24 0d 0a 47 4c 4f 42 41 |or getin|$..GLOBA|
|00004110| 4c 20 53 63 72 49 6e 66 | 6f 25 28 31 30 29 0d 0a |L ScrInf|o%(10)..|
|00004120| 47 4c 4f 42 41 4c 20 5f | 6f 70 74 73 25 28 35 29 |GLOBAL _|opts%(5)|
|00004130| 0d 0a 47 4c 4f 42 41 4c | 20 5f 6f 70 74 73 24 28 |..GLOBAL| _opts$(|
|00004140| 33 38 29 09 09 09 09 52 | 65 6d 20 45 58 41 43 54 |38)....R|em EXACT|
|00004150| 20 6d 61 78 20 73 69 7a | 65 20 77 68 65 6e 20 61 | max siz|e when a|
|00004160| 6c 6c 20 76 61 72 69 61 | 62 6c 65 73 20 61 72 65 |ll varia|bles are|
|00004170| 20 73 65 74 0d 0a 52 65 | 6d 20 47 4c 4f 42 41 4c | set..Re|m GLOBAL|
|00004180| 20 76 61 72 55 4e 49 58 | 25 2c 76 61 72 41 70 70 | varUNIX|%,varApp|
|00004190| 25 2c 76 61 72 45 63 68 | 6f 25 2c 76 61 72 53 74 |%,varEch|o%,varSt|
|000041a0| 79 6c 25 0d 0a 47 4c 4f | 42 41 4c 20 5f 6f 75 74 |yl%..GLO|BAL _out|
|000041b0| 25 09 09 09 09 09 09 52 | 65 6d 20 68 61 6e 64 6c |%......R|em handl|
|000041c0| 65 20 66 6f 72 20 72 65 | 64 69 72 65 63 74 65 64 |e for re|directed|
|000041d0| 20 6f 75 74 70 75 74 0d | 0a 47 4c 4f 42 41 4c 20 | output.|.GLOBAL |
|000041e0| 5f 69 6e 25 09 09 09 09 | 09 09 52 65 6d 20 68 61 |_in%....|..Rem ha|
|000041f0| 6e 64 6c 65 20 66 6f 72 | 20 72 65 64 69 72 65 63 |ndle for| redirec|
|00004200| 74 65 64 2f 70 69 70 65 | 64 20 69 6e 70 75 74 0d |ted/pipe|d input.|
|00004210| 0a 47 4c 4f 42 41 4c 20 | 61 72 67 76 26 28 31 32 |.GLOBAL |argv&(12|
|00004220| 38 29 0d 0a 47 4c 4f 42 | 41 4c 20 5f 76 61 72 73 |8)..GLOB|AL _vars|
|00004230| 26 0d 0a 47 4c 4f 42 41 | 4c 20 5f 6b 65 79 73 26 |&..GLOBA|L _keys&|
|00004240| 09 09 09 09 09 52 65 6d | 20 61 64 64 72 65 73 73 |.....Rem| address|
|00004250| 20 6f 66 20 6b 65 79 20 | 74 61 62 6c 65 20 28 35 | of key |table (5|
|00004260| 31 32 20 62 79 74 65 73 | 29 0d 0a 47 4c 4f 42 41 |12 bytes|)..GLOBA|
|00004270| 4c 20 5f 73 79 73 70 61 | 74 68 24 28 32 35 35 29 |L _syspa|th$(255)|
|00004280| 09 09 52 65 6d 20 6c 6f | 63 61 74 69 6f 6e 20 6f |..Rem lo|cation o|
|00004290| 66 20 66 69 6c 65 73 2c | 20 65 2e 67 2e 20 70 69 |f files,| e.g. pi|
|000042a0| 70 65 73 0d 0a 47 4c 4f | 42 41 4c 20 5f 68 65 72 |pes..GLO|BAL _her|
|000042b0| 65 24 28 36 34 29 09 09 | 09 09 52 65 6d 20 66 6c |e$(64)..|..Rem fl|
|000042c0| 61 67 20 61 6e 64 20 73 | 74 72 69 6e 67 20 74 6f |ag and s|tring to|
|000042d0| 20 73 65 61 72 63 68 20 | 66 6f 72 20 69 6e 20 22 | search |for in "|
|000042e0| 68 65 72 65 22 0d 0a 09 | 09 09 09 09 09 09 09 09 |here"...|........|
|000042f0| 09 09 09 52 65 6d 09 72 | 65 64 69 72 65 63 74 69 |...Rem.r|edirecti|
|00004300| 6f 6e 20 28 3c 3c 20 68 | 65 72 65 24 29 0d 0a 47 |on (<< h|ere$)..G|
|00004310| 4c 4f 42 41 4c 20 5f 6c | 6f 67 69 64 25 2c 5f 6c |LOBAL _l|ogid%,_l|
|00004320| 6f 67 77 25 2c 5f 6c 6f | 67 68 25 0d 0a 47 4c 4f |ogw%,_lo|gh%..GLO|
|00004330| 42 41 4c 20 5f 6c 6f 67 | 73 26 09 09 09 09 09 52 |BAL _log|s&.....R|
|00004340| 65 6d 20 62 61 73 65 20 | 6f 66 20 6c 6f 67 20 65 |em base |of log e|
|00004350| 6e 74 72 79 20 73 74 72 | 75 63 74 75 72 65 0d 0a |ntry str|ucture..|
|00004360| 47 4c 4f 42 41 4c 20 5f | 6c 6f 67 6e 25 09 09 09 |GLOBAL _|logn%...|
|00004370| 09 09 52 65 6d 20 63 75 | 72 72 65 6e 74 20 22 65 |..Rem cu|rrent "e|
|00004380| 6e 64 20 76 69 65 77 69 | 6e 67 20 70 6f 73 74 69 |nd viewi|ng posti|
|00004390| 6f 6e 22 20 69 6e 20 74 | 68 65 20 6c 6f 67 0d 0a |on" in t|he log..|
|000043a0| 47 4c 4f 42 41 4c 20 5f | 6c 6f 67 6c 25 09 09 09 |GLOBAL _|logl%...|
|000043b0| 09 09 52 65 6d 20 63 75 | 72 72 65 6e 74 20 65 6e |..Rem cu|rrent en|
|000043c0| 64 20 70 6f 73 69 74 69 | 6f 6e 20 69 6e 20 53 48 |d positi|on in SH|
|000043d0| 6c 6f 67 73 25 0d 0a 47 | 4c 4f 42 41 4c 20 5f 65 |logs%..G|LOBAL _e|
|000043e0| 78 74 65 76 65 6e 74 25 | 09 09 09 52 65 6d 20 75 |xtevent%|...Rem u|
|000043f0| 73 65 64 20 74 6f 20 69 | 6e 64 69 63 61 74 65 20 |sed to i|ndicate |
|00004400| 62 75 74 74 6f 6e 73 2c | 20 65 74 63 2e 0d 0a 47 |buttons,| etc...G|
|00004410| 4c 4f 42 41 4c 20 5f 70 | 75 73 68 63 26 09 09 09 |LOBAL _p|ushc&...|
|00004420| 09 52 65 6d 20 63 75 72 | 72 65 6e 74 20 6c 6f 63 |.Rem cur|rent loc|
|00004430| 61 74 69 6f 6e 20 69 6e | 20 70 75 73 68 64 20 74 |ation in| pushd t|
|00004440| 61 62 6c 65 0d 0a 47 4c | 4f 42 41 4c 20 5f 68 65 |able..GL|OBAL _he|
|00004450| 6c 70 26 09 09 09 09 09 | 52 65 6d 20 62 61 73 65 |lp&.....|Rem base|
|00004460| 20 6f 66 20 6c 69 6e 6b | 65 64 20 6c 69 73 74 20 | of link|ed list |
|00004470| 6f 66 20 6f 70 65 6e 20 | 68 65 6c 70 20 66 69 6c |of open |help fil|
|00004480| 65 73 0d 0a 47 4c 4f 42 | 41 4c 20 5f 73 6e 64 73 |es..GLOB|AL _snds|
|00004490| 74 61 74 26 09 09 09 09 | 52 65 6d 20 73 6f 75 6e |tat&....|Rem soun|
|000044a0| 64 20 73 74 61 74 75 73 | 20 77 6f 72 64 0d 0a 47 |d status| word..G|
|000044b0| 4c 4f 42 41 4c 20 5f 73 | 74 79 6c 65 25 09 09 09 |LOBAL _s|tyle%...|
|000044c0| 09 09 52 65 6d 20 74 65 | 78 74 20 77 69 6e 64 6f |..Rem te|xt windo|
|000044d0| 77 20 63 75 72 72 65 6e | 74 20 73 74 79 6c 65 21 |w curren|t style!|
|000044e0| 21 0d 0a 47 4c 4f 42 41 | 4c 20 5f 61 63 74 24 28 |!..GLOBA|L _act$(|
|000044f0| 31 33 2c 31 32 29 09 09 | 09 52 65 6d 20 6e 61 6d |13,12)..|.Rem nam|
|00004500| 65 73 20 6f 66 20 31 33 | 20 6b 65 79 20 6f 70 65 |es of 13| key ope|
|00004510| 72 61 74 69 6f 6e 73 0d | 0a 52 65 6d 20 47 4c 4f |rations.|.Rem GLO|
|00004520| 42 41 4c 20 5f 61 6c 6c | 6f 63 26 09 09 09 52 65 |BAL _all|oc&...Re|
|00004530| 6d 20 64 65 62 75 67 20 | 61 6c 6c 6f 63 20 6c 69 |m debug |alloc li|
|00004540| 73 74 0d 0a 52 65 6d 20 | 47 4c 4f 42 41 4c 20 5f |st..Rem |GLOBAL _|
|00004550| 6e 61 6c 6c 6f 63 26 09 | 09 52 65 6d 20 63 6f 75 |nalloc&.|.Rem cou|
|00004560| 6e 74 65 72 20 66 6f 72 | 20 64 65 62 75 67 20 61 |nter for| debug a|
|00004570| 6c 6c 6f 63 0d 0a 52 65 | 6d 20 47 4c 4f 42 41 4c |lloc..Re|m GLOBAL|
|00004580| 20 5f 70 61 6c 6c 6f 63 | 26 09 09 52 65 6d 20 63 | _palloc|&..Rem c|
|00004590| 75 72 72 65 6e 74 20 6c | 61 73 74 20 65 6c 65 6d |urrent l|ast elem|
|000045a0| 65 6e 74 0d 0a 52 65 6d | 20 47 4c 4f 42 41 4c 20 |ent..Rem| GLOBAL |
|000045b0| 5f 74 61 6c 6c 6f 63 26 | 09 09 52 65 6d 20 63 75 |_talloc&|..Rem cu|
|000045c0| 72 72 65 6e 74 20 6e 75 | 6d 62 65 72 20 6f 66 20 |rrent nu|mber of |
|000045d0| 68 65 61 70 20 65 6e 74 | 69 74 69 65 73 0d 0a 52 |heap ent|ities..R|
|000045e0| 65 6d 20 47 4c 4f 42 41 | 4c 20 76 61 72 4d 65 6d |em GLOBA|L varMem|
|000045f0| 44 65 62 75 67 25 0d 0a | 4c 4f 43 41 4c 20 6c 69 |Debug%..|LOCAL li|
|00004600| 6e 65 24 28 32 35 35 29 | 2c 70 26 2c 71 26 0d 0a |ne$(255)|,p&,q&..|
|00004610| 52 65 6d 20 6d 61 69 6e | 20 6c 6f 6f 70 0d 0a 09 |Rem main| loop...|
|00004620| 4f 4e 45 52 52 20 45 72 | 72 54 72 61 70 3a 3a 0d |ONERR Er|rTrap::.|
|00004630| 0a 09 5f 69 6e 69 74 3a | 09 52 65 6d 20 69 6e 69 |.._init:|.Rem ini|
|00004640| 74 69 61 6c 69 7a 65 20 | 74 68 69 6e 67 73 2e 2e |tialize |things..|
|00004650| 2e 0d 0a 09 44 4f 0d 0a | 09 09 44 4f 0d 0a 09 09 |....DO..|..DO....|
|00004660| 09 6c 69 6e 65 24 3d 5f | 67 65 74 69 6e 24 3a 28 |.line$=_|getin$:(|
|00004670| 5f 6d 6b 70 72 24 3a 28 | 47 65 74 56 61 72 24 3a |_mkpr$:(|GetVar$:|
|00004680| 28 22 70 72 6f 6d 70 74 | 22 29 29 29 0d 0a 09 09 |("prompt|")))....|
|00004690| 55 4e 54 49 4c 20 4c 45 | 4e 28 6c 69 6e 65 24 29 |UNTIL LE|N(line$)|
|000046a0| 0d 0a 09 09 49 46 20 50 | 45 45 4b 4c 28 5f 68 70 |....IF P|EEKL(_hp|
|000046b0| 6f 73 26 2b 38 29 09 09 | 52 65 6d 20 44 61 74 61 |os&+8)..|Rem Data|
|000046c0| 20 70 61 72 74 20 69 73 | 20 75 73 65 64 20 73 6f | part is| used so|
|000046d0| 20 66 72 65 65 20 66 69 | 72 73 74 0d 0a 09 09 09 | free fi|rst.....|
|000046e0| 46 52 45 45 41 4c 4c 4f | 43 28 50 45 45 4b 4c 28 |FREEALLO|C(PEEKL(|
|000046f0| 5f 68 70 6f 73 26 2b 38 | 29 29 0d 0a 52 65 6d 09 |_hpos&+8|))..Rem.|
|00004700| 09 09 46 52 45 45 41 4c | 4c 4f 43 26 3a 28 50 45 |..FREEAL|LOC&:(PE|
|00004710| 45 4b 4c 28 5f 68 70 6f | 73 26 2b 38 29 29 0d 0a |EKL(_hpo|s&+8))..|
|00004720| 09 09 45 4e 44 49 46 0d | 0a 09 09 50 4f 4b 45 4c |..ENDIF.|...POKEL|
|00004730| 20 5f 68 70 6f 73 26 2b | 38 2c 41 4c 4c 4f 43 28 | _hpos&+|8,ALLOC(|
|00004740| 28 4c 45 4e 28 6c 69 6e | 65 24 29 2b 31 36 29 20 |(LEN(lin|e$)+16) |
|00004750| 41 4e 44 20 24 46 46 46 | 30 29 0d 0a 52 65 6d 09 |AND $FFF|0)..Rem.|
|00004760| 09 50 4f 4b 45 4c 20 5f | 68 70 6f 73 26 2b 38 2c |.POKEL _|hpos&+8,|
|00004770| 41 4c 4c 4f 43 26 3a 28 | 28 4c 45 4e 28 6c 69 6e |ALLOC&:(|(LEN(lin|
|00004780| 65 24 29 2b 31 36 29 20 | 41 4e 44 20 24 46 46 46 |e$)+16) |AND $FFF|
|00004790| 30 2c 22 6d 61 69 6e 31 | 22 29 0d 0a 52 65 6d 20 |0,"main1|")..Rem |
|000047a0| 73 69 7a 65 20 3d 20 31 | 20 66 6f 72 20 73 69 7a |size = 1| for siz|
|000047b0| 65 20 6f 66 20 73 74 72 | 69 6e 67 2c 20 31 35 20 |e of str|ing, 15 |
|000047c0| 74 6f 20 65 6e 73 75 72 | 65 20 6d 69 6e 69 6d 75 |to ensur|e minimu|
|000047d0| 6d 20 6d 65 6d 6f 72 79 | 20 69 73 20 61 6c 6c 6f |m memory| is allo|
|000047e0| 63 61 74 65 64 0d 0a 09 | 09 49 46 20 50 45 45 4b |cated...|.IF PEEK|
|000047f0| 4c 28 5f 68 70 6f 73 26 | 2b 38 29 3d 30 0d 0a 09 |L(_hpos&|+8)=0...|
|00004800| 09 09 52 41 49 53 45 20 | 2d 31 30 0d 0a 09 09 45 |..RAISE |-10....E|
|00004810| 4e 44 49 46 0d 0a 09 09 | 50 4f 4b 45 24 20 50 45 |NDIF....|POKE$ PE|
|00004820| 45 4b 4c 28 5f 68 70 6f | 73 26 2b 38 29 2c 6c 69 |EKL(_hpo|s&+8),li|
|00004830| 6e 65 24 0d 0a 09 09 49 | 46 20 5f 68 73 7a 25 20 |ne$....I|F _hsz% |
|00004840| 3e 20 5f 68 72 73 7a 25 | 0d 0a 09 09 52 65 6d 20 |> _hrsz%|....Rem |
|00004850| 68 69 73 74 6f 72 79 20 | 69 73 20 73 65 74 20 6c |history |is set l|
|00004860| 61 72 67 65 72 20 74 68 | 61 6e 20 69 74 20 63 75 |arger th|an it cu|
|00004870| 72 72 65 6e 74 6c 79 20 | 69 73 2c 20 73 6f 20 61 |rrently |is, so a|
|00004880| 6c 6c 6f 63 61 74 65 20 | 61 6e 6f 74 68 65 72 20 |llocate |another |
|00004890| 6d 65 6d 62 65 72 0d 0a | 09 09 09 70 26 3d 5f 68 |member..|...p&=_h|
|000048a0| 70 6f 73 26 0d 0a 09 09 | 09 71 26 3d 50 45 45 4b |pos&....|.q&=PEEK|
|000048b0| 4c 28 70 26 29 0d 0a 09 | 09 09 50 4f 4b 45 4c 20 |L(p&)...|..POKEL |
|000048c0| 70 26 2c 41 4c 4c 4f 43 | 28 31 36 29 09 09 52 65 |p&,ALLOC|(16)..Re|
|000048d0| 6d 20 31 32 2c 20 62 75 | 74 20 72 6f 75 6e 64 65 |m 12, bu|t rounde|
|000048e0| 64 20 74 6f 20 31 36 20 | 74 6f 20 61 76 6f 69 64 |d to 16 |to avoid|
|000048f0| 20 66 72 61 67 6d 65 6e | 74 61 74 69 6f 6e 0d 0a | fragmen|tation..|
|00004900| 52 65 6d 09 09 09 50 4f | 4b 45 4c 20 70 26 2c 41 |Rem...PO|KEL p&,A|
|00004910| 4c 4c 4f 43 26 3a 28 31 | 36 2c 22 6d 61 69 6e 32 |LLOC&:(1|6,"main2|
|00004920| 22 29 09 09 52 65 6d 20 | 31 32 2c 20 62 75 74 20 |")..Rem |12, but |
|00004930| 72 6f 75 6e 64 65 64 20 | 74 6f 20 31 36 20 74 6f |rounded |to 16 to|
|00004940| 20 61 76 6f 69 64 20 66 | 72 61 67 6d 65 6e 74 61 | avoid f|ragmenta|
|00004950| 74 69 6f 6e 0d 0a 09 09 | 09 5f 68 70 6f 73 26 3d |tion....|._hpos&=|
|00004960| 50 45 45 4b 4c 28 70 26 | 29 0d 0a 09 09 09 49 46 |PEEKL(p&|).....IF|
|00004970| 20 5f 68 70 6f 73 26 3d | 30 0d 0a 09 09 09 09 52 | _hpos&=|0......R|
|00004980| 41 49 53 45 20 2d 31 30 | 0d 0a 09 09 09 45 4e 44 |AISE -10|.....END|
|00004990| 49 46 0d 0a 09 09 09 50 | 4f 4b 45 4c 20 5f 68 70 |IF.....P|OKEL _hp|
|000049a0| 6f 73 26 2c 71 26 09 09 | 52 65 6d 20 67 6c 75 65 |os&,q&..|Rem glue|
|000049b0| 20 27 6e 65 78 74 27 0d | 0a 09 09 09 50 4f 4b 45 | 'next'.|....POKE|
|000049c0| 4c 20 5f 68 70 6f 73 26 | 2b 34 2c 70 26 09 52 65 |L _hpos&|+4,p&.Re|
|000049d0| 6d 20 67 6c 75 65 20 27 | 70 72 65 76 69 6f 75 73 |m glue '|previous|
|000049e0| 27 0d 0a 09 09 09 50 4f | 4b 45 4c 20 5f 68 70 6f |'.....PO|KEL _hpo|
|000049f0| 73 26 2b 38 2c 30 0d 0a | 09 09 09 50 4f 4b 45 4c |s&+8,0..|...POKEL|
|00004a00| 20 71 26 2b 34 2c 5f 68 | 70 6f 73 26 09 09 52 65 | q&+4,_h|pos&..Re|
|00004a10| 6d 20 67 6c 75 65 20 72 | 65 66 65 72 65 6e 63 65 |m glue r|eference|
|00004a20| 0d 0a 09 09 09 5f 68 72 | 73 7a 25 3d 5f 68 72 73 |....._hr|sz%=_hrs|
|00004a30| 7a 25 2b 31 0d 0a 09 09 | 45 4c 53 45 0d 0a 09 09 |z%+1....|ELSE....|
|00004a40| 09 5f 68 70 6f 73 26 3d | 50 45 45 4b 4c 28 5f 68 |._hpos&=|PEEKL(_h|
|00004a50| 70 6f 73 26 29 0d 0a 09 | 09 45 4e 44 49 46 0d 0a |pos&)...|.ENDIF..|
|00004a60| 09 09 50 4f 4b 45 42 20 | 5f 63 75 72 72 26 2b 50 |..POKEB |_curr&+P|
|00004a70| 52 5f 46 4c 41 47 25 2c | 30 09 09 52 65 6d 20 72 |R_FLAG%,|0..Rem r|
|00004a80| 65 73 65 74 20 65 78 69 | 74 20 66 6c 61 67 0d 0a |eset exi|t flag..|
|00004a90| 09 09 5f 70 72 6f 63 25 | 3a 28 6c 69 6e 65 24 29 |.._proc%|:(line$)|
|00004aa0| 0d 0a 09 09 5f 68 6e 75 | 6d 25 3d 5f 68 6e 75 6d |...._hnu|m%=_hnum|
|00004ab0| 25 2b 31 0d 0a 09 55 4e | 54 49 4c 20 50 45 45 4b |%+1...UN|TIL PEEK|
|00004ac0| 42 28 5f 63 75 72 72 26 | 2b 50 52 5f 46 4c 41 47 |B(_curr&|+PR_FLAG|
|00004ad0| 25 29 09 09 52 65 6d 20 | 75 6e 74 69 6c 20 65 78 |%)..Rem |until ex|
|00004ae0| 69 74 21 0d 0a 52 65 6d | 09 50 52 49 4e 54 20 22 |it!..Rem|.PRINT "|
|00004af0| 45 78 69 74 69 6e 67 2c | 20 73 74 61 74 75 73 22 |Exiting,| status"|
|00004b00| 2c 50 45 45 4b 42 28 5f | 63 75 72 72 26 2b 50 52 |,PEEKB(_|curr&+PR|
|00004b10| 5f 46 4c 41 47 25 29 0d | 0a 09 5f 65 78 69 74 3a |_FLAG%).|.._exit:|
|00004b20| 09 09 09 52 65 6d 20 63 | 6c 65 61 6e 20 75 70 20 |...Rem c|lean up |
|00004b30| 61 6e 64 20 6e 65 76 65 | 72 20 72 65 74 75 72 6e |and neve|r return|
|00004b40| 0d 0a 45 72 72 54 72 61 | 70 3a 3a 0d 0a 09 4f 4e |..ErrTra|p::...ON|
|00004b50| 45 52 52 20 6f 66 66 0d | 0a 09 50 52 49 4e 54 20 |ERR off.|..PRINT |
|00004b60| 22 46 61 74 61 6c 3a 22 | 2c 65 72 72 78 24 2c 65 |"Fatal:"|,errx$,e|
|00004b70| 72 72 24 3a 28 45 52 52 | 29 0d 0a 09 47 45 54 0d |rr$:(ERR|)...GET.|
|00004b80| 0a 45 4e 44 50 0d 0a 0d | 0a 50 52 4f 43 20 5f 73 |.ENDP...|.PROC _s|
|00004b90| 74 6f 72 65 25 3a 28 61 | 64 64 72 26 2c 73 74 6f |tore%:(a|ddr&,sto|
|00004ba0| 72 65 25 2c 70 61 26 29 | 0d 0a 52 65 6d 20 70 61 |re%,pa&)|..Rem pa|
|00004bb0| 26 20 69 73 20 74 68 65 | 20 70 72 6f 63 20 73 74 |& is the| proc st|
|00004bc0| 72 75 63 74 75 72 65 20 | 74 6f 20 75 73 65 2c 20 |ructure |to use, |
|00004bd0| 63 6f 75 6c 64 20 62 65 | 20 67 6c 6f 62 61 6c 73 |could be| globals|
|00004be0| 21 0d 0a 4c 4f 43 41 4c | 20 76 25 2c 65 25 2c 6f |!..LOCAL| v%,e%,o|
|00004bf0| 75 74 24 28 32 35 35 29 | 2c 66 25 2c 70 26 2c 62 |ut$(255)|,f%,p&,b|
|00004c00| 75 66 24 28 32 35 35 29 | 2c 6e 25 2c 61 74 74 72 |uf$(255)|,n%,attr|
|00004c10| 25 28 38 29 2c 72 65 74 | 25 2c 6f 6c 64 6e 25 0d |%(8),ret|%,oldn%.|
|00004c20| 0a 09 66 25 3d 50 45 45 | 4b 57 28 61 64 64 72 26 |..f%=PEE|KW(addr&|
|00004c30| 29 0d 0a 09 6f 75 74 24 | 3d 50 45 45 4b 24 28 61 |)...out$|=PEEK$(a|
|00004c40| 64 64 72 26 2b 37 29 0d | 0a 52 65 6d 09 50 52 49 |ddr&+7).|.Rem.PRI|
|00004c50| 4e 54 20 66 25 2c 6f 75 | 74 24 2c 70 61 26 0d 0a |NT f%,ou|t$,pa&..|
|00004c60| 09 49 46 20 66 25 20 41 | 4e 44 20 24 34 30 0d 0a |.IF f% A|ND $40..|
|00004c70| 09 09 66 25 3d 66 25 20 | 41 4e 44 20 24 46 46 42 |..f%=f% |AND $FFB|
|00004c80| 46 09 52 65 6d 20 63 6c | 65 61 72 20 76 61 72 20 |F.Rem cl|ear var |
|00004c90| 66 6c 61 67 0d 0a 09 09 | 76 25 3d 50 45 45 4b 57 |flag....|v%=PEEKW|
|00004ca0| 28 61 64 64 72 26 2b 32 | 29 0d 0a 09 09 49 46 20 |(addr&+2|)....IF |
|00004cb0| 76 25 20 3c 3e 20 4c 45 | 4e 28 6f 75 74 24 29 09 |v% <> LE|N(out$).|
|00004cc0| 52 65 6d 20 69 67 6e 6f | 72 65 20 61 24 2c 20 24 |Rem igno|re a$, $|
|00004cd0| 0d 0a 09 09 09 62 75 66 | 24 3d 52 49 47 48 54 24 |.....buf|$=RIGHT$|
|00004ce0| 28 6f 75 74 24 2c 4c 45 | 4e 28 6f 75 74 24 29 2d |(out$,LE|N(out$)-|
|00004cf0| 76 25 29 0d 0a 09 09 09 | 6f 75 74 24 3d 4c 45 46 |v%).....|out$=LEF|
|00004d00| 54 24 28 6f 75 74 24 2c | 76 25 29 0d 0a 09 09 09 |T$(out$,|v%).....|
|00004d10| 49 46 20 4c 45 4e 28 62 | 75 66 24 29 3d 31 09 52 |IF LEN(b|uf$)=1.R|
|00004d20| 65 6d 20 24 78 0d 0a 52 | 65 6d 09 09 09 09 50 52 |em $x..R|em....PR|
|00004d30| 49 4e 54 20 22 4f 6e 65 | 20 63 68 61 72 61 63 74 |INT "One| charact|
|00004d40| 65 72 20 6c 6f 6f 6b 75 | 70 3a 22 2c 62 75 66 24 |er looku|p:",buf$|
|00004d50| 0d 0a 09 09 09 09 6e 25 | 3d 41 53 43 28 62 75 66 |......n%|=ASC(buf|
|00004d60| 24 29 0d 0a 09 09 09 09 | 70 26 3d 50 45 45 4b 4c |$)......|p&=PEEKL|
|00004d70| 28 70 61 26 2b 50 52 5f | 42 41 43 4b 25 29 09 52 |(pa&+PR_|BACK%).R|
|00004d80| 65 6d 20 70 61 72 65 6e | 74 20 61 72 67 73 0d 0a |em paren|t args..|
|00004d90| 09 09 09 09 49 46 20 6e | 25 3d 25 3f 0d 0a 09 09 |....IF n|%=%?....|
|00004da0| 09 09 09 62 75 66 24 3d | 4e 55 4d 24 28 50 45 45 |...buf$=|NUM$(PEE|
|00004db0| 4b 57 28 70 26 2b 50 52 | 5f 53 54 41 54 55 53 25 |KW(p&+PR|_STATUS%|
|00004dc0| 29 2c 35 29 0d 0a 52 65 | 6d 09 09 09 09 09 50 52 |),5)..Re|m.....PR|
|00004dd0| 49 4e 54 20 22 47 6f 74 | 20 24 3f 2c 20 73 74 61 |INT "Got| $?, sta|
|00004de0| 74 75 73 2c 20 72 65 74 | 75 72 6e 69 6e 67 22 2c |tus, ret|urning",|
|00004df0| 62 75 66 24 2c 50 45 45 | 4b 57 28 70 26 2b 50 52 |buf$,PEE|KW(p&+PR|
|00004e00| 5f 53 54 41 54 55 53 25 | 29 2c 70 26 2b 50 52 5f |_STATUS%|),p&+PR_|
|00004e10| 53 54 41 54 55 53 25 0d | 0a 09 09 09 09 09 47 4f |STATUS%.|......GO|
|00004e20| 54 4f 20 46 6c 6f 6f 7a | 79 3a 3a 0d 0a 09 09 09 |TO Flooz|y::.....|
|00004e30| 09 45 4c 53 45 49 46 20 | 6e 25 3d 25 23 0d 0a 09 |.ELSEIF |n%=%#...|
|00004e40| 09 09 09 09 52 65 6d 20 | 70 61 72 65 6e 74 20 61 |....Rem |parent a|
|00004e50| 72 67 73 2d 31 0d 0a 09 | 09 09 09 09 62 75 66 24 |rgs-1...|....buf$|
|00004e60| 3d 4e 55 4d 24 28 50 45 | 45 4b 42 28 70 26 29 2d |=NUM$(PE|EKB(p&)-|
|00004e70| 50 45 45 4b 42 28 70 26 | 2b 50 52 5f 4f 46 46 53 |PEEKB(p&|+PR_OFFS|
|00004e80| 45 54 25 29 2d 31 2c 35 | 29 0d 0a 52 65 6d 09 09 |ET%)-1,5|)..Rem..|
|00004e90| 09 09 09 50 52 49 4e 54 | 20 22 47 6f 74 20 24 23 |...PRINT| "Got $#|
|00004ea0| 2c 20 6e 6f 20 6f 66 20 | 61 72 67 73 2c 20 72 65 |, no of |args, re|
|00004eb0| 74 75 72 6e 69 6e 67 22 | 2c 62 75 66 24 0d 0a 09 |turning"|,buf$...|
|00004ec0| 09 09 09 09 47 4f 54 4f | 20 46 6c 6f 6f 7a 79 3a |....GOTO| Floozy:|
|00004ed0| 3a 0d 0a 09 09 09 09 45 | 4c 53 45 49 46 20 6e 25 |:......E|LSEIF n%|
|00004ee0| 3e 3d 25 30 20 41 4e 44 | 20 6e 25 3c 3d 25 39 0d |>=%0 AND| n%<=%9.|
|00004ef0| 0a 52 65 6d 09 09 09 09 | 09 50 52 49 4e 54 20 22 |.Rem....|.PRINT "|
|00004f00| 47 6f 74 20 24 22 3b 43 | 48 52 24 28 6e 25 29 0d |Got $";C|HR$(n%).|
|00004f10| 0a 09 09 09 09 09 6e 25 | 3d 6e 25 2d 25 30 09 52 |......n%|=n%-%0.R|
|00004f20| 65 6d 20 67 65 74 20 6e | 75 6d 62 65 72 20 30 2d |em get n|umber 0-|
|00004f30| 39 0d 0a 52 65 6d 09 09 | 09 09 09 50 52 49 4e 54 |9..Rem..|...PRINT|
|00004f40| 20 22 6e 25 20 69 73 3a | 22 2c 6e 25 0d 0a 09 09 | "n% is:|",n%....|
|00004f50| 09 09 09 49 46 20 6e 25 | 09 09 09 52 65 6d 20 31 |...IF n%|...Rem 1|
|00004f60| 2d 39 0d 0a 52 65 6d 09 | 09 09 09 09 09 50 52 49 |-9..Rem.|.....PRI|
|00004f70| 4e 54 20 22 24 31 20 74 | 6f 20 24 39 22 0d 0a 09 |NT "$1 t|o $9"...|
|00004f80| 09 09 09 09 09 6e 25 3d | 6e 25 2b 50 45 45 4b 42 |.....n%=|n%+PEEKB|
|00004f90| 28 70 26 2b 50 52 5f 4f | 46 46 53 45 54 25 29 0d |(p&+PR_O|FFSET%).|
|00004fa0| 0a 09 09 09 09 09 09 52 | 65 6d 20 64 6f 6e 27 74 |.......R|em don't|
|00004fb0| 20 73 68 69 66 74 20 69 | 6e 20 24 30 20 4f 52 20 | shift i|n $0 OR |
|00004fc0| 68 61 76 65 20 6e 25 20 | 3e 20 6e 6f 20 6f 66 20 |have n% |> no of |
|00004fd0| 61 72 67 73 0d 0a 09 09 | 09 09 09 09 49 46 20 6e |args....|....IF n|
|00004fe0| 25 3e 3d 50 45 45 4b 42 | 28 70 26 29 0d 0a 52 65 |%>=PEEKB|(p&)..Re|
|00004ff0| 6d 09 09 09 09 09 09 09 | 50 52 49 4e 54 20 22 4f |m.......|PRINT "O|
|00005000| 75 74 20 6f 66 20 72 61 | 6e 67 65 22 0d 0a 09 09 |ut of ra|nge"....|
|00005010| 09 09 09 09 09 47 4f 54 | 4f 20 44 6f 4e 6f 77 74 |.....GOT|O DoNowt|
|00005020| 3a 3a 0d 0a 09 09 09 09 | 09 09 45 4e 44 49 46 0d |::......|..ENDIF.|
|00005030| 0a 09 09 09 09 09 45 4e | 44 49 46 0d 0a 09 09 09 |......EN|DIF.....|
|00005040| 09 09 62 75 66 24 3d 50 | 45 45 4b 24 28 50 45 45 |..buf$=P|EEK$(PEE|
|00005050| 4b 4c 28 70 26 2b 34 2a | 6e 25 2b 50 52 5f 41 52 |KL(p&+4*|n%+PR_AR|
|00005060| 47 56 25 29 29 0d 0a 52 | 65 6d 09 09 09 09 50 52 |GV%))..R|em....PR|
|00005070| 49 4e 54 20 70 26 2c 6e | 25 2c 62 75 66 24 0d 0a |INT p&,n|%,buf$..|
|00005080| 46 6c 6f 6f 7a 79 3a 3a | 09 09 6f 75 74 24 3d 6f |Floozy::|..out$=o|
|00005090| 75 74 24 2b 62 75 66 24 | 0d 0a 09 09 09 09 09 47 |ut$+buf$|.......G|
|000050a0| 4f 54 4f 20 44 6f 4e 6f | 77 74 3a 3a 0d 0a 09 09 |OTO DoNo|wt::....|
|000050b0| 09 09 45 4e 44 49 46 0d | 0a 09 09 09 45 4e 44 49 |..ENDIF.|....ENDI|
|000050c0| 46 0d 0a 09 09 09 70 26 | 3d 50 45 45 4b 4c 28 5f |F.....p&|=PEEKL(_|
|000050d0| 76 61 72 73 26 29 0d 0a | 09 09 09 57 48 49 4c 45 |vars&)..|...WHILE|
|000050e0| 20 70 26 0d 0a 09 09 09 | 09 49 46 20 50 45 45 4b | p&.....|.IF PEEK|
|000050f0| 24 28 50 45 45 4b 4c 28 | 70 26 2b 34 29 29 3d 62 |$(PEEKL(|p&+4))=b|
|00005100| 75 66 24 0d 0a 09 09 09 | 09 09 6f 75 74 24 3d 6f |uf$.....|..out$=o|
|00005110| 75 74 24 2b 50 45 45 4b | 24 28 50 45 45 4b 4c 28 |ut$+PEEK|$(PEEKL(|
|00005120| 70 26 2b 38 29 29 0d 0a | 09 09 09 09 09 42 52 45 |p&+8))..|.....BRE|
|00005130| 41 4b 0d 0a 09 09 09 09 | 45 4e 44 49 46 0d 0a 09 |AK......|ENDIF...|
|00005140| 09 09 09 70 26 3d 50 45 | 45 4b 4c 28 70 26 29 0d |...p&=PE|EKL(p&).|
|00005150| 0a 09 09 09 45 4e 44 57 | 48 0d 0a 44 6f 4e 6f 77 |....ENDW|H..DoNow|
|00005160| 74 3a 3a 0d 0a 09 09 09 | 50 4f 4b 45 57 20 61 64 |t::.....|POKEW ad|
|00005170| 64 72 26 2b 32 2c 30 09 | 52 65 6d 20 63 6c 65 61 |dr&+2,0.|Rem clea|
|00005180| 72 20 76 25 0d 0a 09 09 | 45 4e 44 49 46 0d 0a 09 |r v%....|ENDIF...|
|00005190| 45 4e 44 49 46 0d 0a 09 | 49 46 20 28 66 25 20 41 |ENDIF...|IF (f% A|
|000051a0| 4e 44 20 24 38 31 29 20 | 3d 20 24 38 31 09 52 65 |ND $81) |= $81.Re|
|000051b0| 6d 20 24 7b 20 63 6f 6d | 70 6c 65 74 65 64 20 28 |m ${ com|pleted (|
|000051c0| 7d 20 72 65 73 65 74 73 | 20 66 6c 61 67 29 0d 0a |} resets| flag)..|
|000051d0| 09 09 65 25 3d 50 45 45 | 4b 57 28 61 64 64 72 26 |..e%=PEE|KW(addr&|
|000051e0| 2b 34 29 0d 0a 09 09 49 | 46 20 65 25 3c 3e 4c 45 |+4)....I|F e%<>LE|
|000051f0| 4e 28 6f 75 74 24 29 09 | 52 65 6d 20 24 7b 2e 2e |N(out$).|Rem ${..|
|00005200| 7d 20 69 73 6e 27 74 20 | 65 6d 70 74 79 0d 0a 09 |} isn't |empty...|
|00005210| 09 09 6f 75 74 24 3d 4c | 45 46 54 24 28 6f 75 74 |..out$=L|EFT$(out|
|00005220| 24 2c 65 25 29 2b 47 45 | 4e 24 28 45 56 41 4c 28 |$,e%)+GE|N$(EVAL(|
|00005230| 52 49 47 48 54 24 28 6f | 75 74 24 2c 4c 45 4e 28 |RIGHT$(o|ut$,LEN(|
|00005240| 6f 75 74 24 29 2d 65 25 | 29 29 2c 32 30 29 0d 0a |out$)-e%|)),20)..|
|00005250| 09 09 45 4e 44 49 46 0d | 0a 09 09 66 25 3d 66 25 |..ENDIF.|...f%=f%|
|00005260| 20 41 4e 44 20 24 46 46 | 37 45 0d 0a 09 09 50 4f | AND $FF|7E....PO|
|00005270| 4b 45 57 20 61 64 64 72 | 26 2b 34 2c 30 09 52 65 |KEW addr|&+4,0.Re|
|00005280| 6d 20 63 6c 65 61 72 20 | 65 25 0d 0a 09 45 4e 44 |m clear |e%...END|
|00005290| 49 46 0d 0a 09 49 46 20 | 73 74 6f 72 65 25 0d 0a |IF...IF |store%..|
|000052a0| 09 09 49 46 20 66 25 20 | 41 4e 44 20 24 46 30 30 |..IF f% |AND $F00|
|000052b0| 09 52 65 6d 20 63 68 65 | 63 6b 20 66 6f 72 20 72 |.Rem che|ck for r|
|000052c0| 65 64 69 72 65 63 74 69 | 6f 6e 0d 0a 09 09 09 49 |edirecti|on.....I|
|000052d0| 46 20 66 25 20 41 4e 44 | 20 24 32 30 09 52 65 6d |F f% AND| $20.Rem|
|000052e0| 20 6f 70 65 72 61 74 6f | 72 0d 0a 52 65 6d 09 09 | operato|r..Rem..|
|000052f0| 09 09 50 52 49 4e 54 20 | 22 44 65 62 75 67 3a 20 |..PRINT |"Debug: |
|00005300| 54 72 79 69 6e 67 20 74 | 6f 20 72 65 64 69 72 65 |Trying t|o redire|
|00005310| 63 74 20 6f 6e 20 61 6e | 20 6f 70 65 72 61 74 6f |ct on an| operato|
|00005320| 72 22 0d 0a 09 09 09 09 | 52 41 49 53 45 20 31 30 |r"......|RAISE 10|
|00005330| 0d 0a 09 09 09 45 4e 44 | 49 46 0d 0a 09 09 09 49 |.....END|IF.....I|
|00005340| 46 20 66 25 20 41 4e 44 | 20 24 38 30 30 09 52 65 |F f% AND| $800.Re|
|00005350| 6d 20 48 65 72 65 20 64 | 6f 63 20 28 3c 3c 29 0d |m Here d|oc (<<).|
|00005360| 0a 09 09 09 09 5f 68 65 | 72 65 24 3d 6f 75 74 24 |....._he|re$=out$|
|00005370| 0d 0a 09 09 09 09 49 46 | 20 50 45 45 4b 42 28 70 |......IF| PEEKB(p|
|00005380| 61 26 2b 50 52 5f 4c 45 | 56 25 29 3d 25 31 0d 0a |a&+PR_LE|V%)=%1..|
|00005390| 09 09 09 09 09 50 4f 4b | 45 42 20 70 61 26 2b 50 |.....POK|EB pa&+P|
|000053a0| 52 5f 4c 45 56 25 2c 25 | 32 0d 0a 09 09 09 09 45 |R_LEV%,%|2......E|
|000053b0| 4c 53 45 0d 0a 09 09 09 | 09 09 50 4f 4b 45 42 20 |LSE.....|..POKEB |
|000053c0| 70 61 26 2b 50 52 5f 4c | 45 56 25 2c 25 31 0d 0a |pa&+PR_L|EV%,%1..|
|000053d0| 09 09 09 09 45 4e 44 49 | 46 0d 0a 09 09 09 09 6f |....ENDI|F......o|
|000053e0| 75 74 24 3d 5f 73 79 73 | 70 61 74 68 24 2b 4e 55 |ut$=_sys|path$+NU|
|000053f0| 4d 24 28 50 45 45 4b 57 | 28 70 61 26 2b 50 52 5f |M$(PEEKW|(pa&+PR_|
|00005400| 4e 55 4d 25 29 2c 35 29 | 2b 22 70 69 70 65 2e 22 |NUM%),5)|+"pipe."|
|00005410| 2b 43 48 52 24 28 50 45 | 45 4b 42 28 70 61 26 2b |+CHR$(PE|EKB(pa&+|
|00005420| 50 52 5f 4c 45 56 25 29 | 29 0d 0a 52 65 6d 20 73 |PR_LEV%)|)..Rem s|
|00005430| 65 74 20 66 69 6c 65 6e | 61 6d 65 20 74 6f 20 77 |et filen|ame to w|
|00005440| 72 69 74 65 20 22 68 65 | 72 65 22 0d 0a 52 65 6d |rite "he|re"..Rem|
|00005450| 09 74 6f 20 61 6e 64 20 | 66 6f 72 20 74 68 65 20 |.to and |for the |
|00005460| 63 6f 6d 6d 61 6e 64 20 | 74 6f 20 67 65 74 20 69 |command |to get i|
|00005470| 74 27 73 20 69 6e 70 75 | 74 20 66 72 6f 6d 0d 0a |t's inpu|t from..|
|00005480| 09 09 09 45 4e 44 49 46 | 0d 0a 09 09 09 72 65 74 |...ENDIF|.....ret|
|00005490| 25 3d 46 70 61 72 73 65 | 25 3a 28 41 44 44 52 28 |%=Fparse|%:(ADDR(|
|000054a0| 62 75 66 24 29 2c 6f 75 | 74 24 29 09 52 65 6d 20 |buf$),ou|t$).Rem |
|000054b0| 70 61 72 73 65 20 66 69 | 6c 65 6e 61 6d 65 0d 0a |parse fi|lename..|
|000054c0| 09 09 09 49 46 20 72 65 | 74 25 3c 30 09 41 4e 44 |...IF re|t%<0.AND|
|000054d0| 20 72 65 74 25 3c 3e 2d | 33 33 0d 0a 09 09 09 09 | ret%<>-|33......|
|000054e0| 52 41 49 53 45 20 72 65 | 74 25 09 52 65 6d 20 61 |RAISE re|t%.Rem a|
|000054f0| 6e 79 20 65 72 72 6f 72 | 20 65 78 63 65 70 74 20 |ny error| except |
|00005500| 66 69 6c 65 20 64 6f 65 | 73 6e 27 74 20 65 78 69 |file doe|sn't exi|
|00005510| 73 74 0d 0a 09 09 09 45 | 4e 44 49 46 0d 0a 09 09 |st.....E|NDIF....|
|00005520| 09 49 46 20 66 25 20 41 | 4e 44 20 24 33 30 30 09 |.IF f% A|ND $300.|
|00005530| 52 65 6d 20 65 69 74 68 | 65 72 20 72 65 64 69 72 |Rem eith|er redir|
|00005540| 65 63 74 20 72 65 70 6c | 61 63 65 20 6f 72 20 61 |ect repl|ace or a|
|00005550| 70 70 65 6e 64 0d 0a 52 | 65 6d 20 63 68 65 63 6b |ppend..R|em check|
|00005560| 20 66 6f 72 20 65 78 69 | 73 74 69 6e 67 20 72 65 | for exi|sting re|
|00005570| 64 69 72 65 63 74 69 6f | 6e 0d 0a 09 09 09 09 49 |directio|n......I|
|00005580| 46 20 50 45 45 4b 57 28 | 70 61 26 2b 50 52 5f 4f |F PEEKW(|pa&+PR_O|
|00005590| 55 54 25 29 0d 0a 09 09 | 09 09 09 47 4f 54 4f 20 |UT%)....|...GOTO |
|000055a0| 54 69 64 79 3a 3a 09 52 | 65 6d 20 66 6f 72 67 65 |Tidy::.R|em forge|
|000055b0| 74 20 69 74 21 21 21 21 | 0d 0a 09 09 09 09 45 4e |t it!!!!|......EN|
|000055c0| 44 49 46 0d 0a 09 09 09 | 09 49 46 20 28 66 25 20 |DIF.....|.IF (f% |
|000055d0| 41 4e 44 20 24 32 30 30 | 29 20 4f 52 20 28 5f 6f |AND $200|) OR (_o|
|000055e0| 70 74 73 25 28 76 61 72 | 41 70 70 65 6e 64 25 29 |pts%(var|Append%)|
|000055f0| 29 09 52 65 6d 20 61 70 | 70 65 6e 64 2c 20 6e 6f |).Rem ap|pend, no|
|00005600| 74 20 72 65 70 6c 61 63 | 65 3f 0d 0a 52 65 6d 20 |t replac|e?..Rem |
|00005610| 41 70 70 65 6e 64 20 74 | 6f 20 66 69 6c 65 2c 20 |Append t|o file, |
|00005620| 6f 72 20 61 70 70 65 6e | 64 20 74 6f 20 66 6c 61 |or appen|d to fla|
|00005630| 67 20 69 73 20 73 65 74 | 0d 0a 09 09 09 09 09 72 |g is set|.......r|
|00005640| 65 74 25 3d 49 4f 4f 50 | 45 4e 28 23 70 61 26 2b |et%=IOOP|EN(#pa&+|
|00005650| 50 52 5f 4f 55 54 25 2c | 62 75 66 24 2c 24 30 31 |PR_OUT%,|buf$,$01|
|00005660| 32 33 29 0d 0a 09 09 09 | 09 09 49 46 20 72 65 74 |23).....|..IF ret|
|00005670| 25 3d 2d 33 33 09 52 65 | 6d 20 66 69 6c 65 20 64 |%=-33.Re|m file d|
|00005680| 6f 65 73 6e 27 74 20 65 | 78 69 73 74 0d 0a 43 72 |oesn't e|xist..Cr|
|00005690| 65 61 74 65 3a 3a 09 09 | 09 72 65 74 25 3d 49 4f |eate::..|.ret%=IO|
|000056a0| 4f 50 45 4e 28 23 70 61 | 26 2b 50 52 5f 4f 55 54 |OPEN(#pa|&+PR_OUT|
|000056b0| 25 2c 62 75 66 24 2c 24 | 30 31 32 32 29 0d 0a 09 |%,buf$,$|0122)...|
|000056c0| 09 09 09 09 45 4e 44 49 | 46 0d 0a 09 09 09 09 09 |....ENDI|F.......|
|000056d0| 49 46 20 72 65 74 25 09 | 09 09 09 52 65 6d 20 66 |IF ret%.|...Rem f|
|000056e0| 69 6c 65 20 64 6f 65 73 | 6e 27 74 20 65 78 69 73 |ile does|n't exis|
|000056f0| 74 0d 0a 09 09 09 09 09 | 09 52 41 49 53 45 20 72 |t.......|.RAISE r|
|00005700| 65 74 25 0d 0a 09 09 09 | 09 09 45 4e 44 49 46 0d |et%.....|..ENDIF.|
|00005710| 0a 09 09 09 09 45 4c 53 | 45 0d 0a 09 09 09 09 09 |.....ELS|E.......|
|00005720| 47 4f 54 4f 20 43 72 65 | 61 74 65 3a 3a 0d 0a 09 |GOTO Cre|ate::...|
|00005730| 09 09 09 45 4e 44 49 46 | 0d 0a 09 09 09 45 4c 53 |...ENDIF|.....ELS|
|00005740| 45 09 09 09 09 09 52 65 | 6d 20 69 6e 70 75 74 20 |E.....Re|m input |
|00005750| 72 65 64 69 72 65 63 74 | 69 6f 6e 20 28 24 34 30 |redirect|ion ($40|
|00005760| 30 20 6f 72 20 24 38 30 | 30 29 0d 0a 09 09 09 09 |0 or $80|0)......|
|00005770| 49 46 20 50 45 45 4b 57 | 28 70 61 26 2b 50 52 5f |IF PEEKW|(pa&+PR_|
|00005780| 49 4e 25 29 09 09 09 52 | 65 6d 20 63 68 65 63 6b |IN%)...R|em check|
|00005790| 20 66 6f 72 20 65 78 69 | 73 74 69 6e 67 20 72 65 | for exi|sting re|
|000057a0| 64 69 72 65 63 74 69 6f | 6e 0d 0a 09 09 09 09 09 |directio|n.......|
|000057b0| 47 4f 54 4f 20 54 69 64 | 79 3a 3a 09 52 65 6d 20 |GOTO Tid|y::.Rem |
|000057c0| 66 6f 72 67 65 74 20 69 | 74 21 21 21 21 0d 0a 09 |forget i|t!!!!...|
|000057d0| 09 09 09 45 4e 44 49 46 | 0d 0a 09 09 09 09 49 46 |...ENDIF|......IF|
|000057e0| 20 66 25 20 41 4e 44 20 | 24 34 30 30 09 52 65 6d | f% AND |$400.Rem|
|000057f0| 20 6e 6f 72 6d 61 6c 20 | 69 6e 70 75 74 20 72 65 | normal |input re|
|00005800| 64 69 72 65 63 74 69 6f | 6e 0d 0a 09 09 09 09 09 |directio|n.......|
|00005810| 72 65 74 25 3d 24 30 31 | 32 30 0d 0a 09 09 09 09 |ret%=$01|20......|
|00005820| 45 4c 53 45 09 52 65 6d | 20 3c 3c 20 72 65 64 69 |ELSE.Rem| << redi|
|00005830| 72 65 63 74 69 6f 6e 0d | 0a 09 09 09 09 09 72 65 |rection.|......re|
|00005840| 74 25 3d 24 30 33 32 32 | 09 52 65 6d 20 63 72 65 |t%=$0322|.Rem cre|
|00005850| 61 74 65 2c 20 72 61 6e | 64 6f 6d 20 61 63 63 65 |ate, ran|dom acce|
|00005860| 73 73 20 66 6f 72 20 73 | 65 65 6b 0d 0a 09 09 09 |ss for s|eek.....|
|00005870| 09 45 4e 44 49 46 0d 0a | 09 09 09 09 09 72 65 74 |.ENDIF..|.....ret|
|00005880| 25 3d 49 4f 4f 50 45 4e | 28 23 70 61 26 2b 50 52 |%=IOOPEN|(#pa&+PR|
|00005890| 5f 49 4e 25 2c 62 75 66 | 24 2c 72 65 74 25 29 0d |_IN%,buf|$,ret%).|
|000058a0| 0a 09 09 09 09 49 46 20 | 72 65 74 25 0d 0a 09 09 |.....IF |ret%....|
|000058b0| 09 09 09 52 41 49 53 45 | 20 72 65 74 25 0d 0a 09 |...RAISE| ret%...|
|000058c0| 09 09 09 45 4e 44 49 46 | 0d 0a 09 09 09 45 4e 44 |...ENDIF|.....END|
|000058d0| 49 46 0d 0a 54 69 64 79 | 3a 3a 09 66 25 3d 66 25 |IF..Tidy|::.f%=f%|
|000058e0| 20 41 4e 44 20 24 46 30 | 46 46 09 52 65 6d 20 63 | AND $F0|FF.Rem c|
|000058f0| 6c 65 61 72 20 66 6c 61 | 67 0d 0a 09 09 09 47 4f |lear fla|g.....GO|
|00005900| 54 4f 20 53 6b 69 70 3a | 3a 0d 0a 09 09 45 4e 44 |TO Skip:|:....END|
|00005910| 49 46 0d 0a 09 09 49 46 | 20 66 25 20 41 4e 44 20 |IF....IF| f% AND |
|00005920| 24 32 30 09 52 65 6d 20 | 6f 70 65 72 61 74 6f 72 |$20.Rem |operator|
|00005930| 0d 0a 09 09 09 49 46 20 | 6f 75 74 24 3d 22 3e 22 |.....IF |out$=">"|
|00005940| 0d 0a 09 09 09 09 66 25 | 3d 66 25 20 4f 52 20 24 |......f%|=f% OR $|
|00005950| 31 30 30 0d 0a 09 09 09 | 09 47 4f 54 4f 20 73 6b |100.....|.GOTO sk|
|00005960| 69 70 3a 3a 0d 0a 09 09 | 09 45 4c 53 45 49 46 20 |ip::....|.ELSEIF |
|00005970| 6f 75 74 24 3d 22 3e 3e | 22 0d 0a 09 09 09 09 66 |out$=">>|"......f|
|00005980| 25 3d 66 25 20 4f 52 20 | 24 32 30 30 0d 0a 09 09 |%=f% OR |$200....|
|00005990| 09 09 47 4f 54 4f 20 73 | 6b 69 70 3a 3a 0d 0a 09 |..GOTO s|kip::...|
|000059a0| 09 09 45 4c 53 45 49 46 | 20 6f 75 74 24 3d 22 3c |..ELSEIF| out$="<|
|000059b0| 22 0d 0a 09 09 09 09 66 | 25 3d 66 25 20 4f 52 20 |"......f|%=f% OR |
|000059c0| 24 34 30 30 0d 0a 09 09 | 09 09 47 4f 54 4f 20 73 |$400....|..GOTO s|
|000059d0| 6b 69 70 3a 3a 0d 0a 09 | 09 09 45 4c 53 45 49 46 |kip::...|..ELSEIF|
|000059e0| 20 6f 75 74 24 3d 22 3c | 3c 22 0d 0a 09 09 09 09 | out$="<|<"......|
|000059f0| 66 25 3d 66 25 20 4f 52 | 20 24 38 30 30 0d 0a 09 |f%=f% OR| $800...|
|00005a00| 09 09 09 47 4f 54 4f 20 | 73 6b 69 70 3a 3a 0d 0a |...GOTO |skip::..|
|00005a10| 09 09 09 45 4e 44 49 46 | 0d 0a 09 09 45 4e 44 49 |...ENDIF|....ENDI|
|00005a20| 46 09 52 65 6d 20 6e 6f | 74 20 61 20 72 65 64 69 |F.Rem no|t a redi|
|00005a30| 72 65 63 74 69 6f 6e 20 | 6f 70 65 72 61 74 6f 72 |rection |operator|
|00005a40| 2c 20 73 74 6f 72 65 20 | 69 74 0d 0a 09 09 6e 25 |, store |it....n%|
|00005a50| 3d 50 45 45 4b 42 28 70 | 61 26 29 09 52 65 6d 20 |=PEEKB(p|a&).Rem |
|00005a60| 6e 75 6d 62 65 72 20 6f | 66 20 61 72 67 75 6d 65 |number o|f argume|
|00005a70| 6e 74 73 0d 0a 09 09 49 | 46 20 66 25 20 41 4e 44 |nts....I|F f% AND|
|00005a80| 20 24 31 30 09 52 65 6d | 20 77 69 6c 64 63 61 72 | $10.Rem| wildcar|
|00005a90| 64 0d 0a 09 09 09 70 61 | 72 73 65 25 3a 28 6f 75 |d.....pa|rse%:(ou|
|00005aa0| 74 24 2c 41 44 44 52 28 | 62 75 66 24 29 2c 41 44 |t$,ADDR(|buf$),AD|
|00005ab0| 44 52 28 61 74 74 72 25 | 28 29 29 29 0d 0a 09 09 |DR(attr%|()))....|
|00005ac0| 09 62 75 66 24 3d 44 49 | 52 24 28 62 75 66 24 29 |.buf$=DI|R$(buf$)|
|00005ad0| 0d 0a 09 09 09 49 46 20 | 4c 45 4e 28 62 75 66 24 |.....IF |LEN(buf$|
|00005ae0| 29 3d 30 0d 0a 09 09 09 | 09 52 41 49 53 45 20 34 |)=0.....|.RAISE 4|
|00005af0| 09 09 52 65 6d 20 66 6c | 61 67 20 6e 75 6c 6c 20 |..Rem fl|ag null |
|00005b00| 77 69 6c 64 63 61 72 64 | 0d 0a 09 09 09 45 4e 44 |wildcard|.....END|
|00005b10| 49 46 0d 0a 09 09 09 6f | 6c 64 6e 25 3d 6e 25 09 |IF.....o|ldn%=n%.|
|00005b20| 09 52 65 6d 20 73 74 6f | 72 65 20 6f 6c 64 20 76 |.Rem sto|re old v|
|00005b30| 61 6c 75 65 20 6f 66 20 | 6e 25 0d 0a 09 09 09 57 |alue of |n%.....W|
|00005b40| 48 49 4c 45 20 4c 45 4e | 28 62 75 66 24 29 0d 0a |HILE LEN|(buf$)..|
|00005b50| 09 09 09 09 49 46 20 6e | 25 3e 3d 50 45 45 4b 42 |....IF n|%>=PEEKB|
|00005b60| 28 70 61 26 2b 50 52 5f | 41 52 47 4e 25 29 0d 0a |(pa&+PR_|ARGN%)..|
|00005b70| 09 09 09 09 09 52 41 49 | 53 45 20 2d 36 09 52 65 |.....RAI|SE -6.Re|
|00005b80| 6d 20 6f 76 65 72 66 6c | 6f 77 0d 0a 09 09 09 09 |m overfl|ow......|
|00005b90| 45 4e 44 49 46 0d 0a 09 | 09 09 09 70 26 3d 70 61 |ENDIF...|...p&=pa|
|00005ba0| 26 2b 50 52 5f 41 52 47 | 56 25 2b 6e 25 2a 34 0d |&+PR_ARG|V%+n%*4.|
|00005bb0| 0a 09 09 09 09 50 4f 4b | 45 4c 20 70 26 2c 20 41 |.....POK|EL p&, A|
|00005bc0| 4c 4c 4f 43 28 28 4c 45 | 4e 28 62 75 66 24 29 2b |LLOC((LE|N(buf$)+|
|00005bd0| 31 36 29 20 41 4e 44 20 | 24 46 46 46 30 29 0d 0a |16) AND |$FFF0)..|
|00005be0| 52 65 6d 09 09 09 09 50 | 4f 4b 45 4c 20 70 26 2c |Rem....P|OKEL p&,|
|00005bf0| 20 41 4c 4c 4f 43 26 3a | 28 28 4c 45 4e 28 62 75 | ALLOC&:|((LEN(bu|
|00005c00| 66 24 29 2b 31 36 29 20 | 41 4e 44 20 24 46 46 46 |f$)+16) |AND $FFF|
|00005c10| 30 2c 22 73 74 6f 72 65 | 31 22 29 0d 0a 09 09 09 |0,"store|1").....|
|00005c20| 09 49 46 20 50 45 45 4b | 4c 28 70 26 29 3d 30 09 |.IF PEEK|L(p&)=0.|
|00005c30| 52 65 6d 20 6e 6f 20 6d | 65 6d 6f 72 79 0d 0a 09 |Rem no m|emory...|
|00005c40| 09 09 09 09 52 41 49 53 | 45 20 2d 31 30 0d 0a 09 |....RAIS|E -10...|
|00005c50| 09 09 09 45 4e 44 49 46 | 0d 0a 09 09 09 09 6e 25 |...ENDIF|......n%|
|00005c60| 3d 6e 25 2b 31 0d 0a 09 | 09 09 09 50 4f 4b 45 24 |=n%+1...|...POKE$|
|00005c70| 20 50 45 45 4b 4c 28 70 | 26 29 2c 50 72 50 61 74 | PEEKL(p|&),PrPat|
|00005c80| 68 24 3a 28 62 75 66 24 | 29 0d 0a 09 09 09 09 62 |h$:(buf$|)......b|
|00005c90| 75 66 24 3d 44 49 52 24 | 28 22 22 29 0d 0a 09 09 |uf$=DIR$|("")....|
|00005ca0| 09 45 4e 44 57 48 0d 0a | 09 09 09 49 46 20 6f 6c |.ENDWH..|...IF ol|
|00005cb0| 64 6e 25 3d 30 20 41 4e | 44 20 6e 25 3e 31 09 52 |dn%=0 AN|D n%>1.R|
|00005cc0| 65 6d 20 74 68 69 73 20 | 77 61 73 20 74 68 65 20 |em this |was the |
|00005cd0| 66 69 72 73 74 20 61 72 | 67 75 6d 65 6e 74 0d 0a |first ar|gument..|
|00005ce0| 09 09 09 09 09 09 09 09 | 09 09 09 52 65 6d 20 61 |........|...Rem a|
|00005cf0| 6e 64 20 74 68 65 72 65 | 27 73 20 6d 6f 72 65 20 |nd there|'s more |
|00005d00| 74 68 61 6e 20 31 20 6d | 61 74 63 68 0d 0a 09 09 |than 1 m|atch....|
|00005d10| 09 09 52 41 49 53 45 20 | 31 31 09 52 65 6d 20 6e |..RAISE |11.Rem n|
|00005d20| 6f 74 20 75 6e 69 71 75 | 65 20 73 6f 20 66 61 69 |ot uniqu|e so fai|
|00005d30| 6c 20 69 74 21 0d 0a 09 | 09 09 45 4e 44 49 46 0d |l it!...|..ENDIF.|
|00005d40| 0a 09 09 45 4c 53 45 09 | 52 65 6d 20 6e 6f 74 20 |...ELSE.|Rem not |
|00005d50| 77 69 6c 64 63 61 72 64 | 73 0d 0a 09 09 09 49 46 |wildcard|s.....IF|
|00005d60| 20 6e 25 3e 3d 50 45 45 | 4b 42 28 70 61 26 2b 50 | n%>=PEE|KB(pa&+P|
|00005d70| 52 5f 41 52 47 4e 25 29 | 0d 0a 09 09 09 09 52 41 |R_ARGN%)|......RA|
|00005d80| 49 53 45 20 2d 36 09 52 | 65 6d 20 6f 76 65 72 66 |ISE -6.R|em overf|
|00005d90| 6c 6f 77 0d 0a 09 09 09 | 45 4e 44 49 46 0d 0a 09 |low.....|ENDIF...|
|00005da0| 09 09 70 26 3d 70 61 26 | 2b 50 52 5f 41 52 47 56 |..p&=pa&|+PR_ARGV|
|00005db0| 25 2b 6e 25 2a 34 0d 0a | 09 09 09 50 4f 4b 45 4c |%+n%*4..|...POKEL|
|00005dc0| 20 70 26 2c 20 41 4c 4c | 4f 43 28 28 4c 45 4e 28 | p&, ALL|OC((LEN(|
|00005dd0| 6f 75 74 24 29 2b 31 36 | 29 20 41 4e 44 20 24 46 |out$)+16|) AND $F|
|00005de0| 46 46 30 29 0d 0a 52 65 | 6d 09 09 09 50 4f 4b 45 |FF0)..Re|m...POKE|
|00005df0| 4c 20 70 26 2c 20 41 4c | 4c 4f 43 26 3a 28 28 4c |L p&, AL|LOC&:((L|
|00005e00| 45 4e 28 6f 75 74 24 29 | 2b 31 36 29 20 41 4e 44 |EN(out$)|+16) AND|
|00005e10| 20 24 46 46 46 30 2c 22 | 73 74 6f 72 65 32 22 29 | $FFF0,"|store2")|
|00005e20| 0d 0a 52 65 6d 09 09 09 | 50 52 49 4e 54 20 22 53 |..Rem...|PRINT "S|
|00005e30| 74 6f 72 69 6e 67 22 2c | 6f 75 74 24 2c 6e 25 2c |toring",|out$,n%,|
|00005e40| 70 61 26 2c 22 61 74 22 | 2c 70 26 2c 50 45 45 4b |pa&,"at"|,p&,PEEK|
|00005e50| 4c 28 70 26 29 0d 0a 09 | 09 09 49 46 20 50 45 45 |L(p&)...|..IF PEE|
|00005e60| 4b 4c 28 70 26 29 3d 30 | 09 52 65 6d 20 6e 6f 20 |KL(p&)=0|.Rem no |
|00005e70| 6d 65 6d 6f 72 79 0d 0a | 09 09 09 09 52 41 49 53 |memory..|....RAIS|
|00005e80| 45 20 2d 31 30 0d 0a 09 | 09 09 45 4e 44 49 46 0d |E -10...|..ENDIF.|
|00005e90| 0a 09 09 09 6e 25 3d 6e | 25 2b 31 0d 0a 09 09 09 |....n%=n|%+1.....|
|00005ea0| 50 4f 4b 45 24 20 50 45 | 45 4b 4c 28 70 26 29 2c |POKE$ PE|EKL(p&),|
|00005eb0| 6f 75 74 24 0d 0a 09 09 | 45 4e 44 49 46 0d 0a 09 |out$....|ENDIF...|
|00005ec0| 09 50 4f 4b 45 42 20 70 | 61 26 2c 6e 25 09 52 65 |.POKEB p|a&,n%.Re|
|00005ed0| 6d 20 73 74 6f 72 65 20 | 6e 6f 2e 20 6f 66 20 61 |m store |no. of a|
|00005ee0| 72 67 75 6d 65 6e 74 73 | 0d 0a 53 6b 69 70 3a 3a |rguments|..Skip::|
|00005ef0| 0d 0a 09 09 66 25 3d 66 | 25 20 41 4e 44 20 24 46 |....f%=f|% AND $F|
|00005f00| 46 43 37 09 52 65 6d 20 | 63 6c 65 61 72 20 77 69 |FC7.Rem |clear wi|
|00005f10| 6c 64 2c 73 74 6f 72 65 | 20 61 6e 64 20 73 70 65 |ld,store| and spe|
|00005f20| 63 69 61 6c 20 66 6c 61 | 67 0d 0a 09 09 6f 75 74 |cial fla|g....out|
|00005f30| 24 3d 22 22 0d 0a 09 45 | 4e 44 49 46 0d 0a 09 50 |$=""...E|NDIF...P|
|00005f40| 4f 4b 45 57 28 61 64 64 | 72 26 29 2c 66 25 0d 0a |OKEW(add|r&),f%..|
|00005f50| 09 50 4f 4b 45 24 20 61 | 64 64 72 26 2b 37 2c 6f |.POKE$ a|ddr&+7,o|
|00005f60| 75 74 24 0d 0a 45 4e 44 | 50 0d 0a 0d 0a 50 52 4f |ut$..END|P....PRO|
|00005f70| 43 20 66 70 72 69 6e 74 | 25 3a 28 70 24 29 0d 0a |C fprint|%:(p$)..|
|00005f80| 4c 4f 43 41 4c 20 72 65 | 74 25 2c 62 75 66 24 28 |LOCAL re|t%,buf$(|
|00005f90| 32 35 35 29 0d 0a 09 49 | 46 20 5f 6f 75 74 25 0d |255)...I|F _out%.|
|00005fa0| 0a 09 09 62 75 66 24 3d | 70 24 2b 43 48 52 24 28 |...buf$=|p$+CHR$(|
|00005fb0| 31 33 29 09 09 09 52 65 | 6d 20 66 6f 72 20 30 78 |13)...Re|m for 0x|
|00005fc0| 30 44 20 30 78 30 41 0d | 0a 09 09 72 65 74 25 3d |0D 0x0A.|...ret%=|
|00005fd0| 49 4f 57 52 49 54 45 28 | 5f 6f 75 74 25 2c 41 44 |IOWRITE(|_out%,AD|
|00005fe0| 44 52 28 62 75 66 24 29 | 2b 31 2c 4c 45 4e 28 62 |DR(buf$)|+1,LEN(b|
|00005ff0| 75 66 24 29 29 0d 0a 09 | 09 49 46 20 72 65 74 25 |uf$))...|.IF ret%|
|00006000| 0d 0a 09 09 09 52 41 49 | 53 45 20 72 65 74 25 09 |.....RAI|SE ret%.|
|00006010| 52 65 6d 20 61 6e 79 20 | 65 72 72 6f 72 20 68 65 |Rem any |error he|
|00006020| 72 65 20 4d 55 53 54 20 | 62 65 20 66 61 74 61 6c |re MUST |be fatal|
|00006030| 0d 0a 09 09 45 4e 44 49 | 46 0d 0a 09 45 4c 53 45 |....ENDI|F...ELSE|
|00006040| 0d 0a 09 09 50 52 49 4e | 54 20 70 24 0d 0a 09 45 |....PRIN|T p$...E|
|00006050| 4e 44 49 46 0d 0a 45 4e | 44 50 0d 0a 0d 0a 50 52 |NDIF..EN|DP....PR|
|00006060| 4f 43 20 5f 63 6c 72 41 | 3a 28 70 61 26 29 09 52 |OC _clrA|:(pa&).R|
|00006070| 65 6d 20 63 6c 6f 73 65 | 20 72 65 64 69 72 65 63 |em close| redirec|
|00006080| 74 69 6f 6e 20 66 69 6c | 65 20 61 6e 64 20 75 6e |tion fil|e and un|
|00006090| 61 6c 6c 6f 63 61 74 65 | 20 61 72 67 2e 20 68 65 |allocate| arg. he|
|000060a0| 61 70 0d 0a 4c 4f 43 41 | 4c 20 69 25 0d 0a 09 49 |ap..LOCA|L i%...I|
|000060b0| 46 20 50 45 45 4b 57 28 | 70 61 26 2b 50 52 5f 4f |F PEEKW(|pa&+PR_O|
|000060c0| 55 54 25 29 0d 0a 09 09 | 49 4f 43 4c 4f 53 45 28 |UT%)....|IOCLOSE(|
|000060d0| 50 45 45 4b 57 28 70 61 | 26 2b 50 52 5f 4f 55 54 |PEEKW(pa|&+PR_OUT|
|000060e0| 25 29 29 0d 0a 09 09 50 | 4f 4b 45 57 28 70 61 26 |%))....P|OKEW(pa&|
|000060f0| 2b 50 52 5f 4f 55 54 25 | 29 2c 30 0d 0a 09 45 4e |+PR_OUT%|),0...EN|
|00006100| 44 49 46 0d 0a 09 49 46 | 20 50 45 45 4b 57 28 70 |DIF...IF| PEEKW(p|
|00006110| 61 26 2b 50 52 5f 49 4e | 25 29 0d 0a 09 09 49 4f |a&+PR_IN|%)....IO|
|00006120| 43 4c 4f 53 45 28 50 45 | 45 4b 57 28 70 61 26 2b |CLOSE(PE|EKW(pa&+|
|00006130| 50 52 5f 49 4e 25 29 29 | 0d 0a 09 09 50 4f 4b 45 |PR_IN%))|....POKE|
|00006140| 57 28 70 61 26 2b 50 52 | 5f 49 4e 25 29 2c 30 0d |W(pa&+PR|_IN%),0.|
|00006150| 0a 09 45 4e 44 49 46 0d | 0a 09 69 25 3d 50 45 45 |..ENDIF.|..i%=PEE|
|00006160| 4b 42 28 70 61 26 29 2a | 34 09 52 65 6d 20 6e 75 |KB(pa&)*|4.Rem nu|
|00006170| 6d 62 65 72 20 6f 66 20 | 73 74 6f 72 65 64 20 61 |mber of |stored a|
|00006180| 72 67 75 6d 65 6e 74 73 | 0d 0a 09 57 48 49 4c 45 |rguments|...WHILE|
|00006190| 20 69 25 0d 0a 09 09 69 | 25 3d 69 25 2d 34 0d 0a | i%....i|%=i%-4..|
|000061a0| 52 65 6d 09 09 50 52 49 | 4e 54 20 22 46 72 65 65 |Rem..PRI|NT "Free|
|000061b0| 69 6e 67 3a 22 2c 70 61 | 26 2b 50 52 5f 41 52 47 |ing:",pa|&+PR_ARG|
|000061c0| 56 25 2b 69 25 2c 50 45 | 45 4b 4c 28 70 61 26 2b |V%+i%,PE|EKL(pa&+|
|000061d0| 50 52 5f 41 52 47 56 25 | 2b 69 25 29 2c 50 45 45 |PR_ARGV%|+i%),PEE|
|000061e0| 4b 24 28 50 45 45 4b 4c | 28 70 61 26 2b 50 52 5f |K$(PEEKL|(pa&+PR_|
|000061f0| 41 52 47 56 25 2b 69 25 | 29 29 0d 0a 09 09 46 52 |ARGV%+i%|))....FR|
|00006200| 45 45 41 4c 4c 4f 43 20 | 50 45 45 4b 4c 28 70 61 |EEALLOC |PEEKL(pa|
|00006210| 26 2b 50 52 5f 41 52 47 | 56 25 2b 69 25 29 0d 0a |&+PR_ARG|V%+i%)..|
|00006220| 52 65 6d 09 09 46 52 45 | 45 41 4c 4c 4f 43 26 3a |Rem..FRE|EALLOC&:|
|00006230| 28 50 45 45 4b 4c 28 70 | 61 26 2b 50 52 5f 41 52 |(PEEKL(p|a&+PR_AR|
|00006240| 47 56 25 2b 69 25 29 29 | 0d 0a 09 45 4e 44 57 48 |GV%+i%))|...ENDWH|
|00006250| 0d 0a 09 50 4f 4b 45 42 | 20 70 61 26 2c 30 09 52 |...POKEB| pa&,0.R|
|00006260| 65 6d 20 73 65 74 20 6e | 6f 20 61 72 67 75 6d 65 |em set n|o argume|
|00006270| 6e 74 73 0d 0a 45 4e 44 | 50 0d 0a 0d 0a 50 52 4f |nts..END|P....PRO|
|00006280| 43 20 5f 69 6e 70 61 72 | 25 3a 28 69 6e 24 2c 70 |C _inpar|%:(in$,p|
|00006290| 61 26 2c 73 70 65 63 24 | 29 0d 0a 52 45 4d 20 70 |a&,spec$|)..REM p|
|000062a0| 61 72 73 65 20 74 68 65 | 20 69 6e 70 75 74 2c 20 |arse the| input, |
|000062b0| 63 72 65 61 74 69 6e 67 | 20 74 68 65 20 61 72 67 |creating| the arg|
|000062c0| 76 26 20 73 74 72 75 63 | 74 75 72 65 20 61 6e 64 |v& struc|ture and|
|000062d0| 20 72 65 74 75 72 6e 20 | 74 68 72 0d 0a 52 45 4d | return |thr..REM|
|000062e0| 20 6e 75 6d 62 65 72 20 | 6f 66 20 61 72 67 75 6d | number |of argum|
|000062f0| 65 6e 74 73 20 69 6e 20 | 6e 25 0d 0a 4c 4f 43 41 |ents in |n%..LOCA|
|00006300| 4c 20 69 25 2c 6c 65 6e | 25 2c 63 24 28 31 29 2c |L i%,len|%,c$(1),|
|00006310| 70 25 2c 72 65 74 25 2c | 68 61 6e 64 6c 65 25 0d |p%,ret%,|handle%.|
|00006320| 0a 4c 4f 43 41 4c 20 66 | 6c 61 67 25 2c 76 61 72 |.LOCAL f|lag%,var|
|00006330| 70 6f 73 25 2c 65 76 61 | 6c 70 6f 73 25 2c 6f 75 |pos%,eva|lpos%,ou|
|00006340| 74 24 28 32 35 35 29 09 | 52 65 6d 20 4b 45 45 50 |t$(255).|Rem KEEP|
|00006350| 20 54 48 45 53 45 20 54 | 4f 47 45 54 48 45 52 0d | THESE T|OGETHER.|
|00006360| 0a 52 65 6d 20 66 6c 61 | 67 25 3a 0d 0a 52 65 6d |.Rem fla|g%:..Rem|
|00006370| 20 42 69 74 20 30 20 2d | 20 73 65 74 20 69 66 20 | Bit 0 -| set if |
|00006380| 77 65 27 72 65 20 69 6e | 20 61 20 24 28 2e 2e 2e |we're in| a $(...|
|00006390| 29 0d 0a 52 65 6d 20 42 | 69 74 20 31 20 2d 20 73 |)..Rem B|it 1 - s|
|000063a0| 65 74 20 69 66 20 77 65 | 27 72 65 20 69 6e 20 61 |et if we|'re in a|
|000063b0| 20 27 2e 2e 2e 27 0d 0a | 52 65 6d 20 42 69 74 20 | '...'..|Rem Bit |
|000063c0| 32 20 2d 20 73 65 74 20 | 69 66 20 77 65 27 72 65 |2 - set |if we're|
|000063d0| 20 69 6e 20 61 20 22 2e | 2e 2e 22 0d 0a 52 65 6d | in a ".|.."..Rem|
|000063e0| 20 42 69 74 20 33 20 2d | 20 73 65 74 20 69 66 20 | Bit 3 -| set if |
|000063f0| 77 65 27 72 65 20 73 74 | 6f 72 69 6e 67 20 73 6f |we're st|oring so|
+--------+-------------------------+-------------------------+--------+--------+
Only 25.0 KB of data is shown above.