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: Mailbox/MIME Entity
(archive/mbox).
Confidence | Program | Detection | Match Type | Support
|
---|
100%
| dexvert
| Mailbox/MIME Entity (archive/mbox)
| magic
| Supported |
100%
| dexvert
| Internet Message Format (text/imf)
| magic
| Supported |
1%
| dexvert
| Swift 3D 3D Graphic (poly/swift3D3DGraphic)
| ext
| Unsupported |
1%
| dexvert
| Boost Text serialization (other/boostTextSerialization)
| ext
| Unsupported |
1%
| dexvert
| Text File (text/txt)
| fallback
| Supported |
100%
| file
| Mailbox text, 1st line "From ts@uwasa.fi Sat Sep 7 00:00:00 1996", ASCII text, with CRLF line terminators
| default
| |
100%
| TrID
| E-Mail message (Var. 2)
| default
| |
100%
| checkBytes
| Printable ASCII
| default
| |
100%
| perlTextCheck
| Likely Text (Perl)
| default
| |
100%
| siegfried
| x-fmt/111 Plain Text File
| default
| |
100%
| gt2
| Textdatei (DOS)
| default
| |
100%
| detectItEasy
| Format: Plain text[CRLF]
| default
| |
100%
| xdgMime
| application/mbox
| default
|
|
hex view+--------+-------------------------+-------------------------+--------+--------+
|00000000| 46 72 6f 6d 20 74 73 40 | 75 77 61 73 61 2e 66 69 |From ts@|uwasa.fi|
|00000010| 20 53 61 74 20 53 65 70 | 20 37 20 30 30 3a 30 30 | Sat Sep| 7 00:00|
|00000020| 3a 30 30 20 31 39 39 36 | 0d 0a 53 75 62 6a 65 63 |:00 1996|..Subjec|
|00000030| 74 3a 20 46 41 51 50 41 | 53 2e 54 58 54 20 63 6f |t: FAQPA|S.TXT co|
|00000040| 6e 74 65 6e 74 73 0d 0a | 0d 0a 20 20 20 20 20 20 |ntents..|.. |
|00000050| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00000060| 20 20 20 20 20 20 20 43 | 6f 70 79 72 69 67 68 74 | C|opyright|
|00000070| 20 28 63 29 20 31 39 39 | 33 2d 31 39 39 36 20 62 | (c) 199|3-1996 b|
|00000080| 79 20 54 69 6d 6f 20 53 | 61 6c 6d 69 0d 0a 20 20 |y Timo S|almi.. |
|00000090| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000000a0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000000b0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 41 6c 6c | | All|
|000000c0| 20 72 69 67 68 74 73 20 | 72 65 73 65 72 76 65 64 | rights |reserved|
|000000d0| 0d 0a 0d 0a 46 41 51 50 | 41 53 2e 54 58 54 20 46 |....FAQP|AS.TXT F|
|000000e0| 72 65 71 75 65 6e 74 6c | 79 20 28 61 6e 64 20 6e |requentl|y (and n|
|000000f0| 6f 74 20 73 6f 20 66 72 | 65 71 75 65 6e 74 6c 79 |ot so fr|equently|
|00000100| 29 20 61 73 6b 65 64 20 | 54 75 72 62 6f 20 50 61 |) asked |Turbo Pa|
|00000110| 73 63 61 6c 0d 0a 71 75 | 65 73 74 69 6f 6e 73 20 |scal..qu|estions |
|00000120| 77 69 74 68 20 54 69 6d | 6f 27 73 20 61 6e 73 77 |with Tim|o's answ|
|00000130| 65 72 73 2e 20 54 68 65 | 20 69 74 65 6d 73 20 61 |ers. The| items a|
|00000140| 72 65 20 69 6e 20 6e 6f | 20 70 61 72 74 69 63 75 |re in no| particu|
|00000150| 6c 61 72 20 6f 72 64 65 | 72 2e 0d 0a 0d 0a 59 6f |lar orde|r.....Yo|
|00000160| 75 20 61 72 65 20 66 72 | 65 65 20 74 6f 20 71 75 |u are fr|ee to qu|
|00000170| 6f 74 65 20 62 72 69 65 | 66 20 70 61 73 73 61 67 |ote brie|f passag|
|00000180| 65 73 20 66 72 6f 6d 20 | 74 68 69 73 20 66 69 6c |es from |this fil|
|00000190| 65 20 70 72 6f 76 69 64 | 65 64 20 79 6f 75 0d 0a |e provid|ed you..|
|000001a0| 63 6c 65 61 72 6c 79 20 | 69 6e 64 69 63 61 74 65 |clearly |indicate|
|000001b0| 20 74 68 65 20 73 6f 75 | 72 63 65 20 77 69 74 68 | the sou|rce with|
|000001c0| 20 61 20 70 72 6f 70 65 | 72 20 61 63 6b 6e 6f 77 | a prope|r acknow|
|000001d0| 6c 65 64 67 6d 65 6e 74 | 2e 0d 0a 0d 0a 43 6f 6d |ledgment|.....Com|
|000001e0| 6d 65 6e 74 73 20 61 6e | 64 20 63 6f 72 72 65 63 |ments an|d correc|
|000001f0| 74 69 6f 6e 73 20 61 72 | 65 20 73 6f 6c 69 63 69 |tions ar|e solici|
|00000200| 74 65 64 2e 20 42 75 74 | 20 69 66 20 79 6f 75 20 |ted. But| if you |
|00000210| 77 69 73 68 20 74 6f 20 | 68 61 76 65 0d 0a 69 6e |wish to |have..in|
|00000220| 64 69 76 69 64 75 61 6c | 20 54 75 72 62 6f 20 50 |dividual| Turbo P|
|00000230| 61 73 63 61 6c 20 63 6f | 6e 73 75 6c 74 61 74 69 |ascal co|nsultati|
|00000240| 6f 6e 2c 20 70 6c 65 61 | 73 65 20 70 6f 73 74 20 |on, plea|se post |
|00000250| 79 6f 75 72 20 71 75 65 | 73 74 69 6f 6e 73 20 74 |your que|stions t|
|00000260| 6f 0d 0a 61 20 73 75 69 | 74 61 62 6c 65 20 55 73 |o..a sui|table Us|
|00000270| 65 6e 65 74 20 6e 65 77 | 73 67 72 6f 75 70 20 6c |enet new|sgroup l|
|00000280| 69 6b 65 20 6e 65 77 73 | 3a 63 6f 6d 70 2e 6c 61 |ike news|:comp.la|
|00000290| 6e 67 2e 70 61 73 63 61 | 6c 2e 62 6f 72 6c 61 6e |ng.pasca|l.borlan|
|000002a0| 64 2e 20 49 74 0d 0a 69 | 73 20 6d 75 63 68 20 6d |d. It..i|s much m|
|000002b0| 6f 72 65 20 65 66 66 69 | 63 69 65 6e 74 20 74 68 |ore effi|cient th|
|000002c0| 61 6e 20 61 73 6b 69 6e | 67 20 6d 65 20 62 79 20 |an askin|g me by |
|000002d0| 65 6d 61 69 6c 2e 20 49 | 27 64 20 6c 69 6b 65 20 |email. I|'d like |
|000002e0| 74 6f 20 68 65 6c 70 2c | 0d 0a 62 75 74 20 49 20 |to help,|..but I |
|000002f0| 61 6d 20 76 65 72 79 20 | 70 72 65 73 73 65 64 20 |am very |pressed |
|00000300| 66 6f 72 20 74 69 6d 65 | 2e 20 49 20 70 72 65 66 |for time|. I pref|
|00000310| 65 72 20 74 6f 20 70 69 | 63 6b 20 74 68 65 20 71 |er to pi|ck the q|
|00000320| 75 65 73 74 69 6f 6e 73 | 20 49 0d 0a 61 6e 73 77 |uestions| I..answ|
|00000330| 65 72 20 66 72 6f 6d 20 | 74 68 65 20 55 73 65 6e |er from |the Usen|
|00000340| 65 74 20 6e 65 77 73 2e | 20 54 68 75 73 20 49 20 |et news.| Thus I |
|00000350| 63 61 6e 20 61 6e 73 77 | 65 72 20 70 75 62 6c 69 |can answ|er publi|
|00000360| 63 6c 79 20 61 74 20 6f | 6e 65 20 67 6f 20 69 66 |cly at o|ne go if|
|00000370| 0d 0a 49 20 68 61 70 70 | 65 6e 20 74 6f 20 68 61 |..I happ|en to ha|
|00000380| 76 65 20 61 6e 20 61 6e | 73 77 65 72 2e 20 42 65 |ve an an|swer. Be|
|00000390| 73 69 64 65 73 2c 20 6e | 65 77 73 67 72 6f 75 70 |sides, n|ewsgroup|
|000003a0| 73 20 68 61 76 65 20 61 | 20 6e 75 6d 62 65 72 20 |s have a| number |
|000003b0| 6f 66 0d 0a 72 65 61 64 | 65 72 73 20 77 68 6f 20 |of..read|ers who |
|000003c0| 6d 69 67 68 74 20 6b 6e | 6f 77 20 61 20 62 65 74 |might kn|ow a bet|
|000003d0| 74 65 72 20 6f 72 20 61 | 6e 20 61 6c 74 65 72 6e |ter or a|n altern|
|000003e0| 61 74 69 76 65 20 61 6e | 73 77 65 72 2e 20 44 6f |ative an|swer. Do|
|000003f0| 6e 27 74 20 62 65 0d 0a | 64 69 73 63 6f 75 72 61 |n't be..|discoura|
|00000400| 67 65 64 2c 20 74 68 6f | 75 67 68 2c 20 69 66 20 |ged, tho|ugh, if |
|00000410| 79 6f 75 20 67 65 74 20 | 61 20 72 65 70 6c 79 20 |you get |a reply |
|00000420| 6c 69 6b 65 20 74 68 69 | 73 20 66 72 6f 6d 20 6d |like thi|s from m|
|00000430| 65 2e 20 49 20 61 6d 0d | 0a 61 6c 77 61 79 73 20 |e. I am.|.always |
|00000440| 67 6c 61 64 20 74 6f 20 | 68 65 61 72 20 66 72 6f |glad to |hear fro|
|00000450| 6d 20 66 65 6c 6c 6f 77 | 20 54 75 72 62 6f 20 50 |m fellow| Turbo P|
|00000460| 61 73 63 61 6c 20 75 73 | 65 72 73 2e 0d 0a 0d 0a |ascal us|ers.....|
|00000470| 49 66 20 79 6f 75 20 61 | 72 65 20 61 6e 20 65 78 |If you a|re an ex|
|00000480| 70 65 72 69 65 6e 63 65 | 64 20 54 75 72 62 6f 20 |perience|d Turbo |
|00000490| 50 61 73 63 61 6c 20 70 | 72 6f 67 72 61 6d 6d 65 |Pascal p|rogramme|
|000004a0| 72 20 77 69 74 68 20 54 | 75 72 62 6f 20 50 61 73 |r with T|urbo Pas|
|000004b0| 63 61 6c 0d 0a 6d 61 74 | 65 72 69 61 6c 20 79 6f |cal..mat|erial yo|
|000004c0| 75 20 77 6f 75 6c 64 20 | 6c 69 6b 65 20 74 6f 20 |u would |like to |
|000004d0| 63 69 72 63 75 6c 61 74 | 65 20 70 75 62 6c 69 63 |circulat|e public|
|000004e0| 6c 79 20 77 6f 72 6c 64 | 2d 77 69 64 65 2c 20 79 |ly world|-wide, y|
|000004f0| 6f 75 20 61 72 65 0d 0a | 77 65 6c 63 6f 6d 65 20 |ou are..|welcome |
|00000500| 74 6f 20 73 75 62 6d 69 | 74 20 79 6f 75 72 20 6d |to submi|t your m|
|00000510| 61 74 65 72 69 61 6c 20 | 74 6f 20 74 68 65 20 47 |aterial |to the G|
|00000520| 61 72 62 6f 20 4d 53 2d | 44 4f 53 20 61 72 63 68 |arbo MS-|DOS arch|
|00000530| 69 76 65 73 20 61 74 20 | 74 68 65 0d 0a 55 6e 69 |ives at |the..Uni|
|00000540| 76 65 72 73 69 74 79 20 | 6f 66 20 56 61 61 73 61 |versity |of Vaasa|
|00000550| 2e 20 54 6f 20 64 6f 20 | 74 68 61 74 20 79 6f 75 |. To do |that you|
|00000560| 20 2a 46 49 52 53 54 2a | 20 6d 75 73 74 20 2a 43 | *FIRST*| must *C|
|00000570| 41 52 45 46 55 4c 4c 59 | 2a 20 72 65 61 64 0d 0a |AREFULLY|* read..|
|00000580| 74 68 65 20 75 70 6c 6f | 61 64 69 6e 67 20 69 6e |the uplo|ading in|
|00000590| 73 74 72 75 63 74 69 6f | 6e 73 20 61 6e 64 20 74 |structio|ns and t|
|000005a0| 68 65 20 66 6f 72 6d 61 | 6c 20 72 65 71 75 69 72 |he forma|l requir|
|000005b0| 65 6d 65 6e 74 73 20 69 | 6e 20 74 68 65 20 66 69 |ements i|n the fi|
|000005c0| 6c 65 0d 0a 66 74 70 3a | 2f 2f 67 61 72 62 6f 2e |le..ftp:|//garbo.|
|000005d0| 75 77 61 73 61 2e 66 69 | 2f 70 63 2f 55 50 4c 4f |uwasa.fi|/pc/UPLO|
|000005e0| 41 44 2e 49 4e 46 2e 20 | 59 6f 75 20 61 72 65 20 |AD.INF. |You are |
|000005f0| 61 6c 73 6f 20 77 65 6c | 63 6f 6d 65 20 74 6f 20 |also wel|come to |
|00000600| 63 6f 6e 74 61 63 74 0d | 0a 6d 65 20 62 79 20 65 |contact.|.me by e|
|00000610| 6d 61 69 6c 20 66 6f 72 | 20 74 68 65 73 65 20 69 |mail for| these i|
|00000620| 6e 73 74 72 75 63 74 69 | 6f 6e 73 20 69 66 20 79 |nstructi|ons if y|
|00000630| 6f 75 20 61 72 65 20 6e | 6f 74 20 66 61 6d 69 6c |ou are n|ot famil|
|00000640| 69 61 72 20 77 69 74 68 | 0d 0a 64 6f 77 6e 6c 6f |iar with|..downlo|
|00000650| 61 64 69 6e 67 20 74 68 | 65 6d 20 66 72 6f 6d 20 |ading th|em from |
|00000660| 74 68 65 20 47 61 72 62 | 6f 20 61 72 63 68 69 76 |the Garb|o archiv|
|00000670| 65 73 2e 0d 0a 0d 0a 2e | 2e 2e 2e 2e 2e 2e 2e 2e |es......|........|
|00000680| 2e 2e 2e 2e 2e 2e 2e 2e | 2e 2e 2e 2e 2e 2e 2e 2e |........|........|
|00000690| 2e 2e 2e 2e 2e 2e 2e 2e | 2e 2e 2e 2e 2e 2e 2e 2e |........|........|
|000006a0| 2e 2e 2e 2e 2e 2e 2e 2e | 2e 2e 2e 2e 2e 2e 2e 2e |........|........|
|000006b0| 2e 2e 2e 2e 2e 2e 2e 2e | 2e 2e 2e 0d 0a 50 72 6f |........|.....Pro|
|000006c0| 66 2e 20 54 69 6d 6f 20 | 53 61 6c 6d 69 20 20 20 |f. Timo |Salmi |
|000006d0| 43 6f 2d 6d 6f 64 65 72 | 61 74 6f 72 20 6f 66 20 |Co-moder|ator of |
|000006e0| 6e 65 77 73 3a 63 6f 6d | 70 2e 61 72 63 68 69 76 |news:com|p.archiv|
|000006f0| 65 73 2e 6d 73 64 6f 73 | 2e 61 6e 6e 6f 75 6e 63 |es.msdos|.announc|
|00000700| 65 0d 0a 4d 6f 64 65 72 | 61 74 69 6e 67 20 61 74 |e..Moder|ating at|
|00000710| 20 66 74 70 3a 2f 2f 20 | 26 20 68 74 74 70 3a 2f | ftp:// |& http:/|
|00000720| 2f 67 61 72 62 6f 2e 75 | 77 61 73 61 2e 66 69 20 |/garbo.u|wasa.fi |
|00000730| 61 72 63 68 69 76 65 73 | 20 20 31 39 33 2e 31 36 |archives| 193.16|
|00000740| 36 2e 31 32 30 2e 35 0d | 0a 44 65 70 61 72 74 6d |6.120.5.|.Departm|
|00000750| 65 6e 74 20 6f 66 20 41 | 63 63 6f 75 6e 74 69 6e |ent of A|ccountin|
|00000760| 67 20 61 6e 64 20 42 75 | 73 69 6e 65 73 73 20 46 |g and Bu|siness F|
|00000770| 69 6e 61 6e 63 65 20 20 | 3b 20 55 6e 69 76 65 72 |inance |; Univer|
|00000780| 73 69 74 79 20 6f 66 20 | 56 61 61 73 61 0d 0a 74 |sity of |Vaasa..t|
|00000790| 73 40 75 77 61 73 61 2e | 66 69 20 68 74 74 70 3a |s@uwasa.|fi http:|
|000007a0| 2f 2f 75 77 61 73 61 2e | 66 69 2f 7e 74 73 20 42 |//uwasa.|fi/~ts B|
|000007b0| 42 53 20 39 36 31 2d 33 | 31 37 30 39 37 32 3b 20 |BS 961-3|170972; |
|000007c0| 46 49 4e 2d 36 35 31 30 | 31 2c 20 20 46 69 6e 6c |FIN-6510|1, Finl|
|000007d0| 61 6e 64 0d 0a 0d 0a 2d | 2d 2d 2d 2d 2d 2d 2d 2d |and....-|--------|
|000007e0| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|000007f0| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00000800| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00000810| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 0d 0a 20 31 29 |--------|---.. 1)|
|00000820| 20 48 6f 77 20 64 6f 20 | 49 20 64 69 73 61 62 6c | How do |I disabl|
|00000830| 65 20 6f 72 20 63 61 70 | 74 75 72 65 20 74 68 65 |e or cap|ture the|
|00000840| 20 62 72 65 61 6b 20 6b | 65 79 20 69 6e 20 54 75 | break k|ey in Tu|
|00000850| 72 62 6f 20 50 61 73 63 | 61 6c 3f 0d 0a 20 32 29 |rbo Pasc|al?.. 2)|
|00000860| 20 48 6f 77 20 64 6f 20 | 49 20 67 65 74 20 61 20 | How do |I get a |
|00000870| 70 72 69 6e 74 65 64 20 | 64 6f 63 75 6d 65 6e 74 |printed |document|
|00000880| 61 74 69 6f 6e 20 6f 66 | 20 6d 79 20 73 74 75 64 |ation of| my stud|
|00000890| 65 6e 74 73 27 20 54 50 | 20 72 75 6e 73 3f 0d 0a |ents' TP| runs?..|
|000008a0| 20 33 29 20 57 68 61 74 | 20 69 73 20 74 68 65 20 | 3) What| is the |
|000008b0| 63 6f 64 65 20 66 6f 72 | 20 74 68 65 20 77 65 65 |code for| the wee|
|000008c0| 6b 64 61 79 20 6f 66 20 | 61 20 67 69 76 65 6e 20 |kday of |a given |
|000008d0| 64 61 74 65 3f 0d 0a 20 | 34 29 20 4e 65 65 64 20 |date?.. |4) Need |
|000008e0| 61 20 70 72 6f 67 72 61 | 6d 20 74 6f 20 66 6f 72 |a progra|m to for|
|000008f0| 6d 61 74 20 54 75 72 62 | 6f 20 50 61 73 63 61 6c |mat Turb|o Pascal|
|00000900| 20 73 6f 75 72 63 65 20 | 63 6f 64 65 20 63 6f 6e | source |code con|
|00000910| 73 69 73 74 65 6e 74 6c | 79 0d 0a 20 35 29 20 43 |sistentl|y.. 5) C|
|00000920| 61 6e 20 73 6f 6d 65 6f | 6e 65 20 67 69 76 65 20 |an someo|ne give |
|00000930| 6d 65 20 61 64 76 69 63 | 65 20 66 6f 72 20 77 72 |me advic|e for wr|
|00000940| 69 74 69 6e 67 20 61 20 | 74 73 72 20 70 72 6f 67 |iting a |tsr prog|
|00000950| 72 61 6d 3f 0d 0a 20 36 | 29 20 57 68 79 20 63 61 |ram?.. 6|) Why ca|
|00000960| 6e 27 74 20 49 20 72 65 | 61 64 20 2f 20 77 72 69 |n't I re|ad / wri|
|00000970| 74 65 20 74 68 65 20 63 | 6f 6d 20 70 6f 72 74 73 |te the c|om ports|
|00000980| 3f 0d 0a 20 37 29 20 57 | 68 61 74 20 61 72 65 20 |?.. 7) W|hat are |
|00000990| 69 6e 74 65 72 72 75 70 | 74 73 20 61 6e 64 20 68 |interrup|ts and h|
|000009a0| 6f 77 20 74 6f 20 75 73 | 65 20 74 68 65 6d 20 69 |ow to us|e them i|
|000009b0| 6e 20 54 75 72 62 6f 20 | 50 61 73 63 61 6c 3f 0d |n Turbo |Pascal?.|
|000009c0| 0a 20 38 29 20 53 68 6f | 75 6c 64 20 49 20 75 70 |. 8) Sho|uld I up|
|000009d0| 67 72 61 64 65 20 6d 79 | 20 54 75 72 62 6f 20 50 |grade my| Turbo P|
|000009e0| 61 73 63 61 6c 20 76 65 | 72 73 69 6f 6e 3f 0d 0a |ascal ve|rsion?..|
|000009f0| 20 39 29 20 48 6f 77 20 | 64 6f 20 49 20 65 78 65 | 9) How |do I exe|
|00000a00| 63 75 74 65 20 61 6e 20 | 4d 53 2d 44 4f 53 20 63 |cute an |MS-DOS c|
|00000a10| 6f 6d 6d 61 6e 64 20 66 | 72 6f 6d 20 77 69 74 68 |ommand f|rom with|
|00000a20| 69 6e 20 61 20 54 50 20 | 70 72 6f 67 72 61 6d 3f |in a TP |program?|
|00000a30| 0d 0a 31 30 29 20 48 6f | 77 20 69 73 20 6d 69 6c |..10) Ho|w is mil|
|00000a40| 6c 69 73 65 63 6f 6e 64 | 20 74 69 6d 69 6e 67 20 |lisecond| timing |
|00000a50| 64 6f 6e 65 3f 0d 0a 31 | 31 29 20 48 6f 77 20 63 |done?..1|1) How c|
|00000a60| 61 6e 20 49 20 63 75 73 | 74 6f 6d 69 7a 65 20 74 |an I cus|tomize t|
|00000a70| 68 65 20 74 65 78 74 20 | 63 68 61 72 61 63 74 65 |he text |characte|
|00000a80| 72 73 20 74 6f 20 6d 79 | 20 6f 77 6e 20 6c 69 6b |rs to my| own lik|
|00000a90| 69 6e 67 3f 0d 0a 31 32 | 29 20 48 6f 77 20 74 6f |ing?..12|) How to|
|00000aa0| 20 66 69 6e 64 20 74 68 | 65 20 66 69 6c 65 73 20 | find th|e files |
|00000ab0| 69 6e 20 61 20 64 69 72 | 65 63 74 6f 72 79 20 61 |in a dir|ectory a|
|00000ac0| 6e 64 20 73 75 62 64 69 | 72 65 63 74 6f 72 69 65 |nd subdi|rectorie|
|00000ad0| 73 3f 0d 0a 31 33 29 20 | 49 20 6e 65 65 64 20 61 |s?..13) |I need a|
|00000ae0| 20 70 6f 77 65 72 20 66 | 75 6e 63 74 69 6f 6e 20 | power f|unction |
|00000af0| 62 75 74 20 74 68 65 72 | 65 20 69 73 20 6e 6f 6e |but ther|e is non|
|00000b00| 65 20 69 6e 20 54 75 72 | 62 6f 20 50 61 73 63 61 |e in Tur|bo Pasca|
|00000b10| 6c 2e 0d 0a 31 34 29 20 | 48 6f 77 20 63 61 6e 20 |l...14) |How can |
|00000b20| 49 20 63 72 65 61 74 65 | 20 61 72 72 61 79 73 20 |I create| arrays |
|00000b30| 74 68 61 74 20 61 72 65 | 20 6c 61 72 67 65 72 20 |that are| larger |
|00000b40| 74 68 61 6e 20 36 34 20 | 6b 69 6c 6f 62 79 74 65 |than 64 |kilobyte|
|00000b50| 73 3f 0d 0a 31 35 29 20 | 48 6f 77 20 63 61 6e 20 |s?..15) |How can |
|00000b60| 49 20 74 65 73 74 20 74 | 68 61 74 20 74 68 65 20 |I test t|hat the |
|00000b70| 70 72 69 6e 74 65 72 20 | 69 73 20 72 65 61 64 79 |printer |is ready|
|00000b80| 3f 0d 0a 31 36 29 20 48 | 6f 77 20 63 61 6e 20 49 |?..16) H|ow can I|
|00000b90| 20 63 6c 65 61 72 20 74 | 68 65 20 6b 65 79 62 6f | clear t|he keybo|
|00000ba0| 61 72 64 20 74 79 70 65 | 2d 61 68 65 61 64 20 62 |ard type|-ahead b|
|00000bb0| 75 66 66 65 72 3f 0d 0a | 31 37 29 20 48 6f 77 20 |uffer?..|17) How |
|00000bc0| 63 61 6e 20 49 20 75 74 | 69 6c 69 7a 65 20 65 78 |can I ut|ilize ex|
|00000bd0| 70 61 6e 64 65 64 20 6d | 65 6d 6f 72 79 20 28 45 |panded m|emory (E|
|00000be0| 4d 53 29 20 69 6e 20 6d | 79 20 70 72 6f 67 72 61 |MS) in m|y progra|
|00000bf0| 6d 73 3f 0d 0a 31 38 29 | 20 48 6f 77 20 63 61 6e |ms?..18)| How can|
|00000c00| 20 49 20 6f 62 74 61 69 | 6e 20 74 68 65 20 65 6e | I obtai|n the en|
|00000c10| 74 69 72 65 20 63 6f 6d | 6d 61 6e 64 20 6c 69 6e |tire com|mand lin|
|00000c20| 65 3f 0d 0a 31 39 29 20 | 48 6f 77 20 64 6f 20 49 |e?..19) |How do I|
|00000c30| 20 72 65 64 69 72 65 63 | 74 20 74 65 78 74 20 66 | redirec|t text f|
|00000c40| 72 6f 6d 20 70 72 69 6e | 74 65 72 20 74 6f 20 66 |rom prin|ter to f|
|00000c50| 69 6c 65 20 69 6e 20 6d | 79 20 54 50 20 70 72 6f |ile in m|y TP pro|
|00000c60| 67 72 61 6d 3f 0d 0a 32 | 30 29 20 54 75 72 62 6f |gram?..2|0) Turbo|
|00000c70| 20 50 61 73 63 61 6c 20 | 69 73 20 66 6f 72 20 77 | Pascal |is for w|
|00000c80| 69 6d 70 73 2e 20 55 73 | 65 20 73 74 61 6e 64 61 |imps. Us|e standa|
|00000c90| 72 64 20 50 61 73 63 61 | 6c 20 6f 72 20 43 20 69 |rd Pasca|l or C i|
|00000ca0| 6e 73 74 65 61 64 3f 0d | 0a 32 31 29 20 48 6f 77 |nstead?.|.21) How|
|00000cb0| 20 64 6f 20 49 20 74 75 | 72 6e 20 74 68 65 20 63 | do I tu|rn the c|
|00000cc0| 75 72 73 6f 72 20 6f 66 | 66 3f 0d 0a 32 32 29 20 |ursor of|f?..22) |
|00000cd0| 48 6f 77 20 74 6f 20 66 | 69 6e 64 20 61 6c 6c 20 |How to f|ind all |
|00000ce0| 72 6f 6f 74 73 20 6f 66 | 20 61 20 70 6f 6c 79 6e |roots of| a polyn|
|00000cf0| 6f 6d 69 61 6c 3f 0d 0a | 32 33 29 20 57 68 61 74 |omial?..|23) What|
|00000d00| 20 69 73 20 61 6c 6c 20 | 74 68 69 73 20 74 61 6c | is all |this tal|
|00000d10| 6b 20 61 62 6f 75 74 20 | 22 50 61 73 63 61 6c 20 |k about |"Pascal |
|00000d20| 68 6f 6d 65 77 6f 72 6b | 20 6f 6e 20 74 68 65 20 |homework| on the |
|00000d30| 6e 65 74 22 3f 0d 0a 32 | 34 29 20 48 6f 77 20 63 |net"?..2|4) How c|
|00000d40| 61 6e 20 49 20 6c 69 6e | 6b 20 67 72 61 70 68 69 |an I lin|k graphi|
|00000d50| 63 73 20 64 72 69 76 65 | 72 73 20 64 69 72 65 63 |cs drive|rs direc|
|00000d60| 74 6c 79 20 69 6e 74 6f | 20 6d 79 20 65 78 65 63 |tly into| my exec|
|00000d70| 75 74 61 62 6c 65 3f 0d | 0a 32 35 29 20 48 6f 77 |utable?.|.25) How|
|00000d80| 20 63 61 6e 20 49 20 74 | 72 61 70 20 61 20 72 75 | can I t|rap a ru|
|00000d90| 6e 74 69 6d 65 20 65 72 | 72 6f 72 3f 0d 0a 2d 2d |ntime er|ror?..--|
|00000da0| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00000db0| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00000dc0| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00000dd0| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00000de0| 2d 2d 0d 0a 0d 0a 55 6e | 6c 65 73 73 20 6f 74 68 |--....Un|less oth|
|00000df0| 65 72 77 69 73 65 20 73 | 74 61 74 65 64 20 74 68 |erwise s|tated th|
|00000e00| 65 20 61 6e 73 77 65 72 | 73 20 63 6f 76 65 72 20 |e answer|s cover |
|00000e10| 76 65 72 73 69 6f 6e 73 | 20 34 2e 30 2c 20 35 2e |versions| 4.0, 5.|
|00000e20| 30 2c 20 35 2e 35 2c 0d | 0a 36 2e 30 20 61 6e 64 |0, 5.5,.|.6.0 and|
|00000e30| 20 37 2e 30 20 28 72 65 | 61 6c 20 6d 6f 64 65 29 | 7.0 (re|al mode)|
|00000e40| 2e 20 54 68 65 20 51 26 | 41 73 20 61 72 65 20 6e |. The Q&|As are n|
|00000e50| 6f 74 20 66 6f 72 20 54 | 75 72 62 6f 20 50 61 73 |ot for T|urbo Pas|
|00000e60| 63 61 6c 20 76 65 72 73 | 69 6f 6e 20 33 0d 0a 6f |cal vers|ion 3..o|
|00000e70| 72 20 65 61 72 6c 69 65 | 72 2e 20 4f 62 6a 65 63 |r earlie|r. Objec|
|00000e80| 74 73 2c 20 54 56 69 73 | 69 6f 6e 2c 20 57 69 6e |ts, TVis|ion, Win|
|00000e90| 64 6f 77 73 2c 20 44 65 | 6c 70 68 69 2c 20 65 74 |dows, De|lphi, et|
|00000ea0| 63 20 61 72 65 20 6e 6f | 74 20 63 6f 76 65 72 65 |c are no|t covere|
|00000eb0| 64 2e 0d 0a 28 49 20 64 | 6f 20 6e 6f 74 20 75 73 |d...(I d|o not us|
|00000ec0| 65 20 74 68 65 6d 20 6d | 79 73 65 6c 66 2e 29 0d |e them m|yself.).|
|00000ed0| 0a 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |.-------|--------|
|00000ee0| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00000ef0| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00000f00| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00000f10| 2d 2d 2d 2d 2d 0d 0a 0d | 0a 46 72 6f 6d 20 74 73 |-----...|.From ts|
|00000f20| 40 75 77 61 73 61 2e 66 | 69 20 53 61 74 20 53 65 |@uwasa.f|i Sat Se|
|00000f30| 70 20 37 20 30 30 3a 30 | 30 3a 30 31 20 31 39 39 |p 7 00:0|0:01 199|
|00000f40| 36 0d 0a 53 75 62 6a 65 | 63 74 3a 20 44 69 73 61 |6..Subje|ct: Disa|
|00000f50| 62 6c 69 6e 67 20 6f 72 | 20 63 61 70 74 75 72 69 |bling or| capturi|
|00000f60| 6e 67 20 74 68 65 20 62 | 72 65 61 6b 20 6b 65 79 |ng the b|reak key|
|00000f70| 0d 0a 0d 0a 31 2e 20 2a | 2a 2a 2a 2a 0d 0a 20 51 |....1. *|****.. Q|
|00000f80| 3a 20 49 20 64 6f 6e 27 | 74 20 77 61 6e 74 20 74 |: I don'|t want t|
|00000f90| 68 65 20 42 72 65 61 6b | 20 6b 65 79 20 74 6f 20 |he Break| key to |
|00000fa0| 62 65 20 61 62 6c 65 20 | 74 6f 20 69 6e 74 65 72 |be able |to inter|
|00000fb0| 72 75 70 74 20 6d 79 20 | 54 50 0d 0a 70 72 6f 67 |rupt my |TP..prog|
|00000fc0| 72 61 6d 73 2e 20 48 6f | 77 20 69 73 20 74 68 69 |rams. Ho|w is thi|
|00000fd0| 73 20 64 6f 6e 65 3f 0d | 0a 20 51 32 3a 20 49 20 |s done?.|. Q2: I |
|00000fe0| 77 61 6e 74 20 74 6f 20 | 62 65 20 61 62 6c 65 20 |want to |be able |
|00000ff0| 74 6f 20 63 61 70 74 75 | 72 65 20 74 68 65 20 42 |to captu|re the B|
|00001000| 72 65 61 6b 20 6b 65 79 | 20 69 6e 20 6d 79 20 54 |reak key| in my T|
|00001010| 50 20 70 72 6f 67 72 61 | 6d 2e 0d 0a 48 6f 77 20 |P progra|m...How |
|00001020| 69 73 20 74 68 69 73 20 | 64 6f 6e 65 3f 0d 0a 20 |is this |done?.. |
|00001030| 51 33 3a 20 48 6f 77 20 | 64 6f 20 49 20 64 65 74 |Q3: How |do I det|
|00001040| 65 63 74 20 69 66 20 61 | 20 63 65 72 74 61 69 6e |ect if a| certain|
|00001050| 20 6b 65 79 20 68 61 73 | 20 62 65 65 6e 20 70 72 | key has| been pr|
|00001060| 65 73 73 65 64 3f 20 28 | 4f 66 74 65 6e 2c 20 68 |essed? (|Often, h|
|00001070| 6f 77 0d 0a 64 6f 20 49 | 20 64 65 74 65 63 74 2c |ow..do I| detect,|
|00001080| 20 66 6f 72 20 65 78 61 | 6d 70 6c 65 2c 20 69 66 | for exa|mple, if|
|00001090| 20 74 68 65 20 43 75 72 | 73 6f 72 55 70 20 6b 65 | the Cur|sorUp ke|
|000010a0| 79 20 68 61 73 20 62 65 | 65 6e 20 70 72 65 73 73 |y has be|en press|
|000010b0| 65 64 3f 29 0d 0a 20 51 | 34 3a 20 48 6f 77 20 64 |ed?).. Q|4: How d|
|000010c0| 6f 20 49 20 64 65 74 65 | 63 74 20 69 66 20 61 20 |o I dete|ct if a |
|000010d0| 63 75 72 73 6f 72 20 6b | 65 79 20 6f 72 20 61 20 |cursor k|ey or a |
|000010e0| 66 75 6e 63 74 69 6f 6e | 20 6b 65 79 20 68 61 73 |function| key has|
|000010f0| 20 62 65 65 6e 0d 0a 70 | 72 65 73 73 65 64 3f 0d | been..p|ressed?.|
|00001100| 0a 0d 0a 20 41 3a 20 54 | 68 69 73 20 73 65 74 20 |... A: T|his set |
|00001110| 6f 66 20 66 72 65 71 75 | 65 6e 74 6c 79 20 61 73 |of frequ|ently as|
|00001120| 6b 65 64 20 71 75 65 73 | 74 69 6f 6e 73 20 69 73 |ked ques|tions is|
|00001130| 20 62 61 73 69 63 61 6c | 6c 79 20 61 20 63 61 73 | basical|ly a cas|
|00001140| 65 20 6f 66 0d 0a 52 54 | 46 4d 20 28 72 65 61 64 |e of..RT|FM (read|
|00001150| 20 74 68 65 20 66 2a 69 | 6e 67 20 6d 61 6e 75 61 | the f*i|ng manua|
|00001160| 6c 29 2e 20 42 75 74 20 | 74 68 69 73 20 66 65 61 |l). But |this fea|
|00001170| 74 75 72 65 20 69 73 2c | 20 61 64 6d 69 74 74 65 |ture is,| admitte|
|00001180| 64 6c 79 2c 20 6e 6f 74 | 0d 0a 76 65 72 79 20 70 |dly, not|..very p|
|00001190| 72 6f 6d 69 6e 65 6e 74 | 6c 79 20 64 69 73 70 6c |rominent|ly displ|
|000011a0| 61 79 65 64 20 69 6e 20 | 74 68 65 20 54 75 72 62 |ayed in |the Turb|
|000011b0| 6f 20 50 61 73 63 61 6c | 20 72 65 66 65 72 65 6e |o Pascal| referen|
|000011c0| 63 65 2e 20 28 41 73 20 | 61 0d 0a 67 65 6e 65 72 |ce. (As |a..gener|
|000011d0| 61 6c 20 72 75 6c 65 20 | 77 65 20 73 68 6f 75 6c |al rule |we shoul|
|000011e0| 64 20 6e 6f 74 20 75 73 | 65 20 74 68 65 20 6e 65 |d not us|e the ne|
|000011f0| 77 73 67 72 6f 75 70 73 | 20 61 73 20 61 20 72 65 |wsgroups| as a re|
|00001200| 70 6c 61 63 65 6d 65 6e | 74 20 66 6f 72 0d 0a 6f |placemen|t for..o|
|00001210| 75 72 20 70 6f 73 73 69 | 62 6c 79 20 6d 69 73 73 |ur possi|bly miss|
|00001220| 69 6e 67 20 6d 61 6e 75 | 61 6c 73 2c 20 62 75 74 |ing manu|als, but|
|00001230| 20 65 6e 6f 75 67 68 20 | 6f 66 20 74 68 69 73 20 | enough |of this |
|00001240| 6c 69 6e 65 2e 29 0d 0a | 20 20 20 49 27 6c 6c 20 |line.)..| I'll |
|00001250| 6f 6e 6c 79 20 65 78 70 | 6c 61 69 6e 20 51 20 61 |only exp|lain Q a|
|00001260| 6e 64 20 51 32 2e 20 54 | 68 65 20 6f 74 68 65 72 |nd Q2. T|he other|
|00001270| 20 74 77 6f 2c 20 51 33 | 20 61 6e 64 20 51 34 20 | two, Q3| and Q4 |
|00001280| 73 68 6f 75 6c 64 20 62 | 65 0d 0a 65 76 69 64 65 |should b|e..evide|
|00001290| 6e 74 20 66 72 6f 6d 20 | 74 68 65 20 65 78 61 6d |nt from |the exam|
|000012a0| 70 6c 65 20 63 6f 64 65 | 2e 0d 0a 20 20 20 54 68 |ple code|... Th|
|000012b0| 65 72 65 20 69 73 20 61 | 20 43 68 65 63 6b 42 72 |ere is a| CheckBr|
|000012c0| 65 61 6b 20 76 61 72 69 | 61 62 6c 65 20 69 6e 20 |eak vari|able in |
|000012d0| 74 68 65 20 43 72 74 20 | 75 6e 69 74 2c 20 77 68 |the Crt |unit, wh|
|000012e0| 69 63 68 20 69 73 20 74 | 72 75 65 20 62 79 0d 0a |ich is t|rue by..|
|000012f0| 64 65 66 61 75 6c 74 2e | 20 54 6f 20 74 75 72 6e |default.| To turn|
|00001300| 20 69 74 20 6f 66 66 20 | 75 73 65 0d 0a 20 20 20 | it off |use.. |
|00001310| 20 20 75 73 65 73 20 43 | 72 74 3b 0d 0a 20 20 20 | uses C|rt;.. |
|00001320| 20 20 3a 0d 0a 20 20 20 | 20 20 43 68 65 63 6b 42 | :.. | CheckB|
|00001330| 72 65 61 6b 20 3a 3d 20 | 66 61 6c 73 65 3b 0d 0a |reak := |false;..|
|00001340| 20 20 20 20 20 3a 0d 0a | 42 65 73 69 64 65 73 20 | :..|Besides |
|00001350| 74 75 72 6e 69 6e 67 20 | 6f 66 66 20 62 72 65 61 |turning |off brea|
|00001360| 6b 20 63 68 65 63 6b 69 | 6e 67 20 74 68 69 73 20 |k checki|ng this |
|00001370| 65 6e 61 62 6c 65 73 20 | 79 6f 75 20 74 6f 20 63 |enables |you to c|
|00001380| 61 70 74 75 72 65 20 74 | 68 65 0d 0a 70 72 65 73 |apture t|he..pres|
|00001390| 73 69 6e 67 20 6f 66 20 | 74 68 65 20 62 72 65 61 |sing of |the brea|
|000013a0| 6b 20 6b 65 79 20 61 73 | 20 79 6f 75 20 77 6f 75 |k key as| you wou|
|000013b0| 6c 64 20 63 61 70 74 75 | 72 65 20 70 72 65 73 73 |ld captu|re press|
|000013c0| 69 6e 67 20 63 74 72 6c | 2d 63 2e 20 49 6e 0d 0a |ing ctrl|-c. In..|
|000013d0| 6f 74 68 65 72 20 77 6f | 72 64 73 20 79 6f 75 20 |other wo|rds you |
|000013e0| 63 61 6e 20 75 73 65 20 | 65 2e 67 2e 0d 0a 20 20 |can use |e.g... |
|000013f0| 20 20 20 3a 0d 0a 20 20 | 70 72 6f 63 65 64 75 72 | :.. |procedur|
|00001400| 65 20 54 45 53 54 3b 0d | 0a 20 20 76 61 72 20 6b |e TEST;.|. var k|
|00001410| 65 79 20 3a 20 63 68 61 | 72 3b 0d 0a 20 20 62 65 |ey : cha|r;.. be|
|00001420| 67 69 6e 0d 0a 20 20 20 | 20 72 65 70 65 61 74 0d |gin.. | repeat.|
|00001430| 0a 20 20 20 20 20 20 69 | 66 20 4b 65 79 50 72 65 |. i|f KeyPre|
|00001440| 73 73 65 64 20 74 68 65 | 6e 0d 0a 20 20 20 20 20 |ssed the|n.. |
|00001450| 20 20 20 62 65 67 69 6e | 0d 0a 20 20 20 20 20 20 | begin|.. |
|00001460| 20 20 20 20 6b 65 79 20 | 3a 3d 20 52 65 61 64 4b | key |:= ReadK|
|00001470| 65 79 3b 0d 0a 20 20 20 | 20 20 20 20 20 20 20 63 |ey;.. | c|
|00001480| 61 73 65 20 6b 65 79 20 | 6f 66 0d 0a 20 20 20 20 |ase key |of.. |
|00001490| 20 20 20 20 20 20 20 20 | 20 23 30 20 3a 20 62 65 | | #0 : be|
|000014a0| 67 69 6e 0d 0a 20 20 20 | 20 20 20 20 20 20 20 20 |gin.. | |
|000014b0| 20 20 20 20 20 20 20 20 | 20 6b 65 79 20 3a 3d 20 | | key := |
|000014c0| 52 65 61 64 4b 65 79 3b | 0d 0a 20 20 20 20 20 20 |ReadKey;|.. |
|000014d0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 63 61 | | ca|
|000014e0| 73 65 20 6b 65 79 20 6f | 66 0d 0a 20 20 20 20 20 |se key o|f.. |
|000014f0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00001500| 20 23 35 39 20 3a 20 77 | 72 69 74 65 20 28 27 46 | #59 : w|rite ('F|
|00001510| 31 20 27 29 3b 0d 0a 20 | 20 20 20 20 20 20 20 20 |1 ');.. | |
|00001520| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 23 37 32 | | #72|
|00001530| 20 3a 20 77 72 69 74 65 | 20 28 27 43 75 72 73 55 | : write| ('CursU|
|00001540| 70 20 27 29 3b 20 20 20 | 7b 20 44 65 74 65 63 74 |p '); |{ Detect|
|00001550| 69 6e 67 20 74 68 65 73 | 65 20 7d 0d 0a 20 20 20 |ing thes|e }.. |
|00001560| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00001570| 20 20 20 23 37 35 20 3a | 20 77 72 69 74 65 20 28 | #75 :| write (|
|00001580| 27 43 75 72 73 4c 66 20 | 27 29 3b 20 20 20 7b 20 |'CursLf |'); { |
|00001590| 69 73 20 6f 66 74 65 6e | 20 61 73 6b 65 64 21 20 |is often| asked! |
|000015a0| 7d 0d 0a 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |}.. | |
|000015b0| 20 20 20 20 20 20 20 20 | 20 23 37 37 20 3a 20 77 | | #77 : w|
|000015c0| 72 69 74 65 20 28 27 43 | 75 72 73 52 67 20 27 29 |rite ('C|ursRg ')|
|000015d0| 3b 0d 0a 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |;.. | |
|000015e0| 20 20 20 20 20 20 20 20 | 20 23 38 30 20 3a 20 77 | | #80 : w|
|000015f0| 72 69 74 65 20 28 27 43 | 75 72 73 44 6e 20 27 29 |rite ('C|ursDn ')|
|00001600| 3b 0d 0a 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |;.. | |
|00001610| 20 20 20 20 20 20 20 20 | 20 65 6c 73 65 20 77 72 | | else wr|
|00001620| 69 74 65 20 28 27 30 20 | 27 2c 20 6f 72 64 28 6b |ite ('0 |', ord(k|
|00001630| 65 79 29 2c 20 27 20 27 | 29 3b 0d 0a 20 20 20 20 |ey), ' '|);.. |
|00001640| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00001650| 65 6e 64 3b 20 7b 63 61 | 73 65 7d 0d 0a 20 20 20 |end; {ca|se}.. |
|00001660| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 65 | | e|
|00001670| 6e 64 3b 0d 0a 20 20 20 | 20 20 20 20 20 20 20 20 |nd;.. | |
|00001680| 20 20 23 33 20 3a 20 62 | 65 67 69 6e 20 20 20 20 | #3 : b|egin |
|00001690| 7b 63 74 72 6c 2d 63 20 | 6f 72 20 62 72 65 61 6b |{ctrl-c |or break|
|000016a0| 7d 0d 0a 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |}.. | |
|000016b0| 20 20 20 20 20 20 20 77 | 72 69 74 65 6c 6e 20 28 | w|riteln (|
|000016c0| 27 42 72 65 61 6b 27 29 | 3b 0d 0a 20 20 20 20 20 |'Break')|;.. |
|000016d0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 68 | | h|
|000016e0| 61 6c 74 28 31 29 3b 0d | 0a 20 20 20 20 20 20 20 |alt(1);.|. |
|000016f0| 20 20 20 20 20 20 20 20 | 20 20 20 65 6e 64 3b 20 | | end; |
|00001700| 20 20 20 20 7b 20 54 65 | 72 6d 69 6e 61 74 65 20 | { Te|rminate |
|00001710| 74 68 65 20 70 72 6f 67 | 72 61 6d 2c 20 6f 72 20 |the prog|ram, or |
|00001720| 77 68 61 74 65 76 65 72 | 20 7d 0d 0a 20 20 20 20 |whatever| }.. |
|00001730| 20 20 20 20 20 20 20 20 | 23 32 37 20 3a 20 62 65 | |#27 : be|
|00001740| 67 69 6e 0d 0a 20 20 20 | 20 20 20 20 20 20 20 20 |gin.. | |
|00001750| 20 20 20 20 20 20 20 20 | 20 77 72 69 74 65 20 28 | | write (|
|00001760| 27 3c 65 73 63 3e 20 27 | 29 3b 0d 0a 20 20 20 20 |'<esc> '|);.. |
|00001770| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00001780| 65 78 69 74 3b 20 20 7b | 20 45 78 69 74 20 74 65 |exit; {| Exit te|
|00001790| 73 74 2c 20 63 6f 6e 74 | 69 6e 75 65 20 70 72 6f |st, cont|inue pro|
|000017a0| 67 72 61 6d 20 7d 0d 0a | 20 20 20 20 20 20 20 20 |gram }..| |
|000017b0| 20 20 20 20 20 20 20 20 | 20 20 65 6e 64 3b 0d 0a | | end;..|
|000017c0| 20 20 20 20 20 20 20 20 | 20 20 20 20 65 6c 73 65 | | else|
|000017d0| 20 77 72 69 74 65 20 28 | 6b 65 79 2c 20 27 20 27 | write (|key, ' '|
|000017e0| 29 3b 0d 0a 20 20 20 20 | 20 20 20 20 20 20 65 6e |);.. | en|
|000017f0| 64 3b 20 7b 63 61 73 65 | 7d 0d 0a 20 20 20 20 20 |d; {case|}.. |
|00001800| 20 20 20 65 6e 64 3b 20 | 7b 69 66 7d 0d 0a 20 20 | end; |{if}.. |
|00001810| 20 20 75 6e 74 69 6c 20 | 66 61 6c 73 65 3b 0d 0a | until |false;..|
|00001820| 20 20 65 6e 64 3b 20 20 | 28 2a 20 74 65 73 74 20 | end; |(* test |
|00001830| 2a 29 0d 0a 20 20 20 20 | 20 3a 0d 0a 49 4d 50 4f |*).. | :..IMPO|
|00001840| 52 54 41 4e 54 3a 20 44 | 6f 6e 27 74 20 74 65 73 |RTANT: D|on't tes|
|00001850| 74 20 74 68 65 20 63 74 | 72 6c 2d 62 72 65 61 6b |t the ct|rl-break|
|00001860| 20 66 65 61 74 75 72 65 | 20 6a 75 73 74 20 66 72 | feature| just fr|
|00001870| 6f 6d 20 77 69 74 68 69 | 6e 20 74 68 65 20 54 50 |om withi|n the TP|
|00001880| 0d 0a 49 44 45 2c 20 62 | 65 63 61 75 73 65 20 69 |..IDE, b|ecause i|
|00001890| 74 20 68 61 73 20 63 74 | 6c 72 2d 62 72 65 61 6b |t has ct|lr-break|
|000018a0| 20 68 61 6e 64 6c 65 72 | 20 28 22 69 6e 74 65 72 | handler| ("inter|
|000018b0| 63 65 70 74 6f 72 22 29 | 20 6f 66 20 69 74 73 20 |ceptor")| of its |
|000018c0| 6f 77 6e 0d 0a 61 6e 64 | 20 6d 61 79 20 63 6f 6e |own..and| may con|
|000018d0| 66 75 73 65 20 79 6f 75 | 20 69 6e 74 6f 20 74 68 |fuse you| into th|
|000018e0| 69 6e 6b 69 6e 67 20 74 | 68 61 74 20 63 74 72 6c |inking t|hat ctrl|
|000018f0| 2d 62 72 65 61 6b 20 63 | 61 6e 6e 6f 74 20 62 65 |-break c|annot be|
|00001900| 0d 0a 63 69 72 63 75 6d | 76 65 6e 74 65 64 20 62 |..circum|vented b|
|00001910| 79 20 74 68 65 20 6d 65 | 74 68 6f 64 20 67 69 76 |y the me|thod giv|
|00001920| 65 6e 20 61 62 6f 76 65 | 2e 0d 0a 20 20 54 68 65 |en above|... The|
|00001930| 20 61 62 6f 76 65 20 65 | 78 61 6d 70 6c 65 20 68 | above e|xample h|
|00001940| 61 73 20 61 20 64 6f 75 | 62 6c 65 20 70 75 72 70 |as a dou|ble purp|
|00001950| 6f 73 65 2e 20 49 74 20 | 61 6c 73 6f 20 73 68 6f |ose. It |also sho|
|00001960| 77 73 20 74 68 65 0d 0a | 72 75 64 69 6d 65 6e 74 |ws the..|rudiment|
|00001970| 73 20 68 6f 77 20 79 6f | 75 20 63 61 6e 20 64 65 |s how yo|u can de|
|00001980| 74 65 63 74 20 69 66 20 | 61 20 63 65 72 74 61 69 |tect if |a certai|
|00001990| 6e 20 6b 65 79 20 68 61 | 73 20 62 65 65 6e 20 70 |n key ha|s been p|
|000019a0| 72 65 73 73 65 64 2e 20 | 54 68 69 73 0d 0a 65 6e |ressed. |This..en|
|000019b0| 61 62 6c 65 73 20 79 6f | 75 20 74 6f 20 67 69 76 |ables yo|u to giv|
|000019c0| 65 20 69 6e 70 75 74 20 | 77 69 74 68 6f 75 74 20 |e input |without |
|000019d0| 65 63 68 6f 69 6e 67 20 | 69 74 20 74 6f 20 74 68 |echoing |it to th|
|000019e0| 65 20 73 63 72 65 65 6e | 2c 20 77 68 69 63 68 20 |e screen|, which |
|000019f0| 69 73 0d 0a 61 20 6c 61 | 74 65 72 20 46 41 51 20 |is..a la|ter FAQ |
|00001a00| 69 6e 20 74 68 69 73 20 | 63 6f 6c 6c 65 63 74 69 |in this |collecti|
|00001a10| 6f 6e 2e 0d 0a 20 20 54 | 68 69 73 20 69 73 2c 20 |on... T|his is, |
|00001a20| 68 6f 77 65 76 65 72 2c | 20 6e 6f 74 20 61 6c 6c |however,| not all|
|00001a30| 20 74 68 65 72 65 20 63 | 61 6e 20 62 65 20 74 6f | there c|an be to|
|00001a40| 20 62 72 65 61 6b 20 63 | 68 65 63 6b 69 6e 67 2c | break c|hecking,|
|00001a50| 20 73 69 6e 63 65 0d 0a | 74 68 65 20 63 61 70 74 | since..|the capt|
|00001a60| 75 72 69 6e 67 20 69 73 | 20 70 6f 73 73 69 62 6c |uring is| possibl|
|00001a70| 65 20 6f 6e 6c 79 20 61 | 74 20 69 6e 70 75 74 20 |e only a|t input |
|00001a80| 74 69 6d 65 2e 20 49 74 | 20 69 73 20 61 6c 73 6f |time. It| is also|
|00001a90| 20 70 6f 73 73 69 62 6c | 65 20 74 6f 0d 0a 77 72 | possibl|e to..wr|
|00001aa0| 69 74 65 20 61 20 62 72 | 65 61 6b 20 68 61 6e 64 |ite a br|eak hand|
|00001ab0| 6c 65 72 20 74 6f 20 69 | 6e 74 65 72 72 75 70 74 |ler to i|nterrupt|
|00001ac0| 20 61 20 54 50 20 70 72 | 6f 67 72 61 6d 20 61 74 | a TP pr|ogram at|
|00001ad0| 20 61 6e 79 20 74 69 6d | 65 2e 20 46 6f 72 0d 0a | any tim|e. For..|
|00001ae0| 6d 6f 72 65 20 64 65 74 | 61 69 6c 73 20 73 65 65 |more det|ails see|
|00001af0| 20 4f 68 6c 73 65 6e 20 | 26 20 53 74 6f 6b 65 72 | Ohlsen |& Stoker|
|00001b00| 2c 20 54 75 72 62 6f 20 | 50 61 73 63 61 6c 20 41 |, Turbo |Pascal A|
|00001b10| 64 76 61 6e 63 65 64 20 | 54 65 63 68 6e 69 71 75 |dvanced |Techniqu|
|00001b20| 65 73 2c 0d 0a 43 68 61 | 70 74 65 72 20 37 2e 20 |es,..Cha|pter 7. |
|00001b30| 28 46 6f 72 20 74 68 65 | 20 62 69 62 6c 69 6f 67 |(For the| bibliog|
|00001b40| 72 61 70 68 79 2c 20 73 | 65 65 20 46 41 51 50 41 |raphy, s|ee FAQPA|
|00001b50| 53 42 2e 54 58 54 20 69 | 6e 20 74 68 69 73 20 73 |SB.TXT i|n this s|
|00001b60| 61 6d 65 20 46 41 51 0d | 0a 63 6f 6c 6c 65 63 74 |ame FAQ.|.collect|
|00001b70| 69 6f 6e 29 2e 0d 0a 0d | 0a 20 41 32 3a 20 54 68 |ion)....|. A2: Th|
|00001b80| 69 73 20 66 72 65 71 75 | 65 6e 74 20 71 75 65 73 |is frequ|ent ques|
|00001b90| 74 69 6f 6e 20 61 6c 73 | 6f 20 65 6c 69 63 69 74 |tion als|o elicit|
|00001ba0| 73 20 6f 6e 65 20 6f 66 | 20 74 68 65 20 6d 6f 73 |s one of| the mos|
|00001bb0| 74 20 66 72 65 71 75 65 | 6e 74 0d 0a 66 61 6c 73 |t freque|nt..fals|
|00001bc0| 65 20 61 6e 73 77 65 72 | 73 2e 20 49 74 20 69 73 |e answer|s. It is|
|00001bd0| 20 6f 66 74 65 6e 20 73 | 75 67 67 65 73 74 65 64 | often s|uggested|
|00001be0| 20 65 72 72 6f 6e 65 6f | 75 73 6c 79 20 74 68 61 | erroneo|usly tha|
|00001bf0| 74 20 74 68 65 20 72 65 | 6c 65 76 61 6e 74 0d 0a |t the re|levant..|
|00001c00| 63 6f 64 65 20 77 6f 75 | 6c 64 20 62 65 0d 0a 20 |code wou|ld be.. |
|00001c10| 20 75 73 65 73 20 64 6f | 73 3b 0d 0a 20 20 53 65 | uses do|s;.. Se|
|00001c20| 74 43 42 72 65 61 6b 28 | 66 61 6c 73 65 29 3b 0d |tCBreak(|false);.|
|00001c30| 0a 54 68 69 73 20 69 73 | 20 6e 6f 74 20 73 6f 2e |.This is| not so.|
|00001c40| 20 49 74 20 63 6f 6e 66 | 75 73 65 73 20 4d 53 2d | It conf|uses MS-|
|00001c50| 44 4f 53 20 61 6e 64 20 | 54 50 20 62 72 65 61 6b |DOS and |TP break|
|00001c60| 20 63 68 65 63 6b 69 6e | 67 20 77 69 74 68 20 65 | checkin|g with e|
|00001c70| 61 63 68 0d 0a 6f 74 68 | 65 72 2e 20 53 65 74 43 |ach..oth|er. SetC|
|00001c80| 42 72 65 61 6b 28 66 61 | 6c 73 65 29 20 77 69 6c |Break(fa|lse) wil|
|00001c90| 6c 20 5f 2a 4e 4f 54 2a | 5f 20 64 69 73 61 62 6c |l _*NOT*|_ disabl|
|00001ca0| 65 20 74 68 65 20 43 74 | 72 6c 2d 42 72 65 61 6b |e the Ct|rl-Break|
|00001cb0| 20 6b 65 79 20 66 6f 72 | 0d 0a 79 6f 75 72 20 54 | key for|..your T|
|00001cc0| 75 72 62 6f 20 50 61 73 | 63 61 6c 20 70 72 6f 67 |urbo Pas|cal prog|
|00001cd0| 72 61 6d 2e 20 57 68 61 | 74 20 69 74 20 64 6f 65 |ram. Wha|t it doe|
|00001ce0| 73 20 69 73 20 22 53 65 | 74 73 20 74 68 65 20 73 |s is "Se|ts the s|
|00001cf0| 74 61 74 65 20 6f 66 0d | 0a 43 74 72 6c 2d 42 72 |tate of.|.Ctrl-Br|
|00001d00| 65 61 6b 20 63 68 65 63 | 6b 69 6e 67 20 69 6e 20 |eak chec|king in |
|00001d10| 44 4f 53 22 2e 20 53 65 | 74 43 42 72 65 61 6b 20 |DOS". Se|tCBreak |
|00001d20| 73 65 74 73 20 74 68 65 | 20 73 74 61 74 65 20 6f |sets the| state o|
|00001d30| 66 20 43 74 72 6c 2b 42 | 72 65 61 6b 0d 0a 63 68 |f Ctrl+B|reak..ch|
|00001d40| 65 63 6b 69 6e 67 20 69 | 6e 20 44 4f 53 2e 20 57 |ecking i|n DOS. W|
|00001d50| 68 65 6e 20 6f 66 66 20 | 28 46 61 6c 73 65 29 2c |hen off |(False),|
|00001d60| 20 44 4f 53 20 6f 6e 6c | 79 20 63 68 65 63 6b 73 | DOS onl|y checks|
|00001d70| 20 66 6f 72 20 43 74 72 | 6c 2b 42 72 65 61 6b 0d | for Ctr|l+Break.|
|00001d80| 0a 64 75 72 69 6e 67 20 | 49 2f 4f 20 74 6f 20 63 |.during |I/O to c|
|00001d90| 6f 6e 73 6f 6c 65 2c 20 | 70 72 69 6e 74 65 72 2c |onsole, |printer,|
|00001da0| 20 6f 72 20 63 6f 6d 6d | 75 6e 69 63 61 74 69 6f | or comm|unicatio|
|00001db0| 6e 20 64 65 76 69 63 65 | 73 2e 20 57 68 65 6e 20 |n device|s. When |
|00001dc0| 6f 6e 0d 0a 28 54 72 75 | 65 29 2c 20 63 68 65 63 |on..(Tru|e), chec|
|00001dd0| 6b 73 20 61 72 65 20 6d | 61 64 65 20 61 74 20 65 |ks are m|ade at e|
|00001de0| 76 65 72 79 20 73 79 73 | 74 65 6d 20 63 61 6c 6c |very sys|tem call|
|00001df0| 2e 22 0d 0a 20 20 20 54 | 68 69 73 20 69 74 65 6d |.".. T|his item|
|00001e00| 20 67 6f 65 73 20 74 6f | 20 73 68 6f 77 73 20 68 | goes to| shows h|
|00001e10| 6f 77 20 69 6d 70 6f 72 | 74 61 6e 74 20 69 74 20 |ow impor|tant it |
|00001e20| 69 73 20 63 61 72 65 66 | 75 6c 6c 79 20 74 6f 20 |is caref|ully to |
|00001e30| 63 68 65 63 6b 0d 0a 6f | 6e 65 27 73 20 63 6f 64 |check..o|ne's cod|
|00001e40| 65 20 61 6e 64 20 66 61 | 63 74 73 20 62 65 66 6f |e and fa|cts befo|
|00001e50| 72 65 20 63 6c 61 69 6d | 69 6e 67 20 73 6f 6d 65 |re claim|ing some|
|00001e60| 74 68 69 6e 67 2e 0d 0a | 0d 0a 20 41 33 3a 20 55 |thing...|.. A3: U|
|00001e70| 73 69 6e 67 20 74 68 65 | 20 22 43 68 65 63 6b 42 |sing the| "CheckB|
|00001e80| 72 65 61 6b 20 3a 3d 20 | 66 61 6c 73 65 3b 22 20 |reak := |false;" |
|00001e90| 6d 65 74 68 6f 64 20 69 | 73 20 6e 6f 74 20 74 68 |method i|s not th|
|00001ea0| 65 20 6f 6e 6c 79 0d 0a | 61 6c 74 65 72 6e 61 74 |e only..|alternat|
|00001eb0| 69 76 65 2c 20 68 6f 77 | 65 76 65 72 2e 20 48 65 |ive, how|ever. He|
|00001ec0| 72 65 20 69 73 20 61 6e | 20 65 78 61 6d 70 6c 65 |re is an| example|
|00001ed0| 20 63 6f 64 65 20 66 6f | 72 20 64 69 73 61 62 6c | code fo|r disabl|
|00001ee0| 69 6e 67 0d 0a 43 74 72 | 6c 2d 42 72 65 61 6b 20 |ing..Ctr|l-Break |
|00001ef0| 61 6e 64 20 43 74 72 6c | 2d 43 20 77 69 74 68 20 |and Ctrl|-C with |
|00001f00| 69 6e 74 65 72 72 75 70 | 74 73 0d 0a 20 20 75 73 |interrup|ts.. us|
|00001f10| 65 73 20 44 6f 73 3b 0d | 0a 20 20 76 61 72 20 4f |es Dos;.|. var O|
|00001f20| 6c 64 49 6e 74 72 31 42 | 20 3a 20 70 6f 69 6e 74 |ldIntr1B| : point|
|00001f30| 65 72 3b 20 20 7b 20 43 | 74 72 6c 2d 42 72 65 61 |er; { C|trl-Brea|
|00001f40| 6b 20 61 64 64 72 65 73 | 73 20 7d 0d 0a 20 20 20 |k addres|s }.. |
|00001f50| 20 20 20 4f 6c 64 49 6e | 74 72 32 33 20 3a 20 70 | OldIn|tr23 : p|
|00001f60| 6f 69 6e 74 65 72 3b 20 | 20 7b 20 43 74 72 6c 2d |ointer; | { Ctrl-|
|00001f70| 43 20 69 6e 74 65 72 72 | 75 70 74 20 68 61 6e 64 |C interr|upt hand|
|00001f80| 6c 65 72 20 7d 0d 0a 20 | 20 20 20 20 20 61 6e 73 |ler }.. | ans|
|00001f90| 77 65 72 20 20 20 20 3a | 20 73 74 72 69 6e 67 3b |wer :| string;|
|00001fa0| 20 20 20 7b 20 46 6f 72 | 20 72 65 61 64 6c 6e 20 | { For| readln |
|00001fb0| 74 65 73 74 20 7d 0d 0a | 20 20 7b 24 46 2b 7d 0d |test }..| {$F+}.|
|00001fc0| 0a 20 20 70 72 6f 63 65 | 64 75 72 65 20 4e 65 77 |. proce|dure New|
|00001fd0| 49 6e 74 72 31 42 20 28 | 66 6c 61 67 73 2c 63 73 |Intr1B (|flags,cs|
|00001fe0| 2c 69 70 2c 61 78 2c 62 | 78 2c 63 78 2c 64 78 2c |,ip,ax,b|x,cx,dx,|
|00001ff0| 73 69 2c 64 69 2c 64 73 | 2c 65 73 2c 62 70 20 3a |si,di,ds|,es,bp :|
|00002000| 20 77 6f 72 64 29 3b 0d | 0a 20 20 20 20 20 20 20 | word);.|. |
|00002010| 20 20 20 20 20 49 6e 74 | 65 72 72 75 70 74 3b 0d | Int|errupt;.|
|00002020| 0a 20 20 7b 24 46 2d 7d | 20 62 65 67 69 6e 20 65 |. {$F-}| begin e|
|00002030| 6e 64 3b 0d 0a 20 20 7b | 24 46 2b 7d 0d 0a 20 20 |nd;.. {|$F+}.. |
|00002040| 70 72 6f 63 65 64 75 72 | 65 20 4e 65 77 49 6e 74 |procedur|e NewInt|
|00002050| 72 32 33 20 28 66 6c 61 | 67 73 2c 63 73 2c 69 70 |r23 (fla|gs,cs,ip|
|00002060| 2c 61 78 2c 62 78 2c 63 | 78 2c 64 78 2c 73 69 2c |,ax,bx,c|x,dx,si,|
|00002070| 64 69 2c 64 73 2c 65 73 | 2c 62 70 20 3a 20 77 6f |di,ds,es|,bp : wo|
|00002080| 72 64 29 3b 0d 0a 20 20 | 20 20 20 20 20 20 20 20 |rd);.. | |
|00002090| 20 20 49 6e 74 65 72 72 | 75 70 74 3b 0d 0a 20 20 | Interr|upt;.. |
|000020a0| 7b 24 46 2d 7d 20 62 65 | 67 69 6e 20 65 6e 64 3b |{$F-} be|gin end;|
|000020b0| 0d 0a 20 20 62 65 67 69 | 6e 0d 0a 20 20 20 20 47 |.. begi|n.. G|
|000020c0| 65 74 49 6e 74 56 65 63 | 20 28 24 31 42 2c 20 4f |etIntVec| ($1B, O|
|000020d0| 6c 64 49 6e 74 72 31 42 | 29 3b 0d 0a 20 20 20 20 |ldIntr1B|);.. |
|000020e0| 53 65 74 49 6e 74 56 65 | 63 20 28 24 31 42 2c 20 |SetIntVe|c ($1B, |
|000020f0| 40 4e 65 77 49 6e 74 72 | 31 42 29 3b 20 20 20 7b |@NewIntr|1B); {|
|00002100| 20 44 69 73 61 62 6c 65 | 20 43 74 72 6c 2d 42 72 | Disable| Ctrl-Br|
|00002110| 65 61 6b 20 7d 0d 0a 20 | 20 20 20 47 65 74 49 6e |eak }.. | GetIn|
|00002120| 74 56 65 63 20 28 24 32 | 33 2c 20 4f 6c 64 49 6e |tVec ($2|3, OldIn|
|00002130| 74 72 32 33 29 3b 0d 0a | 20 20 20 20 53 65 74 49 |tr23);..| SetI|
|00002140| 6e 74 56 65 63 20 28 24 | 32 33 2c 20 40 4e 65 77 |ntVec ($|23, @New|
|00002150| 49 6e 74 72 32 33 29 3b | 20 20 20 7b 20 44 69 73 |Intr23);| { Dis|
|00002160| 61 62 6c 65 20 43 74 72 | 6c 2d 43 20 7d 0d 0a 20 |able Ctr|l-C }.. |
|00002170| 20 20 20 77 72 69 74 65 | 6c 6e 20 28 27 54 72 79 | write|ln ('Try|
|00002180| 20 62 72 65 61 6b 69 6e | 67 2c 20 64 69 73 61 62 | breakin|g, disab|
|00002190| 6c 65 64 27 29 3b 0d 0a | 20 20 20 20 72 65 61 64 |led');..| read|
|000021a0| 6c 6e 20 28 61 6e 73 77 | 65 72 29 3b 0d 0a 20 20 |ln (answ|er);.. |
|000021b0| 20 20 53 65 74 49 6e 74 | 56 65 63 20 28 24 31 42 | SetInt|Vec ($1B|
|000021c0| 2c 20 4f 6c 64 49 6e 74 | 72 31 42 29 3b 20 20 20 |, OldInt|r1B); |
|000021d0| 20 7b 20 45 6e 61 62 6c | 65 20 43 74 72 6c 2d 42 | { Enabl|e Ctrl-B|
|000021e0| 72 65 61 6b 20 7d 0d 0a | 20 20 20 20 53 65 74 49 |reak }..| SetI|
|000021f0| 6e 74 56 65 63 20 28 24 | 32 33 2c 20 4f 6c 64 49 |ntVec ($|23, OldI|
|00002200| 6e 74 72 32 33 29 3b 20 | 20 20 20 7b 20 45 6e 61 |ntr23); | { Ena|
|00002210| 62 6c 65 20 43 74 72 6c | 2d 43 20 7d 0d 0a 20 20 |ble Ctrl|-C }.. |
|00002220| 20 20 77 72 69 74 65 6c | 6e 20 28 27 54 72 79 20 | writel|n ('Try |
|00002230| 62 72 65 61 6b 69 6e 67 | 2c 20 65 6e 61 62 6c 65 |breaking|, enable|
|00002240| 64 27 29 3b 0d 0a 20 20 | 20 20 72 65 61 64 6c 6e |d');.. | readln|
|00002250| 20 28 61 6e 73 77 65 72 | 29 3b 0d 0a 20 20 20 20 | (answer|);.. |
|00002260| 77 72 69 74 65 6c 6e 20 | 28 27 44 6f 6e 65 27 29 |writeln |('Done')|
|00002270| 3b 0d 0a 20 20 65 6e 64 | 2e 0d 0a 2d 2d 2d 2d 2d |;.. end|...-----|
|00002280| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00002290| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|000022a0| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|000022b0| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 0d |--------|-------.|
|000022c0| 0a 0d 0a 46 72 6f 6d 20 | 74 73 40 75 77 61 73 61 |...From |ts@uwasa|
|000022d0| 2e 66 69 20 53 61 74 20 | 53 65 70 20 37 20 30 30 |.fi Sat |Sep 7 00|
|000022e0| 3a 30 30 3a 30 32 20 31 | 39 39 36 0d 0a 53 75 62 |:00:02 1|996..Sub|
|000022f0| 6a 65 63 74 3a 20 44 69 | 72 65 63 74 69 6e 67 20 |ject: Di|recting |
|00002300| 6f 75 74 70 75 74 20 61 | 6c 73 6f 20 74 6f 20 70 |output a|lso to p|
|00002310| 72 69 6e 74 65 72 0d 0a | 0d 0a 32 2e 20 2a 2a 2a |rinter..|..2. ***|
|00002320| 2a 2a 0d 0a 20 51 3a 20 | 49 20 77 61 6e 74 20 74 |**.. Q: |I want t|
|00002330| 6f 20 68 61 76 65 20 61 | 20 70 72 69 6e 74 65 64 |o have a| printed|
|00002340| 20 64 6f 63 75 6d 65 6e | 74 61 74 69 6f 6e 20 6f | documen|tation o|
|00002350| 66 20 6d 79 20 73 74 75 | 64 65 6e 74 73 27 20 54 |f my stu|dents' T|
|00002360| 75 72 62 6f 0d 0a 50 61 | 73 63 61 6c 20 70 72 6f |urbo..Pa|scal pro|
|00002370| 67 72 61 6d 20 65 78 65 | 72 63 69 73 65 73 2e 20 |gram exe|rcises. |
|00002380| 48 6f 77 20 69 73 20 61 | 6c 6c 20 69 6e 70 75 74 |How is a|ll input|
|00002390| 20 61 6e 64 20 6f 75 74 | 70 75 74 20 64 69 72 65 | and out|put dire|
|000023a0| 63 74 65 64 20 61 6c 73 | 6f 0d 0a 74 6f 20 74 68 |cted als|o..to th|
|000023b0| 65 20 70 72 69 6e 74 65 | 72 3f 0d 0a 0d 0a 20 41 |e printe|r?.... A|
|000023c0| 31 3a 20 55 73 65 20 61 | 20 73 63 72 65 65 6e 20 |1: Use a| screen |
|000023d0| 63 61 70 74 75 72 69 6e | 67 20 70 72 6f 67 72 61 |capturin|g progra|
|000023e0| 6d 20 74 6f 20 70 75 74 | 20 65 76 65 72 79 74 68 |m to put| everyth|
|000023f0| 69 6e 67 20 74 68 61 74 | 20 63 6f 6d 65 73 0d 0a |ing that| comes..|
|00002400| 6f 6e 74 6f 20 74 68 65 | 20 73 63 72 65 65 6e 20 |onto the| screen |
|00002410| 69 6e 74 6f 20 61 20 66 | 69 6c 65 2c 20 61 6e 64 |into a f|ile, and|
|00002420| 20 70 72 69 6e 74 20 74 | 68 65 20 66 69 6c 65 2e | print t|he file.|
|00002430| 20 53 65 65 20 46 41 51 | 50 52 4f 47 53 2e 54 58 | See FAQ|PROGS.TX|
|00002440| 54 20 69 6e 0d 0a 66 74 | 70 3a 2f 2f 67 61 72 62 |T in..ft|p://garb|
|00002450| 6f 2e 75 77 61 73 61 2e | 66 69 2f 70 63 2f 74 73 |o.uwasa.|fi/pc/ts|
|00002460| 2f 74 73 66 61 71 6e 34 | 35 2e 7a 69 70 20 28 6f |/tsfaqn4|5.zip (o|
|00002470| 72 20 77 68 61 74 65 76 | 65 72 20 76 65 72 73 69 |r whatev|er versi|
|00002480| 6f 6e 20 6e 75 6d 62 65 | 72 0d 0a 69 73 20 74 68 |on numbe|r..is th|
|00002490| 65 20 63 75 72 72 65 6e | 74 29 20 66 6f 72 20 6d |e curren|t) for m|
|000024a0| 6f 72 65 20 61 62 6f 75 | 74 20 74 68 65 73 65 20 |ore abou|t these |
|000024b0| 70 72 6f 67 72 61 6d 73 | 2e 20 41 76 61 69 6c 61 |programs|. Availa|
|000024c0| 62 6c 65 20 62 79 0d 0a | 61 6e 6f 6e 79 6d 6f 75 |ble by..|anonymou|
|000024d0| 73 20 46 54 50 20 6f 72 | 20 6d 61 69 6c 20 73 65 |s FTP or| mail se|
|000024e0| 72 76 65 72 20 66 72 6f | 6d 20 67 61 72 62 6f 2e |rver fro|m garbo.|
|000024f0| 75 77 61 73 61 2e 66 69 | 2e 0d 0a 0d 0a 20 41 32 |uwasa.fi|..... A2|
|00002500| 3a 20 53 65 65 20 74 68 | 65 20 63 6f 64 65 20 69 |: See th|e code i|
|00002510| 6e 20 54 53 50 41 53 2e | 4e 57 53 20 28 69 74 65 |n TSPAS.|NWS (ite|
|00002520| 6d 3a 20 52 65 64 69 72 | 65 63 74 69 6e 67 20 77 |m: Redir|ecting w|
|00002530| 72 69 74 65 73 20 74 6f | 20 74 68 65 0d 0a 70 72 |rites to| the..pr|
|00002540| 69 6e 74 65 72 29 20 69 | 6e 20 74 68 65 20 66 74 |inter) i|n the ft|
|00002550| 70 3a 2f 2f 67 61 72 62 | 6f 2e 75 77 61 73 61 2e |p://garb|o.uwasa.|
|00002560| 66 69 2f 70 63 2f 74 73 | 2f 74 73 70 61 33 35 37 |fi/pc/ts|/tspa357|
|00002570| 30 2e 7a 69 70 20 28 6f | 72 20 77 68 61 74 65 76 |0.zip (o|r whatev|
|00002580| 65 72 0d 0a 69 73 20 74 | 68 65 20 63 75 72 72 65 |er..is t|he curre|
|00002590| 6e 74 20 76 65 72 73 69 | 6f 6e 20 6e 75 6d 62 65 |nt versi|on numbe|
|000025a0| 72 29 20 54 75 72 62 6f | 20 50 61 73 63 61 6c 20 |r) Turbo| Pascal |
|000025b0| 75 6e 69 74 73 20 70 61 | 63 6b 61 67 65 20 28 37 |units pa|ckage (7|
|000025c0| 30 20 3d 20 34 30 2c 0d | 0a 35 30 2c 20 35 35 2c |0 = 40,.|.50, 55,|
|000025d0| 20 36 30 2c 20 6f 72 20 | 37 30 20 64 65 70 65 6e | 60, or |70 depen|
|000025e0| 64 69 6e 67 20 6f 6e 20 | 79 6f 75 72 20 54 50 20 |ding on |your TP |
|000025f0| 76 65 72 73 69 6f 6e 29 | 2e 20 41 6c 74 65 72 6e |version)|. Altern|
|00002600| 61 74 69 76 65 6c 79 20 | 75 73 65 0d 0a 55 53 45 |atively |use..USE|
|00002610| 43 4f 4e 20 61 6e 64 20 | 55 53 45 50 52 4e 20 72 |CON and |USEPRN r|
|00002620| 6f 75 74 69 6e 65 73 20 | 69 6e 20 74 68 65 20 54 |outines |in the T|
|00002630| 53 55 4e 54 47 20 75 6e | 69 74 20 6f 66 20 74 68 |SUNTG un|it of th|
|00002640| 65 20 73 61 6d 65 20 70 | 61 63 6b 61 67 65 2e 0d |e same p|ackage..|
|00002650| 0a 0d 0a 20 20 20 20 20 | 2b 2d 2d 2d 2d 2d 2d 2d |... |+-------|
|00002660| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00002670| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00002680| 2d 2d 2d 2b 0d 0a 20 20 | 20 20 20 21 20 54 6f 20 |---+.. | ! To |
|00002690| 67 65 74 20 74 68 65 73 | 65 20 61 6e 64 20 6f 74 |get thes|e and ot|
|000026a0| 68 65 72 20 70 61 63 6b | 61 67 65 73 20 67 69 76 |her pack|ages giv|
|000026b0| 65 6e 20 61 73 20 21 0d | 0a 20 20 20 20 20 21 20 |en as !.|. ! |
|000026c0| 20 20 2f 64 69 72 2f 73 | 75 62 64 69 72 2f 6e 61 | /dir/s|ubdir/na|
|000026d0| 6d 65 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |me | |
|000026e0| 20 20 20 20 20 20 20 20 | 20 21 0d 0a 20 20 20 20 | | !.. |
|000026f0| 20 21 20 73 65 65 20 74 | 68 65 20 69 6e 73 74 72 | ! see t|he instr|
|00002700| 75 63 74 69 6f 6e 73 20 | 69 6e 20 50 44 32 41 4e |uctions |in PD2AN|
|00002710| 53 2e 54 58 54 20 20 20 | 20 20 20 20 21 0d 0a 20 |S.TXT | !.. |
|00002720| 20 20 20 20 2b 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d | +---|--------|
|00002730| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00002740| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2b |--------|-------+|
|00002750| 0d 0a 0d 0a 20 41 33 3a | 20 42 75 74 20 74 68 65 |.... A3:| But the|
|00002760| 20 72 65 61 6c 6c 79 20 | 65 6c 65 67 61 6e 74 20 | really |elegant |
|00002770| 73 6f 6c 75 74 69 6f 6e | 20 74 6f 20 74 68 65 20 |solution| to the |
|00002780| 70 72 6f 62 6c 65 6d 20 | 6f 66 20 67 65 74 74 69 |problem |of getti|
|00002790| 6e 67 20 61 0d 0a 6c 6f | 67 66 69 6c 65 20 28 6f |ng a..lo|gfile (o|
|000027a0| 72 20 61 20 70 72 69 6e | 74 65 64 20 6c 69 73 74 |r a prin|ted list|
|000027b0| 29 20 6f 66 20 61 20 54 | 75 72 62 6f 20 50 61 73 |) of a T|urbo Pas|
|000027c0| 63 61 6c 20 72 75 6e 20 | 69 73 20 74 6f 20 72 65 |cal run |is to re|
|000027d0| 77 72 69 74 65 20 74 68 | 65 0d 0a 77 72 69 74 65 |write th|e..write|
|000027e0| 28 6c 6e 29 20 61 6e 64 | 20 72 65 61 64 28 6c 6e |(ln) and| read(ln|
|000027f0| 29 20 64 65 76 69 63 65 | 20 64 72 69 76 65 72 20 |) device| driver |
|00002800| 66 75 6e 63 74 69 6f 6e | 73 2e 20 49 6e 20 69 74 |function|s. In it|
|00002810| 73 65 6c 66 20 77 72 69 | 74 69 6e 67 0d 0a 73 75 |self wri|ting..su|
|00002820| 63 68 20 64 72 69 76 65 | 72 20 72 65 64 69 72 65 |ch drive|r redire|
|00002830| 63 74 69 6f 6e 73 20 69 | 73 20 76 65 72 79 20 61 |ctions i|s very a|
|00002840| 64 76 61 6e 63 65 64 20 | 54 75 72 62 6f 20 50 61 |dvanced |Turbo Pa|
|00002850| 73 63 61 6c 20 70 72 6f | 67 72 61 6d 6d 69 6e 67 |scal pro|gramming|
|00002860| 2c 0d 0a 62 75 74 20 77 | 68 65 6e 20 74 68 65 20 |,..but w|hen the |
|00002870| 70 72 6f 67 72 61 6d 6d | 69 6e 67 20 68 61 73 20 |programm|ing has |
|00002880| 6f 6e 63 65 20 62 65 65 | 6e 20 64 6f 6e 65 2c 20 |once bee|n done, |
|00002890| 74 68 65 20 73 79 73 74 | 65 6d 20 69 73 20 65 78 |the syst|em is ex|
|000028a0| 74 72 65 6d 65 6c 79 0d | 0a 65 61 73 79 20 74 6f |tremely.|.easy to|
|000028b0| 20 75 73 65 20 61 73 20 | 6d 61 6e 79 20 74 69 6d | use as |many tim|
|000028c0| 65 73 20 61 73 20 79 6f | 75 20 6c 69 6b 65 2e 20 |es as yo|u like. |
|000028d0| 49 74 20 67 6f 65 73 20 | 6c 69 6b 65 20 74 68 69 |It goes |like thi|
|000028e0| 73 2e 20 54 68 65 20 64 | 72 69 76 65 72 0d 0a 72 |s. The d|river..r|
|000028f0| 65 64 69 72 65 63 74 69 | 6f 6e 73 20 61 72 65 20 |edirecti|ons are |
|00002900| 70 72 6f 67 72 61 6d 6d | 65 64 20 69 6e 74 6f 20 |programm|ed into |
|00002910| 61 20 75 6e 69 74 20 28 | 73 61 79 2c 20 74 70 75 |a unit (|say, tpu|
|00002920| 6c 6f 67 20 6f 72 20 74 | 70 75 70 72 6e 29 2e 20 |log or t|puprn). |
|00002930| 41 6c 6c 0d 0a 74 68 61 | 74 20 69 73 20 6e 65 65 |All..tha|t is nee|
|00002940| 64 65 64 20 61 66 74 65 | 72 20 74 68 61 74 20 69 |ded afte|r that i|
|00002950| 73 20 74 6f 20 69 6e 63 | 6c 75 64 65 20 74 68 65 |s to inc|lude the|
|00002960| 20 66 6f 6c 6c 6f 77 69 | 6e 67 20 75 73 65 73 20 | followi|ng uses |
|00002970| 73 74 61 74 65 6d 65 6e | 74 0d 0a 69 6e 74 6f 20 |statemen|t..into |
|00002980| 74 68 65 20 70 72 6f 67 | 72 61 6d 20 28 74 68 65 |the prog|ram (the|
|00002990| 20 74 61 72 67 65 74 20 | 70 72 6f 67 72 61 6d 29 | target |program)|
|000029a0| 20 77 68 69 63 68 20 68 | 61 73 20 74 6f 20 62 65 | which h|as to be|
|000029b0| 20 6c 6f 67 67 65 64 3a | 0d 0a 20 20 20 20 20 20 | logged:|.. |
|000029c0| 75 73 65 73 20 54 50 55 | 4c 4f 47 3b 20 20 20 20 |uses TPU|LOG; |
|000029d0| 28 20 6f 72 20 29 20 20 | 20 20 75 73 65 73 20 54 |( or ) | uses T|
|000029e0| 50 55 50 52 4e 3b 0d 0a | 54 68 69 73 20 69 73 20 |PUPRN;..|This is |
|000029f0| 61 6c 6c 20 74 68 65 72 | 65 20 69 73 20 74 6f 20 |all ther|e is to |
|00002a00| 69 74 2e 20 4a 75 73 74 | 20 61 64 64 69 6e 67 20 |it. Just| adding |
|00002a10| 6f 6e 65 20 73 69 6d 70 | 6c 65 20 6c 69 6e 65 20 |one simp|le line |
|00002a20| 74 6f 20 74 68 65 0d 0a | 74 61 72 67 65 74 20 70 |to the..|target p|
|00002a30| 72 6f 67 72 61 6d 2e 20 | 28 49 66 20 79 6f 75 20 |rogram. |(If you |
|00002a40| 63 61 6c 6c 20 61 6e 79 | 20 6f 74 68 65 72 20 75 |call any| other u|
|00002a50| 6e 69 74 73 2c 20 22 75 | 73 65 73 20 74 70 75 6c |nits, "u|ses tpul|
|00002a60| 6f 67 22 20 6d 75 73 74 | 0d 0a 63 6f 6d 65 20 41 |og" must|..come A|
|00002a70| 46 54 45 52 20 74 68 65 | 20 73 79 73 74 65 6d 20 |FTER the| system |
|00002a80| 75 6e 69 74 73 20 28 65 | 2e 67 2e 20 44 6f 73 29 |units (e|.g. Dos)|
|00002a90| 2c 20 62 75 74 20 42 45 | 46 4f 52 45 20 61 6e 79 |, but BE|FORE any|
|00002aa0| 20 77 68 69 63 68 20 79 | 6f 75 20 6d 61 79 0d 0a | which y|ou may..|
|00002ab0| 64 65 66 69 6e 65 20 79 | 6f 75 72 73 65 6c 66 21 |define y|ourself!|
|00002ac0| 29 0d 0a 20 20 20 54 68 | 65 20 72 65 61 73 6f 6e |).. Th|e reason|
|00002ad0| 20 74 68 61 74 20 49 20 | 68 61 76 65 20 6e 61 6d | that I |have nam|
|00002ae0| 65 64 20 74 77 6f 20 75 | 6e 69 74 73 20 68 65 72 |ed two u|nits her|
|00002af0| 65 20 69 6e 73 74 65 61 | 64 20 6f 66 20 6a 75 73 |e instea|d of jus|
|00002b00| 74 20 6f 6e 65 0d 0a 69 | 6e 20 74 68 65 20 61 62 |t one..i|n the ab|
|00002b10| 6f 76 65 20 65 78 61 6d | 70 6c 65 20 69 73 20 74 |ove exam|ple is t|
|00002b20| 68 61 74 20 74 68 65 20 | 70 72 65 66 65 72 72 65 |hat the |preferre|
|00002b30| 64 20 6c 6f 67 20 66 6f | 72 20 74 68 65 20 74 61 |d log fo|r the ta|
|00002b40| 72 67 65 74 0d 0a 70 72 | 6f 67 72 61 6d 20 6d 61 |rget..pr|ogram ma|
|00002b50| 79 20 62 65 20 61 20 6c | 6f 67 66 69 6c 65 20 6f |y be a l|ogfile o|
|00002b60| 72 20 74 68 65 20 70 72 | 69 6e 74 65 72 2e 20 54 |r the pr|inter. T|
|00002b70| 68 65 20 62 65 74 74 65 | 72 20 73 6f 6c 75 74 69 |he bette|r soluti|
|00002b80| 6f 6e 20 6f 66 0d 0a 74 | 68 65 73 65 20 74 77 6f |on of..t|hese two|
|00002b90| 20 69 73 20 74 6f 20 75 | 73 65 20 74 68 65 20 6c | is to u|se the l|
|00002ba0| 6f 67 66 69 6c 65 20 6f | 70 74 69 6f 6e 2c 20 61 |ogfile o|ption, a|
|00002bb0| 6e 64 20 74 68 65 6e 20 | 70 72 69 6e 74 20 69 74 |nd then |print it|
|00002bc0| 2e 20 54 68 65 0d 0a 72 | 65 61 73 6f 6e 20 69 73 |. The..r|eason is|
|00002bd0| 20 73 69 6d 70 6c 65 2e | 20 49 66 20 74 68 65 20 | simple.| If the |
|00002be0| 74 61 72 67 65 74 20 70 | 72 6f 67 72 61 6d 20 69 |target p|rogram i|
|00002bf0| 74 73 65 6c 66 20 70 72 | 69 6e 74 73 20 73 6f 6d |tself pr|ints som|
|00002c00| 65 74 68 69 6e 67 2c 0d | 0a 79 6f 75 72 20 70 72 |ething,.|.your pr|
|00002c10| 69 6e 74 6f 75 74 20 77 | 69 6c 6c 20 6c 6f 6f 6b |intout w|ill look|
|00002c20| 20 63 6f 6e 66 75 73 65 | 64 2e 0d 0a 20 20 20 54 | confuse|d... T|
|00002c30| 68 65 20 6c 6f 67 67 69 | 6e 67 20 61 6c 73 6f 20 |he loggi|ng also |
|00002c40| 68 61 73 20 6f 62 76 69 | 6f 75 73 20 6c 69 6d 69 |has obvi|ous limi|
|00002c50| 74 61 74 69 6f 6e 73 2e | 20 49 74 20 77 6f 72 6b |tations.| It work|
|00002c60| 73 20 66 6f 72 20 73 74 | 61 6e 64 61 72 64 0d 0a |s for st|andard..|
|00002c70| 69 6e 70 75 74 20 61 6e | 64 20 6f 75 74 70 75 74 |input an|d output|
|00002c80| 20 28 72 65 61 64 28 6c | 6e 29 20 61 6e 64 20 77 | (read(l|n) and w|
|00002c90| 72 69 74 65 28 6c 6e 29 | 29 20 6f 6e 6c 79 2e 20 |rite(ln)|) only. |
|00002ca0| 31 29 20 49 74 20 64 6f | 65 73 20 6e 6f 74 0d 0a |1) It do|es not..|
|00002cb0| 73 75 70 70 6f 72 74 20 | 67 72 61 70 68 69 63 73 |support |graphics|
|00002cc0| 2c 20 69 6e 20 6f 74 68 | 65 72 20 77 6f 72 64 73 |, in oth|er words|
|00002cd0| 20 69 74 20 69 73 20 66 | 6f 72 20 74 68 65 20 74 | it is f|or the t|
|00002ce0| 65 78 74 6d 6f 64 65 2e | 20 32 29 20 49 74 20 64 |extmode.| 2) It d|
|00002cf0| 6f 65 73 0d 0a 6e 6f 74 | 20 73 75 70 70 6f 72 74 |oes..not| support|
|00002d00| 20 64 69 72 65 63 74 20 | 28 43 72 74 29 20 73 63 | direct |(Crt) sc|
|00002d10| 72 65 65 6e 20 77 72 69 | 74 65 73 2e 20 33 29 20 |reen wri|tes. 3) |
|00002d20| 41 6e 64 2c 20 6e 61 74 | 75 72 61 6c 6c 79 20 69 |And, nat|urally i|
|00002d30| 74 20 6f 6e 6c 79 0d 0a | 73 68 6f 77 73 20 74 68 |t only..|shows th|
|00002d40| 65 20 69 6e 70 75 74 20 | 61 6e 64 20 6f 75 74 70 |e input |and outp|
|00002d50| 75 74 20 74 68 61 74 20 | 63 6f 6d 65 73 20 74 6f |ut that |comes to|
|00002d60| 20 74 68 65 20 73 63 72 | 65 65 6e 2e 20 4e 6f 74 | the scr|een. Not|
|00002d70| 20 61 6e 79 20 6f 74 68 | 65 72 0d 0a 69 6e 70 75 | any oth|er..inpu|
|00002d80| 74 20 6f 72 20 6f 75 74 | 70 75 74 2c 20 73 75 63 |t or out|put, suc|
|00002d90| 68 20 61 73 20 66 72 6f | 6d 20 6f 72 20 74 6f 20 |h as fro|m or to |
|00002da0| 61 20 66 69 6c 65 2e 20 | 34 29 20 46 75 72 74 68 |a file. |4) Furth|
|00002db0| 65 72 6d 6f 72 65 2c 20 | 79 6f 75 20 61 72 65 0d |ermore, |you are.|
|00002dc0| 0a 6e 6f 74 20 61 6c 6c | 6f 77 65 64 20 74 6f 20 |.not all|owed to |
|00002dd0| 72 65 61 73 73 69 67 6e | 20 69 6e 70 75 74 20 6f |reassign| input o|
|00002de0| 72 20 6f 75 74 70 75 74 | 2e 20 53 74 61 74 65 6d |r output|. Statem|
|00002df0| 65 6e 74 73 20 6c 69 6b | 65 20 61 73 73 69 67 6e |ents lik|e assign|
|00002e00| 0d 0a 28 6f 75 74 70 75 | 74 2c 20 27 27 29 20 77 |..(outpu|t, '') w|
|00002e10| 69 6c 6c 20 72 65 73 75 | 6c 74 20 69 6e 20 61 20 |ill resu|lt in a |
|00002e20| 63 72 61 73 68 2c 20 62 | 65 63 61 75 73 65 20 74 |crash, b|ecause t|
|00002e30| 68 65 20 72 65 77 72 69 | 74 74 65 6e 20 6f 75 74 |he rewri|tten out|
|00002e40| 70 75 74 0d 0a 64 65 76 | 69 63 65 20 72 65 64 69 |put..dev|ice redi|
|00002e50| 72 65 63 74 69 6f 6e 73 | 20 61 72 65 20 69 6e 76 |rections| are inv|
|00002e60| 61 6c 69 64 61 74 65 64 | 20 62 79 20 73 75 63 68 |alidated| by such|
|00002e70| 20 73 74 61 74 65 6d 65 | 6e 74 73 2e 20 35 29 20 | stateme|nts. 5) |
|00002e80| 54 68 65 0d 0a 64 65 76 | 69 63 65 20 6f 6e 20 74 |The..dev|ice on t|
|00002e90| 68 65 20 64 65 66 61 75 | 6c 74 20 64 72 69 76 65 |he defau|lt drive|
|00002ea0| 20 6d 75 73 74 20 6e 6f | 74 20 62 65 20 77 72 69 | must no|t be wri|
|00002eb0| 74 65 20 70 72 6f 74 65 | 63 74 65 64 2c 20 73 69 |te prote|cted, si|
|00002ec0| 6e 63 65 20 65 6c 73 65 | 0d 0a 74 68 65 20 6c 6f |nce else|..the lo|
|00002ed0| 67 66 69 6c 65 20 63 61 | 6e 6e 6f 74 20 62 65 20 |gfile ca|nnot be |
|00002ee0| 77 72 69 74 74 65 6e 20 | 74 6f 20 69 74 2e 20 36 |written |to it. 6|
|00002ef0| 29 20 49 74 20 64 6f 65 | 73 20 6e 6f 74 20 77 6f |) It doe|s not wo|
|00002f00| 72 6b 20 66 6f 72 20 54 | 75 72 62 6f 0d 0a 50 61 |rk for T|urbo..Pa|
|00002f10| 73 63 61 6c 20 34 2e 30 | 2e 20 44 65 73 70 69 74 |scal 4.0|. Despit|
|00002f20| 65 20 74 68 65 73 65 20 | 72 65 73 74 72 69 63 74 |e these |restrict|
|00002f30| 69 6f 6e 73 2c 20 74 68 | 65 20 6d 65 74 68 6f 64 |ions, th|e method|
|00002f40| 20 69 73 20 70 65 72 66 | 65 63 74 6c 79 0d 0a 73 | is perf|ectly..s|
|00002f50| 75 69 74 65 64 20 66 6f | 72 20 6c 6f 67 67 69 6e |uited fo|r loggin|
|00002f60| 67 20 73 74 75 64 65 6e | 74 73 27 20 54 75 72 62 |g studen|ts' Turb|
|00002f70| 6f 20 50 61 73 63 61 6c | 20 65 73 63 61 70 61 64 |o Pascal| escapad|
|00002f80| 65 73 2e 0d 0a 20 20 20 | 49 74 20 69 73 20 61 64 |es... |It is ad|
|00002f90| 76 69 73 61 62 6c 65 20 | 66 69 72 73 74 20 74 6f |visable |first to|
|00002fa0| 20 74 65 73 74 20 61 6e | 64 20 72 75 6e 20 79 6f | test an|d run yo|
|00002fb0| 75 72 20 74 61 72 67 65 | 74 20 70 72 6f 67 72 61 |ur targe|t progra|
|00002fc0| 6d 20 77 69 74 68 6f 75 | 74 0d 0a 22 74 70 75 6c |m withou|t.."tpul|
|00002fd0| 6f 67 22 2c 20 73 6f 20 | 74 68 61 74 20 69 66 20 |og", so |that if |
|00002fe0| 79 6f 75 20 67 65 74 20 | 61 6e 79 20 73 74 72 61 |you get |any stra|
|00002ff0| 6e 67 65 20 65 72 72 6f | 72 73 20 79 6f 75 27 6c |nge erro|rs you'l|
|00003000| 6c 20 6b 6e 6f 77 20 77 | 68 65 74 68 65 72 0d 0a |l know w|hether..|
|00003010| 74 68 65 79 20 61 72 65 | 20 63 61 75 73 65 64 20 |they are| caused |
|00003020| 62 79 20 74 68 65 20 6c | 6f 67 67 69 6e 67 2e 0d |by the l|ogging..|
|00003030| 0a 20 20 20 57 68 65 72 | 65 20 74 6f 20 67 65 74 |. Wher|e to get|
|00003040| 20 73 75 63 68 20 61 20 | 75 6e 69 74 2e 20 54 68 | such a |unit. Th|
|00003050| 65 20 63 6f 64 65 20 63 | 61 6e 20 62 65 20 66 6f |e code c|an be fo|
|00003060| 75 6e 64 20 69 6e 20 4d | 69 63 68 61 65 6c 0d 0a |und in M|ichael..|
|00003070| 54 69 73 63 68 65 72 20 | 28 31 39 39 30 29 2c 20 |Tischer |(1990), |
|00003080| 54 75 72 62 6f 20 50 61 | 73 63 61 6c 20 49 6e 74 |Turbo Pa|scal Int|
|00003090| 65 72 6e 61 6c 73 2c 20 | 41 62 61 63 75 73 2c 20 |ernals, |Abacus, |
|000030a0| 53 65 63 74 69 6f 6e 20 | 34 2e 32 2e 20 4e 65 78 |Section |4.2. Nex|
|000030b0| 74 20 61 0d 0a 66 65 77 | 20 6f 66 20 6d 79 20 6f |t a..few| of my o|
|000030c0| 77 6e 20 74 69 70 73 20 | 6f 6e 20 74 68 69 73 20 |wn tips |on this |
|000030d0| 75 6e 69 74 20 54 69 73 | 63 68 65 72 20 63 61 6c |unit Tis|cher cal|
|000030e0| 6c 73 20 50 72 6f 74 2e | 20 31 29 20 54 68 65 20 |ls Prot.| 1) The |
|000030f0| 63 6f 64 65 20 69 73 0d | 0a 69 6e 20 69 6e 63 6f |code is.|.in inco|
|00003100| 72 72 65 63 74 20 6f 72 | 64 65 72 2e 20 54 68 65 |rrect or|der. The|
|00003110| 20 63 6f 64 65 20 74 68 | 61 74 20 69 73 20 6c 69 | code th|at is li|
|00003120| 73 74 65 64 20 6f 6e 20 | 70 61 67 65 73 20 31 34 |sted on |pages 14|
|00003130| 32 20 2d 20 31 34 35 20 | 67 6f 65 73 0d 0a 62 65 |2 - 145 |goes..be|
|00003140| 74 77 65 65 6e 20 70 61 | 67 65 73 20 31 33 39 20 |tween pa|ges 139 |
|00003150| 61 6e 64 20 31 34 30 2e | 20 32 29 20 59 6f 75 20 |and 140.| 2) You |
|00003160| 63 61 6e 20 63 68 61 6e | 67 65 20 74 68 65 20 6c |can chan|ge the l|
|00003170| 6f 67 66 69 6c 65 20 6e | 61 6d 65 20 28 63 6f 6e |ogfile n|ame (con|
|00003180| 73 74 0d 0a 70 72 6f 74 | 5f 6e 61 6d 65 29 20 74 |st..prot|_name) t|
|00003190| 6f 20 6c 70 74 31 20 66 | 6f 72 20 61 20 70 72 69 |o lpt1 f|or a pri|
|000031a0| 6e 74 65 64 20 6c 69 73 | 74 20 6f 66 20 74 68 65 |nted lis|t of the|
|000031b0| 20 74 61 72 67 65 74 20 | 70 72 6f 67 72 61 6d 20 | target |program |
|000031c0| 72 75 6e 2e 20 49 6e 0d | 0a 74 68 61 74 20 63 61 |run. In.|.that ca|
|000031d0| 73 65 20 69 74 20 69 73 | 20 61 64 76 69 73 61 62 |se it is| advisab|
|000031e0| 6c 65 20 74 6f 20 69 6e | 63 6c 75 64 65 20 61 20 |le to in|clude a |
|000031f0| 74 65 73 74 20 66 6f 72 | 20 74 68 65 20 6f 6e 6c |test for| the onl|
|00003200| 69 6e 65 20 73 74 61 74 | 75 73 20 6f 66 0d 0a 74 |ine stat|us of..t|
|00003210| 68 65 20 70 72 69 6e 74 | 65 72 20 77 69 74 68 69 |he print|er withi|
|00003220| 6e 20 54 69 73 63 68 65 | 72 27 73 20 75 6e 69 74 |n Tische|r's unit|
|00003230| 2e 20 33 29 20 49 20 73 | 65 65 20 6e 6f 20 72 65 |. 3) I s|ee no re|
|00003240| 61 73 6f 6e 20 77 68 79 | 20 74 68 65 20 74 77 6f |ason why| the two|
|00003250| 0d 0a 6c 69 6e 65 73 20 | 69 6e 20 54 69 73 63 68 |..lines |in Tisch|
|00003260| 65 72 27 73 20 69 6e 74 | 65 72 66 61 63 65 20 73 |er's int|erface s|
|00003270| 65 63 74 69 6f 6e 20 63 | 6f 75 6c 64 6e 27 74 20 |ection c|ouldn't |
|00003280| 62 65 20 74 72 61 6e 73 | 66 65 72 72 65 64 20 74 |be trans|ferred t|
|00003290| 6f 20 74 68 65 0d 0a 69 | 6d 70 6c 65 6d 65 6e 74 |o the..i|mplement|
|000032a0| 61 74 69 6f 6e 20 73 65 | 63 74 69 6f 6e 2e 20 57 |ation se|ction. W|
|000032b0| 68 79 20 68 61 76 65 20 | 61 6e 79 20 67 6c 6f 62 |hy have |any glob|
|000032c0| 61 6c 20 64 65 66 69 6e | 69 74 69 6f 6e 73 3f 20 |al defin|itions? |
|000032d0| 20 42 75 74 20 61 6c 6c | 20 69 6e 0d 0a 61 6c 6c | But all| in..all|
|000032e0| 2c 20 69 74 20 77 6f 72 | 6b 73 20 6c 69 6b 65 20 |, it wor|ks like |
|000032f0| 6d 61 67 69 63 21 0d 0a | 0d 0a 20 41 34 3a 20 46 |magic!..|.. A4: F|
|00003300| 72 6f 6d 3a 20 61 62 63 | 73 63 6e 75 6b 40 63 73 |rom: abc|scnuk@cs|
|00003310| 75 6e 62 2e 63 73 75 6e | 2e 65 64 75 20 28 4e 61 |unb.csun|.edu (Na|
|00003320| 6f 74 6f 20 4b 69 6d 75 | 72 61 20 28 41 43 4d 29 |oto Kimu|ra (ACM)|
|00003330| 29 0d 0a 53 75 62 6a 65 | 63 74 3a 20 52 65 3a 20 |)..Subje|ct: Re: |
|00003340| 50 72 69 6e 74 69 6e 67 | 20 61 20 6c 6f 67 20 6f |Printing| a log o|
|00003350| 66 20 73 74 75 64 65 6e | 74 73 27 20 65 78 65 72 |f studen|ts' exer|
|00003360| 63 69 73 65 73 20 72 65 | 76 69 73 69 74 65 64 0d |cises re|visited.|
|00003370| 0a 54 6f 3a 20 74 73 40 | 75 77 61 73 61 2e 66 69 |.To: ts@|uwasa.fi|
|00003380| 0d 0a 44 61 74 65 3a 20 | 46 72 69 2c 20 32 20 4e |..Date: |Fri, 2 N|
|00003390| 6f 76 20 39 30 20 32 30 | 3a 35 32 3a 30 33 20 70 |ov 90 20|:52:03 p|
|000033a0| 64 74 0d 0a 5b 52 65 70 | 72 6f 64 75 63 65 64 20 |dt..[Rep|roduced |
|000033b0| 77 69 74 68 20 4e 61 6f | 74 6f 27 73 20 6b 69 6e |with Nao|to's kin|
|000033c0| 64 20 70 65 72 6d 69 73 | 73 69 6f 6e 5d 0d 0a 42 |d permis|sion]..B|
|000033d0| 79 20 74 68 65 20 77 61 | 79 2c 20 73 65 76 65 72 |y the wa|y, sever|
|000033e0| 61 6c 20 6d 6f 6e 74 68 | 73 20 61 67 6f 2c 20 49 |al month|s ago, I|
|000033f0| 20 68 61 64 20 73 75 62 | 6d 69 74 74 65 64 20 61 | had sub|mitted a|
|00003400| 20 66 69 6c 65 20 28 6e | 6b 74 6f 6f 6c 73 2e 7a | file (n|ktools.z|
|00003410| 69 70 29 0d 0a 66 69 6c | 65 20 6f 6e 20 53 69 6d |ip)..fil|e on Sim|
|00003420| 54 65 6c 20 74 68 61 74 | 20 63 6f 6e 74 61 69 6e |Tel that| contain|
|00003430| 73 20 73 6f 75 72 63 65 | 73 20 74 6f 20 61 20 75 |s source|s to a u|
|00003440| 6e 69 74 20 28 4c 4f 47 | 47 45 52 29 2c 20 77 68 |nit (LOG|GER), wh|
|00003450| 69 63 68 0d 0a 61 6c 6c | 6f 77 73 20 6c 6f 67 67 |ich..all|ows logg|
|00003460| 69 6e 67 20 6f 66 20 49 | 2f 4f 20 67 6f 69 6e 67 |ing of I|/O going|
|00003470| 20 74 68 72 6f 75 67 68 | 20 74 68 65 20 73 74 61 | through| the sta|
|00003480| 6e 64 61 72 64 20 69 6e | 70 75 74 20 61 6e 64 20 |ndard in|put and |
|00003490| 6f 75 74 70 75 74 0d 0a | 66 69 6c 65 73 2c 20 77 |output..|files, w|
|000034a0| 68 69 6c 65 20 73 74 69 | 6c 6c 20 62 65 69 6e 67 |hile sti|ll being|
|000034b0| 20 61 62 6c 65 20 74 6f | 20 75 73 65 20 74 68 65 | able to| use the|
|000034c0| 20 70 72 6f 67 72 61 6d | 20 69 6e 74 65 72 61 63 | program| interac|
|000034d0| 74 69 76 65 6c 79 2e 20 | 20 49 0d 0a 62 65 6c 69 |tively. | I..beli|
|000034e0| 65 76 65 20 74 68 61 74 | 20 49 20 61 6c 73 6f 20 |eve that| I also |
|000034f0| 73 75 62 6d 69 74 74 65 | 64 20 61 20 63 6f 70 79 |submitte|d a copy|
|00003500| 20 74 6f 20 79 6f 75 72 | 20 73 69 74 65 2e 20 20 | to your| site. |
|00003510| 49 74 20 77 61 73 20 73 | 6f 6d 65 74 68 69 6e 67 |It was s|omething|
|00003520| 0d 0a 49 20 70 75 74 20 | 74 6f 67 65 74 68 65 72 |..I put |together|
|00003530| 20 66 6f 72 20 75 73 65 | 20 62 79 20 73 74 75 64 | for use| by stud|
|00003540| 65 6e 74 73 20 68 65 72 | 65 20 61 74 20 43 61 6c |ents her|e at Cal|
|00003550| 69 66 6f 72 6e 69 61 20 | 53 74 61 74 65 0d 0a 55 |ifornia |State..U|
|00003560| 6e 69 76 65 72 73 69 74 | 79 20 61 74 20 4e 6f 72 |niversit|y at Nor|
|00003570| 74 68 72 69 64 67 65 2e | 20 20 54 68 65 20 73 6f |thridge.| The so|
|00003580| 75 72 63 65 20 77 6f 72 | 6b 73 20 65 71 75 61 6c |urce wor|ks equal|
|00003590| 6c 79 20 77 65 6c 6c 20 | 69 6e 20 61 6c 6c 0d 0a |ly well |in all..|
|000035a0| 70 72 65 73 65 6e 74 6c | 79 20 61 76 61 69 6c 61 |presentl|y availa|
|000035b0| 62 6c 65 20 76 65 72 73 | 69 6f 6e 73 20 6f 66 20 |ble vers|ions of |
|000035c0| 54 75 72 62 6f 20 50 61 | 73 63 61 6c 2e 0d 0a 54 |Turbo Pa|scal...T|
|000035d0| 68 65 20 6f 6e 6c 79 20 | 72 65 71 75 69 72 65 6d |he only |requirem|
|000035e0| 65 6e 74 73 20 61 72 65 | 20 74 68 61 74 0d 0a 20 |ents are| that.. |
|000035f0| 2a 20 79 6f 75 20 70 6c | 61 63 65 20 69 74 20 61 |* you pl|ace it a|
|00003600| 73 20 6f 6e 65 20 6f 66 | 20 74 68 65 20 6c 61 73 |s one of| the las|
|00003610| 74 20 65 6e 74 72 69 65 | 73 20 69 6e 20 74 68 65 |t entrie|s in the|
|00003620| 20 55 53 45 53 20 63 6c | 61 75 73 65 2e 20 20 49 | USES cl|ause. I|
|00003630| 66 0d 0a 20 20 20 74 68 | 65 72 65 20 69 73 20 61 |f.. th|ere is a|
|00003640| 6e 79 74 68 69 6e 67 20 | 74 68 61 74 20 72 65 64 |nything |that red|
|00003650| 69 72 65 63 74 73 20 74 | 68 65 20 73 74 61 6e 64 |irects t|he stand|
|00003660| 61 72 64 20 69 6e 70 75 | 74 20 61 6e 64 20 6f 75 |ard inpu|t and ou|
|00003670| 74 70 75 74 0d 0a 20 20 | 20 66 69 6c 65 20 76 61 |tput.. | file va|
|00003680| 72 69 61 62 6c 65 73 2c | 20 79 6f 75 20 73 68 6f |riables,| you sho|
|00003690| 75 6c 64 20 70 75 74 20 | 74 68 61 74 20 75 6e 69 |uld put |that uni|
|000036a0| 74 20 62 65 66 6f 72 65 | 20 6d 79 20 75 6e 69 74 |t before| my unit|
|000036b0| 20 69 6e 20 74 68 65 0d | 0a 20 20 20 55 53 45 53 | in the.|. USES|
|000036c0| 20 63 6c 61 75 73 65 2c | 20 73 6f 20 74 68 61 74 | clause,| so that|
|000036d0| 20 69 74 20 63 61 6e 20 | 73 65 65 20 74 68 65 20 | it can |see the |
|000036e0| 49 2f 4f 20 73 74 72 65 | 61 6d 2e 0d 0a 20 2a 20 |I/O stre|am... * |
|000036f0| 44 6f 6e 27 74 20 75 73 | 65 20 74 68 65 20 47 6f |Don't us|e the Go|
|00003700| 74 6f 58 59 20 61 6e 64 | 20 73 69 6d 69 6c 61 72 |toXY and| similar|
|00003710| 20 73 63 72 65 65 6e 20 | 64 69 73 70 6c 61 79 20 | screen |display |
|00003720| 63 6f 6e 74 72 6f 6c 0d | 0a 20 20 20 70 72 6f 63 |control.|. proc|
|00003730| 65 64 75 72 65 73 20 69 | 6e 20 74 68 65 20 43 72 |edures i|n the Cr|
|00003740| 74 20 75 6e 69 74 20 61 | 6e 64 20 65 78 70 65 63 |t unit a|nd expec|
|00003750| 74 20 69 74 20 74 6f 20 | 63 6f 6d 65 20 6f 75 74 |t it to |come out|
|00003760| 20 74 68 65 20 73 61 6d | 65 20 77 61 79 0d 0a 20 | the sam|e way.. |
|00003770| 20 20 79 6f 75 20 68 61 | 64 20 69 74 20 6f 6e 20 | you ha|d it on |
|00003780| 74 68 65 20 64 69 73 70 | 6c 61 79 2e 20 20 53 69 |the disp|lay. Si|
|00003790| 6e 63 65 20 61 6c 6c 20 | 6d 79 20 75 6e 69 74 20 |nce all |my unit |
|000037a0| 64 6f 65 73 20 69 73 20 | 6a 75 73 74 0d 0a 20 20 |does is |just.. |
|000037b0| 20 63 61 70 74 75 72 65 | 20 74 68 65 20 49 2f 4f | capture| the I/O|
|000037c0| 20 73 74 72 65 61 6d 20 | 74 6f 20 73 65 6e 64 20 | stream |to send |
|000037d0| 69 74 20 74 68 72 6f 75 | 67 68 20 74 68 65 20 6e |it throu|gh the n|
|000037e0| 6f 72 6d 61 6c 20 63 68 | 61 6e 6e 65 6c 73 20 61 |ormal ch|annels a|
|000037f0| 6e 64 0d 0a 20 20 20 61 | 6c 73 6f 20 74 6f 20 74 |nd.. a|lso to t|
|00003800| 68 65 20 6c 6f 67 20 66 | 69 6c 65 2c 20 61 6c 6c |he log f|ile, all|
|00003810| 20 73 63 72 65 65 6e 20 | 63 6f 6e 74 72 6f 6c 20 | screen |control |
|00003820| 69 6e 66 6f 72 6d 61 74 | 69 6f 6e 20 69 73 20 6e |informat|ion is n|
|00003830| 6f 74 20 73 65 6e 74 0d | 0a 20 20 20 74 6f 20 74 |ot sent.|. to t|
|00003840| 68 65 20 6c 6f 67 20 66 | 69 6c 65 2e 0d 0a 20 2a |he log f|ile... *|
|00003850| 20 41 6c 6c 20 49 2f 4f | 20 79 6f 75 20 77 61 6e | All I/O| you wan|
|00003860| 74 20 6c 6f 67 67 65 64 | 20 73 68 6f 75 6c 64 20 |t logged| should |
|00003870| 67 6f 20 74 68 72 6f 75 | 67 68 20 74 68 65 20 73 |go throu|gh the s|
|00003880| 74 61 6e 64 61 72 64 20 | 69 6e 70 75 74 20 61 6e |tandard |input an|
|00003890| 64 0d 0a 20 20 20 6f 75 | 74 70 75 74 20 66 69 6c |d.. ou|tput fil|
|000038a0| 65 20 76 61 72 69 61 62 | 6c 65 73 2e 0d 0a 20 2a |e variab|les... *|
|000038b0| 20 44 6f 6e 27 74 20 63 | 6c 6f 73 65 20 74 68 65 | Don't c|lose the|
|000038c0| 20 73 74 61 6e 64 61 72 | 64 20 69 6e 70 75 74 20 | standar|d input |
|000038d0| 61 6e 64 20 6f 75 74 70 | 75 74 20 66 69 6c 65 20 |and outp|ut file |
|000038e0| 76 61 72 69 61 62 6c 65 | 73 2c 20 62 65 63 61 75 |variable|s, becau|
|000038f0| 73 65 0d 0a 20 20 20 69 | 74 20 77 69 6c 6c 20 63 |se.. i|t will c|
|00003900| 61 75 73 65 20 70 72 6f | 62 6c 65 6d 73 2e 20 20 |ause pro|blems. |
|00003910| 42 61 73 69 63 61 6c 6c | 79 2c 20 61 73 20 66 61 |Basicall|y, as fa|
|00003920| 72 20 61 73 20 49 20 68 | 61 76 65 20 63 68 65 63 |r as I h|ave chec|
|00003930| 6b 65 64 2c 20 69 74 0d | 0a 20 20 20 6a 75 73 74 |ked, it.|. just|
|00003940| 20 63 61 75 73 65 73 20 | 74 68 65 20 6c 6f 67 67 | causes |the logg|
|00003950| 69 6e 67 20 74 6f 20 73 | 74 6f 70 20 61 74 20 74 |ing to s|top at t|
|00003960| 68 61 74 20 70 6f 69 6e | 74 2e 0d 0a 2d 2d 2d 2d |hat poin|t...----|
|00003970| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00003980| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00003990| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|000039a0| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|000039b0| 0d 0a 0d 0a 46 72 6f 6d | 20 74 73 40 75 77 61 73 |....From| ts@uwas|
|000039c0| 61 2e 66 69 20 53 61 74 | 20 53 65 70 20 37 20 30 |a.fi Sat| Sep 7 0|
|000039d0| 30 3a 30 30 3a 30 33 20 | 31 39 39 36 0d 0a 53 75 |0:00:03 |1996..Su|
|000039e0| 62 6a 65 63 74 3a 20 43 | 6f 64 65 20 74 6f 20 67 |bject: C|ode to g|
|000039f0| 69 76 65 20 74 68 65 20 | 77 65 65 6b 64 61 79 20 |ive the |weekday |
|00003a00| 6f 66 20 61 20 64 61 74 | 65 0d 0a 0d 0a 33 2e 20 |of a dat|e....3. |
|00003a10| 2a 2a 2a 2a 2a 0d 0a 20 | 51 3a 20 49 20 77 61 6e |*****.. |Q: I wan|
|00003a20| 74 20 63 6f 64 65 20 74 | 68 61 74 20 67 69 76 65 |t code t|hat give|
|00003a30| 73 20 74 68 65 20 77 65 | 65 6b 64 61 79 20 6f 66 |s the we|ekday of|
|00003a40| 20 74 68 65 20 67 69 76 | 65 6e 20 64 61 74 65 2e | the giv|en date.|
|00003a50| 0d 0a 0d 0a 20 41 31 3a | 20 54 68 65 72 65 20 69 |.... A1:| There i|
|00003a60| 73 20 61 20 57 4b 44 41 | 59 46 4e 20 66 75 6e 63 |s a WKDA|YFN func|
|00003a70| 74 69 6f 6e 20 69 6e 20 | 6d 79 20 54 75 72 62 6f |tion in |my Turbo|
|00003a80| 20 50 61 73 63 61 6c 20 | 75 6e 69 74 73 20 63 6f | Pascal |units co|
|00003a90| 6c 6c 65 63 74 69 6f 6e | 0d 0a 66 74 70 3a 2f 2f |llection|..ftp://|
|00003aa0| 67 61 72 62 6f 2e 75 77 | 61 73 61 2e 66 69 2f 70 |garbo.uw|asa.fi/p|
|00003ab0| 63 2f 74 73 2f 74 73 70 | 61 33 35 37 30 2e 7a 69 |c/ts/tsp|a3570.zi|
|00003ac0| 70 20 28 6f 72 20 77 68 | 61 74 65 76 65 72 20 76 |p (or wh|atever v|
|00003ad0| 65 72 73 69 6f 6e 20 6e | 75 6d 62 65 72 0d 0a 69 |ersion n|umber..i|
|00003ae0| 73 20 74 68 65 20 6c 61 | 74 65 73 74 2c 20 61 6e |s the la|test, an|
|00003af0| 64 20 77 68 65 72 65 20 | 37 30 20 69 73 20 34 30 |d where |70 is 40|
|00003b00| 20 35 30 20 35 35 20 36 | 30 20 61 6e 64 20 37 30 | 50 55 6|0 and 70|
|00003b10| 29 20 54 75 72 62 6f 20 | 50 61 73 63 61 6c 0d 0a |) Turbo |Pascal..|
|00003b20| 75 6e 69 74 73 20 63 6f | 6c 6c 65 63 74 69 6f 6e |units co|llection|
|00003b30| 20 74 6f 20 67 69 76 65 | 20 74 68 65 20 6d 6f 64 | to give| the mod|
|00003b40| 65 72 6e 20 77 65 65 6b | 64 61 79 20 62 61 73 65 |ern week|day base|
|00003b50| 64 20 6f 6e 20 5a 65 6c | 6c 65 72 27 73 0d 0a 63 |d on Zel|ler's..c|
|00003b60| 6f 6e 67 72 75 65 6e 63 | 65 2e 20 41 76 61 69 6c |ongruenc|e. Avail|
|00003b70| 61 62 6c 65 20 62 79 20 | 61 6e 6f 6e 79 6d 6f 75 |able by |anonymou|
|00003b80| 73 20 46 54 50 20 6f 72 | 20 6d 61 69 6c 20 73 65 |s FTP or| mail se|
|00003b90| 72 76 65 72 20 66 72 6f | 6d 0d 0a 67 61 72 62 6f |rver fro|m..garbo|
|00003ba0| 2e 75 77 61 73 61 2e 66 | 69 2e 20 41 6c 73 6f 20 |.uwasa.f|i. Also |
|00003bb0| 79 6f 75 20 63 61 6e 20 | 66 69 6e 64 20 61 20 6d |you can |find a m|
|00003bc0| 6f 72 65 20 65 78 74 65 | 6e 73 69 76 65 20 4a 75 |ore exte|nsive Ju|
|00003bd0| 6c 69 61 6e 20 61 6e 64 | 0d 0a 47 72 65 67 6f 72 |lian and|..Gregor|
|00003be0| 69 61 6e 20 77 65 65 6b | 64 61 79 20 61 6c 67 6f |ian week|day algo|
|00003bf0| 72 69 74 68 6d 20 77 69 | 74 68 20 73 6f 75 72 63 |rithm wi|th sourc|
|00003c00| 65 20 63 6f 64 65 20 69 | 6e 20 44 72 2e 44 6f 62 |e code i|n Dr.Dob|
|00003c10| 62 27 73 20 4a 6f 75 72 | 6e 61 6c 2c 0d 0a 4a 75 |b's Jour|nal,..Ju|
|00003c20| 6e 65 20 31 39 38 39 2c | 20 70 2e 20 31 34 38 2e |ne 1989,| p. 148.|
|00003c30| 20 46 75 72 74 68 65 72 | 6d 6f 72 65 20 50 72 65 | Further|more Pre|
|00003c40| 73 73 20 26 20 46 6c 61 | 6e 6e 65 72 79 20 26 20 |ss & Fla|nnery & |
|00003c50| 61 6c 20 28 31 39 38 36 | 29 2c 0d 0a 4e 75 6d 65 |al (1986|),..Nume|
|00003c60| 72 69 63 61 6c 20 52 65 | 63 69 70 65 73 2c 20 43 |rical Re|cipes, C|
|00003c70| 61 6d 62 72 69 64 67 65 | 20 55 6e 69 76 65 72 73 |ambridge| Univers|
|00003c80| 69 74 79 20 50 72 65 73 | 73 2c 20 70 72 65 73 65 |ity Pres|s, prese|
|00003c90| 6e 74 20 61 20 77 65 65 | 6b 64 61 79 0d 0a 63 6f |nt a wee|kday..co|
|00003ca0| 64 65 2e 20 54 68 65 20 | 4e 75 6d 65 72 69 63 61 |de. The |Numerica|
|00003cb0| 6c 20 52 65 63 69 70 65 | 73 20 63 6f 64 65 73 20 |l Recipe|s codes |
|00003cc0| 61 72 65 20 61 76 61 69 | 6c 61 62 6c 65 20 61 73 |are avai|lable as|
|00003cd0| 0d 0a 66 74 70 3a 2f 2f | 67 61 72 62 6f 2e 75 77 |..ftp://|garbo.uw|
|00003ce0| 61 73 61 2e 66 69 2f 70 | 63 2f 74 75 72 62 6f 70 |asa.fi/p|c/turbop|
|00003cf0| 61 73 2f 6e 72 70 61 73 | 31 33 2e 7a 69 70 20 28 |as/nrpas|13.zip (|
|00003d00| 62 69 67 2c 20 34 30 34 | 6b 21 29 2e 20 49 66 20 |big, 404|k!). If |
|00003d10| 79 6f 75 0d 0a 77 69 73 | 68 20 74 6f 20 6b 6e 6f |you..wis|h to kno|
|00003d20| 77 20 6d 6f 72 65 20 6f | 66 20 63 61 6c 65 6e 64 |w more o|f calend|
|00003d30| 61 72 73 20 73 65 65 20 | 43 6c 61 75 73 20 54 6f |ars see |Claus To|
|00003d40| 6e 64 65 72 69 6e 67 27 | 73 20 63 61 6c 65 6e 64 |ndering'|s calend|
|00003d50| 61 72 20 46 41 51 0d 0a | 66 74 70 3a 2f 2f 67 61 |ar FAQ..|ftp://ga|
|00003d60| 72 62 6f 2e 75 77 61 73 | 61 2e 66 69 2f 70 63 2f |rbo.uwas|a.fi/pc/|
|00003d70| 64 6f 63 2d 6e 65 74 2f | 63 61 6c 66 61 71 2e 7a |doc-net/|calfaq.z|
|00003d80| 69 70 2e 0d 0a 0d 0a 20 | 41 32 3a 20 53 65 65 20 |ip..... |A2: See |
|00003d90| 74 68 65 20 69 74 65 6d | 20 22 44 6f 65 73 20 61 |the item| "Does a|
|00003da0| 6e 79 62 6f 64 79 20 68 | 61 76 65 20 61 20 70 72 |nybody h|ave a pr|
|00003db0| 6f 67 72 61 6d 20 74 68 | 61 74 20 67 69 76 65 73 |ogram th|at gives|
|00003dc0| 20 74 68 65 20 77 65 65 | 6b 0d 0a 6e 75 6d 62 65 | the wee|k..numbe|
|00003dd0| 72 3f 22 20 66 6f 72 20 | 74 68 65 20 73 6f 75 72 |r?" for |the sour|
|00003de0| 63 65 20 63 6f 64 65 20 | 6f 66 20 61 6c 73 6f 20 |ce code |of also |
|00003df0| 74 68 65 20 77 65 65 6b | 64 61 79 2e 0d 0a 0d 0a |the week|day.....|
|00003e00| 20 41 33 3a 20 53 6f 6d | 65 20 77 69 6c 6c 20 72 | A3: Som|e will r|
|00003e10| 65 63 6f 6d 6d 65 6e 64 | 20 74 68 65 20 66 6f 6c |ecommend| the fol|
|00003e20| 6c 6f 77 69 6e 67 20 6b | 6c 75 64 67 65 2e 20 53 |lowing k|ludge. S|
|00003e30| 74 6f 72 65 20 74 68 65 | 20 63 75 72 72 65 6e 74 |tore the| current|
|00003e40| 0d 0a 64 61 74 65 2c 20 | 63 68 61 6e 67 65 20 69 |..date, |change i|
|00003e50| 74 2c 20 61 6e 64 20 6c | 65 74 20 4d 53 2d 44 4f |t, and l|et MS-DO|
|00003e60| 53 20 67 65 74 20 79 6f | 75 20 74 68 65 20 77 65 |S get yo|u the we|
|00003e70| 65 6b 64 61 79 2e 20 44 | 6f 6e 27 74 20 75 73 65 |ekday. D|on't use|
|00003e80| 20 69 74 21 0d 0a 49 74 | 20 69 73 20 61 20 62 61 | it!..It| is a ba|
|00003e90| 64 20 73 75 67 67 65 73 | 74 69 6f 6e 2e 20 4f 6e |d sugges|tion. On|
|00003ea0| 20 74 6f 70 20 6f 66 20 | 62 65 69 6e 67 20 73 6c | top of |being sl|
|00003eb0| 6f 70 70 79 20 70 72 6f | 67 72 61 6d 6d 69 6e 67 |oppy pro|gramming|
|00003ec0| 2c 20 74 68 65 72 65 0d | 0a 61 72 65 20 73 65 76 |, there.|.are sev|
|00003ed0| 65 72 61 6c 20 73 6e 61 | 67 73 2e 20 20 54 68 65 |eral sna|gs. The|
|00003ee0| 20 74 72 69 63 6b 20 77 | 6f 72 6b 73 20 6f 6e 6c | trick w|orks onl|
|00003ef0| 79 20 66 6f 72 20 79 65 | 61 72 73 20 31 39 38 30 |y for ye|ars 1980|
|00003f00| 2d 32 30 37 39 2e 20 41 | 0d 0a 63 72 61 73 68 20 |-2079. A|..crash |
|00003f10| 74 68 65 20 70 72 6f 67 | 72 61 6d 20 6d 61 79 20 |the prog|ram may |
|00003f20| 6c 65 61 76 65 20 74 68 | 65 20 63 6c 6f 63 6b 20 |leave th|e clock |
|00003f30| 61 74 20 61 20 77 72 6f | 6e 67 20 64 61 74 65 2e |at a wro|ng date.|
|00003f40| 20 41 6e 64 20 65 76 65 | 6e 20 69 66 0d 0a 6d 75 | And eve|n if..mu|
|00003f50| 6c 74 69 74 61 73 6b 69 | 6e 67 20 69 73 20 72 61 |ltitaski|ng is ra|
|00003f60| 72 65 2c 20 69 6e 20 61 | 20 6d 75 6c 74 69 74 61 |re, in a| multita|
|00003f70| 73 6b 69 6e 67 20 65 6e | 76 69 72 6f 6e 6d 65 6e |sking en|vironmen|
|00003f80| 74 20 68 61 76 6f 63 20 | 6d 61 79 20 72 65 73 75 |t havoc |may resu|
|00003f90| 6c 74 0d 0a 66 6f 72 20 | 74 68 65 20 6f 74 68 65 |lt..for |the othe|
|00003fa0| 72 20 74 61 73 6b 73 2e | 20 41 6e 64 20 79 6f 75 |r tasks.| And you|
|00003fb0| 20 6d 61 79 20 68 61 76 | 65 20 61 20 54 53 52 20 | may hav|e a TSR |
|00003fc0| 74 68 61 74 20 72 65 71 | 75 69 72 65 73 20 74 68 |that req|uires th|
|00003fd0| 65 0d 0a 63 6f 72 72 65 | 63 74 20 64 61 74 65 2c |e..corre|ct date,|
|00003fe0| 20 65 74 63 2e 0d 0a 2d | 2d 2d 2d 2d 2d 2d 2d 2d | etc...-|--------|
|00003ff0| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00004000| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00004010| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00004020| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 0d 0a 0d 0a 46 |--------|---....F|
|00004030| 72 6f 6d 20 74 73 40 75 | 77 61 73 61 2e 66 69 20 |rom ts@u|wasa.fi |
|00004040| 53 61 74 20 53 65 70 20 | 37 20 30 30 3a 30 30 3a |Sat Sep |7 00:00:|
|00004050| 30 34 20 31 39 39 36 0d | 0a 53 75 62 6a 65 63 74 |04 1996.|.Subject|
|00004060| 3a 20 50 72 65 74 74 79 | 20 70 72 69 6e 74 65 72 |: Pretty| printer|
|00004070| 73 20 28 6f 72 20 75 6e | 69 66 6f 72 6d 20 63 6f |s (or un|iform co|
|00004080| 64 65 29 0d 0a 0d 0a 34 | 2e 20 2a 2a 2a 2a 2a 0d |de)....4|. *****.|
|00004090| 0a 20 51 3a 20 57 68 65 | 72 65 20 63 61 6e 20 49 |. Q: Whe|re can I|
|000040a0| 20 66 69 6e 64 20 61 20 | 70 72 6f 67 72 61 6d 20 | find a |program |
|000040b0| 74 68 61 74 20 66 6f 72 | 6d 61 74 73 20 6d 79 20 |that for|mats my |
|000040c0| 28 6f 72 20 6d 79 20 73 | 74 75 64 65 6e 74 73 27 |(or my s|tudents'|
|000040d0| 29 0d 0a 54 75 72 62 6f | 20 50 61 73 63 61 6c 20 |)..Turbo| Pascal |
|000040e0| 63 6f 64 65 20 69 6e 20 | 61 20 63 6f 6e 73 69 73 |code in |a consis|
|000040f0| 74 65 6e 74 20 6d 61 74 | 74 65 72 2e 0d 0a 0d 0a |tent mat|ter.....|
|00004100| 20 41 3a 20 57 68 61 74 | 20 79 6f 75 20 61 72 65 | A: What| you are|
|00004110| 20 61 73 6b 69 6e 67 20 | 66 6f 72 20 69 73 20 6f | asking |for is o|
|00004120| 66 74 65 6e 20 63 61 6c | 6c 65 64 20 22 61 20 70 |ften cal|led "a p|
|00004130| 72 65 74 74 79 20 70 72 | 69 6e 74 65 72 22 2e 0d |retty pr|inter"..|
|00004140| 0a 54 75 72 62 6f 50 6f | 77 65 72 20 53 6f 66 74 |.TurboPo|wer Soft|
|00004150| 77 61 72 65 27 73 20 28 | 74 68 65 20 75 73 75 61 |ware's (|the usua|
|00004160| 6c 20 64 69 73 63 6c 61 | 69 6d 65 72 20 61 70 70 |l discla|imer app|
|00004170| 6c 69 65 73 29 20 63 6f | 6d 6d 65 72 63 69 61 6c |lies) co|mmercial|
|00004180| 0d 0a 54 75 72 62 6f 20 | 41 6e 61 6c 79 73 74 20 |..Turbo |Analyst |
|00004190| 68 61 73 20 61 20 66 61 | 63 69 6c 69 74 79 20 66 |has a fa|cility f|
|000041a0| 6f 72 20 74 68 69 73 20 | 77 69 74 68 20 6d 61 6e |or this |with man|
|000041b0| 79 20 6f 70 74 69 6f 6e | 73 2e 20 54 68 65 72 65 |y option|s. There|
|000041c0| 20 61 72 65 0d 0a 61 6c | 73 6f 20 50 44 20 61 6e | are..al|so PD an|
|000041d0| 64 20 73 68 61 72 65 77 | 61 72 65 20 70 72 65 74 |d sharew|are pret|
|000041e0| 74 79 20 70 72 69 6e 74 | 65 72 73 2c 20 73 75 63 |ty print|ers, suc|
|000041f0| 68 20 61 73 0d 0a 20 3a | 0d 0a 20 31 36 38 33 30 |h as.. :|.. 16830|
|00004200| 20 4e 6f 76 20 32 38 20 | 31 39 38 39 20 66 74 70 | Nov 28 |1989 ftp|
|00004210| 3a 2f 2f 67 61 72 62 6f | 2e 75 77 61 73 61 2e 66 |://garbo|.uwasa.f|
|00004220| 69 2f 70 63 2f 74 75 72 | 62 6f 70 61 73 2f 70 70 |i/pc/tur|bopas/pp|
|00004230| 64 6b 35 30 2e 7a 69 70 | 0d 0a 20 70 70 64 6b 35 |dk50.zip|.. ppdk5|
|00004240| 30 2e 7a 69 70 20 50 61 | 73 63 61 6c 20 50 72 65 |0.zip Pa|scal Pre|
|00004250| 74 74 79 70 72 69 6e 67 | 74 69 6e 67 20 50 72 6f |ttypring|ting Pro|
|00004260| 67 72 61 6d 2c 20 74 77 | 65 61 6b 2c 20 44 2e 4b |gram, tw|eak, D.K|
|00004270| 69 72 73 63 68 62 61 75 | 6d 0d 0a 20 3a 0d 0a 20 |irschbau|m.. :.. |
|00004280| 31 30 30 31 35 20 4d 61 | 72 20 32 39 20 31 39 39 |10015 Ma|r 29 199|
|00004290| 31 20 66 74 70 3a 2f 2f | 67 61 72 62 6f 2e 75 77 |1 ftp://|garbo.uw|
|000042a0| 61 73 61 2e 66 69 2f 70 | 63 2f 74 75 72 62 6f 70 |asa.fi/p|c/turbop|
|000042b0| 61 73 2f 70 70 70 2e 7a | 69 70 0d 0a 20 70 70 70 |as/ppp.z|ip.. ppp|
|000042c0| 2e 7a 69 70 20 50 72 65 | 74 74 79 20 50 72 69 6e |.zip Pre|tty Prin|
|000042d0| 74 20 50 61 73 63 61 6c | 2c 20 77 69 74 68 20 54 |t Pascal|, with T|
|000042e0| 75 72 62 6f 20 50 61 73 | 63 61 6c 20 35 2b 20 73 |urbo Pas|cal 5+ s|
|000042f0| 6f 75 72 63 65 2c 20 4d | 2e 42 6c 65 73 73 0d 0a |ource, M|.Bless..|
|00004300| 20 3a 0d 0a 20 33 38 30 | 32 31 20 4e 6f 76 20 35 | :.. 380|21 Nov 5|
|00004310| 20 31 39 39 34 20 66 74 | 70 3a 2f 2f 67 61 72 62 | 1994 ft|p://garb|
|00004320| 6f 2e 75 77 61 73 61 2e | 66 69 2f 70 63 2f 74 75 |o.uwasa.|fi/pc/tu|
|00004330| 72 62 6f 70 61 73 2f 62 | 70 37 73 62 31 30 34 2e |rbopas/b|p7sb104.|
|00004340| 7a 69 70 0d 0a 20 62 70 | 37 73 62 31 30 34 2e 7a |zip.. bp|7sb104.z|
|00004350| 69 70 20 42 6f 72 6c 61 | 6e 64 20 61 6e 64 20 54 |ip Borla|nd and T|
|00004360| 50 20 53 6f 75 72 63 65 | 20 42 65 61 75 74 69 66 |P Source| Beautif|
|00004370| 69 65 72 2c 20 63 72 69 | 70 70 6c 65 77 61 72 65 |ier, cri|ppleware|
|00004380| 2c 20 4a 2e 46 65 72 69 | 6e 63 7a 0d 0a 20 3a 0d |, J.Feri|ncz.. :.|
|00004390| 0a 20 32 35 31 30 30 20 | 4a 75 6c 20 34 20 31 39 |. 25100 |Jul 4 19|
|000043a0| 39 32 20 66 74 70 3a 2f | 2f 67 61 72 62 6f 2e 75 |92 ftp:/|/garbo.u|
|000043b0| 77 61 73 61 2e 66 69 2f | 70 63 2f 74 75 72 62 6f |wasa.fi/|pc/turbo|
|000043c0| 70 61 73 2f 65 70 62 32 | 33 32 2e 7a 69 70 0d 0a |pas/epb2|32.zip..|
|000043d0| 20 65 70 62 32 33 32 2e | 7a 69 70 20 45 64 27 73 | epb232.|zip Ed's|
|000043e0| 20 50 61 73 63 61 6c 20 | 42 65 61 75 74 69 66 69 | Pascal |Beautifi|
|000043f0| 65 72 2c 20 45 2e 4c 65 | 65 0d 0a 20 3a 0d 0a 61 |er, E.Le|e.. :..a|
|00004400| 6e 64 20 6f 74 68 65 72 | 73 20 61 74 20 67 61 72 |nd other|s at gar|
|00004410| 62 6f 2e 75 77 61 73 61 | 2e 66 69 20 61 76 61 69 |bo.uwasa|.fi avai|
|00004420| 6c 61 62 6c 65 20 62 79 | 20 61 6e 6f 6e 79 6d 6f |lable by| anonymo|
|00004430| 75 73 20 46 54 50 20 6f | 72 20 6d 61 69 6c 0d 0a |us FTP o|r mail..|
|00004440| 73 65 72 76 65 72 2e 20 | 53 65 65 20 66 74 70 3a |server. |See ftp:|
|00004450| 2f 2f 67 61 72 62 6f 2e | 75 77 61 73 61 2e 66 69 |//garbo.|uwasa.fi|
|00004460| 2f 70 63 2f 49 4e 44 45 | 58 2e 5a 49 50 20 66 6f |/pc/INDE|X.ZIP fo|
|00004470| 72 20 74 68 65 20 6c 69 | 73 74 20 6f 66 20 74 68 |r the li|st of th|
|00004480| 65 0d 0a 66 69 6c 65 73 | 2e 0d 0a 2d 2d 2d 2d 2d |e..files|...-----|
|00004490| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|000044a0| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|000044b0| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|000044c0| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 0d |--------|-------.|
|000044d0| 0a 0d 0a 46 72 6f 6d 20 | 74 73 40 75 77 61 73 61 |...From |ts@uwasa|
|000044e0| 2e 66 69 20 53 61 74 20 | 53 65 70 20 37 20 30 30 |.fi Sat |Sep 7 00|
|000044f0| 3a 30 30 3a 30 35 20 31 | 39 39 36 0d 0a 53 75 62 |:00:05 1|996..Sub|
|00004500| 6a 65 63 74 3a 20 48 6f | 77 20 74 6f 20 77 72 69 |ject: Ho|w to wri|
|00004510| 74 65 20 54 53 52 20 70 | 72 6f 67 72 61 6d 73 0d |te TSR p|rograms.|
|00004520| 0a 0d 0a 35 2e 20 2a 2a | 2a 2a 2a 0d 0a 20 51 3a |...5. **|***.. Q:|
|00004530| 20 43 61 6e 20 73 6f 6d | 65 6f 6e 65 20 67 69 76 | Can som|eone giv|
|00004540| 65 20 6d 65 20 61 64 76 | 69 63 65 20 66 6f 72 20 |e me adv|ice for |
|00004550| 77 72 69 74 69 6e 67 20 | 61 20 74 73 72 20 70 72 |writing |a tsr pr|
|00004560| 6f 67 72 61 6d 3f 0d 0a | 0d 0a 20 41 3a 20 57 72 |ogram?..|.. A: Wr|
|00004570| 69 74 69 6e 67 20 61 20 | 74 65 72 6d 69 6e 61 74 |iting a |terminat|
|00004580| 65 20 61 6e 64 20 73 74 | 61 79 20 72 65 73 69 64 |e and st|ay resid|
|00004590| 65 6e 74 20 70 72 6f 67 | 72 61 6d 20 63 61 6e 20 |ent prog|ram can |
|000045a0| 62 65 20 63 6f 6e 73 69 | 64 65 72 65 64 0d 0a 61 |be consi|dered..a|
|000045b0| 64 76 61 6e 63 65 64 20 | 70 72 6f 67 72 61 6d 6d |dvanced |programm|
|000045c0| 69 6e 67 20 61 6e 64 20 | 69 73 20 62 65 79 6f 6e |ing and |is beyon|
|000045d0| 64 20 74 68 65 20 73 63 | 6f 70 65 20 6f 66 20 61 |d the sc|ope of a|
|000045e0| 6e 20 65 6c 65 63 74 72 | 6f 6e 69 63 0d 0a 6d 65 |n electr|onic..me|
|000045f0| 73 73 61 67 65 20 77 69 | 74 68 20 6c 69 6d 69 74 |ssage wi|th limit|
|00004600| 65 64 20 73 70 61 63 65 | 2e 20 49 6e 73 74 65 61 |ed space|. Instea|
|00004610| 64 2c 20 68 65 72 65 20 | 61 72 65 20 73 6f 6d 65 |d, here |are some|
|00004620| 20 72 65 66 65 72 65 6e | 63 65 73 20 74 6f 0d 0a | referen|ces to..|
|00004630| 54 75 72 62 6f 20 50 61 | 73 63 61 6c 20 62 6f 6f |Turbo Pa|scal boo|
|00004640| 6b 73 20 61 6e 64 20 70 | 61 70 65 72 73 20 77 68 |ks and p|apers wh|
|00004650| 69 63 68 20 68 61 76 65 | 20 61 20 63 6f 76 65 72 |ich have| a cover|
|00004660| 61 67 65 20 6f 66 20 74 | 68 65 20 73 75 62 6a 65 |age of t|he subje|
|00004670| 63 74 2e 0d 0a 53 74 65 | 70 68 65 6e 20 4f 27 42 |ct...Ste|phen O'B|
|00004680| 72 69 65 6e 2c 20 54 75 | 72 62 6f 20 50 61 73 63 |rien, Tu|rbo Pasc|
|00004690| 61 6c 2c 20 54 68 65 20 | 43 6f 6d 70 6c 65 74 65 |al, The |Complete|
|000046a0| 20 52 65 66 65 72 65 6e | 63 65 2c 20 43 68 61 70 | Referen|ce, Chap|
|000046b0| 74 65 72 20 31 36 3b 0d | 0a 53 74 65 70 68 65 6e |ter 16;.|.Stephen|
|000046c0| 20 4f 27 42 72 69 65 6e | 2c 20 54 75 72 62 6f 20 | O'Brien|, Turbo |
|000046d0| 50 61 73 63 61 6c 2c 20 | 41 64 76 61 6e 63 65 64 |Pascal, |Advanced|
|000046e0| 20 50 72 6f 67 72 61 6d | 6d 65 72 27 73 20 47 75 | Program|mer's Gu|
|000046f0| 69 64 65 2c 20 43 68 61 | 70 74 65 72 0d 0a 36 3b |ide, Cha|pter..6;|
|00004700| 20 4d 69 63 68 61 65 6c | 20 54 69 73 63 68 65 72 | Michael| Tischer|
|00004710| 2c 20 54 75 72 62 6f 20 | 50 61 73 63 61 6c 20 49 |, Turbo |Pascal I|
|00004720| 6e 74 65 72 6e 61 6c 73 | 2c 20 43 68 61 70 74 65 |nternals|, Chapte|
|00004730| 72 20 31 31 20 28 61 20 | 64 65 66 69 6e 69 74 65 |r 11 (a |definite|
|00004740| 0d 0a 62 69 62 6c 65 20 | 6f 66 20 54 50 20 70 72 |..bible |of TP pr|
|00004750| 6f 67 72 61 6d 6d 69 6e | 67 21 29 3b 20 4d 69 63 |ogrammin|g!); Mic|
|00004760| 68 61 65 6c 20 54 69 73 | 63 68 65 72 20 28 31 39 |hael Tis|cher (19|
|00004770| 39 32 29 2c 20 50 43 20 | 49 6e 74 65 72 6e 20 53 |92), PC |Intern S|
|00004780| 79 73 74 65 6d 0d 0a 50 | 72 6f 67 72 61 6d 6d 69 |ystem..P|rogrammi|
|00004790| 6e 67 2c 20 43 68 61 70 | 74 65 72 20 33 32 3b 20 |ng, Chap|ter 32; |
|000047a0| 4d 69 63 68 61 65 6c 20 | 59 65 73 74 65 72 2c 20 |Michael |Yester, |
|000047b0| 55 73 69 6e 67 20 54 75 | 72 62 6f 20 50 61 73 63 |Using Tu|rbo Pasc|
|000047c0| 61 6c 2c 20 43 68 61 70 | 74 65 72 0d 0a 31 39 3b |al, Chap|ter..19;|
|000047d0| 20 4b 65 6e 74 20 50 6f | 74 74 65 62 61 75 6d 2c | Kent Po|ttebaum,|
|000047e0| 20 22 43 72 65 61 74 69 | 6e 67 20 54 53 52 20 50 | "Creati|ng TSR P|
|000047f0| 72 6f 67 72 61 6d 73 20 | 77 69 74 68 20 54 75 72 |rograms |with Tur|
|00004800| 62 6f 20 50 61 73 63 61 | 6c 22 2c 20 44 72 2e 0d |bo Pasca|l", Dr..|
|00004810| 0a 44 6f 62 62 27 73 20 | 4a 6f 75 72 6e 61 6c 2c |.Dobb's |Journal,|
|00004820| 20 4d 61 79 20 31 39 38 | 39 20 61 6e 64 20 4a 75 | May 198|9 and Ju|
|00004830| 6e 65 20 31 39 38 39 3b | 20 4b 72 69 73 20 4a 61 |ne 1989;| Kris Ja|
|00004840| 6d 73 61 2c 20 44 6f 73 | 20 50 6f 77 65 72 20 55 |msa, Dos| Power U|
|00004850| 73 65 72 27 73 0d 0a 47 | 75 69 64 65 2c 20 70 70 |ser's..G|uide, pp|
|00004860| 2e 20 36 34 39 2d 3b 20 | 45 64 77 61 72 64 20 4d |. 649-; |Edward M|
|00004870| 69 74 63 68 65 6c 6c 20 | 28 31 39 39 33 29 2c 20 |itchell |(1993), |
|00004880| 42 6f 72 6c 61 6e 64 20 | 50 61 73 63 61 6c 20 44 |Borland |Pascal D|
|00004890| 65 76 65 6c 6f 70 65 72 | 27 73 0d 0a 47 75 69 64 |eveloper|'s..Guid|
|000048a0| 65 2c 20 53 65 63 74 69 | 6f 6e 20 22 57 72 69 74 |e, Secti|on "Writ|
|000048b0| 69 6e 67 20 54 53 52 73 | 22 2c 20 70 70 2e 20 33 |ing TSRs|", pp. 3|
|000048c0| 37 30 2d 34 30 30 2c 20 | 77 69 74 68 20 37 37 38 |70-400, |with 778|
|000048d0| 20 6c 69 6e 65 73 20 6f | 66 20 73 61 6d 70 6c 65 | lines o|f sample|
|000048e0| 0d 0a 63 6f 64 65 2e 0d | 0a 20 20 20 41 6c 73 6f |..code..|. Also|
|000048f0| 20 73 65 65 20 65 78 61 | 6d 70 6c 65 20 63 6f 64 | see exa|mple cod|
|00004900| 65 20 66 69 6c 65 73 20 | 6c 69 6b 65 0d 0a 66 74 |e files |like..ft|
|00004910| 70 3a 2f 2f 67 61 72 62 | 6f 2e 75 77 61 73 61 2e |p://garb|o.uwasa.|
|00004920| 66 69 2f 70 63 2f 74 75 | 72 62 6f 6f 62 6a 2f 74 |fi/pc/tu|rboobj/t|
|00004930| 73 72 68 65 6c 70 2e 7a | 69 70 2c 0d 0a 66 74 70 |srhelp.z|ip,..ftp|
|00004940| 3a 2f 2f 67 61 72 62 6f | 2e 75 77 61 73 61 2e 66 |://garbo|.uwasa.f|
|00004950| 69 2f 70 63 2f 74 75 72 | 62 6f 70 61 34 35 2f 74 |i/pc/tur|bopa45/t|
|00004960| 65 73 73 2d 35 2e 7a 69 | 70 2c 0d 0a 66 74 70 3a |ess-5.zi|p,..ftp:|
|00004970| 2f 2f 67 61 72 62 6f 2e | 75 77 61 73 61 2e 66 69 |//garbo.|uwasa.fi|
|00004980| 2f 70 63 2f 74 75 72 62 | 6f 70 61 34 35 2f 74 73 |/pc/turb|opa45/ts|
|00004990| 72 75 6e 69 74 2e 7a 69 | 70 2c 0d 0a 66 74 70 3a |runit.zi|p,..ftp:|
|000049a0| 2f 2f 67 61 72 62 6f 2e | 75 77 61 73 61 2e 66 69 |//garbo.|uwasa.fi|
|000049b0| 2f 70 63 2f 74 75 72 62 | 6f 70 61 37 2f 70 70 74 |/pc/turb|opa7/ppt|
|000049c0| 73 72 31 30 2e 7a 69 70 | 2c 0d 0a 66 74 70 3a 2f |sr10.zip|,..ftp:/|
|000049d0| 2f 67 61 72 62 6f 2e 75 | 77 61 73 61 2e 66 69 2f |/garbo.u|wasa.fi/|
|000049e0| 70 63 2f 74 75 72 62 6f | 70 61 37 2f 74 73 72 73 |pc/turbo|pa7/tsrs|
|000049f0| 72 63 33 35 2e 7a 69 70 | 2c 0d 0a 66 74 70 3a 2f |rc35.zip|,..ftp:/|
|00004a00| 2f 67 61 72 62 6f 2e 75 | 77 61 73 61 2e 66 69 2f |/garbo.u|wasa.fi/|
|00004a10| 70 63 2f 74 75 72 62 6f | 70 61 73 2f 64 65 6c 74 |pc/turbo|pas/delt|
|00004a20| 73 72 2e 7a 69 70 2c 0d | 0a 66 74 70 3a 2f 2f 67 |sr.zip,.|.ftp://g|
|00004a30| 61 72 62 6f 2e 75 77 61 | 73 61 2e 66 69 2f 70 63 |arbo.uwa|sa.fi/pc|
|00004a40| 2f 74 75 72 62 6f 70 61 | 73 2f 74 70 34 5f 74 73 |/turbopa|s/tp4_ts|
|00004a50| 72 2e 7a 69 70 2e 0d 0a | 20 20 20 46 75 72 74 68 |r.zip...| Furth|
|00004a60| 65 72 6d 6f 72 65 2c 20 | 79 6f 75 20 73 68 6f 75 |ermore, |you shou|
|00004a70| 6c 64 20 73 65 65 20 74 | 68 65 20 54 53 52 2e 53 |ld see t|he TSR.S|
|00004a80| 57 47 20 65 78 61 6d 70 | 6c 65 73 20 69 6e 20 74 |WG examp|les in t|
|00004a90| 68 65 20 66 69 6e 65 20 | 53 57 41 47 0d 0a 28 53 |he fine |SWAG..(S|
|00004aa0| 6f 75 72 63 65 57 61 72 | 65 20 41 72 63 68 69 76 |ourceWar|e Archiv|
|00004ab0| 61 6c 20 47 72 6f 75 70 | 27 73 29 20 63 6f 6c 6c |al Group|'s) coll|
|00004ac0| 65 63 74 69 6f 6e 20 6f | 66 20 54 50 20 73 6f 75 |ection o|f TP sou|
|00004ad0| 72 63 65 73 2e 20 41 76 | 61 69 6c 61 62 6c 65 0d |rces. Av|ailable.|
|00004ae0| 0a 66 72 6f 6d 20 74 68 | 65 20 2f 70 63 2f 74 75 |.from th|e /pc/tu|
|00004af0| 72 62 6f 70 61 73 20 64 | 69 72 65 63 74 6f 72 79 |rbopas d|irectory|
|00004b00| 20 61 74 20 47 61 72 62 | 6f 2e 20 46 6f 72 20 74 | at Garb|o. For t|
|00004b10| 68 65 20 63 75 72 72 65 | 6e 74 20 72 65 66 65 72 |he curre|nt refer|
|00004b20| 65 6e 63 65 73 0d 0a 74 | 6f 20 74 68 65 20 53 57 |ences..t|o the SW|
|00004b30| 41 47 20 66 69 6c 65 73 | 20 73 65 65 20 66 74 70 |AG files| see ftp|
|00004b40| 3a 2f 2f 67 61 72 62 6f | 2e 75 77 61 73 61 2e 66 |://garbo|.uwasa.f|
|00004b50| 69 2f 70 63 2f 49 4e 44 | 45 58 2e 5a 49 50 2e 0d |i/pc/IND|EX.ZIP..|
|00004b60| 0a 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |.-------|--------|
|00004b70| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00004b80| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00004b90| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00004ba0| 2d 2d 2d 2d 2d 0d 0a 0d | 0a 46 72 6f 6d 20 74 73 |-----...|.From ts|
|00004bb0| 40 75 77 61 73 61 2e 66 | 69 20 53 61 74 20 53 65 |@uwasa.f|i Sat Se|
|00004bc0| 70 20 37 20 30 30 3a 30 | 30 3a 30 36 20 31 39 39 |p 7 00:0|0:06 199|
|00004bd0| 36 0d 0a 53 75 62 6a 65 | 63 74 3a 20 50 72 6f 67 |6..Subje|ct: Prog|
|00004be0| 72 61 6d 6d 69 6e 67 20 | 63 6f 6d 20 70 6f 72 74 |ramming |com port|
|00004bf0| 73 0d 0a 0d 0a 36 2e 20 | 2a 2a 2a 2a 2a 0d 0a 20 |s....6. |*****.. |
|00004c00| 51 3a 20 57 68 79 20 63 | 61 6e 27 74 20 49 20 72 |Q: Why c|an't I r|
|00004c10| 65 61 64 20 2f 20 77 72 | 69 74 65 20 74 68 65 20 |ead / wr|ite the |
|00004c20| 63 6f 6d 20 70 6f 72 74 | 73 2e 0d 0a 0d 0a 20 41 |com port|s..... A|
|00004c30| 3a 20 43 6f 6d 20 70 6f | 72 74 20 70 72 6f 67 72 |: Com po|rt progr|
|00004c40| 61 6d 6d 69 6e 67 20 28 | 6d 6f 73 74 20 6f 66 74 |amming (|most oft|
|00004c50| 65 6e 20 77 72 69 74 69 | 6e 67 20 74 65 6c 65 63 |en writi|ng telec|
|00004c60| 6f 6d 6d 75 6e 69 63 61 | 74 69 6f 6e 0d 0a 70 72 |ommunica|tion..pr|
|00004c70| 6f 67 72 61 6d 73 29 20 | 69 73 20 6d 75 63 68 20 |ograms) |is much |
|00004c80| 6d 75 63 68 20 6d 6f 72 | 65 20 63 6f 6d 70 6c 69 |much mor|e compli|
|00004c90| 63 61 74 65 64 20 74 68 | 61 6e 20 73 69 6d 70 6c |cated th|an simpl|
|00004ca0| 79 20 74 72 79 69 6e 67 | 20 74 6f 20 75 73 65 0d |y trying| to use.|
|00004cb0| 0a 20 20 77 72 69 74 65 | 20 28 63 6f 6d 2c 20 77 |. write| (com, w|
|00004cc0| 68 61 74 65 76 65 72 29 | 3b 0d 0a 20 20 72 65 61 |hatever)|;.. rea|
|00004cd0| 64 20 20 28 63 6f 6d 2c | 20 77 68 61 74 65 76 65 |d (com,| whateve|
|00004ce0| 72 29 3b 0d 0a 54 68 69 | 73 20 69 73 20 61 20 76 |r);..Thi|s is a v|
|00004cf0| 65 72 79 20 61 64 76 61 | 6e 63 65 64 20 73 75 62 |ery adva|nced sub|
|00004d00| 6a 65 63 74 20 28 66 72 | 61 6e 6b 6c 79 2c 20 62 |ject (fr|ankly, b|
|00004d10| 65 79 6f 6e 64 20 6d 65 | 29 2c 20 61 6e 64 20 74 |eyond me|), and t|
|00004d20| 68 65 20 62 65 73 74 0d | 0a 77 61 79 20 74 6f 20 |he best.|.way to |
|00004d30| 6c 65 61 72 6e 20 69 73 | 20 74 6f 20 74 72 79 20 |learn is| to try |
|00004d40| 74 6f 20 6f 62 74 61 69 | 6e 20 73 6f 6d 65 20 63 |to obtai|n some c|
|00004d50| 6f 64 65 20 74 6f 20 73 | 68 6f 77 20 79 6f 75 20 |ode to s|how you |
|00004d60| 68 6f 77 2e 20 4f 6e 65 | 0d 0a 70 6c 61 63 65 20 |how. One|..place |
|00004d70| 74 6f 20 6c 6f 6f 6b 20 | 61 74 20 69 73 20 54 75 |to look |at is Tu|
|00004d80| 72 62 6f 20 50 61 73 63 | 61 6c 20 74 65 78 74 2d |rbo Pasc|al text-|
|00004d90| 62 6f 6f 6b 73 20 28 49 | 20 68 61 76 65 20 61 20 |books (I| have a |
|00004da0| 6c 6f 6e 67 20 6c 69 73 | 74 20 6f 66 0d 0a 74 68 |long lis|t of..th|
|00004db0| 65 6d 20 61 74 20 67 61 | 72 62 6f 2e 75 77 61 73 |em at ga|rbo.uwas|
|00004dc0| 61 2e 66 69 20 61 72 63 | 68 69 76 65 73 20 69 6e |a.fi arc|hives in|
|00004dd0| 20 6d 79 20 63 6f 6c 6c | 65 63 74 69 6f 6e 20 6f | my coll|ection o|
|00004de0| 66 20 54 75 72 62 6f 20 | 50 61 73 63 61 6c 0d 0a |f Turbo |Pascal..|
|00004df0| 75 6e 69 74 73 20 66 74 | 70 3a 2f 2f 67 61 72 62 |units ft|p://garb|
|00004e00| 6f 2e 75 77 61 73 61 2e | 66 69 2f 70 63 2f 74 73 |o.uwasa.|fi/pc/ts|
|00004e10| 2f 74 73 70 61 33 35 37 | 30 2e 7a 69 70 2e 20 54 |/tspa357|0.zip. T|
|00004e20| 68 65 72 65 20 61 6c 73 | 6f 20 69 73 20 61 6e 0d |here als|o is an.|
|00004e30| 0a 65 78 61 6d 70 6c 65 | 20 62 79 20 44 61 76 69 |.example| by Davi|
|00004e40| 64 20 52 69 6e 64 20 69 | 6e 20 66 74 70 3a 2f 2f |d Rind i|n ftp://|
|00004e50| 67 61 72 62 6f 2e 75 77 | 61 73 61 2e 66 69 2f 70 |garbo.uw|asa.fi/p|
|00004e60| 63 2f 70 64 32 2f 66 61 | 71 75 6f 74 65 2e 7a 69 |c/pd2/fa|quote.zi|
|00004e70| 70 2e 0d 0a 41 6e 6f 74 | 68 65 72 20 73 6f 75 72 |p...Anot|her sour|
|00004e80| 63 65 20 69 73 20 49 6e | 74 65 72 6e 61 74 69 6f |ce is In|ternatio|
|00004e90| 6e 61 6c 20 46 69 64 6f | 4e 65 74 20 70 61 73 63 |nal Fido|Net pasc|
|00004ea0| 61 6c 20 63 6f 6e 66 65 | 72 65 6e 63 65 20 61 74 |al confe|rence at|
|00004eb0| 20 73 6f 6d 65 0d 0a 62 | 75 6c 6c 65 74 69 6e 20 | some..b|ulletin |
|00004ec0| 62 6f 61 72 64 20 6e 65 | 61 72 20 79 6f 75 2e 20 |board ne|ar you. |
|00004ed0| 54 68 65 20 63 6f 6e 66 | 65 72 65 6e 63 65 20 68 |The conf|erence h|
|00004ee0| 61 73 20 68 61 64 20 73 | 6f 6d 65 20 76 65 72 79 |as had s|ome very|
|00004ef0| 20 67 6f 6f 64 0d 0a 64 | 69 73 63 75 73 73 69 6f | good..d|iscussio|
|00004f00| 6e 73 20 69 6e 20 69 74 | 2e 20 28 4e 6f 2c 20 49 |ns in it|. (No, I|
|00004f10| 20 64 6f 6e 27 74 20 68 | 61 76 65 20 74 68 65 6d | don't h|ave them|
|00004f20| 20 73 74 6f 72 65 64 20 | 66 6f 72 20 64 69 73 74 | stored |for dist|
|00004f30| 72 69 62 75 74 69 6f 6e | 2c 0d 0a 6e 6f 72 20 61 |ribution|,..nor a|
|00004f40| 6e 79 20 66 75 72 74 68 | 65 72 20 69 6e 66 6f 72 |ny furth|er infor|
|00004f50| 6d 61 74 69 6f 6e 2e 29 | 20 53 6f 6d 65 20 66 69 |mation.)| Some fi|
|00004f60| 6c 65 73 20 79 6f 75 20 | 6d 69 67 68 74 20 77 69 |les you |might wi|
|00004f70| 73 68 20 74 6f 20 6c 6f | 6f 6b 20 61 74 3a 0d 0a |sh to lo|ok at:..|
|00004f80| 66 74 70 3a 2f 2f 67 61 | 72 62 6f 2e 75 77 61 73 |ftp://ga|rbo.uwas|
|00004f90| 61 2e 66 69 2f 70 63 2f | 74 75 72 62 6f 70 61 73 |a.fi/pc/|turbopas|
|00004fa0| 2f 63 6f 6d 6d 5f 74 70 | 35 2e 7a 69 70 20 61 6e |/comm_tp|5.zip an|
|00004fb0| 64 20 63 6f 6d 74 74 79 | 33 30 2e 7a 69 70 2e 0d |d comtty|30.zip..|
|00004fc0| 0a 20 20 20 46 75 72 74 | 68 65 72 6d 6f 72 65 2c |. Furt|hermore,|
|00004fd0| 20 79 6f 75 20 73 68 6f | 75 6c 64 20 73 65 65 20 | you sho|uld see |
|00004fe0| 74 68 65 20 43 4f 4d 4d | 2e 53 57 47 20 65 78 61 |the COMM|.SWG exa|
|00004ff0| 6d 70 6c 65 73 20 69 6e | 20 74 68 65 20 66 69 6e |mples in| the fin|
|00005000| 65 0d 0a 53 57 41 47 20 | 28 53 6f 75 72 63 65 57 |e..SWAG |(SourceW|
|00005010| 61 72 65 20 41 72 63 68 | 69 76 61 6c 20 47 72 6f |are Arch|ival Gro|
|00005020| 75 70 27 73 29 20 63 6f | 6c 6c 65 63 74 69 6f 6e |up's) co|llection|
|00005030| 20 6f 66 20 54 50 20 73 | 6f 75 72 63 65 73 2e 0d | of TP s|ources..|
|00005040| 0a 41 76 61 69 6c 61 62 | 6c 65 20 66 72 6f 6d 20 |.Availab|le from |
|00005050| 74 68 65 20 2f 70 63 2f | 74 75 72 62 6f 70 61 73 |the /pc/|turbopas|
|00005060| 20 64 69 72 65 63 74 6f | 72 79 20 61 74 20 47 61 | directo|ry at Ga|
|00005070| 72 62 6f 2e 20 46 6f 72 | 20 74 68 65 20 63 75 72 |rbo. For| the cur|
|00005080| 72 65 6e 74 0d 0a 72 65 | 66 65 72 65 6e 63 65 73 |rent..re|ferences|
|00005090| 20 74 6f 20 74 68 65 20 | 53 57 41 47 20 66 69 6c | to the |SWAG fil|
|000050a0| 65 73 20 73 65 65 20 66 | 74 70 3a 2f 2f 67 61 72 |es see f|tp://gar|
|000050b0| 62 6f 2e 75 77 61 73 61 | 2e 66 69 2f 70 63 2f 49 |bo.uwasa|.fi/pc/I|
|000050c0| 4e 44 45 58 2e 5a 49 50 | 2e 0d 0a 2d 2d 2d 2d 2d |NDEX.ZIP|...-----|
|000050d0| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|000050e0| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|000050f0| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00005100| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 0d |--------|-------.|
|00005110| 0a 0d 0a 46 72 6f 6d 20 | 74 73 40 75 77 61 73 61 |...From |ts@uwasa|
|00005120| 2e 66 69 20 53 61 74 20 | 53 65 70 20 37 20 30 30 |.fi Sat |Sep 7 00|
|00005130| 3a 30 30 3a 30 37 20 31 | 39 39 36 0d 0a 53 75 62 |:00:07 1|996..Sub|
|00005140| 6a 65 63 74 3a 20 50 72 | 69 6d 65 72 73 20 74 6f |ject: Pr|imers to|
|00005150| 20 69 6e 74 65 72 72 75 | 70 74 20 70 72 6f 67 72 | interru|pt progr|
|00005160| 61 6d 6d 69 6e 67 0d 0a | 0d 0a 37 2e 20 2a 2a 2a |amming..|..7. ***|
|00005170| 2a 2a 0d 0a 20 51 3a 20 | 57 68 61 74 20 61 72 65 |**.. Q: |What are|
|00005180| 20 69 6e 74 65 72 72 75 | 70 74 73 20 61 6e 64 20 | interru|pts and |
|00005190| 68 6f 77 20 74 6f 20 75 | 73 65 20 74 68 65 6d 20 |how to u|se them |
|000051a0| 69 6e 20 54 75 72 62 6f | 20 50 61 73 63 61 6c 3f |in Turbo| Pascal?|
|000051b0| 0d 0a 0d 0a 20 41 3a 20 | 41 6e 20 69 6e 74 65 72 |.... A: |An inter|
|000051c0| 72 75 70 74 20 69 73 20 | 61 20 73 69 67 6e 61 6c |rupt is |a signal|
|000051d0| 20 74 6f 20 74 68 65 20 | 70 72 6f 63 65 73 73 6f | to the |processo|
|000051e0| 72 20 66 72 6f 6d 20 61 | 20 70 72 6f 67 72 61 6d |r from a| program|
|000051f0| 2c 20 61 0d 0a 68 61 72 | 64 77 61 72 65 20 64 65 |, a..har|dware de|
|00005200| 76 69 63 65 2c 20 6f 72 | 20 74 68 65 20 70 72 6f |vice, or| the pro|
|00005210| 63 65 73 73 6f 72 20 69 | 74 73 65 6c 66 2c 20 74 |cessor i|tself, t|
|00005220| 6f 20 73 75 73 70 65 6e | 64 20 74 65 6d 70 6f 72 |o suspen|d tempor|
|00005230| 61 72 69 6c 79 0d 0a 77 | 68 61 74 20 74 68 65 20 |arily..w|hat the |
|00005240| 70 72 6f 67 72 61 6d 20 | 69 73 20 64 6f 69 6e 67 |program |is doing|
|00005250| 2c 20 61 6e 64 20 74 6f | 20 70 65 72 66 6f 72 6d |, and to| perform|
|00005260| 20 61 20 72 6f 75 74 69 | 6e 65 20 74 68 61 74 20 | a routi|ne that |
|00005270| 69 73 20 73 74 6f 72 65 | 64 0d 0a 69 6e 20 74 68 |is store|d..in th|
|00005280| 65 20 6f 70 65 72 61 74 | 69 6e 67 20 73 79 73 74 |e operat|ing syst|
|00005290| 65 6d 2e 20 54 68 65 72 | 65 20 61 72 65 20 32 35 |em. Ther|e are 25|
|000052a0| 36 20 73 75 63 68 20 69 | 6e 74 65 72 72 75 70 74 |6 such i|nterrupt|
|000052b0| 20 72 6f 75 74 69 6e 65 | 73 2c 20 77 69 74 68 0d | routine|s, with.|
|000052c0| 0a 6d 61 6e 79 20 73 75 | 62 73 65 72 76 69 63 65 |.many su|bservice|
|000052d0| 73 20 73 74 6f 72 65 64 | 20 69 6e 20 6d 65 6d 6f |s stored| in memo|
|000052e0| 72 79 20 61 74 20 6c 6f | 63 61 74 69 6f 6e 73 2c |ry at lo|cations,|
|000052f0| 20 77 68 69 63 68 20 61 | 72 65 20 67 69 76 65 6e | which a|re given|
|00005300| 20 69 6e 0d 0a 74 68 65 | 20 73 6f 20 63 61 6c 6c | in..the| so call|
|00005310| 65 64 20 69 6e 74 65 72 | 72 75 70 74 20 74 61 62 |ed inter|rupt tab|
|00005320| 6c 65 2e 20 54 75 72 62 | 6f 20 50 61 73 63 61 6c |le. Turb|o Pascal|
|00005330| 20 28 73 6f 6d 65 77 68 | 61 74 20 6c 69 6b 65 20 | (somewh|at like |
|00005340| 43 29 20 68 61 73 20 61 | 0d 0a 73 70 65 63 69 61 |C) has a|..specia|
|00005350| 6c 20 6b 65 79 77 6f 72 | 64 20 49 6e 74 72 2c 20 |l keywor|d Intr, |
|00005360| 61 6e 64 20 61 20 70 72 | 65 64 65 66 69 6e 65 64 |and a pr|edefined|
|00005370| 20 76 61 72 69 61 62 6c | 65 20 72 65 67 69 73 74 | variabl|e regist|
|00005380| 65 72 73 20 28 69 6e 20 | 74 68 65 0d 0a 44 6f 73 |ers (in |the..Dos|
|00005390| 20 75 6e 69 74 29 20 74 | 6f 20 61 63 63 65 73 73 | unit) t|o access|
|000053a0| 20 74 68 65 73 65 20 69 | 6e 74 65 72 72 75 70 74 | these i|nterrupt|
|000053b0| 20 72 6f 75 74 69 6e 65 | 73 2e 20 4f 6e 65 20 77 | routine|s. One w|
|000053c0| 61 79 20 6f 66 20 6c 6f | 6f 6b 69 6e 67 20 61 74 |ay of lo|oking at|
|000053d0| 0d 0a 74 68 65 6d 20 69 | 73 20 61 73 20 54 75 72 |..them i|s as Tur|
|000053e0| 62 6f 20 50 61 73 63 61 | 6c 20 28 63 6f 6d 70 6c |bo Pasca|l (compl|
|000053f0| 69 63 61 74 65 64 20 6c | 6f 77 6c 65 76 65 6c 29 |icated l|owlevel)|
|00005400| 20 73 75 62 72 6f 75 74 | 69 6e 65 73 20 74 68 61 | subrout|ines tha|
|00005410| 74 20 61 72 65 0d 0a 61 | 6c 72 65 61 64 79 20 74 |t are..a|lready t|
|00005420| 68 65 72 65 20 72 65 61 | 64 79 20 66 6f 72 20 79 |here rea|dy for y|
|00005430| 6f 75 20 74 6f 20 63 61 | 6c 6c 2e 0d 0a 20 20 20 |ou to ca|ll... |
|00005440| 41 20 64 65 74 61 69 6c | 65 64 20 64 65 73 63 72 |A detail|ed descr|
|00005450| 69 70 74 69 6f 6e 20 6f | 66 20 69 6e 74 65 72 72 |iption o|f interr|
|00005460| 75 70 74 20 72 6f 75 74 | 69 6e 65 73 20 69 73 20 |upt rout|ines is |
|00005470| 77 61 79 20 62 65 79 6f | 6e 64 20 61 0d 0a 73 69 |way beyo|nd a..si|
|00005480| 6e 67 6c 65 20 6d 65 73 | 73 61 67 65 20 77 69 74 |ngle mes|sage wit|
|00005490| 68 20 6c 69 6d 69 74 65 | 64 20 73 70 61 63 65 2e |h limite|d space.|
|000054a0| 20 49 6e 73 74 65 61 64 | 2c 20 49 20 73 68 61 6c | Instead|, I shal|
|000054b0| 6c 20 67 69 76 65 20 61 | 20 73 69 6d 70 6c 65 0d |l give a| simple.|
|000054c0| 0a 65 78 61 6d 70 6c 65 | 2c 20 61 6e 64 20 67 6f |.example|, and go|
|000054d0| 6f 64 20 72 65 66 65 72 | 65 6e 63 65 73 20 74 6f |od refer|ences to|
|000054e0| 20 74 68 65 20 73 75 62 | 6a 65 63 74 2e 20 28 46 | the sub|ject. (F|
|000054f0| 6f 72 20 61 20 73 6f 6d | 65 77 68 61 74 20 6d 6f |or a som|ewhat mo|
|00005500| 72 65 0d 0a 63 6f 6d 70 | 72 65 68 65 6e 73 69 76 |re..comp|rehensiv|
|00005510| 65 20 64 65 73 63 72 69 | 70 74 69 6f 6e 20 6f 66 |e descri|ption of|
|00005520| 20 77 68 61 74 20 61 6e | 20 69 6e 74 65 72 72 75 | what an| interru|
|00005530| 70 74 20 69 73 2c 20 73 | 65 65 20 49 4e 54 45 52 |pt is, s|ee INTER|
|00005540| 52 55 50 2e 50 52 49 0d | 0a 69 6e 20 52 61 6c 66 |RUP.PRI.|.in Ralf|
|00005550| 20 42 72 6f 77 6e 27 73 | 20 66 74 70 3a 2f 2f 67 | Brown's| ftp://g|
|00005560| 61 72 62 6f 2e 75 77 61 | 73 61 2e 66 69 2f 70 63 |arbo.uwa|sa.fi/pc|
|00005570| 2f 70 72 6f 67 72 61 6d | 6d 69 6e 67 2f 69 6e 74 |/program|ming/int|
|00005580| 65 72 35 31 62 2e 7a 69 | 70 2e 29 0d 0a 20 20 20 |er51b.zi|p.).. |
|00005590| 20 20 3a 0d 0a 20 20 20 | 20 20 75 73 65 73 20 44 | :.. | uses D|
|000055a0| 6f 73 3b 0d 0a 20 20 20 | 20 20 28 2a 20 54 68 69 |os;.. | (* Thi|
|000055b0| 73 20 70 72 6f 63 65 64 | 75 72 65 20 74 75 72 6e |s proced|ure turn|
|000055c0| 73 20 6f 6e 20 74 68 65 | 20 62 6f 72 64 65 72 20 |s on the| border |
|000055d0| 63 6f 6c 6f 72 20 66 6f | 72 20 43 47 41 20 61 6e |color fo|r CGA an|
|000055e0| 64 20 56 47 41 20 2a 29 | 0d 0a 20 20 20 20 20 70 |d VGA *)|.. p|
|000055f0| 72 6f 63 65 64 75 72 65 | 20 42 4f 52 44 45 52 20 |rocedure| BORDER |
|00005600| 28 63 6f 6c 6f 72 20 3a | 20 62 79 74 65 29 3b 0d |(color :| byte);.|
|00005610| 0a 20 20 20 20 20 76 61 | 72 20 72 65 67 73 20 3a |. va|r regs :|
|00005620| 20 72 65 67 69 73 74 65 | 72 73 3b 20 20 28 2a 20 | registe|rs; (* |
|00005630| 50 72 65 64 65 63 6c 61 | 72 65 64 20 69 6e 20 74 |Predecla|red in t|
|00005640| 68 65 20 44 6f 73 20 75 | 6e 69 74 20 2a 29 0d 0a |he Dos u|nit *)..|
|00005650| 20 20 20 20 20 62 65 67 | 69 6e 0d 0a 20 20 20 20 | beg|in.. |
|00005660| 20 20 20 46 69 6c 6c 43 | 68 61 72 20 28 72 65 67 | FillC|har (reg|
|00005670| 73 2c 20 53 69 7a 65 4f | 66 28 72 65 67 73 29 2c |s, SizeO|f(regs),|
|00005680| 20 30 29 3b 20 20 28 2a | 20 41 20 70 72 65 63 61 | 0); (*| A preca|
|00005690| 75 74 69 6f 6e 20 2a 29 | 0d 0a 20 20 20 20 20 20 |ution *)|.. |
|000056a0| 20 72 65 67 73 2e 61 78 | 20 3a 3d 20 24 30 42 30 | regs.ax| := $0B0|
|000056b0| 30 3b 20 20 20 20 28 2a | 20 53 65 72 76 69 63 65 |0; (*| Service|
|000056c0| 20 6e 75 6d 62 65 72 20 | 2a 29 0d 0a 20 20 20 20 | number |*).. |
|000056d0| 20 20 20 72 65 67 73 2e | 62 68 20 3a 3d 20 24 30 | regs.|bh := $0|
|000056e0| 30 3b 20 20 20 20 20 20 | 28 2a 20 53 75 62 73 65 |0; |(* Subse|
|000056f0| 72 76 69 63 65 20 6e 75 | 6d 62 65 72 20 2a 29 0d |rvice nu|mber *).|
|00005700| 0a 20 20 20 20 20 20 20 | 72 65 67 73 2e 62 6c 20 |. |regs.bl |
|00005710| 3a 3d 20 63 6f 6c 6f 72 | 3b 0d 0a 20 20 20 20 20 |:= color|;.. |
|00005720| 20 20 49 6e 74 72 20 28 | 24 31 30 2c 20 72 65 67 | Intr (|$10, reg|
|00005730| 73 29 3b 20 20 20 20 28 | 2a 20 52 4f 4d 20 42 49 |s); (|* ROM BI|
|00005740| 4f 53 20 76 69 64 65 6f | 20 64 72 69 76 65 72 20 |OS video| driver |
|00005750| 69 6e 74 65 72 72 75 70 | 74 20 2a 29 0d 0a 20 20 |interrup|t *).. |
|00005760| 20 20 20 65 6e 64 3b 20 | 20 28 2a 20 62 6f 72 64 | end; | (* bord|
|00005770| 65 72 20 2a 29 0d 0a 20 | 20 20 49 66 20 79 6f 75 |er *).. | If you|
|00005780| 20 61 72 65 20 6e 65 77 | 20 74 68 65 20 73 75 62 | are new| the sub|
|00005790| 6a 65 63 74 20 61 6e 64 | 20 2f 20 6f 72 20 77 61 |ject and| / or wa|
|000057a0| 6e 74 20 69 64 65 61 73 | 20 6f 6e 20 74 68 65 20 |nt ideas| on the |
|000057b0| 6d 6f 73 74 20 75 73 65 | 66 75 6c 0d 0a 69 6e 74 |most use|ful..int|
|000057c0| 65 72 72 75 70 74 73 20 | 69 6e 20 54 75 72 62 6f |errupts |in Turbo|
|000057d0| 20 50 61 73 63 61 6c 20 | 70 72 6f 67 72 61 6d 6d | Pascal |programm|
|000057e0| 69 6e 67 2c 20 42 65 6e | 20 45 7a 7a 65 6c 20 28 |ing, Ben| Ezzel (|
|000057f0| 31 39 38 39 29 2c 0d 0a | 50 72 6f 67 72 61 6d 6d |1989),..|Programm|
|00005800| 69 6e 67 20 74 68 65 20 | 49 42 4d 20 55 73 65 72 |ing the |IBM User|
|00005810| 20 49 6e 74 65 72 66 61 | 63 65 20 55 73 69 6e 67 | Interfa|ce Using|
|00005820| 20 54 75 72 62 6f 20 50 | 61 73 63 61 6c 2c 20 69 | Turbo P|ascal, i|
|00005830| 73 20 64 65 66 69 6e 69 | 74 65 6c 79 0d 0a 74 68 |s defini|tely..th|
|00005840| 65 20 62 65 73 74 20 72 | 65 66 65 72 65 6e 63 65 |e best r|eference|
|00005850| 20 74 6f 20 6c 6f 6f 6b | 20 61 74 2e 20 54 68 65 | to look| at. The|
|00005860| 72 65 20 61 72 65 20 61 | 6c 73 6f 20 6d 61 6e 79 |re are a|lso many|
|00005870| 20 6f 74 68 65 72 20 67 | 6f 6f 64 0d 0a 72 65 66 | other g|ood..ref|
|00005880| 65 72 65 6e 63 65 73 20 | 66 6f 72 20 61 20 6e 6f |erences |for a no|
|00005890| 76 69 63 65 20 69 6e 74 | 65 72 72 75 70 74 20 75 |vice int|errupt u|
|000058a0| 73 65 72 2c 20 73 75 63 | 68 20 61 73 20 4a 61 6d |ser, suc|h as Jam|
|000058b0| 73 61 20 26 20 4e 61 6d | 65 72 6f 66 66 2c 0d 0a |sa & Nam|eroff,..|
|000058c0| 54 75 72 62 6f 20 50 61 | 73 63 61 6c 20 50 72 6f |Turbo Pa|scal Pro|
|000058d0| 67 72 61 6d 6d 65 72 27 | 73 20 4c 69 62 72 61 72 |grammer'|s Librar|
|000058e0| 79 2e 0d 0a 20 20 20 49 | 66 20 79 6f 75 20 61 72 |y... I|f you ar|
|000058f0| 65 20 61 20 6d 6f 72 65 | 20 61 64 76 61 6e 63 65 |e a more| advance|
|00005900| 64 20 69 6e 74 65 72 72 | 75 70 74 20 75 73 65 72 |d interr|upt user|
|00005910| 20 79 6f 75 27 6c 6c 20 | 66 69 6e 64 20 74 68 65 | you'll |find the|
|00005920| 0d 0a 66 6f 6c 6c 6f 77 | 69 6e 67 20 72 65 66 65 |..follow|ing refe|
|00005930| 72 65 6e 63 65 73 20 76 | 65 72 79 20 75 73 65 66 |rences v|ery usef|
|00005940| 75 6c 2e 20 4d 69 63 68 | 61 65 6c 20 54 69 73 63 |ul. Mich|ael Tisc|
|00005950| 68 65 72 20 28 31 39 39 | 30 29 2c 20 54 75 72 62 |her (199|0), Turb|
|00005960| 6f 0d 0a 50 61 73 63 61 | 6c 20 49 6e 74 65 72 6e |o..Pasca|l Intern|
|00005970| 61 6c 73 3b 20 4e 6f 72 | 74 6f 6e 20 26 20 57 69 |als; Nor|ton & Wi|
|00005980| 6c 74 6f 6e 20 28 31 39 | 38 38 29 2c 20 54 68 65 |lton (19|88), The|
|00005990| 20 4e 65 77 20 50 65 74 | 65 72 20 4e 6f 72 74 6f | New Pet|er Norto|
|000059a0| 6e 0d 0a 50 72 6f 67 72 | 61 6d 6d 65 72 27 73 20 |n..Progr|ammer's |
|000059b0| 67 75 69 64 65 20 74 6f | 20 74 68 65 20 49 42 4d |guide to| the IBM|
|000059c0| 20 50 43 20 26 20 50 53 | 2f 32 3b 20 52 61 79 20 | PC & PS|/2; Ray |
|000059d0| 44 75 6e 63 61 6e 20 28 | 31 39 38 38 29 2c 20 41 |Duncan (|1988), A|
|000059e0| 64 76 61 6e 63 65 64 0d | 0a 4d 53 2d 44 4f 53 20 |dvanced.|.MS-DOS |
|000059f0| 50 72 6f 67 72 61 6d 6d | 69 6e 67 3b 20 54 65 72 |Programm|ing; Ter|
|00005a00| 72 79 20 44 65 74 74 6d | 61 6e 6e 20 28 31 39 38 |ry Dettm|ann (198|
|00005a10| 39 29 2c 20 44 6f 73 20 | 50 72 6f 67 72 61 6d 6d |9), Dos |Programm|
|00005a20| 65 72 27 73 0d 0a 52 65 | 66 65 72 65 6e 63 65 2c |er's..Re|ference,|
|00005a30| 20 53 65 63 6f 6e 64 20 | 65 64 69 74 69 6f 6e 2c | Second |edition,|
|00005a40| 20 51 75 65 2e 20 46 75 | 72 74 68 65 72 6d 6f 72 | Que. Fu|rthermor|
|00005a50| 65 2c 20 74 68 65 72 65 | 20 69 73 20 61 6e 20 69 |e, there| is an i|
|00005a60| 6d 70 72 65 73 73 69 76 | 65 0d 0a 6c 69 73 74 20 |mpressiv|e..list |
|00005a70| 6f 66 20 69 6e 74 65 72 | 72 75 70 74 73 20 63 6f |of inter|rupts co|
|00005a80| 6c 6c 65 63 74 65 64 20 | 61 6e 64 20 6d 61 69 6e |llected |and main|
|00005a90| 74 61 69 6e 65 64 20 62 | 79 20 52 61 6c 66 20 42 |tained b|y Ralf B|
|00005aa0| 72 6f 77 6e 2e 20 48 69 | 73 0d 0a 65 78 74 65 6e |rown. Hi|s..exten|
|00005ab0| 73 69 76 65 20 66 74 70 | 3a 2f 2f 67 61 72 62 6f |sive ftp|://garbo|
|00005ac0| 2e 75 77 61 73 61 2e 66 | 69 3a 2f 70 63 2f 70 72 |.uwasa.f|i:/pc/pr|
|00005ad0| 6f 67 72 61 6d 6d 69 6e | 67 2f 69 6e 74 65 72 35 |ogrammin|g/inter5|
|00005ae0| 31 61 2e 7a 69 70 2c 0d | 0a 69 6e 74 65 72 35 31 |1a.zip,.|.inter51|
|00005af0| 62 2e 7a 69 70 2c 20 69 | 6e 74 65 72 35 31 63 2e |b.zip, i|nter51c.|
|00005b00| 7a 69 70 2c 20 69 6e 74 | 65 72 35 31 64 2e 7a 69 |zip, int|er51d.zi|
|00005b10| 70 2c 20 69 6e 74 65 72 | 35 31 65 2e 7a 69 70 20 |p, inter|51e.zip |
|00005b20| 61 6e 64 0d 0a 69 6e 74 | 65 72 35 31 66 2e 7a 69 |and..int|er51f.zi|
|00005b30| 70 20 28 6f 72 20 77 68 | 61 74 65 76 65 72 20 61 |p (or wh|atever a|
|00005b40| 72 65 20 74 68 65 20 63 | 75 72 72 65 6e 74 20 76 |re the c|urrent v|
|00005b50| 65 72 73 69 6f 6e 73 20 | 77 68 65 6e 20 79 6f 75 |ersions |when you|
|00005b60| 20 72 65 61 64 0d 0a 74 | 68 69 73 29 20 69 73 20 | read..t|his) is |
|00005b70| 61 76 61 69 6c 61 62 6c | 65 20 62 79 20 61 6e 6f |availabl|e by ano|
|00005b80| 6e 79 6d 6f 75 73 20 46 | 54 50 20 6f 72 20 6d 61 |nymous F|TP or ma|
|00005b90| 69 6c 20 73 65 72 76 65 | 72 20 66 72 6f 6d 0d 0a |il serve|r from..|
|00005ba0| 67 61 72 62 6f 2e 75 77 | 61 73 61 2e 66 69 2e 20 |garbo.uw|asa.fi. |
|00005bb0| 41 20 64 65 66 69 6e 69 | 74 65 20 6d 75 73 74 20 |A defini|te must |
|00005bc0| 66 6f 72 20 61 6e 20 61 | 64 76 61 6e 63 65 64 20 |for an a|dvanced |
|00005bd0| 75 73 65 72 2e 20 41 6c | 73 6f 20 73 65 65 20 74 |user. Al|so see t|
|00005be0| 68 65 0d 0a 72 65 66 65 | 72 65 6e 63 65 20 74 6f |he..refe|rence to|
|00005bf0| 20 42 72 6f 77 6e 27 73 | 20 61 6e 64 20 4b 79 6c | Brown's| and Kyl|
|00005c00| 65 27 73 20 62 6f 6f 6b | 20 69 6e 20 74 68 65 20 |e's book| in the |
|00005c10| 62 69 62 6c 69 6f 67 72 | 61 70 68 79 20 61 74 20 |bibliogr|aphy at |
|00005c20| 74 68 65 20 65 6e 64 0d | 0a 6f 66 20 74 68 69 73 |the end.|.of this|
|00005c30| 20 46 41 51 2e 20 54 68 | 65 72 65 20 69 73 20 61 | FAQ. Th|ere is a|
|00005c40| 6c 73 6f 20 61 20 67 6f | 6f 64 20 68 79 70 65 72 |lso a go|od hyper|
|00005c50| 74 65 78 74 20 61 64 76 | 61 6e 63 65 64 20 70 72 |text adv|anced pr|
|00005c60| 6f 67 72 61 6d 6d 65 72 | 27 73 0d 0a 71 75 69 63 |ogrammer|'s..quic|
|00005c70| 6b 20 72 65 66 65 72 65 | 6e 63 65 20 66 74 70 3a |k refere|nce ftp:|
|00005c80| 2f 2f 67 61 72 62 6f 2e | 75 77 61 73 61 2e 66 69 |//garbo.|uwasa.fi|
|00005c90| 2f 70 63 2f 70 72 6f 67 | 72 61 6d 6d 69 6e 67 2f |/pc/prog|ramming/|
|00005ca0| 68 65 6c 70 70 63 32 31 | 2e 7a 69 70 0d 0a 77 68 |helppc21|.zip..wh|
|00005cb0| 69 63 68 20 79 6f 75 20 | 6d 69 67 68 74 20 66 69 |ich you |might fi|
|00005cc0| 6e 64 20 75 73 65 66 75 | 6c 2e 0d 0a 20 20 20 4f |nd usefu|l... O|
|00005cd0| 6e 65 20 6d 6f 72 65 20 | 70 6f 69 6e 74 20 66 6f |ne more |point fo|
|00005ce0| 72 20 54 75 72 62 6f 20 | 50 61 73 63 61 6c 20 75 |r Turbo |Pascal u|
|00005cf0| 73 65 72 73 2e 20 57 68 | 65 6e 20 42 6f 72 6c 61 |sers. Wh|en Borla|
|00005d00| 6e 64 20 75 70 67 72 61 | 64 65 64 20 66 72 6f 6d |nd upgra|ded from|
|00005d10| 0d 0a 76 65 72 73 69 6f | 6e 20 33 20 74 6f 20 34 |..versio|n 3 to 4|
|00005d20| 2e 30 20 71 75 69 74 65 | 20 61 20 6e 75 6d 62 65 |.0 quite| a numbe|
|00005d30| 72 20 6f 66 20 74 61 73 | 6b 73 20 74 68 61 74 20 |r of tas|ks that |
|00005d40| 6e 65 65 64 65 64 20 74 | 6f 20 62 65 20 64 6f 6e |needed t|o be don|
|00005d50| 65 0d 0a 75 73 69 6e 67 | 20 69 6e 74 65 72 72 75 |e..using| interru|
|00005d60| 70 74 73 20 28 73 75 63 | 68 20 61 73 20 67 65 74 |pts (suc|h as get|
|00005d70| 74 69 6e 67 20 74 68 65 | 20 63 75 72 72 65 6e 74 |ting the| current|
|00005d80| 20 74 69 6d 65 29 20 77 | 65 72 65 20 69 6e 63 6c | time) w|ere incl|
|00005d90| 75 64 65 64 20 61 73 0d | 0a 6e 6f 72 6d 61 6c 20 |uded as.|.normal |
|00005da0| 54 50 20 72 6f 75 74 69 | 6e 65 73 2e 20 54 68 69 |TP routi|nes. Thi|
|00005db0| 73 20 6d 65 61 6e 73 20 | 74 68 61 74 20 77 68 69 |s means |that whi|
|00005dc0| 6c 65 20 64 65 66 69 6e | 69 74 65 6c 79 20 75 73 |le defin|itely us|
|00005dd0| 65 66 75 6c 2c 0d 0a 69 | 6e 74 65 72 72 75 70 74 |eful,..i|nterrupt|
|00005de0| 20 70 72 6f 67 72 61 6d | 6d 69 6e 67 20 69 73 20 | program|ming is |
|00005df0| 6e 6f 77 20 72 65 6c 65 | 76 61 6e 74 20 6f 6e 6c |now rele|vant onl|
|00005e00| 79 20 69 6e 20 61 64 76 | 61 6e 63 65 64 20 54 75 |y in adv|anced Tu|
|00005e10| 72 62 6f 20 50 61 73 63 | 61 6c 0d 0a 70 72 6f 67 |rbo Pasc|al..prog|
|00005e20| 72 61 6d 6d 69 6e 67 2e | 20 54 75 72 62 6f 20 50 |ramming.| Turbo P|
|00005e30| 61 73 63 61 6c 20 35 2e | 30 20 69 6e 74 72 6f 64 |ascal 5.|0 introd|
|00005e40| 75 63 65 64 20 61 20 66 | 65 77 20 6d 6f 72 65 2c |uced a f|ew more,|
|00005e50| 20 62 75 74 20 79 6f 75 | 20 63 61 6e 0d 0a 66 69 | but you| can..fi|
|00005e60| 6e 64 20 73 6f 6d 65 20 | 6f 66 20 74 68 65 20 6d |nd some |of the m|
|00005e70| 69 73 73 69 6e 67 20 54 | 50 20 34 2e 30 20 72 6f |issing T|P 4.0 ro|
|00005e80| 75 74 69 6e 65 73 20 69 | 6e 20 74 68 65 20 63 6f |utines i|n the co|
|00005e90| 6d 70 61 74 69 62 69 6c | 69 74 79 20 75 6e 69 74 |mpatibil|ity unit|
|00005ea0| 0d 0a 69 6e 20 6d 79 20 | 66 74 70 3a 2f 2f 67 61 |..in my |ftp://ga|
|00005eb0| 72 62 6f 2e 75 77 61 73 | 61 2e 66 69 2f 70 63 2f |rbo.uwas|a.fi/pc/|
|00005ec0| 74 73 2f 74 73 70 61 33 | 35 34 30 2e 7a 69 70 20 |ts/tspa3|540.zip |
|00005ed0| 54 50 20 75 6e 69 74 73 | 20 63 6f 6c 6c 65 63 74 |TP units| collect|
|00005ee0| 69 6f 6e 2e 0d 0a 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |ion...--|--------|
|00005ef0| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00005f00| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00005f10| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00005f20| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 0d 0a 0d 0a 46 72 |--------|--....Fr|
|00005f30| 6f 6d 20 74 73 40 75 77 | 61 73 61 2e 66 69 20 53 |om ts@uw|asa.fi S|
|00005f40| 61 74 20 53 65 70 20 37 | 20 30 30 3a 30 30 3a 30 |at Sep 7| 00:00:0|
|00005f50| 38 20 31 39 39 36 0d 0a | 53 75 62 6a 65 63 74 3a |8 1996..|Subject:|
|00005f60| 20 42 6f 72 6c 61 6e 64 | 27 73 20 54 75 72 62 6f | Borland|'s Turbo|
|00005f70| 20 50 61 73 63 61 6c 20 | 75 70 67 72 61 64 65 73 | Pascal |upgrades|
|00005f80| 0d 0a 0d 0a 38 2e 20 2a | 2a 2a 2a 2a 0d 0a 20 51 |....8. *|****.. Q|
|00005f90| 3a 20 53 68 6f 75 6c 64 | 20 49 20 75 70 67 72 61 |: Should| I upgra|
|00005fa0| 64 65 20 6d 79 20 54 75 | 72 62 6f 20 50 61 73 63 |de my Tu|rbo Pasc|
|00005fb0| 61 6c 20 76 65 72 73 69 | 6f 6e 3f 0d 0a 0d 0a 20 |al versi|on?.... |
|00005fc0| 41 31 3a 20 44 65 70 65 | 6e 64 73 20 6f 6e 20 77 |A1: Depe|nds on w|
|00005fd0| 68 61 74 20 76 65 72 73 | 69 6f 6e 20 79 6f 75 20 |hat vers|ion you |
|00005fe0| 61 72 65 20 75 73 69 6e | 67 2c 20 61 6e 64 20 66 |are usin|g, and f|
|00005ff0| 6f 72 20 77 68 61 74 20 | 70 75 72 70 6f 73 65 73 |or what |purposes|
|00006000| 2e 0d 0a 49 66 20 79 6f | 75 20 61 72 65 20 75 73 |...If yo|u are us|
|00006010| 69 6e 67 20 76 65 72 73 | 69 6f 6e 20 33 2c 20 74 |ing vers|ion 3, t|
|00006020| 68 65 20 61 6e 73 77 65 | 72 20 69 73 20 61 20 64 |he answe|r is a d|
|00006030| 65 66 69 6e 69 74 65 20 | 79 65 73 2e 20 54 68 65 |efinite |yes. The|
|00006040| 72 65 20 61 72 65 0d 0a | 73 6f 20 6d 61 6e 79 20 |re are..|so many |
|00006050| 75 73 65 66 75 6c 20 61 | 64 64 69 74 69 6f 6e 73 |useful a|dditions|
|00006060| 20 69 6e 20 74 68 65 20 | 6c 61 74 65 72 20 76 65 | in the |later ve|
|00006070| 72 73 69 6f 6e 2c 20 69 | 6e 63 6c 75 64 69 6e 67 |rsion, i|ncluding|
|00006080| 20 74 68 65 20 63 6f 6e | 63 65 70 74 0d 0a 6f 66 | the con|cept..of|
|00006090| 20 75 6e 69 74 73 2c 20 | 61 6e 64 20 61 20 67 72 | units, |and a gr|
|000060a0| 65 61 74 20 6e 75 6d 62 | 65 72 20 6f 66 20 6e 65 |eat numb|er of ne|
|000060b0| 77 20 75 73 65 66 75 6c | 20 6b 65 79 77 6f 72 64 |w useful| keyword|
|000060c0| 73 2e 20 54 68 65 20 6f | 6e 6c 79 20 72 65 61 73 |s. The o|nly reas|
|000060d0| 6f 6e 0d 0a 74 68 61 74 | 20 49 20 63 61 6e 20 74 |on..that| I can t|
|000060e0| 68 69 6e 6b 20 6f 66 20 | 66 6f 72 20 75 73 69 6e |hink of |for usin|
|000060f0| 67 20 54 50 20 33 20 69 | 73 20 74 68 61 74 20 69 |g TP 3 i|s that i|
|00006100| 74 20 6d 61 6b 65 73 20 | 2e 63 6f 6d 20 66 69 6c |t makes |.com fil|
|00006110| 65 73 0d 0a 28 77 68 69 | 63 68 20 72 65 73 69 64 |es..(whi|ch resid|
|00006120| 65 20 69 6e 20 6f 6e 65 | 20 6d 65 6d 6f 72 79 20 |e in one| memory |
|00006130| 73 65 67 6d 65 6e 74 20 | 6f 6e 6c 79 29 20 69 6e |segment |only) in|
|00006140| 73 74 65 61 64 20 6f 66 | 20 2e 65 78 65 20 66 69 |stead of| .exe fi|
|00006150| 6c 65 73 2e 20 41 73 0d | 0a 61 6e 20 61 63 63 6f |les. As.|.an acco|
|00006160| 75 6e 74 69 6e 67 20 61 | 6e 64 20 62 75 73 69 6e |unting a|nd busin|
|00006170| 65 73 73 20 66 69 6e 61 | 6e 63 65 20 74 65 61 63 |ess fina|nce teac|
|00006180| 68 65 72 20 61 6e 64 20 | 72 65 73 65 61 72 63 68 |her and |research|
|00006190| 65 72 20 49 27 76 65 20 | 62 65 65 6e 0d 0a 73 6f |er I've |been..so|
|000061a0| 6d 65 77 68 61 74 20 73 | 75 72 70 72 69 73 65 64 |mewhat s|urprised|
|000061b0| 20 74 6f 20 73 65 65 20 | 70 6f 73 74 69 6e 67 73 | to see |postings|
|000061c0| 20 73 74 61 74 69 6e 67 | 20 74 68 61 74 20 73 6f | stating| that so|
|000061d0| 6d 65 20 75 73 65 72 73 | 20 73 74 69 6c 6c 0d 0a |me users| still..|
|000061e0| 68 61 76 65 20 74 6f 20 | 70 72 6f 67 72 61 6d 20 |have to |program |
|000061f0| 69 6e 20 54 50 20 33 2e | 30 20 62 65 63 61 75 73 |in TP 3.|0 becaus|
|00006200| 65 20 74 68 65 69 72 20 | 65 6d 70 6c 6f 79 65 72 |e their |employer|
|00006210| 20 64 6f 65 73 6e 27 74 | 20 77 61 6e 74 20 74 6f | doesn't| want to|
|00006220| 0d 0a 74 61 6b 65 20 74 | 68 65 20 63 6f 73 74 20 |..take t|he cost |
|00006230| 6f 66 20 75 70 67 72 61 | 64 69 6e 67 2e 20 49 20 |of upgra|ding. I |
|00006240| 66 69 6e 64 20 74 68 69 | 73 20 63 6f 73 74 20 61 |find thi|s cost a|
|00006250| 72 67 75 6d 65 6e 74 20 | 72 69 64 69 63 75 6c 6f |rgument |ridiculo|
|00006260| 75 73 2e 0d 0a 48 6f 77 | 20 61 62 6f 75 74 20 73 |us...How| about s|
|00006270| 6f 6d 65 20 63 6f 6e 73 | 69 64 65 72 61 74 69 6f |ome cons|ideratio|
|00006280| 6e 20 66 6f 72 20 63 6f | 73 74 20 65 66 66 65 63 |n for co|st effec|
|00006290| 74 69 76 65 6e 65 73 73 | 20 61 6e 64 0d 0a 70 72 |tiveness| and..pr|
|000062a0| 6f 64 75 63 74 69 76 69 | 74 79 3f 0d 0a 20 20 20 |oductivi|ty?.. |
|000062b0| 49 66 20 79 6f 75 20 61 | 72 65 20 63 75 72 72 65 |If you a|re curre|
|000062c0| 6e 74 6c 79 20 75 73 69 | 6e 67 20 76 65 72 73 69 |ntly usi|ng versi|
|000062d0| 6f 6e 20 34 2e 30 2c 20 | 74 68 65 20 6d 6f 73 74 |on 4.0, |the most|
|000062e0| 20 69 6d 70 6f 72 74 61 | 6e 74 20 70 6f 69 6e 74 | importa|nt point|
|000062f0| 0d 0a 69 6e 20 63 6f 6e | 73 69 64 65 72 69 6e 67 |..in con|sidering|
|00006300| 20 75 70 67 72 61 64 69 | 6e 67 20 69 73 20 74 68 | upgradi|ng is th|
|00006310| 65 20 69 6e 74 65 67 72 | 61 74 65 64 20 64 65 62 |e integr|ated deb|
|00006320| 75 67 67 65 72 20 69 6e | 20 74 68 65 20 6c 61 74 |ugger in| the lat|
|00006330| 65 72 0d 0a 76 65 72 73 | 69 6f 6e 73 2e 20 49 74 |er..vers|ions. It|
|00006340| 20 69 73 20 72 65 61 6c | 6c 79 20 67 6f 6f 64 2c | is real|ly good,|
|00006350| 20 61 6e 64 20 75 73 65 | 66 75 6c 20 69 66 20 79 | and use|ful if y|
|00006360| 6f 75 20 77 72 69 74 65 | 20 6d 75 63 68 20 63 6f |ou write| much co|
|00006370| 64 65 2e 0d 0a 54 68 65 | 72 65 20 61 72 65 20 73 |de...The|re are s|
|00006380| 6f 6d 65 20 6d 69 6e 6f | 72 20 63 6f 6e 73 69 64 |ome mino|r consid|
|00006390| 65 72 61 74 69 6f 6e 73 | 2c 20 61 73 20 77 65 6c |erations|, as wel|
|000063a0| 6c 2e 20 4c 61 74 65 72 | 20 76 65 72 73 69 6f 6e |l. Later| version|
|000063b0| 73 20 63 6f 6e 74 61 69 | 6e 0d 0a 73 6f 6d 65 20 |s contai|n..some |
|000063c0| 75 73 65 66 75 6c 20 72 | 6f 75 74 69 6e 65 73 20 |useful r|outines |
|000063d0| 77 68 69 63 68 20 34 2e | 30 20 64 6f 65 73 20 6e |which 4.|0 does n|
|000063e0| 6f 74 2e 20 49 20 68 61 | 76 65 20 70 72 6f 67 72 |ot. I ha|ve progr|
|000063f0| 61 6d 6d 65 64 20 6d 61 | 6e 79 20 6f 66 0d 0a 74 |ammed ma|ny of..t|
+--------+-------------------------+-------------------------+--------+--------+
Only 25.0 KB of data is shown above.