papierkorb:forth_tutorial
Unterschiede
Hier werden die Unterschiede zwischen zwei Versionen angezeigt.
| papierkorb:forth_tutorial [2025-08-16 19:10] – ↷ Seite von projects:forth_tutorial nach papierkorb:forth_tutorial verschoben mka | papierkorb:forth_tutorial [Unbekanntes Datum] (aktuell) – gelöscht - Externe Bearbeitung (Unbekanntes Datum) 127.0.0.1 | ||
|---|---|---|---|
| Zeile 1: | Zeile 1: | ||
| - | === Forth Tutorial === | ||
| - | < | ||
| - | Screen 1 not modified | ||
| - | | ||
| - | | ||
| - | | ||
| - | | ||
| - | | ||
| - | | ||
| - | | ||
| - | | ||
| - | | ||
| - | | ||
| - | 10 If you want to spend money, you can buy a FORTH that | ||
| - | 11 is almost as good. | ||
| - | 12 | ||
| - | 13 When you're ready to proceed, tell your computer | ||
| - | 14 " | ||
| - | 15 | ||
| - | |||
| - | |||
| - | Screen 2 not modified | ||
| - | | ||
| - | | ||
| - | | ||
| - | | ||
| - | | ||
| - | | ||
| - | | ||
| - | | ||
| - | | ||
| - | | ||
| - | 10 Say 0 p-in and then " | ||
| - | 11 | ||
| - | 12 Say 0 p-in again to toggle the printer off. | ||
| - | 13 | ||
| - | 14 | ||
| - | 15 | ||
| - | |||
| - | |||
| - | Screen 3 not modified | ||
| - | 0 ( 3rd Grade Arithmetic | ||
| - | | ||
| - | 2 THE STACK WITH THE KEYBOARD, AND YOU TAKE IT OFF WITH A " | ||
| - | 3 YOU SAY "2 . ", THE COMPUTER WILL ANSWER " | ||
| - | 4 ON THE STACK AND CAME FROM IT. | ||
| - | 5 " | ||
| - | | ||
| - | | ||
| - | | ||
| - | | ||
| - | 10 IF YOU WANT MORE MATH, YOU DON'T NEED A TUTOR, YOU NEED A | ||
| - | 11 TEXTBOOK. | ||
| - | 12 | ||
| - | 13 | ||
| - | 14 | ||
| - | 15 | ||
| - | |||
| - | |||
| - | Screen 4 not modified | ||
| - | 0 ( Use a Space Between each Word!!! | ||
| - | | ||
| - | 2 BASIC if you had been the inventor. | ||
| - | | ||
| - | 4 more basic words of the Forth inventor: | ||
| - | 5 : CLAYTON ." FORTH IS BEAUTIFUL | ||
| - | 6 : 2NDWORD DARK cr cr cr cr cr 20 SPACES CLAYTON ; | ||
| - | 7 : 3RDWORD 2NDWORD 4 TIMES ; ( Now say "4 LOAD" | ||
| - | | ||
| - | 9 it flash. | ||
| - | 10 my words: ":" | ||
| - | 11 of every word which you can compile. | ||
| - | 12 that you're making up a word. | ||
| - | 13 DARK tells the computer to clear the screen. ." | ||
| - | 14 the computer to display the enclosed string. | ||
| - | 15 space after the word [." | ||
| - | |||
| - | |||
| - | Screen 5 not modified | ||
| - | 0 ( SAVING WORDS | ||
| - | | ||
| - | 2 with Editor. Pick an empty screen, such as 17. Say "17 EDIT" | ||
| - | 3 Now say " | ||
| - | 4 whatever might already be there. | ||
| - | 5 then " | ||
| - | 6 ) : NEWWORD ." This is easy." ; | ||
| - | 7 ( Go ahead " | ||
| - | 8 You can go back and correct any typos with the same two commands | ||
| - | | ||
| - | 10 right, say " | ||
| - | 11 | ||
| - | 12 One last word: if you want the words on your screen to execute | ||
| - | 13 you have to say "17 LOAD" first; then you can call them and they | ||
| - | 14 work. | ||
| - | 15 To delete a word (and everything after) say FORGET < | ||
| - | |||
| - | |||
| - | Screen 6 not modified | ||
| - | | ||
| - | | ||
| - | | ||
| - | 3 gerous. | ||
| - | 4 replaced. | ||
| - | | ||
| - | 6 such as at 15, say "6 15 COPY"; | ||
| - | 7 By now you should know two ways to erase either one of them. | ||
| - | | ||
| - | | ||
| - | 10 copy a screen from this file to MYFILE.BLK. | ||
| - | 11 "20 create-file myfile.blk" | ||
| - | 12 Then you say "from d.blk" and finally you say | ||
| - | 13 "n1 n2" COPY" | ||
| - | 14 of the other file. Beautiful. | ||
| - | 15 Go ahead; you can do it. | ||
| - | |||
| - | |||
| - | Screen 7 not modified | ||
| - | 0 ( Disk to Disk cla | ||
| - | | ||
| - | 2 Drive B. Now start FORTH like you always do on Drive A. Now | ||
| - | 3 say "OPEN YOURFILE.XXX" | ||
| - | 4 First you have to say " | ||
| - | 5 and you should be in business. | ||
| - | | ||
| - | 7 ball game. With this command and what you learned yesterday you | ||
| - | 8 can transfer a Screen from Disk A to Disk B. First open your re- | ||
| - | 9 ceiving file; then say " | ||
| - | 10 For example "from a: | ||
| - | 11 | ||
| - | 12 | ||
| - | 13 | ||
| - | 14 | ||
| - | 15 | ||
| - | |||
| - | |||
| - | Screen 8 not modified | ||
| - | | ||
| - | | ||
| - | 2 BOOT of course is at the bottom of memory. | ||
| - | 3 words. | ||
| - | 4 Now say " ' EMPTY . " (or whatever your last word is). That' | ||
| - | 5 where the FENCE is. You can't forget past that point. | ||
| - | | ||
| - | 7 your own words. | ||
| - | | ||
| - | | ||
| - | 10 only look at the screen buffers. | ||
| - | 11 how many we have. (When you become expert you can have more or | ||
| - | 12 less.) | ||
| - | 13 say "LIMIT ." That's where they end. The user area is just | ||
| - | 14 below the buffer area. All this becomes more important | ||
| - | 15 as you GO FORTH. | ||
| - | |||
| - | |||
| - | Screen 9 not modified | ||
| - | 0 ( To Stop the Action | ||
| - | | ||
| - | | ||
| - | 3 you want to hold the screen until he's ready to proceed. | ||
| - | 4 a way to do it. (These words may be loaded from this screen) | ||
| - | 5 : STARTER DARK ." Put the second part of your program here." ; | ||
| - | 6 : KEYTOGO KEY ; | ||
| - | 7 : WAITER ." TO CONTINUE PRESS A KEY" KEYTOGO STARTER ; | ||
| - | 8 ( Call your next sequence " | ||
| - | 9 (Now write your screen and on line 15 put " | ||
| - | 10 load this screen and that one and you're home free. | ||
| - | 11 | ||
| - | 12 If you want to wake him up put " | ||
| - | 13 | ||
| - | 14 | ||
| - | 15 | ||
| - | |||
| - | |||
| - | Screen 10 not modified | ||
| - | 0 ( REITERATION | ||
| - | | ||
| - | | ||
| - | | ||
| - | | ||
| - | | ||
| - | 6 : PREAMBLE DARK ." THIS COMPUTER IS SO SMART IT CAN COUNT TO 10. | ||
| - | | ||
| - | 8 : GOAHEAD BEGIN KEY 89 = UNTIL ; ( 89 is ASCII for CAPITAL Y) | ||
| - | 9 : FIRSTLINE CR ." HERE'S THE FIRST NUMBER " 2 SPACES 1 . ; | ||
| - | 10 : MYLOOP 11 2 DO CR ." HERE'S THE NEXT NUMBER " 2 SPACES | ||
| - | 11 I . LOOP ; ( MYLOOP executes everything between DO and LOOP | ||
| - | 12 from time 2 through time 10. I of course is the counter.) | ||
| - | 13 : TAIL 10 SPACES ." I'm sure you know enough to press L now." ; | ||
| - | 14 : OH-WOW PREAMBLE GOAHEAD FIRSTLINE MYLOOP TAIL ; | ||
| - | 15 OH-WOW | ||
| - | |||
| - | |||
| - | Screen 11 not modified | ||
| - | 0 ( Create your own file | ||
| - | | ||
| - | 2 Pick a name and put it with these magic words: | ||
| - | | ||
| - | | ||
| - | | ||
| - | | ||
| - | | ||
| - | 8 screens that you want into your file. Or you can say "n EDIT" | ||
| - | 9 and define any words or write any programs you want to. | ||
| - | 10 | ||
| - | 11 of us. Good luck. | ||
| - | 12 ) | ||
| - | 13 | ||
| - | 14 | ||
| - | 15 | ||
| - | |||
| - | |||
| - | Screen 12 not modified | ||
| - | 0 ( | ||
| - | | ||
| - | 2 point by pressing a key. Every word is a program, most of them | ||
| - | 3 made up of other more basic words. | ||
| - | 4 by saying "SEE WORD" | ||
| - | 5 it will in a few days. Any words you make up will be added to | ||
| - | 6 the dictionary. They are put in the beginning. | ||
| - | 7 of them, say " | ||
| - | 8 word up to and including MYWORD. | ||
| - | | ||
| - | 10 the Editor and say " | ||
| - | 11 If you say " | ||
| - | 12 If you say " | ||
| - | 13 ries. If you want to know what that means, check your textbook. | ||
| - | 14 If you spend a few days with these screens, you'll be | ||
| - | 15 ready to get the most out of F83. You can do it!! ) | ||
| - | |||
| - | |||
| - | Screen 13 not modified | ||
| - | 0 ( F83 Versions 1 and 2 [ the CP/M programs.] | ||
| - | | ||
| - | | ||
| - | 3 Version 1 has the commands "0 SET-DRIVE" | ||
| - | 4 Version 2 uses " | ||
| - | 5 Version 1 may require words to be in caps. | ||
| - | 6 Version 2 doesn' | ||
| - | | ||
| - | | ||
| - | | ||
| - | 10 | ||
| - | 11 If all else fails, call me at 703 534 3137, and I'll help | ||
| - | 12 you get a copy. | ||
| - | 13 | ||
| - | 14 YOU CAN GO FORTH. | ||
| - | 15 | ||
| - | |||
| - | |||
| - | Screen 14 not modified | ||
| - | | ||
| - | | ||
| - | | ||
| - | | ||
| - | | ||
| - | | ||
| - | | ||
| - | | ||
| - | | ||
| - | | ||
| - | 10 | ||
| - | 11 | ||
| - | 12 | ||
| - | 13 | ||
| - | 14 | ||
| - | 15 | ||
| - | |||
| - | |||
| - | Screen 15 not modified | ||
| - | | ||
| - | | ||
| - | | ||
| - | | ||
| - | | ||
| - | | ||
| - | | ||
| - | | ||
| - | | ||
| - | | ||
| - | 10 | ||
| - | 11 | ||
| - | 12 | ||
| - | 13 | ||
| - | 14 | ||
| - | 15 | ||
| - | |||
| - | |||
| - | Screen 16 not modified | ||
| - | | ||
| - | | ||
| - | | ||
| - | 3 Clayton" | ||
| - | | ||
| - | 5 ry" cr cr 20 spaces ." for ECCO and the PUBLIC DOMAIN" | ||
| - | | ||
| - | | ||
| - | 8 ." Neither the author nor distributor has any responsibility for | ||
| - | 9 " | ||
| - | 10 program." | ||
| - | 11 EMPTY-BUFFERS | ||
| - | 12 key dark d.blk 1 list ; | ||
| - | 13 ' howdie IS BOOT | ||
| - | 14 | ||
| - | 15 | ||
| - | |||
| - | |||
| - | Screen 17 not modified | ||
| - | | ||
| - | | ||
| - | | ||
| - | | ||
| - | | ||
| - | | ||
| - | | ||
| - | | ||
| - | | ||
| - | | ||
| - | 10 | ||
| - | 11 | ||
| - | 12 | ||
| - | 13 | ||
| - | 14 | ||
| - | 15 | ||
| - | |||
| - | |||
| - | </ | ||
papierkorb/forth_tutorial.1755364236.txt.gz · Zuletzt geändert: 2025-08-16 19:10 von mka