Home » CEEFAX disks » telesoftware15.adl » 06-05-89/PCBNCH_DMO
06-05-89/PCBNCH_DMO
This website contains an archive of files for the Acorn Electron, BBC Micro, Acorn Archimedes, Commodore 16 and Commodore 64 computers, which Dominic Ford has rescued from his private collection of floppy disks and cassettes.
Some of these files were originally commercial releases in the 1980s and 1990s, but they are now widely available online. I assume that copyright over them is no longer being asserted. If you own the copyright and would like files to be removed, please contact me.
Tape/disk: | Home » CEEFAX disks » telesoftware15.adl |
Filename: | 06-05-89/PCBNCH_DMO |
Read OK: | ✔ |
File size: | 209F bytes |
Load address: | 0000 |
Exec address: | FFFFFFFF |
File contents
# ********Welcome to the Prospero PC Pascal demonstration********| This guided tour will attempt to illustrate some of the main| features of this powerful yet easy to use developement system| *****************Press any key to continue*********************@ Each window of information in this tour can be removed by | pressing any key. This will cause the demonstration to continue.| If you wish to halt the demonstration, and use the Workbench | 'for real', then enter Alt-Q when any window of info appears.@ The Prospero Pascal Workbench (this program) is a complete| environment for creating, editing, compiling, linking, running| and debugging Pascal programs.@ Unlike many "Shell" type programs, the Prospero Workbench has| an editor as an integral part of the Workbench itself. This saves| the overhead of having to load the editor program from disk and| load your text into the editor every time you make a change.@ With Prospero's Workbench that delay disappears. Your program is| compiled directly from the editor's buffer, and when compilation| is finished, you can continue editing immediately.|@ All the options in the Workbench can be selected from the drop| down menus. Each menu can be pulled down by pressing the Alt key| together with one of the highlighted letters. So, for instance| pressing Alt-F makes the File menu drop down....## �033 # The option required can be selected first by using cursor up and| down keys to highlight it, and then pressing Return to select it.| So, if you want to delete a file, first highlight the option| 'Delete file'## �080�080 # ......and then press Return to select it....## & # Now a path/filename window appears. At this point you could type| the path and name of the file to be deleted. If, however| you are not certain of the exact name of the file, you can dis-| play all the files in this directory by pressing Return## & # You could now select a file to be deleted, by highlighting it | using cursor control keys and then pressing Return. But, say | that at this stage you have decided not to delete a file. Well,| nothing is easier - simply press Escape to abandon the operation## �001 # Now let's quickly run through the main features of the editor...## �033�072&SINEDEMO.PAS& # Editing takes place in a window like this one. All the normal| functions you'd expect to find in a text editor are here - for| example the cursor can be moved using either the cursor keys or| WordStar style control key combinations.## !D!D!D!D!D!D!D!D!D !S!S!S!S!S!S!S!S!S # You can also (of course) move a word or page at a time, and| a variety of other cursor movement commands. | | ## !F!F!F!F!F!F!F!F !A!A!A!A!A!A!A!A !C!C!C!C!R!R!R!R!QC # There are a useful set of fast search and replace functions,| with various options ...## !QF cga& # Specifying a global search will cause the search to start| from the top of the file.|## DDDDDDDG& !L!L #We can also search and replace ... ||## !QA �083�083�083a& A& # Specifying Some will ensure that we are asked before each| replacement is performed ...||## GDDDDDDDS& �023& �023& �023& �001 # Alternatively, we can replace all occurences - this should| be used with care !||## !QA&& DDDDA& # So far, everything you have seen is no more than most good| text editing programs would provide. However, the Workbench| has various extra features to make it particularly suited| for editing programs. First let's quit this file## �033�072�072�072&N # For a start, you can edit up to four or eight files at| once, and copying pieces of text between them is simple.| Lets start with a new empty file ... |## �033&FILE1&& # Now we can start typing in our program. |||## Program newdemo;!M !M # We can re-use some of the code of the other program, so| we'll re-open that and copy some text across ...||## �018SINEDEMO& # To copy a block, first we move to the start of it, and| select Mark Start ...||## !X!X!X!X!X!X!X!X!X!X!X!X!X!X!X!X!X!X�048& # ... then we move to the end and select Mark End.|||## !C!E�048�080& # The selected block is now displayed in inverse video.| Having selected the block, we use Copy to make a copy of it| and Alt-H ( Unmark block ) to hide it## �048�080& �035 # A copy of the marked text is now stored in an internal buffer| called the Clipboard. The contents of this buffer will remain| unchanged until the next Copy or Cut command (Cut is like Copy,| but it deletes the selected text after copying it).@ We can paste this text from the clipboard anywhere we like,| including into a different file. Let's go back to edit window 1| (by entering Alt-1) and copy it into our new file.|## �120�048�080�080& # Other useful shortcuts can be set up, by configuring the| function keys. Each function key can be configured to expand| to a different string of up to 32 characters, so for example| you could have F1 = BEGIN, F2 = END, and so on.@ You can also type control and Alt characters into these | strings, and make a key expand into a sequence such as| ^QS^G^G^G^G^X, which causes the first four characters of a| line to be deleted, and then moves the cursor to the next line.## �024�080�080�080& �083�083�083�083�083�083�083�083�083 �083�083�083�083�083�083�083�083 !QS!G!G!G!G!X # So, having set up F1 to mean delete first four characters of | line and move to next line, lets see its affect on the first| few lines of this file...## &�119�059�059�059�059 # Anyway, enough about the Editor, and on to the compiler.| The compiler is invoked from the Workbench - you don't| even have to save your program to disk before compiling,| as the compiler will read it straight from the Editor's memory.@ The compiler options are controlled by a form in the Workbench,| and remain in force until next altered. Like all the Workbench| options, they can be saved to disk to be automatically loaded| next time the Workbench is run.## �022 # Options which are selected appear with a highlighted '+' next| to them. In order to alter an option's current setting, the| option letter can be entered (this toggles its current state)@ The S option is particularly interesting - if this is selected,| all Prospero extensions to Pascal are disabled, so you can be| sure that your program ought to compile on any Pascal compiler| which implements Standard Pascal.## S # We don't actually supply a copy of the compiler or linker| with this demonstration, but we can still show you how simple| they are to use from the Workbench. One menu selection (or a| single key combination) will compile your current window ... ## &�121 # Now, we can compile this file....## �046& # Once compilation has been successful, another menu selection| or key combination will link your program (these two steps can| be combined by selecting Compile and Link) ... ## �038& # Now you can run the program, again with a single menu| selection or key combination ...||## �019& # Finally, if for some reason, you program does not work -| or perhaps it does work but you want to know why - then you| can use the symbolic debugger PROBE to analyse the compiled| program at the source level.## �019�072&SINEDEMO& # One final point - Prospero PC Pascal comes with a | library allowing Pascal programs to make use of 80x87| numeric coprocessors.|@ To make use of these coprocessors, all that is required is to| replace the normal base library supplied with Prospero PC | Pascal with the one designed to use 80x87 coprocessors - no| source changes are necessary, nor even re-compilation.@ To illustrate how much difference this can make, compare the| speed of this program (linked without the coprocessor) ... ||## �019�080& # ... with this one (identical source, but linked with a| different library). Note - if your PC does not have an| 80x87 coprocessor fitted, the machine may well crash!|## �019�080&SINDEMO2& �017�017N # That concludes the demonstration.| | You can now try out the Prospero Workbench for yourself.| To return to DOS, select Quit from the File menu, or type Alt-Q.##
00000000 23 0d 0a 20 2a 2a 2a 2a 2a 2a 2a 2a 57 65 6c 63 |#.. ********Welc| 00000010 6f 6d 65 20 74 6f 20 74 68 65 20 50 72 6f 73 70 |ome to the Prosp| 00000020 65 72 6f 20 50 43 20 50 61 73 63 61 6c 20 64 65 |ero PC Pascal de| 00000030 6d 6f 6e 73 74 72 61 74 69 6f 6e 2a 2a 2a 2a 2a |monstration*****| 00000040 2a 2a 2a 7c 0d 0a 20 54 68 69 73 20 67 75 69 64 |***|.. This guid| 00000050 65 64 20 74 6f 75 72 20 77 69 6c 6c 20 61 74 74 |ed tour will att| 00000060 65 6d 70 74 20 74 6f 20 69 6c 6c 75 73 74 72 61 |empt to illustra| 00000070 74 65 20 73 6f 6d 65 20 6f 66 20 74 68 65 20 6d |te some of the m| 00000080 61 69 6e 7c 0d 0a 20 66 65 61 74 75 72 65 73 20 |ain|.. features | 00000090 6f 66 20 74 68 69 73 20 70 6f 77 65 72 66 75 6c |of this powerful| 000000a0 20 79 65 74 20 65 61 73 79 20 74 6f 20 75 73 65 | yet easy to use| 000000b0 20 64 65 76 65 6c 6f 70 65 6d 65 6e 74 20 73 79 | developement sy| 000000c0 73 74 65 6d 7c 0d 0a 20 2a 2a 2a 2a 2a 2a 2a 2a |stem|.. ********| 000000d0 2a 2a 2a 2a 2a 2a 2a 2a 2a 50 72 65 73 73 20 61 |*********Press a| 000000e0 6e 79 20 6b 65 79 20 74 6f 20 63 6f 6e 74 69 6e |ny key to contin| 000000f0 75 65 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a |ue**************| 00000100 2a 2a 2a 2a 2a 2a 2a 40 0d 0a 0d 0a 20 20 45 61 |*******@.... Ea| 00000110 63 68 20 77 69 6e 64 6f 77 20 6f 66 20 69 6e 66 |ch window of inf| 00000120 6f 72 6d 61 74 69 6f 6e 20 69 6e 20 74 68 69 73 |ormation in this| 00000130 20 74 6f 75 72 20 63 61 6e 20 62 65 20 72 65 6d | tour can be rem| 00000140 6f 76 65 64 20 62 79 20 7c 0d 0a 20 70 72 65 73 |oved by |.. pres| 00000150 73 69 6e 67 20 61 6e 79 20 6b 65 79 2e 20 54 68 |sing any key. Th| 00000160 69 73 20 77 69 6c 6c 20 63 61 75 73 65 20 74 68 |is will cause th| 00000170 65 20 64 65 6d 6f 6e 73 74 72 61 74 69 6f 6e 20 |e demonstration | 00000180 74 6f 20 63 6f 6e 74 69 6e 75 65 2e 7c 0d 0a 20 |to continue.|.. | 00000190 49 66 20 79 6f 75 20 77 69 73 68 20 74 6f 20 68 |If you wish to h| 000001a0 61 6c 74 20 74 68 65 20 64 65 6d 6f 6e 73 74 72 |alt the demonstr| 000001b0 61 74 69 6f 6e 2c 20 61 6e 64 20 75 73 65 20 74 |ation, and use t| 000001c0 68 65 20 57 6f 72 6b 62 65 6e 63 68 20 7c 0d 0a |he Workbench |..| 000001d0 20 27 66 6f 72 20 72 65 61 6c 27 2c 20 74 68 65 | 'for real', the| 000001e0 6e 20 65 6e 74 65 72 20 41 6c 74 2d 51 20 77 68 |n enter Alt-Q wh| 000001f0 65 6e 20 61 6e 79 20 77 69 6e 64 6f 77 20 6f 66 |en any window of| 00000200 20 69 6e 66 6f 20 61 70 70 65 61 72 73 2e 40 0d | info appears.@.| 00000210 0a 0d 0a 20 20 54 68 65 20 50 72 6f 73 70 65 72 |... The Prosper| 00000220 6f 20 50 61 73 63 61 6c 20 57 6f 72 6b 62 65 6e |o Pascal Workben| 00000230 63 68 20 28 74 68 69 73 20 70 72 6f 67 72 61 6d |ch (this program| 00000240 29 20 69 73 20 61 20 63 6f 6d 70 6c 65 74 65 7c |) is a complete|| 00000250 0d 0a 20 65 6e 76 69 72 6f 6e 6d 65 6e 74 20 66 |.. environment f| 00000260 6f 72 20 63 72 65 61 74 69 6e 67 2c 20 65 64 69 |or creating, edi| 00000270 74 69 6e 67 2c 20 63 6f 6d 70 69 6c 69 6e 67 2c |ting, compiling,| 00000280 20 6c 69 6e 6b 69 6e 67 2c 20 72 75 6e 6e 69 6e | linking, runnin| 00000290 67 7c 0d 0a 20 61 6e 64 20 64 65 62 75 67 67 69 |g|.. and debuggi| 000002a0 6e 67 20 50 61 73 63 61 6c 20 70 72 6f 67 72 61 |ng Pascal progra| 000002b0 6d 73 2e 40 0d 0a 0d 0a 20 20 55 6e 6c 69 6b 65 |ms.@.... Unlike| 000002c0 20 6d 61 6e 79 20 22 53 68 65 6c 6c 22 20 74 79 | many "Shell" ty| 000002d0 70 65 20 70 72 6f 67 72 61 6d 73 2c 20 74 68 65 |pe programs, the| 000002e0 20 50 72 6f 73 70 65 72 6f 20 57 6f 72 6b 62 65 | Prospero Workbe| 000002f0 6e 63 68 20 68 61 73 7c 0d 0a 20 61 6e 20 65 64 |nch has|.. an ed| 00000300 69 74 6f 72 20 61 73 20 61 6e 20 69 6e 74 65 67 |itor as an integ| 00000310 72 61 6c 20 70 61 72 74 20 6f 66 20 74 68 65 20 |ral part of the | 00000320 57 6f 72 6b 62 65 6e 63 68 20 69 74 73 65 6c 66 |Workbench itself| 00000330 2e 20 54 68 69 73 20 73 61 76 65 73 7c 0d 0a 20 |. This saves|.. | 00000340 74 68 65 20 6f 76 65 72 68 65 61 64 20 6f 66 20 |the overhead of | 00000350 68 61 76 69 6e 67 20 74 6f 20 6c 6f 61 64 20 74 |having to load t| 00000360 68 65 20 65 64 69 74 6f 72 20 70 72 6f 67 72 61 |he editor progra| 00000370 6d 20 66 72 6f 6d 20 64 69 73 6b 20 61 6e 64 7c |m from disk and|| 00000380 0d 0a 20 6c 6f 61 64 20 79 6f 75 72 20 74 65 78 |.. load your tex| 00000390 74 20 69 6e 74 6f 20 74 68 65 20 65 64 69 74 6f |t into the edito| 000003a0 72 20 65 76 65 72 79 20 74 69 6d 65 20 79 6f 75 |r every time you| 000003b0 20 6d 61 6b 65 20 61 20 63 68 61 6e 67 65 2e 40 | make a change.@| 000003c0 0d 0a 0d 0a 20 20 57 69 74 68 20 50 72 6f 73 70 |.... With Prosp| 000003d0 65 72 6f 27 73 20 57 6f 72 6b 62 65 6e 63 68 20 |ero's Workbench | 000003e0 74 68 61 74 20 64 65 6c 61 79 20 64 69 73 61 70 |that delay disap| 000003f0 70 65 61 72 73 2e 20 59 6f 75 72 20 70 72 6f 67 |pears. Your prog| 00000400 72 61 6d 20 69 73 7c 0d 0a 20 63 6f 6d 70 69 6c |ram is|.. compil| 00000410 65 64 20 64 69 72 65 63 74 6c 79 20 66 72 6f 6d |ed directly from| 00000420 20 74 68 65 20 65 64 69 74 6f 72 27 73 20 62 75 | the editor's bu| 00000430 66 66 65 72 2c 20 61 6e 64 20 77 68 65 6e 20 63 |ffer, and when c| 00000440 6f 6d 70 69 6c 61 74 69 6f 6e 7c 0d 0a 20 69 73 |ompilation|.. is| 00000450 20 66 69 6e 69 73 68 65 64 2c 20 79 6f 75 20 63 | finished, you c| 00000460 61 6e 20 63 6f 6e 74 69 6e 75 65 20 65 64 69 74 |an continue edit| 00000470 69 6e 67 20 69 6d 6d 65 64 69 61 74 65 6c 79 2e |ing immediately.| 00000480 7c 40 0d 0a 0d 0a 20 20 41 6c 6c 20 74 68 65 20 ||@.... All the | 00000490 6f 70 74 69 6f 6e 73 20 69 6e 20 74 68 65 20 57 |options in the W| 000004a0 6f 72 6b 62 65 6e 63 68 20 63 61 6e 20 62 65 20 |orkbench can be | 000004b0 73 65 6c 65 63 74 65 64 20 66 72 6f 6d 20 74 68 |selected from th| 000004c0 65 20 64 72 6f 70 7c 0d 0a 20 64 6f 77 6e 20 6d |e drop|.. down m| 000004d0 65 6e 75 73 2e 20 45 61 63 68 20 6d 65 6e 75 20 |enus. Each menu | 000004e0 63 61 6e 20 62 65 20 70 75 6c 6c 65 64 20 64 6f |can be pulled do| 000004f0 77 6e 20 62 79 20 70 72 65 73 73 69 6e 67 20 74 |wn by pressing t| 00000500 68 65 20 41 6c 74 20 6b 65 79 7c 0d 0a 20 74 6f |he Alt key|.. to| 00000510 67 65 74 68 65 72 20 77 69 74 68 20 6f 6e 65 20 |gether with one | 00000520 6f 66 20 74 68 65 20 68 69 67 68 6c 69 67 68 74 |of the highlight| 00000530 65 64 20 6c 65 74 74 65 72 73 2e 20 53 6f 2c 20 |ed letters. So, | 00000540 66 6f 72 20 69 6e 73 74 61 6e 63 65 7c 0d 0a 20 |for instance|.. | 00000550 70 72 65 73 73 69 6e 67 20 41 6c 74 2d 46 20 6d |pressing Alt-F m| 00000560 61 6b 65 73 20 74 68 65 20 46 69 6c 65 20 6d 65 |akes the File me| 00000570 6e 75 20 64 72 6f 70 20 64 6f 77 6e 2e 2e 2e 2e |nu drop down....| 00000580 23 23 0d 0a 0d 0a 9c 30 33 33 0d 0a 23 0d 0a 20 |##.....033..#.. | 00000590 54 68 65 20 6f 70 74 69 6f 6e 20 72 65 71 75 69 |The option requi| 000005a0 72 65 64 20 63 61 6e 20 62 65 20 73 65 6c 65 63 |red can be selec| 000005b0 74 65 64 20 66 69 72 73 74 20 62 79 20 75 73 69 |ted first by usi| 000005c0 6e 67 20 63 75 72 73 6f 72 20 75 70 20 61 6e 64 |ng cursor up and| 000005d0 7c 0d 0a 20 64 6f 77 6e 20 6b 65 79 73 20 74 6f ||.. down keys to| 000005e0 20 68 69 67 68 6c 69 67 68 74 20 69 74 2c 20 61 | highlight it, a| 000005f0 6e 64 20 74 68 65 6e 20 70 72 65 73 73 69 6e 67 |nd then pressing| 00000600 20 52 65 74 75 72 6e 20 74 6f 20 73 65 6c 65 63 | Return to selec| 00000610 74 20 69 74 2e 7c 0d 0a 20 53 6f 2c 20 69 66 20 |t it.|.. So, if | 00000620 79 6f 75 20 77 61 6e 74 20 74 6f 20 64 65 6c 65 |you want to dele| 00000630 74 65 20 61 20 66 69 6c 65 2c 20 66 69 72 73 74 |te a file, first| 00000640 20 68 69 67 68 6c 69 67 68 74 20 74 68 65 20 6f | highlight the o| 00000650 70 74 69 6f 6e 7c 0d 0a 20 27 44 65 6c 65 74 65 |ption|.. 'Delete| 00000660 20 66 69 6c 65 27 23 23 0d 0a 9c 30 38 30 9c 30 | file'##...080.0| 00000670 38 30 0d 0a 23 0d 0a 20 2e 2e 2e 2e 2e 2e 61 6e |80..#.. ......an| 00000680 64 20 74 68 65 6e 20 70 72 65 73 73 20 52 65 74 |d then press Ret| 00000690 75 72 6e 20 74 6f 20 73 65 6c 65 63 74 20 69 74 |urn to select it| 000006a0 2e 2e 2e 2e 23 23 0d 0a 0d 0a 26 0d 0a 23 0d 0a |....##....&..#..| 000006b0 20 4e 6f 77 20 61 20 70 61 74 68 2f 66 69 6c 65 | Now a path/file| 000006c0 6e 61 6d 65 20 77 69 6e 64 6f 77 20 61 70 70 65 |name window appe| 000006d0 61 72 73 2e 20 41 74 20 74 68 69 73 20 70 6f 69 |ars. At this poi| 000006e0 6e 74 20 79 6f 75 20 63 6f 75 6c 64 20 74 79 70 |nt you could typ| 000006f0 65 7c 0d 0a 20 74 68 65 20 70 61 74 68 20 61 6e |e|.. the path an| 00000700 64 20 6e 61 6d 65 20 6f 66 20 74 68 65 20 66 69 |d name of the fi| 00000710 6c 65 20 74 6f 20 62 65 20 64 65 6c 65 74 65 64 |le to be deleted| 00000720 2e 20 49 66 2c 20 68 6f 77 65 76 65 72 7c 0d 0a |. If, however|..| 00000730 20 79 6f 75 20 61 72 65 20 6e 6f 74 20 63 65 72 | you are not cer| 00000740 74 61 69 6e 20 6f 66 20 74 68 65 20 65 78 61 63 |tain of the exac| 00000750 74 20 6e 61 6d 65 20 6f 66 20 74 68 65 20 66 69 |t name of the fi| 00000760 6c 65 2c 20 79 6f 75 20 63 61 6e 20 64 69 73 2d |le, you can dis-| 00000770 7c 0d 0a 20 70 6c 61 79 20 61 6c 6c 20 74 68 65 ||.. play all the| 00000780 20 66 69 6c 65 73 20 69 6e 20 74 68 69 73 20 64 | files in this d| 00000790 69 72 65 63 74 6f 72 79 20 62 79 20 70 72 65 73 |irectory by pres| 000007a0 73 69 6e 67 20 52 65 74 75 72 6e 23 23 0d 0a 26 |sing Return##..&| 000007b0 0d 0a 23 0d 0a 20 59 6f 75 20 63 6f 75 6c 64 20 |..#.. You could | 000007c0 6e 6f 77 20 73 65 6c 65 63 74 20 61 20 66 69 6c |now select a fil| 000007d0 65 20 74 6f 20 62 65 20 64 65 6c 65 74 65 64 2c |e to be deleted,| 000007e0 20 62 79 20 68 69 67 68 6c 69 67 68 74 69 6e 67 | by highlighting| 000007f0 20 69 74 20 7c 0d 0a 20 75 73 69 6e 67 20 63 75 | it |.. using cu| 00000800 72 73 6f 72 20 63 6f 6e 74 72 6f 6c 20 6b 65 79 |rsor control key| 00000810 73 20 61 6e 64 20 74 68 65 6e 20 70 72 65 73 73 |s and then press| 00000820 69 6e 67 20 52 65 74 75 72 6e 2e 20 42 75 74 2c |ing Return. But,| 00000830 20 73 61 79 20 7c 0d 0a 20 74 68 61 74 20 61 74 | say |.. that at| 00000840 20 74 68 69 73 20 73 74 61 67 65 20 79 6f 75 20 | this stage you | 00000850 68 61 76 65 20 64 65 63 69 64 65 64 20 6e 6f 74 |have decided not| 00000860 20 74 6f 20 64 65 6c 65 74 65 20 61 20 66 69 6c | to delete a fil| 00000870 65 2e 20 57 65 6c 6c 2c 7c 0d 0a 20 6e 6f 74 68 |e. Well,|.. noth| 00000880 69 6e 67 20 69 73 20 65 61 73 69 65 72 20 2d 20 |ing is easier - | 00000890 73 69 6d 70 6c 79 20 70 72 65 73 73 20 45 73 63 |simply press Esc| 000008a0 61 70 65 20 74 6f 20 61 62 61 6e 64 6f 6e 20 74 |ape to abandon t| 000008b0 68 65 20 6f 70 65 72 61 74 69 6f 6e 23 23 0d 0a |he operation##..| 000008c0 9c 30 30 31 0d 0a 23 0d 0a 20 4e 6f 77 20 6c 65 |.001..#.. Now le| 000008d0 74 27 73 20 71 75 69 63 6b 6c 79 20 72 75 6e 20 |t's quickly run | 000008e0 74 68 72 6f 75 67 68 20 74 68 65 20 6d 61 69 6e |through the main| 000008f0 20 66 65 61 74 75 72 65 73 20 6f 66 20 74 68 65 | features of the| 00000900 20 65 64 69 74 6f 72 2e 2e 2e 23 23 0d 0a 9c 30 | editor...##...0| 00000910 33 33 9c 30 37 32 26 53 49 4e 45 44 45 4d 4f 2e |33.072&SINEDEMO.| 00000920 50 41 53 26 0d 0a 23 0d 0a 20 45 64 69 74 69 6e |PAS&..#.. Editin| 00000930 67 20 74 61 6b 65 73 20 70 6c 61 63 65 20 69 6e |g takes place in| 00000940 20 61 20 77 69 6e 64 6f 77 20 6c 69 6b 65 20 74 | a window like t| 00000950 68 69 73 20 6f 6e 65 2e 20 41 6c 6c 20 74 68 65 |his one. All the| 00000960 20 6e 6f 72 6d 61 6c 7c 0d 0a 20 66 75 6e 63 74 | normal|.. funct| 00000970 69 6f 6e 73 20 79 6f 75 27 64 20 65 78 70 65 63 |ions you'd expec| 00000980 74 20 74 6f 20 66 69 6e 64 20 69 6e 20 61 20 74 |t to find in a t| 00000990 65 78 74 20 65 64 69 74 6f 72 20 61 72 65 20 68 |ext editor are h| 000009a0 65 72 65 20 2d 20 66 6f 72 7c 0d 0a 20 65 78 61 |ere - for|.. exa| 000009b0 6d 70 6c 65 20 74 68 65 20 63 75 72 73 6f 72 20 |mple the cursor | 000009c0 63 61 6e 20 62 65 20 6d 6f 76 65 64 20 75 73 69 |can be moved usi| 000009d0 6e 67 20 65 69 74 68 65 72 20 74 68 65 20 63 75 |ng either the cu| 000009e0 72 73 6f 72 20 6b 65 79 73 20 6f 72 7c 0d 0a 20 |rsor keys or|.. | 000009f0 57 6f 72 64 53 74 61 72 20 73 74 79 6c 65 20 63 |WordStar style c| 00000a00 6f 6e 74 72 6f 6c 20 6b 65 79 20 63 6f 6d 62 69 |ontrol key combi| 00000a10 6e 61 74 69 6f 6e 73 2e 23 23 0d 0a 21 44 21 44 |nations.##..!D!D| 00000a20 21 44 21 44 21 44 21 44 21 44 21 44 21 44 0d 0a |!D!D!D!D!D!D!D..| 00000a30 21 53 21 53 21 53 21 53 21 53 21 53 21 53 21 53 |!S!S!S!S!S!S!S!S| 00000a40 21 53 0d 0a 23 0d 0a 20 59 6f 75 20 63 61 6e 20 |!S..#.. You can | 00000a50 61 6c 73 6f 20 28 6f 66 20 63 6f 75 72 73 65 29 |also (of course)| 00000a60 20 6d 6f 76 65 20 61 20 77 6f 72 64 20 6f 72 20 | move a word or | 00000a70 70 61 67 65 20 61 74 20 61 20 74 69 6d 65 2c 20 |page at a time, | 00000a80 61 6e 64 7c 0d 0a 20 61 20 76 61 72 69 65 74 79 |and|.. a variety| 00000a90 20 6f 66 20 6f 74 68 65 72 20 63 75 72 73 6f 72 | of other cursor| 00000aa0 20 6d 6f 76 65 6d 65 6e 74 20 63 6f 6d 6d 61 6e | movement comman| 00000ab0 64 73 2e 20 7c 0d 0a 20 7c 0d 0a 20 23 23 0d 0a |ds. |.. |.. ##..| 00000ac0 21 46 21 46 21 46 21 46 21 46 21 46 21 46 21 46 |!F!F!F!F!F!F!F!F| 00000ad0 0d 0a 21 41 21 41 21 41 21 41 21 41 21 41 21 41 |..!A!A!A!A!A!A!A| 00000ae0 21 41 0d 0a 21 43 21 43 21 43 21 43 21 52 21 52 |!A..!C!C!C!C!R!R| 00000af0 21 52 21 52 21 51 43 0d 0a 23 0d 0a 20 54 68 65 |!R!R!QC..#.. The| 00000b00 72 65 20 61 72 65 20 61 20 75 73 65 66 75 6c 20 |re are a useful | 00000b10 73 65 74 20 6f 66 20 66 61 73 74 20 73 65 61 72 |set of fast sear| 00000b20 63 68 20 61 6e 64 20 72 65 70 6c 61 63 65 20 66 |ch and replace f| 00000b30 75 6e 63 74 69 6f 6e 73 2c 7c 0d 0a 20 77 69 74 |unctions,|.. wit| 00000b40 68 20 76 61 72 69 6f 75 73 20 6f 70 74 69 6f 6e |h various option| 00000b50 73 20 2e 2e 2e 23 23 0d 0a 21 51 46 0d 0a 63 67 |s ...##..!QF..cg| 00000b60 61 26 0d 0a 23 0d 0a 20 53 70 65 63 69 66 79 69 |a&..#.. Specifyi| 00000b70 6e 67 20 61 20 67 6c 6f 62 61 6c 20 73 65 61 72 |ng a global sear| 00000b80 63 68 20 77 69 6c 6c 20 63 61 75 73 65 20 74 68 |ch will cause th| 00000b90 65 20 73 65 61 72 63 68 20 74 6f 20 73 74 61 72 |e search to star| 00000ba0 74 7c 0d 0a 20 66 72 6f 6d 20 74 68 65 20 74 6f |t|.. from the to| 00000bb0 70 20 6f 66 20 74 68 65 20 66 69 6c 65 2e 7c 23 |p of the file.|#| 00000bc0 23 0d 0a 44 44 44 44 44 44 44 47 26 0d 0a 21 4c |#..DDDDDDDG&..!L| 00000bd0 21 4c 0d 0a 23 57 65 20 63 61 6e 20 61 6c 73 6f |!L..#We can also| 00000be0 20 73 65 61 72 63 68 20 61 6e 64 20 72 65 70 6c | search and repl| 00000bf0 61 63 65 20 2e 2e 2e 20 7c 7c 23 23 0d 0a 21 51 |ace ... ||##..!Q| 00000c00 41 0d 0a 9c 30 38 33 9c 30 38 33 9c 30 38 33 61 |A...083.083.083a| 00000c10 26 0d 0a 41 26 0d 0a 23 0d 0a 20 53 70 65 63 69 |&..A&..#.. Speci| 00000c20 66 79 69 6e 67 20 53 6f 6d 65 20 77 69 6c 6c 20 |fying Some will | 00000c30 65 6e 73 75 72 65 20 74 68 61 74 20 77 65 20 61 |ensure that we a| 00000c40 72 65 20 61 73 6b 65 64 20 62 65 66 6f 72 65 20 |re asked before | 00000c50 65 61 63 68 7c 0d 0a 20 72 65 70 6c 61 63 65 6d |each|.. replacem| 00000c60 65 6e 74 20 69 73 20 70 65 72 66 6f 72 6d 65 64 |ent is performed| 00000c70 20 2e 2e 2e 7c 7c 23 23 0d 0a 47 44 44 44 44 44 | ...||##..GDDDDD| 00000c80 44 44 53 26 0d 0a 9c 30 32 33 26 0d 0a 9c 30 32 |DDS&...023&...02| 00000c90 33 26 0d 0a 9c 30 32 33 26 0d 0a 9c 30 30 31 0d |3&...023&...001.| 00000ca0 0a 23 0d 0a 20 41 6c 74 65 72 6e 61 74 69 76 65 |.#.. Alternative| 00000cb0 6c 79 2c 20 77 65 20 63 61 6e 20 72 65 70 6c 61 |ly, we can repla| 00000cc0 63 65 20 61 6c 6c 20 6f 63 63 75 72 65 6e 63 65 |ce all occurence| 00000cd0 73 20 2d 20 74 68 69 73 20 73 68 6f 75 6c 64 7c |s - this should|| 00000ce0 0d 0a 20 62 65 20 75 73 65 64 20 77 69 74 68 20 |.. be used with | 00000cf0 63 61 72 65 20 21 7c 7c 23 23 0d 0a 21 51 41 26 |care !||##..!QA&| 00000d00 26 0d 0a 44 44 44 44 41 26 0d 0a 23 0d 0a 20 53 |&..DDDDA&..#.. S| 00000d10 6f 20 66 61 72 2c 20 65 76 65 72 79 74 68 69 6e |o far, everythin| 00000d20 67 20 79 6f 75 20 68 61 76 65 20 73 65 65 6e 20 |g you have seen | 00000d30 69 73 20 6e 6f 20 6d 6f 72 65 20 74 68 61 6e 20 |is no more than | 00000d40 6d 6f 73 74 20 67 6f 6f 64 7c 0d 0a 20 74 65 78 |most good|.. tex| 00000d50 74 20 65 64 69 74 69 6e 67 20 70 72 6f 67 72 61 |t editing progra| 00000d60 6d 73 20 77 6f 75 6c 64 20 70 72 6f 76 69 64 65 |ms would provide| 00000d70 2e 20 48 6f 77 65 76 65 72 2c 20 74 68 65 20 57 |. However, the W| 00000d80 6f 72 6b 62 65 6e 63 68 7c 0d 0a 20 68 61 73 20 |orkbench|.. has | 00000d90 76 61 72 69 6f 75 73 20 65 78 74 72 61 20 66 65 |various extra fe| 00000da0 61 74 75 72 65 73 20 74 6f 20 6d 61 6b 65 20 69 |atures to make i| 00000db0 74 20 70 61 72 74 69 63 75 6c 61 72 6c 79 20 73 |t particularly s| 00000dc0 75 69 74 65 64 7c 0d 0a 20 66 6f 72 20 65 64 69 |uited|.. for edi| 00000dd0 74 69 6e 67 20 70 72 6f 67 72 61 6d 73 2e 20 46 |ting programs. F| 00000de0 69 72 73 74 20 6c 65 74 27 73 20 71 75 69 74 20 |irst let's quit | 00000df0 74 68 69 73 20 66 69 6c 65 23 23 0d 0a 0d 0a 9c |this file##.....| 00000e00 30 33 33 9c 30 37 32 9c 30 37 32 9c 30 37 32 26 |033.072.072.072&| 00000e10 4e 0d 0a 0d 0a 23 0d 0a 20 46 6f 72 20 61 20 73 |N....#.. For a s| 00000e20 74 61 72 74 2c 20 79 6f 75 20 63 61 6e 20 65 64 |tart, you can ed| 00000e30 69 74 20 75 70 20 74 6f 20 66 6f 75 72 20 6f 72 |it up to four or| 00000e40 20 65 69 67 68 74 20 66 69 6c 65 73 20 61 74 7c | eight files at|| 00000e50 0d 0a 20 6f 6e 63 65 2c 20 61 6e 64 20 63 6f 70 |.. once, and cop| 00000e60 79 69 6e 67 20 70 69 65 63 65 73 20 6f 66 20 74 |ying pieces of t| 00000e70 65 78 74 20 62 65 74 77 65 65 6e 20 74 68 65 6d |ext between them| 00000e80 20 69 73 20 73 69 6d 70 6c 65 2e 7c 0d 0a 20 4c | is simple.|.. L| 00000e90 65 74 73 20 73 74 61 72 74 20 77 69 74 68 20 61 |ets start with a| 00000ea0 20 6e 65 77 20 65 6d 70 74 79 20 66 69 6c 65 20 | new empty file | 00000eb0 2e 2e 2e 20 7c 23 23 0d 0a 0d 0a 9c 30 33 33 26 |... |##.....033&| 00000ec0 46 49 4c 45 31 26 26 0d 0a 23 20 4e 6f 77 20 77 |FILE1&&..# Now w| 00000ed0 65 20 63 61 6e 20 73 74 61 72 74 20 74 79 70 69 |e can start typi| 00000ee0 6e 67 20 69 6e 20 6f 75 72 20 70 72 6f 67 72 61 |ng in our progra| 00000ef0 6d 2e 20 7c 7c 7c 23 23 0d 0a 0d 0a 50 72 6f 67 |m. |||##....Prog| 00000f00 72 61 6d 20 6e 65 77 64 65 6d 6f 3b 21 4d 0d 0a |ram newdemo;!M..| 00000f10 21 4d 0d 0a 23 20 57 65 20 63 61 6e 20 72 65 2d |!M..# We can re-| 00000f20 75 73 65 20 73 6f 6d 65 20 6f 66 20 74 68 65 20 |use some of the | 00000f30 63 6f 64 65 20 6f 66 20 74 68 65 20 6f 74 68 65 |code of the othe| 00000f40 72 20 70 72 6f 67 72 61 6d 2c 20 73 6f 7c 0d 0a |r program, so|..| 00000f50 20 77 65 27 6c 6c 20 72 65 2d 6f 70 65 6e 20 74 | we'll re-open t| 00000f60 68 61 74 20 61 6e 64 20 63 6f 70 79 20 73 6f 6d |hat and copy som| 00000f70 65 20 74 65 78 74 20 61 63 72 6f 73 73 20 2e 2e |e text across ..| 00000f80 2e 7c 7c 23 23 0d 0a 9c 30 31 38 53 49 4e 45 44 |.||##...018SINED| 00000f90 45 4d 4f 26 0d 0a 23 20 54 6f 20 63 6f 70 79 20 |EMO&..# To copy | 00000fa0 61 20 62 6c 6f 63 6b 2c 20 66 69 72 73 74 20 77 |a block, first w| 00000fb0 65 20 6d 6f 76 65 20 74 6f 20 74 68 65 20 73 74 |e move to the st| 00000fc0 61 72 74 20 6f 66 20 69 74 2c 20 61 6e 64 7c 0d |art of it, and|.| 00000fd0 0a 20 73 65 6c 65 63 74 20 4d 61 72 6b 20 53 74 |. select Mark St| 00000fe0 61 72 74 20 2e 2e 2e 7c 7c 23 23 0d 0a 21 58 21 |art ...||##..!X!| 00000ff0 58 21 58 21 58 21 58 21 58 21 58 21 58 21 58 21 |X!X!X!X!X!X!X!X!| * 00001010 58 9c 30 34 38 26 0d 0a 23 20 2e 2e 2e 20 74 68 |X.048&..# ... th| 00001020 65 6e 20 77 65 20 6d 6f 76 65 20 74 6f 20 74 68 |en we move to th| 00001030 65 20 65 6e 64 20 61 6e 64 20 73 65 6c 65 63 74 |e end and select| 00001040 20 4d 61 72 6b 20 45 6e 64 2e 7c 7c 7c 23 23 0d | Mark End.|||##.| 00001050 0a 21 43 21 45 9c 30 34 38 9c 30 38 30 26 0d 0a |.!C!E.048.080&..| 00001060 23 20 54 68 65 20 73 65 6c 65 63 74 65 64 20 62 |# The selected b| 00001070 6c 6f 63 6b 20 69 73 20 6e 6f 77 20 64 69 73 70 |lock is now disp| 00001080 6c 61 79 65 64 20 69 6e 20 69 6e 76 65 72 73 65 |layed in inverse| 00001090 20 76 69 64 65 6f 2e 7c 0d 0a 20 48 61 76 69 6e | video.|.. Havin| 000010a0 67 20 73 65 6c 65 63 74 65 64 20 74 68 65 20 62 |g selected the b| 000010b0 6c 6f 63 6b 2c 20 77 65 20 75 73 65 20 43 6f 70 |lock, we use Cop| 000010c0 79 20 74 6f 20 6d 61 6b 65 20 61 20 63 6f 70 79 |y to make a copy| 000010d0 20 6f 66 20 69 74 7c 0d 0a 20 61 6e 64 20 41 6c | of it|.. and Al| 000010e0 74 2d 48 20 28 20 55 6e 6d 61 72 6b 20 62 6c 6f |t-H ( Unmark blo| 000010f0 63 6b 20 29 20 74 6f 20 68 69 64 65 20 69 74 23 |ck ) to hide it#| 00001100 23 0d 0a 9c 30 34 38 9c 30 38 30 26 0d 0a 9c 30 |#...048.080&...0| 00001110 33 35 0d 0a 23 0d 0a 20 41 20 63 6f 70 79 20 6f |35..#.. A copy o| 00001120 66 20 74 68 65 20 6d 61 72 6b 65 64 20 74 65 78 |f the marked tex| 00001130 74 20 69 73 20 6e 6f 77 20 73 74 6f 72 65 64 20 |t is now stored | 00001140 69 6e 20 61 6e 20 69 6e 74 65 72 6e 61 6c 20 62 |in an internal b| 00001150 75 66 66 65 72 7c 0d 0a 20 63 61 6c 6c 65 64 20 |uffer|.. called | 00001160 74 68 65 20 43 6c 69 70 62 6f 61 72 64 2e 20 54 |the Clipboard. T| 00001170 68 65 20 63 6f 6e 74 65 6e 74 73 20 6f 66 20 74 |he contents of t| 00001180 68 69 73 20 62 75 66 66 65 72 20 77 69 6c 6c 20 |his buffer will | 00001190 72 65 6d 61 69 6e 7c 0d 0a 20 75 6e 63 68 61 6e |remain|.. unchan| 000011a0 67 65 64 20 75 6e 74 69 6c 20 74 68 65 20 6e 65 |ged until the ne| 000011b0 78 74 20 43 6f 70 79 20 6f 72 20 43 75 74 20 63 |xt Copy or Cut c| 000011c0 6f 6d 6d 61 6e 64 20 28 43 75 74 20 69 73 20 6c |ommand (Cut is l| 000011d0 69 6b 65 20 43 6f 70 79 2c 7c 0d 0a 20 62 75 74 |ike Copy,|.. but| 000011e0 20 69 74 20 64 65 6c 65 74 65 73 20 74 68 65 20 | it deletes the | 000011f0 73 65 6c 65 63 74 65 64 20 74 65 78 74 20 61 66 |selected text af| 00001200 74 65 72 20 63 6f 70 79 69 6e 67 20 69 74 29 2e |ter copying it).| 00001210 40 0d 0a 0d 0a 0d 0a 20 20 57 65 20 63 61 6e 20 |@...... We can | 00001220 70 61 73 74 65 20 74 68 69 73 20 74 65 78 74 20 |paste this text | 00001230 66 72 6f 6d 20 74 68 65 20 63 6c 69 70 62 6f 61 |from the clipboa| 00001240 72 64 20 61 6e 79 77 68 65 72 65 20 77 65 20 6c |rd anywhere we l| 00001250 69 6b 65 2c 7c 0d 0a 20 69 6e 63 6c 75 64 69 6e |ike,|.. includin| 00001260 67 20 69 6e 74 6f 20 61 20 64 69 66 66 65 72 65 |g into a differe| 00001270 6e 74 20 66 69 6c 65 2e 20 4c 65 74 27 73 20 67 |nt file. Let's g| 00001280 6f 20 62 61 63 6b 20 74 6f 20 65 64 69 74 20 77 |o back to edit w| 00001290 69 6e 64 6f 77 20 31 7c 0d 0a 20 28 62 79 20 65 |indow 1|.. (by e| 000012a0 6e 74 65 72 69 6e 67 20 41 6c 74 2d 31 29 20 61 |ntering Alt-1) a| 000012b0 6e 64 20 63 6f 70 79 20 69 74 20 69 6e 74 6f 20 |nd copy it into | 000012c0 6f 75 72 20 6e 65 77 20 66 69 6c 65 2e 7c 23 23 |our new file.|##| 000012d0 0d 0a 9c 31 32 30 9c 30 34 38 9c 30 38 30 9c 30 |...120.048.080.0| 000012e0 38 30 26 0d 0a 0d 0a 23 20 4f 74 68 65 72 20 75 |80&....# Other u| 000012f0 73 65 66 75 6c 20 73 68 6f 72 74 63 75 74 73 20 |seful shortcuts | 00001300 63 61 6e 20 62 65 20 73 65 74 20 75 70 2c 20 62 |can be set up, b| 00001310 79 20 63 6f 6e 66 69 67 75 72 69 6e 67 20 74 68 |y configuring th| 00001320 65 7c 0d 0a 20 66 75 6e 63 74 69 6f 6e 20 6b 65 |e|.. function ke| 00001330 79 73 2e 20 45 61 63 68 20 66 75 6e 63 74 69 6f |ys. Each functio| 00001340 6e 20 6b 65 79 20 63 61 6e 20 62 65 20 63 6f 6e |n key can be con| 00001350 66 69 67 75 72 65 64 20 74 6f 20 65 78 70 61 6e |figured to expan| 00001360 64 7c 0d 0a 20 74 6f 20 61 20 64 69 66 66 65 72 |d|.. to a differ| 00001370 65 6e 74 20 73 74 72 69 6e 67 20 6f 66 20 75 70 |ent string of up| 00001380 20 74 6f 20 33 32 20 63 68 61 72 61 63 74 65 72 | to 32 character| 00001390 73 2c 20 73 6f 20 66 6f 72 20 65 78 61 6d 70 6c |s, so for exampl| 000013a0 65 7c 0d 0a 20 79 6f 75 20 63 6f 75 6c 64 20 68 |e|.. you could h| 000013b0 61 76 65 20 46 31 20 3d 20 42 45 47 49 4e 2c 20 |ave F1 = BEGIN, | 000013c0 46 32 20 3d 20 45 4e 44 2c 20 61 6e 64 20 73 6f |F2 = END, and so| 000013d0 20 6f 6e 2e 40 0d 0a 0d 0a 20 20 59 6f 75 20 63 | on.@.... You c| 000013e0 61 6e 20 61 6c 73 6f 20 74 79 70 65 20 63 6f 6e |an also type con| 000013f0 74 72 6f 6c 20 61 6e 64 20 41 6c 74 20 63 68 61 |trol and Alt cha| 00001400 72 61 63 74 65 72 73 20 69 6e 74 6f 20 74 68 65 |racters into the| 00001410 73 65 20 7c 0d 0a 20 73 74 72 69 6e 67 73 2c 20 |se |.. strings, | 00001420 61 6e 64 20 6d 61 6b 65 20 61 20 6b 65 79 20 65 |and make a key e| 00001430 78 70 61 6e 64 20 69 6e 74 6f 20 61 20 73 65 71 |xpand into a seq| 00001440 75 65 6e 63 65 20 73 75 63 68 20 61 73 7c 0d 0a |uence such as|..| 00001450 20 5e 51 53 5e 47 5e 47 5e 47 5e 47 5e 58 2c 20 | ^QS^G^G^G^G^X, | 00001460 77 68 69 63 68 20 63 61 75 73 65 73 20 74 68 65 |which causes the| 00001470 20 66 69 72 73 74 20 66 6f 75 72 20 63 68 61 72 | first four char| 00001480 61 63 74 65 72 73 20 6f 66 20 61 7c 0d 0a 20 6c |acters of a|.. l| 00001490 69 6e 65 20 74 6f 20 62 65 20 64 65 6c 65 74 65 |ine to be delete| 000014a0 64 2c 20 61 6e 64 20 74 68 65 6e 20 6d 6f 76 65 |d, and then move| 000014b0 73 20 74 68 65 20 63 75 72 73 6f 72 20 74 6f 20 |s the cursor to | 000014c0 74 68 65 20 6e 65 78 74 20 6c 69 6e 65 2e 23 23 |the next line.##| 000014d0 0d 0a 0d 0a 9c 30 32 34 9c 30 38 30 9c 30 38 30 |.....024.080.080| 000014e0 9c 30 38 30 26 0d 0a 9c 30 38 33 9c 30 38 33 9c |.080&...083.083.| 000014f0 30 38 33 9c 30 38 33 9c 30 38 33 9c 30 38 33 9c |083.083.083.083.| 00001500 30 38 33 9c 30 38 33 9c 30 38 33 0d 0a 9c 30 38 |083.083.083...08| 00001510 33 9c 30 38 33 9c 30 38 33 9c 30 38 33 9c 30 38 |3.083.083.083.08| 00001520 33 9c 30 38 33 9c 30 38 33 9c 30 38 33 0d 0a 21 |3.083.083.083..!| 00001530 51 53 21 47 21 47 21 47 21 47 21 58 0d 0a 23 0d |QS!G!G!G!G!X..#.| 00001540 0a 20 53 6f 2c 20 68 61 76 69 6e 67 20 73 65 74 |. So, having set| 00001550 20 75 70 20 46 31 20 74 6f 20 6d 65 61 6e 20 64 | up F1 to mean d| 00001560 65 6c 65 74 65 20 66 69 72 73 74 20 66 6f 75 72 |elete first four| 00001570 20 63 68 61 72 61 63 74 65 72 73 20 6f 66 20 7c | characters of || 00001580 0d 0a 20 6c 69 6e 65 20 61 6e 64 20 6d 6f 76 65 |.. line and move| 00001590 20 74 6f 20 6e 65 78 74 20 6c 69 6e 65 2c 20 6c | to next line, l| 000015a0 65 74 73 20 73 65 65 20 69 74 73 20 61 66 66 65 |ets see its affe| 000015b0 63 74 20 6f 6e 20 74 68 65 20 66 69 72 73 74 7c |ct on the first|| 000015c0 0d 0a 20 66 65 77 20 6c 69 6e 65 73 20 6f 66 20 |.. few lines of | 000015d0 74 68 69 73 20 66 69 6c 65 2e 2e 2e 23 23 0d 0a |this file...##..| 000015e0 0d 0a 26 9c 31 31 39 9c 30 35 39 9c 30 35 39 9c |..&.119.059.059.| 000015f0 30 35 39 9c 30 35 39 0d 0a 0d 0a 23 0d 0a 20 41 |059.059....#.. A| 00001600 6e 79 77 61 79 2c 20 65 6e 6f 75 67 68 20 61 62 |nyway, enough ab| 00001610 6f 75 74 20 74 68 65 20 45 64 69 74 6f 72 2c 20 |out the Editor, | 00001620 61 6e 64 20 6f 6e 20 74 6f 20 74 68 65 20 63 6f |and on to the co| 00001630 6d 70 69 6c 65 72 2e 7c 0d 0a 20 54 68 65 20 63 |mpiler.|.. The c| 00001640 6f 6d 70 69 6c 65 72 20 69 73 20 69 6e 76 6f 6b |ompiler is invok| 00001650 65 64 20 66 72 6f 6d 20 74 68 65 20 57 6f 72 6b |ed from the Work| 00001660 62 65 6e 63 68 20 2d 20 79 6f 75 20 64 6f 6e 27 |bench - you don'| 00001670 74 7c 0d 0a 20 65 76 65 6e 20 68 61 76 65 20 74 |t|.. even have t| 00001680 6f 20 73 61 76 65 20 79 6f 75 72 20 70 72 6f 67 |o save your prog| 00001690 72 61 6d 20 74 6f 20 64 69 73 6b 20 62 65 66 6f |ram to disk befo| 000016a0 72 65 20 63 6f 6d 70 69 6c 69 6e 67 2c 7c 0d 0a |re compiling,|..| 000016b0 20 61 73 20 74 68 65 20 63 6f 6d 70 69 6c 65 72 | as the compiler| 000016c0 20 77 69 6c 6c 20 72 65 61 64 20 69 74 20 73 74 | will read it st| 000016d0 72 61 69 67 68 74 20 66 72 6f 6d 20 74 68 65 20 |raight from the | 000016e0 45 64 69 74 6f 72 27 73 20 6d 65 6d 6f 72 79 2e |Editor's memory.| 000016f0 40 0d 0a 0d 0a 0d 0a 20 20 54 68 65 20 63 6f 6d |@...... The com| 00001700 70 69 6c 65 72 20 6f 70 74 69 6f 6e 73 20 61 72 |piler options ar| 00001710 65 20 63 6f 6e 74 72 6f 6c 6c 65 64 20 62 79 20 |e controlled by | 00001720 61 20 66 6f 72 6d 20 69 6e 20 74 68 65 20 57 6f |a form in the Wo| 00001730 72 6b 62 65 6e 63 68 2c 7c 0d 0a 20 61 6e 64 20 |rkbench,|.. and | 00001740 72 65 6d 61 69 6e 20 69 6e 20 66 6f 72 63 65 20 |remain in force | 00001750 75 6e 74 69 6c 20 6e 65 78 74 20 61 6c 74 65 72 |until next alter| 00001760 65 64 2e 20 4c 69 6b 65 20 61 6c 6c 20 74 68 65 |ed. Like all the| 00001770 20 57 6f 72 6b 62 65 6e 63 68 7c 0d 0a 20 6f 70 | Workbench|.. op| 00001780 74 69 6f 6e 73 2c 20 74 68 65 79 20 63 61 6e 20 |tions, they can | 00001790 62 65 20 73 61 76 65 64 20 74 6f 20 64 69 73 6b |be saved to disk| 000017a0 20 74 6f 20 62 65 20 61 75 74 6f 6d 61 74 69 63 | to be automatic| 000017b0 61 6c 6c 79 20 6c 6f 61 64 65 64 7c 0d 0a 20 6e |ally loaded|.. n| 000017c0 65 78 74 20 74 69 6d 65 20 74 68 65 20 57 6f 72 |ext time the Wor| 000017d0 6b 62 65 6e 63 68 20 69 73 20 72 75 6e 2e 23 23 |kbench is run.##| 000017e0 0d 0a 0d 0a 9c 30 32 32 0d 0a 0d 0a 23 20 4f 70 |.....022....# Op| 000017f0 74 69 6f 6e 73 20 77 68 69 63 68 20 61 72 65 20 |tions which are | 00001800 73 65 6c 65 63 74 65 64 20 61 70 70 65 61 72 20 |selected appear | 00001810 77 69 74 68 20 61 20 68 69 67 68 6c 69 67 68 74 |with a highlight| 00001820 65 64 20 27 2b 27 20 6e 65 78 74 7c 0d 0a 20 74 |ed '+' next|.. t| 00001830 6f 20 74 68 65 6d 2e 20 49 6e 20 6f 72 64 65 72 |o them. In order| 00001840 20 74 6f 20 61 6c 74 65 72 20 61 6e 20 6f 70 74 | to alter an opt| 00001850 69 6f 6e 27 73 20 63 75 72 72 65 6e 74 20 73 65 |ion's current se| 00001860 74 74 69 6e 67 2c 20 74 68 65 7c 0d 0a 20 6f 70 |tting, the|.. op| 00001870 74 69 6f 6e 20 6c 65 74 74 65 72 20 63 61 6e 20 |tion letter can | 00001880 62 65 20 65 6e 74 65 72 65 64 20 28 74 68 69 73 |be entered (this| 00001890 20 74 6f 67 67 6c 65 73 20 69 74 73 20 63 75 72 | toggles its cur| 000018a0 72 65 6e 74 20 73 74 61 74 65 29 40 0d 0a 0d 0a |rent state)@....| 000018b0 20 20 54 68 65 20 53 20 6f 70 74 69 6f 6e 20 69 | The S option i| 000018c0 73 20 70 61 72 74 69 63 75 6c 61 72 6c 79 20 69 |s particularly i| 000018d0 6e 74 65 72 65 73 74 69 6e 67 20 2d 20 69 66 20 |nteresting - if | 000018e0 74 68 69 73 20 69 73 20 73 65 6c 65 63 74 65 64 |this is selected| 000018f0 2c 7c 0d 0a 20 61 6c 6c 20 50 72 6f 73 70 65 72 |,|.. all Prosper| 00001900 6f 20 65 78 74 65 6e 73 69 6f 6e 73 20 74 6f 20 |o extensions to | 00001910 50 61 73 63 61 6c 20 61 72 65 20 64 69 73 61 62 |Pascal are disab| 00001920 6c 65 64 2c 20 73 6f 20 79 6f 75 20 63 61 6e 20 |led, so you can | 00001930 62 65 7c 0d 0a 20 73 75 72 65 20 74 68 61 74 20 |be|.. sure that | 00001940 79 6f 75 72 20 70 72 6f 67 72 61 6d 20 6f 75 67 |your program oug| 00001950 68 74 20 74 6f 20 63 6f 6d 70 69 6c 65 20 6f 6e |ht to compile on| 00001960 20 61 6e 79 20 50 61 73 63 61 6c 20 63 6f 6d 70 | any Pascal comp| 00001970 69 6c 65 72 7c 0d 0a 20 77 68 69 63 68 20 69 6d |iler|.. which im| 00001980 70 6c 65 6d 65 6e 74 73 20 53 74 61 6e 64 61 72 |plements Standar| 00001990 64 20 50 61 73 63 61 6c 2e 23 23 0d 0a 53 0d 0a |d Pascal.##..S..| 000019a0 0d 0a 23 20 57 65 20 64 6f 6e 27 74 20 61 63 74 |..# We don't act| 000019b0 75 61 6c 6c 79 20 73 75 70 70 6c 79 20 61 20 63 |ually supply a c| 000019c0 6f 70 79 20 6f 66 20 74 68 65 20 63 6f 6d 70 69 |opy of the compi| 000019d0 6c 65 72 20 6f 72 20 6c 69 6e 6b 65 72 7c 0d 0a |ler or linker|..| 000019e0 20 77 69 74 68 20 74 68 69 73 20 64 65 6d 6f 6e | with this demon| 000019f0 73 74 72 61 74 69 6f 6e 2c 20 62 75 74 20 77 65 |stration, but we| 00001a00 20 63 61 6e 20 73 74 69 6c 6c 20 73 68 6f 77 20 | can still show | 00001a10 79 6f 75 20 68 6f 77 20 73 69 6d 70 6c 65 7c 0d |you how simple|.| 00001a20 0a 20 74 68 65 79 20 61 72 65 20 74 6f 20 75 73 |. they are to us| 00001a30 65 20 66 72 6f 6d 20 74 68 65 20 57 6f 72 6b 62 |e from the Workb| 00001a40 65 6e 63 68 2e 20 4f 6e 65 20 6d 65 6e 75 20 73 |ench. One menu s| 00001a50 65 6c 65 63 74 69 6f 6e 20 28 6f 72 20 61 7c 0d |election (or a|.| 00001a60 0a 20 73 69 6e 67 6c 65 20 6b 65 79 20 63 6f 6d |. single key com| 00001a70 62 69 6e 61 74 69 6f 6e 29 20 77 69 6c 6c 20 63 |bination) will c| 00001a80 6f 6d 70 69 6c 65 20 79 6f 75 72 20 63 75 72 72 |ompile your curr| 00001a90 65 6e 74 20 77 69 6e 64 6f 77 20 2e 2e 2e 20 23 |ent window ... #| 00001aa0 23 0d 0a 0d 0a 26 9c 31 32 31 0d 0a 0d 0a 23 20 |#....&.121....# | 00001ab0 4e 6f 77 2c 20 77 65 20 63 61 6e 20 63 6f 6d 70 |Now, we can comp| 00001ac0 69 6c 65 20 74 68 69 73 20 66 69 6c 65 2e 2e 2e |ile this file...| 00001ad0 2e 23 23 0d 0a 0d 0a 9c 30 34 36 26 0d 0a 0d 0a |.##.....046&....| 00001ae0 23 20 4f 6e 63 65 20 63 6f 6d 70 69 6c 61 74 69 |# Once compilati| 00001af0 6f 6e 20 68 61 73 20 62 65 65 6e 20 73 75 63 63 |on has been succ| 00001b00 65 73 73 66 75 6c 2c 20 61 6e 6f 74 68 65 72 20 |essful, another | 00001b10 6d 65 6e 75 20 73 65 6c 65 63 74 69 6f 6e 7c 0d |menu selection|.| 00001b20 0a 20 6f 72 20 6b 65 79 20 63 6f 6d 62 69 6e 61 |. or key combina| 00001b30 74 69 6f 6e 20 77 69 6c 6c 20 6c 69 6e 6b 20 79 |tion will link y| 00001b40 6f 75 72 20 70 72 6f 67 72 61 6d 20 28 74 68 65 |our program (the| 00001b50 73 65 20 74 77 6f 20 73 74 65 70 73 20 63 61 6e |se two steps can| 00001b60 7c 0d 0a 20 62 65 20 63 6f 6d 62 69 6e 65 64 20 ||.. be combined | 00001b70 62 79 20 73 65 6c 65 63 74 69 6e 67 20 43 6f 6d |by selecting Com| 00001b80 70 69 6c 65 20 61 6e 64 20 4c 69 6e 6b 29 20 2e |pile and Link) .| 00001b90 2e 2e 20 23 23 0d 0a 9c 30 33 38 26 0d 0a 23 20 |.. ##...038&..# | 00001ba0 4e 6f 77 20 79 6f 75 20 63 61 6e 20 72 75 6e 20 |Now you can run | 00001bb0 74 68 65 20 70 72 6f 67 72 61 6d 2c 20 61 67 61 |the program, aga| 00001bc0 69 6e 20 77 69 74 68 20 61 20 73 69 6e 67 6c 65 |in with a single| 00001bd0 20 6d 65 6e 75 7c 0d 0a 20 73 65 6c 65 63 74 69 | menu|.. selecti| 00001be0 6f 6e 20 6f 72 20 6b 65 79 20 63 6f 6d 62 69 6e |on or key combin| 00001bf0 61 74 69 6f 6e 20 2e 2e 2e 7c 7c 23 23 0d 0a 9c |ation ...||##...| 00001c00 30 31 39 26 0d 0a 0d 0a 23 0d 0a 20 46 69 6e 61 |019&....#.. Fina| 00001c10 6c 6c 79 2c 20 69 66 20 66 6f 72 20 73 6f 6d 65 |lly, if for some| 00001c20 20 72 65 61 73 6f 6e 2c 20 79 6f 75 20 70 72 6f | reason, you pro| 00001c30 67 72 61 6d 20 64 6f 65 73 20 6e 6f 74 20 77 6f |gram does not wo| 00001c40 72 6b 20 2d 7c 0d 0a 20 6f 72 20 70 65 72 68 61 |rk -|.. or perha| 00001c50 70 73 20 69 74 20 64 6f 65 73 20 77 6f 72 6b 20 |ps it does work | 00001c60 62 75 74 20 79 6f 75 20 77 61 6e 74 20 74 6f 20 |but you want to | 00001c70 6b 6e 6f 77 20 77 68 79 20 2d 20 74 68 65 6e 20 |know why - then | 00001c80 79 6f 75 7c 0d 0a 20 63 61 6e 20 75 73 65 20 74 |you|.. can use t| 00001c90 68 65 20 73 79 6d 62 6f 6c 69 63 20 64 65 62 75 |he symbolic debu| 00001ca0 67 67 65 72 20 50 52 4f 42 45 20 74 6f 20 61 6e |gger PROBE to an| 00001cb0 61 6c 79 73 65 20 74 68 65 20 63 6f 6d 70 69 6c |alyse the compil| 00001cc0 65 64 7c 0d 0a 20 70 72 6f 67 72 61 6d 20 61 74 |ed|.. program at| 00001cd0 20 74 68 65 20 73 6f 75 72 63 65 20 6c 65 76 65 | the source leve| 00001ce0 6c 2e 23 23 0d 0a 9c 30 31 39 9c 30 37 32 26 53 |l.##...019.072&S| 00001cf0 49 4e 45 44 45 4d 4f 26 0d 0a 0d 0a 23 0d 0a 20 |INEDEMO&....#.. | 00001d00 4f 6e 65 20 66 69 6e 61 6c 20 70 6f 69 6e 74 20 |One final point | 00001d10 2d 20 50 72 6f 73 70 65 72 6f 20 50 43 20 50 61 |- Prospero PC Pa| 00001d20 73 63 61 6c 20 63 6f 6d 65 73 20 77 69 74 68 20 |scal comes with | 00001d30 61 20 7c 0d 0a 20 6c 69 62 72 61 72 79 20 61 6c |a |.. library al| 00001d40 6c 6f 77 69 6e 67 20 50 61 73 63 61 6c 20 70 72 |lowing Pascal pr| 00001d50 6f 67 72 61 6d 73 20 74 6f 20 6d 61 6b 65 20 75 |ograms to make u| 00001d60 73 65 20 6f 66 20 38 30 78 38 37 7c 0d 0a 20 6e |se of 80x87|.. n| 00001d70 75 6d 65 72 69 63 20 63 6f 70 72 6f 63 65 73 73 |umeric coprocess| 00001d80 6f 72 73 2e 7c 40 0d 0a 0d 0a 0d 0a 20 20 54 6f |ors.|@...... To| 00001d90 20 6d 61 6b 65 20 75 73 65 20 6f 66 20 74 68 65 | make use of the| 00001da0 73 65 20 63 6f 70 72 6f 63 65 73 73 6f 72 73 2c |se coprocessors,| 00001db0 20 61 6c 6c 20 74 68 61 74 20 69 73 20 72 65 71 | all that is req| 00001dc0 75 69 72 65 64 20 69 73 20 74 6f 7c 0d 0a 20 72 |uired is to|.. r| 00001dd0 65 70 6c 61 63 65 20 74 68 65 20 6e 6f 72 6d 61 |eplace the norma| 00001de0 6c 20 62 61 73 65 20 6c 69 62 72 61 72 79 20 73 |l base library s| 00001df0 75 70 70 6c 69 65 64 20 77 69 74 68 20 50 72 6f |upplied with Pro| 00001e00 73 70 65 72 6f 20 50 43 20 7c 0d 0a 20 50 61 73 |spero PC |.. Pas| 00001e10 63 61 6c 20 77 69 74 68 20 74 68 65 20 6f 6e 65 |cal with the one| 00001e20 20 64 65 73 69 67 6e 65 64 20 74 6f 20 75 73 65 | designed to use| 00001e30 20 38 30 78 38 37 20 63 6f 70 72 6f 63 65 73 73 | 80x87 coprocess| 00001e40 6f 72 73 20 2d 20 6e 6f 7c 0d 0a 20 73 6f 75 72 |ors - no|.. sour| 00001e50 63 65 20 63 68 61 6e 67 65 73 20 61 72 65 20 6e |ce changes are n| 00001e60 65 63 65 73 73 61 72 79 2c 20 6e 6f 72 20 65 76 |ecessary, nor ev| 00001e70 65 6e 20 72 65 2d 63 6f 6d 70 69 6c 61 74 69 6f |en re-compilatio| 00001e80 6e 2e 40 0d 0a 0d 0a 0d 0a 20 20 54 6f 20 69 6c |n.@...... To il| 00001e90 6c 75 73 74 72 61 74 65 20 68 6f 77 20 6d 75 63 |lustrate how muc| 00001ea0 68 20 64 69 66 66 65 72 65 6e 63 65 20 74 68 69 |h difference thi| 00001eb0 73 20 63 61 6e 20 6d 61 6b 65 2c 20 63 6f 6d 70 |s can make, comp| 00001ec0 61 72 65 20 74 68 65 7c 0d 0a 20 73 70 65 65 64 |are the|.. speed| 00001ed0 20 6f 66 20 74 68 69 73 20 70 72 6f 67 72 61 6d | of this program| 00001ee0 20 28 6c 69 6e 6b 65 64 20 77 69 74 68 6f 75 74 | (linked without| 00001ef0 20 74 68 65 20 63 6f 70 72 6f 63 65 73 73 6f 72 | the coprocessor| 00001f00 29 20 2e 2e 2e 20 7c 7c 23 23 0d 0a 0d 0a 9c 30 |) ... ||##.....0| 00001f10 31 39 9c 30 38 30 26 0d 0a 0d 0a 23 20 2e 2e 2e |19.080&....# ...| 00001f20 20 77 69 74 68 20 74 68 69 73 20 6f 6e 65 20 28 | with this one (| 00001f30 69 64 65 6e 74 69 63 61 6c 20 73 6f 75 72 63 65 |identical source| 00001f40 2c 20 62 75 74 20 6c 69 6e 6b 65 64 20 77 69 74 |, but linked wit| 00001f50 68 20 61 7c 0d 0a 20 64 69 66 66 65 72 65 6e 74 |h a|.. different| 00001f60 20 6c 69 62 72 61 72 79 29 2e 20 4e 6f 74 65 20 | library). Note | 00001f70 2d 20 69 66 20 79 6f 75 72 20 50 43 20 64 6f 65 |- if your PC doe| 00001f80 73 20 6e 6f 74 20 68 61 76 65 20 61 6e 7c 0d 0a |s not have an|..| 00001f90 20 38 30 78 38 37 20 63 6f 70 72 6f 63 65 73 73 | 80x87 coprocess| 00001fa0 6f 72 20 66 69 74 74 65 64 2c 20 74 68 65 20 6d |or fitted, the m| 00001fb0 61 63 68 69 6e 65 20 6d 61 79 20 77 65 6c 6c 20 |achine may well | 00001fc0 63 72 61 73 68 21 7c 23 23 0d 0a 0d 0a 9c 30 31 |crash!|##.....01| 00001fd0 39 9c 30 38 30 26 53 49 4e 44 45 4d 4f 32 26 0d |9.080&SINDEMO2&.| 00001fe0 0a 0d 0a 9c 30 31 37 9c 30 31 37 4e 0d 0a 23 0d |....017.017N..#.| 00001ff0 0a 20 54 68 61 74 20 63 6f 6e 63 6c 75 64 65 73 |. That concludes| 00002000 20 74 68 65 20 64 65 6d 6f 6e 73 74 72 61 74 69 | the demonstrati| 00002010 6f 6e 2e 7c 0d 0a 20 7c 0d 0a 20 59 6f 75 20 63 |on.|.. |.. You c| 00002020 61 6e 20 6e 6f 77 20 74 72 79 20 6f 75 74 20 74 |an now try out t| 00002030 68 65 20 50 72 6f 73 70 65 72 6f 20 57 6f 72 6b |he Prospero Work| 00002040 62 65 6e 63 68 20 66 6f 72 20 79 6f 75 72 73 65 |bench for yourse| 00002050 6c 66 2e 7c 0d 0a 20 54 6f 20 72 65 74 75 72 6e |lf.|.. To return| 00002060 20 74 6f 20 44 4f 53 2c 20 73 65 6c 65 63 74 20 | to DOS, select | 00002070 51 75 69 74 20 66 72 6f 6d 20 74 68 65 20 46 69 |Quit from the Fi| 00002080 6c 65 20 6d 65 6e 75 2c 20 6f 72 20 74 79 70 65 |le menu, or type| 00002090 20 41 6c 74 2d 51 2e 23 23 0d 0a 0d 0a 0d 0a | Alt-Q.##......| 0000209f