home *** CD-ROM | disk | FTP | other *** search
- ╔════════════════════════════════════════════════════╗
- ║ Lesson 2 Part 010 F-PC 3.5 Tutorial by Jack Brown ║
- ╚════════════════════════════════════════════════════╝
-
- ┌──────────────────────────────────────────────────────┐
- │ Review some of the words we have introduced so far. │
- └──────────────────────────────────────────────────────┘
-
- ┌────────────────────┐
- │ At the dos prompt: │
- └────────────────────┘
-
- F <enter> ( Start F-PC with no file open. )
- F <name>.SEQ <enter> ( Start F-PC with <name>.SEQ open.)
- F <name>.SEQ ED <enter> ( Start F-PC with <name>.SEQ open and EDit it)
-
- ┌─────────────────────────┐
- │ At the Forth ok prompt: │
- └─────────────────────────┘
-
- BYE <enter> ( Exit Forth and return to DOS )
- HELP <enter> ( Get information on HELP )
- HELP <word> <enter> ( Get help information on <word> )
- VIEW <word> <enter> ( List source code for <word> )
-
- ┌─────────────────────┐
- │ Dictionary words │
- └─────────────────────┘
-
- FORGET <word> <enter> ( Remove <word> and all following words )
- ( from the dictionary. )
- EMPTY <enter> ( Forget all words added this session. )
- WORDS <enter> ( List all words in current vocabulary. )
- WORDS <string> <enter> ( List all words matching with <string>. )
-
- ┌─────────────────────────────┐
- │ Opening and Editing Files │
- └─────────────────────────────┘
-
- NEWFILE <filename> <enter> ( Open <filename> and start editing it. )
- OPEN <filename> <enter> ( Open existing file called <filename>. )
- ED ( Start editing current open file. )
- <n> EDIT ( Start editing courent open file at line <n> )
-
- ┌────────────────────────┐
- │ Compiling From Files │
- └────────────────────────┘
-
- FLOAD <filename> <enter> ( Compile the Forth definitions in <filename>.)
- 1 LOAD <enter> ( Compile currently open file from line 1. )
- OK <enter> ( A short weird name for the above. )
- <n> LOAD <enter> ( Compile currently open file from line <n>. )
-
-
- ┌───────────────────────────────────────────────────────┐
- │ Browse currently open file starting at current line. │
- └───────────────────────────────────────────────────────┘
-
- BROWSE <enter> or B <enter>
- VIEW <enter> or V <enter>
- L <enter>
- <n> LIST <enter> ( Browse open file starting from line <n>. )
-
- ┌────────────────────────────────────────────────┐
- │ Browse the *.SEQ file containing <word_name> │
- └────────────────────────────────────────────────┘
-
- BROWSE <word_name> <enter> or B <word_name> <enter>
- VIEW <word_name> <enter> or V <word_name> <enter>
- L <word_name> <enter>
-
- ┌───────────────┐
- │ Word Pairs │
- └───────────────┘
-
- : <name> .... ; ( Create new word <name> .)
-
- ." <string> " ( Compile the <string> into the )
- ( dictionary. <string> will be )
- ( printed when word is executed. )
- ( Do not use outside a colon def.)
-
- .( <string> ) ( Print string to terminal. Use )
- ( outside a colon definition. )
-
- <last> <first> DO ... LOOP ( Use within a colon def to )
- ( loop from first to last. )
- <last> <first> ?DO ... LOOP ( Same as above except loop )
- ( 0 times if first=last )
- BEGIN .... AGAIN ( Use within a colon def to )
- ( create an infinite loop. )
-
- ┌──────────────────────────────────────┐
- │ Please move to Lesson 2 Part 015 │
- └──────────────────────────────────────┘
-
-
-