Fix definition of 2! in Forth
authorUlrich Hoffmann <uho@xlerb.de>
Sat, 26 Oct 2019 12:30:27 +0000 (14:30 +0200)
committerUlrich Hoffmann <uho@xlerb.de>
Sat, 26 Oct 2019 12:30:27 +0000 (14:30 +0200)
preForth/forth.simple

index 3ed8039..c328a8b 100644 (file)
@@ -38,8 +38,8 @@
 : 2@ ( addr -- x1 x2 )
    dup cell+ @ swap @ ;
 
-: 2! ( x1 x2 -- addr )
-   swap over cell+ ! ! ;
+: 2! ( x1 x2 addr -- )
+   swap over ! cell+ ! ;
 
 \ number output
 \ -------------