X-Git-Url: https://git.kengrimes.com/?p=watForth.git;a=blobdiff_plain;f=forth.forth;h=e7dc22974c155f5366adf97e19e9d52b049b4446;hp=0ffbc9c57ce2ad326c5572ef3b2e875a5ba7caed;hb=d30761f3974c9a6ccc543392c20060885ca91a36;hpb=5d787df4e2ff2a70cde1b599a3ff99faf9136179 diff --git a/forth.forth b/forth.forth index 0ffbc9c..e7dc229 100644 --- a/forth.forth +++ b/forth.forth @@ -1,12 +1,28 @@ -5 . +\ This program is free software: you can redistribute it and/or modify +\ it under the terms of the GNU General Public License as published by +\ the Free Software Foundation, either version 3 of the License, or +\ (at your option) any later version. +\ +\ This program is distributed in the hope that it will be useful, +\ but WITHOUT ANY WARRANTY; without even the implied warranty of +\ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +\ GNU General Public License for more details. +\ +\ You should have received a copy of the GNU General Public License +\ along with this program. If not, see . word ' here define word word find , word find find , word ; find , word : here define ' word , ' here , ' define , ' ; , : IWRITE-MODE ' dup , ' JNZ: , here 12 + , ' 2drop , ' ; , -' find , ' dup , ' JZ: , here 12 + , ' , , ' ; , +' 2dup , ' find , ' dup , ' JZ: , here 16 + , ' , , ' 2drop , ' ; , +' drop , ' LIT , ' LIT , ' , , 16720 , ' , , ' ; , : i ' LIT , ' MODE , ' LIT , ' IWRITE-MODE , ' ! , ' ; , : e ' LIT , ' MODE , ' LIT , ' EXECUTE-MODE , ' ! , ' ; , -: TEST \i DUP + DUP + . ; \e -5 TEST -2 . \ No newline at end of file +\i +\: FINISH-STRING DROP STRING-END ; +\: " STRING-START +\: KEYPUMP KEY 34 =? JNZ: FINISH-STRING STRING-PUT JMP: KEYPUMP +\e +" watForth-32 Interactive CLI: +" .s