(71B) FORTH questions
|
05-29-2023, 04:52 PM
Post: #2
|
|||
|
|||
RE: (71B) FORTH questions
If you have text file PERE12 on a LIF volume HDRIVE16.DAT mounted as :TAPE(1) you can do this:
COPY PERE12:TAPE(1) TO :MAIN FORTH LOADF " PERE12" (note the space following the initial double quote) This will load the text file into 71B Forth. As Sylvain noted, while most Forth systems load successive "screens" via the LOAD command, on 71B Forth, the LOADF (meaning LOAD from File) is used to read from a text file. If you get no errors, then the words have been successfully loaded into the current dictionary, and are now available to use interactively, or to build into programs. Note that if you get an error while processing the 6th Forth word and it aborts, the initial 5 words have still been added to your dictionary and likely should be removed before you try again, after correcting the problem in the failed word. One way to make that easier is to start your file with a 'placeholder' word such as : PLACE ; and then after it fails you can simply use FORGET PLACE to remove all the words starting from PLACE to the end of the dictionary. --Bob Prosperi |
|||
« Next Oldest | Next Newest »
|
User(s) browsing this thread: 3 Guest(s)