home *** CD-ROM | disk | FTP | other *** search
/ ProfitPress Mega CDROM2 …eeware (MSDOS)(1992)(Eng) / ProfitPress-MegaCDROM2.B6I / PROG / MISC / FPC355_1.ZIP / FPC.ZIP / FPCINTRO.TXT < prev    next >
Encoding:
Text File  |  1989-11-01  |  9.8 KB  |  223 lines

  1.  
  2. °More-Details            Introduction to F-PC
  3.                          ────────────────────
  4.  
  5.   This file contains some additional hints on how to get started in F-PC.
  6.  
  7.   Use Down Arrow or the PgDn key on the keypad to advance through this
  8. file, and the Up Arrow or PgUp key to backup toward the beginning of a
  9. file. Press F10 when you want to unlink to the previous Browser.
  10.  
  11. Now let's look at the various parts of the screen before going on to the
  12. hints.
  13.  
  14.   The top and bottom lines of the screen are used for status.  The bottom
  15. line displays the name of the file being viewed, and a couple of helpful
  16. hints. HELP=F1, and MENU=ESC. F1 will link you into another copy of the
  17. Help system where you can get help on the various editor functions.
  18.  
  19.   You can press F1 now if you want to; just press F10 to get back here.
  20.  
  21.   Pressing the ESC key will cause the MENU line to be displayed. Having
  22. pressed ESC, you can press the first letter of a menu name, or use the
  23. keypad arrow keys to move around on the menubar. Pressing Enter while a
  24. menu item is selected will cause the specified operation to be performed.
  25. Pressing ESC again while the menubar is visible, will make it go away.
  26.  
  27.   When the menubar is NOT visible, you see a status line at the top of the
  28. display.  This line contains various pieces of information about the file
  29. being browsed or edited, including the word BROWSE at the left hand side.
  30. When you are in the editor, the word BROWSE will change to INSERT, or
  31. OVERWRITE indicating the appropriate edit mode.
  32.  
  33.   Now lets move on to the hints I promised. Move the cursor down until
  34. this line is NEAR THE TOP OF THE SCREEN.
  35.  
  36.   The UPPERCASE  words to the right are F-PC Forth commands, the "<words>"
  37. to the right are parameters to be passed to the command. The Enter key must
  38. be pressed after entering a command.
  39. ---------------------------------------------------------------------------
  40. To open an existing file:                      ∙OPEN <filename>
  41. To edit a file already open:                   ∙ED
  42. To leave the browser:                           F10      or ESC F E
  43. To leave the editor and save changes:           F10      or ESC F E
  44. To leave the editor and discard changes:        Alt-F10  or ESC F Q
  45. To create and edit a new filename:             ∙NEWFILE <newfilename>
  46. To load a file:                                ∙FLOAD <filename>
  47. To load a file already open:                   ∙OK  or  1 LOAD
  48. To view/browse a word's source:                ∙VIEW <word>
  49.    some short cuts to view and browse:         ∙V  <word>  or  ∙B <word>
  50. To edit a word's source:                       ∙ED <word>  or  ∙E <word>
  51. To see all words containing a string:          ∙WORDS <substring>
  52.    WORDS can be followed by two substrings:    ∙WORDS <substring> <substring>
  53. To de-compile a dictionary word to the screen: ∙SEE <wordname>
  54. To find all occurances of a string in a file:  ∙FLOOK <string> <filspec>
  55. ---------------------------------------------------------------------------
  56.   Some specific examples are given in the remainder of this file; browse
  57. it at your leasure.  Press F10 to leave at any time.
  58.  
  59.  
  60. Example:       ∙WORDS H <Enter>
  61.  
  62.   Will display all words in dictionary containing "H".
  63.  
  64. --[ FORTH ]--
  65.        ∙$HOPEN         ∙HOPEN
  66.  
  67. Example:       ∙VIEW ∙HOPEN <Enter>
  68.  
  69.   Will enter the browser displaying the source code for HOPEN.  Press F10
  70. to leave the browser.
  71.  
  72. Example:       ∙ED <Enter>
  73.  
  74.   After performing the above command sequence, ED will enter the editor
  75. on the source for HOPEN. This is like the browser but you have to be
  76. careful not to make any changes.  Press Alt-F10 to leave the EDITOR and
  77. NOT SAVE changes.
  78.  
  79.  
  80. Example:       ∙FLOAD SWINDOW <Enter>
  81.  
  82.   If the file SWINDOW is present on your disk, it will be compiled.  You
  83. can now type "POPUP" to see a sample popup window. You may get an error
  84. message if the file SWINDOW.SEQ is not present on your disk.
  85.  
  86.  
  87. Example:       ∙OPEN SWINDOW.SEQ ∙ED <Enter>
  88.  
  89.   This command will open the file SWINDOW, and enter the editor. The
  90. extension .SEQ is used AUTOMATICALLY if no extension is specified.
  91.  
  92.  
  93. Example:       ∙OK <Enter>
  94.  
  95.   Will compile the currently open file. This is the same as FLOAD but
  96. works on the most recently edited or viewed file.
  97.  
  98.  
  99. Example:       ∙SEE ∙HEX <Enter>
  100.  
  101. Displays:       : HEX
  102.                         16 BASE ! ;
  103.  
  104.   Allows you to see the source for a ":" definition without having the
  105. source file available on disk.
  106.  
  107.  
  108.   Here are some additional words you can use to manipulate files.
  109.  
  110.               <n1> ∙LOAD                \ Start loading file at <n1>.
  111.                                         \ (Defaults to 1 if stack empty)
  112.               ∙LISTING                  \ Print out the current file
  113.               ∙NEWFILE <newfile>        \ Create the file <newfile> if it
  114.                                         \ does not already exist, and edit it.
  115.               ∙INDEX                    \ Display first line of all .SEQ
  116.                                         \ files in current directory.
  117.  
  118.   The above examples should be enough to get you at least started in
  119. exploring F-PC.  If you are the type of person who likes to read everything
  120. before experimenting, then continue on and you will find out how to print
  121. the documentation included with F-PC.
  122.  
  123.   There is a considerable amount of documentation provided on disk to
  124. assist you in discovering F-PC.  Actually it is provided on disk because
  125. many of you won't have the User's Manual available to help you get started.
  126. I of course recommend you get the User's Manual: it was generated on a
  127. Macintosh, and laser printed. It is a good reference, with a good glossary,
  128. and is available from me for $20.00 dollars plus postage. You can see my
  129. address at the end of this document.
  130.  
  131. If you insist on making printouts of all of documentation files, here
  132. is a command to print a text file in the current directory:
  133.  
  134.                ∙FPRINT <filename.TXT> <Enter>
  135.  
  136.   Be sure your printer is ready for printing. If you are going to print all
  137. of the documentation, have at least several hundred sheets of paper
  138. available to complete the job.  The F-PCGLOS.TXT file may be too large to
  139. print from F-PC, depending on your memory size; in that case, use the NEWZ
  140. editor provided.
  141.  
  142.  
  143.   This next section of INTRO will tell you about some of the features of
  144. F-PC.
  145.  
  146.  
  147.   F-PC is a Forth derived from F83 and many other sources. Henry Laxen and
  148. Micheal Perry are the original developers of F83. My name is Tom Zimmer;
  149. I along with Robert L. Smith, Charles Curley, and Jerry Modrow put together
  150. this Forth.
  151.  
  152.   F-PC is a Direct Threaded Code (DTC) Forth. That is, it contains CODE in
  153. the CODE field rather than pointing to CODE. DTC gives a noticable boost
  154. in performance, which was needed to counteract the next enhancement.
  155.  
  156.   F-PC keeps the BODYs or LIST portion of ":" (colon) definitions in a
  157. seperate segment. This substantially increases the space available for
  158. your program. There is a penalty to pay in performance, with an extra
  159. level of indirection required in NEST.
  160.  
  161.   F-PC has a PREFIX assembler. CODE definitions are coded with a syntax
  162. similar to MASM, in the form " MOV AX, BX ".  We have found this syntax
  163. to be much more readable to "traditional" programmers than the standard
  164. F83 assembler.  To reduce the pain to current F83 users, the assembler
  165. supports the old F83 assembler syntax as well. Just use the word
  166. POSTFIX to select Postfix assembler syntax, and then use PREFIX to
  167. switch back to the Prefix syntax.
  168.  
  169.   F-PC supports full pathnames and file handles. Filenames may be up to
  170. 63 characters in length including the path.
  171.  
  172.   All source is in sequential files. No blocks in this system. The
  173. original F83 BLOCK system is available as a load-on if needed.
  174.  
  175.   An 8086 family disassembler is provided. The disassembler was
  176. written by Charles Curley, and includes 8087 support added by Robert
  177. L. Smith.
  178.  
  179.   The compiler itself has been substantially optimized, with almost
  180. all of WORD being in CODE. The system currently uses 64 threads, which
  181. is just at the point of diminishing return for a 1000 word vocabulary.
  182. With the 8 vocabularies this system has, only about 1k bytes of CODE
  183. space is used for the Vocabulary HEAD pointers.
  184.  
  185.   A help file is provided with each source file. These can be used
  186. like F83 shadow screens were used, that is to hold comments about the
  187. words in the source file. The word VIEW accesses the .SEQ file, and
  188. the word HELP accesses the .HLP file. As much or as little text as you want
  189. can be placed in the help file for each word compiled.
  190.  
  191.   Many utilities are included. An enhanced DEBUGger allows nesting
  192. and unnesting of ":" definitions.
  193.  
  194.   Several powerful file words have been included. FLOOK allows searching
  195. through one or many files for a particular character sequence. FPRINT
  196. allows you to make formatted listings of one, all, or a set of Forth
  197. source files. INDEX displays the first line of a set of files.
  198.  
  199.                 ********* NEW with release 3.5 *********
  200.  
  201.   This release includes my new TCOM Target COMpiler for generating
  202. small standalone .COM applications. See the TCOM.ZIP archive for full
  203. documentation and information.
  204.  
  205.   Upgrade Information:
  206.  
  207.         Send $50 in the continental US, or $60 overseas to:
  208.  
  209.                               Tom Zimmer
  210.                               292 Falcato Drive
  211.                               Milpitas CA        Home (408) 263-8859
  212.                                       95035      Work (408) 432-4643
  213.  
  214.         You will receive the latest version of the F-PC Forth, and
  215.         TCOM target compiler. Please be sure to include your return
  216.         address, and telephone number. You may want to call me for
  217.         information on the current version before ordering.
  218.  
  219.         NOTE: Funds must be in US currency.
  220.  
  221. PRESS F10 to leave this BROWSER.
  222.  
  223.