public
/
preForth.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1905367
)
Fix definition of 2! in Forth
author
Ulrich Hoffmann
<uho@xlerb.de>
Sat, 26 Oct 2019 12:30:27 +0000
(14:30 +0200)
committer
Ulrich Hoffmann
<uho@xlerb.de>
Sat, 26 Oct 2019 12:30:27 +0000
(14:30 +0200)
preForth/forth.simple
patch
|
blob
|
history
diff --git
a/preForth/forth.simple
b/preForth/forth.simple
index
3ed8039
..
c328a8b
100644
(file)
--- a/
preForth/forth.simple
+++ b/
preForth/forth.simple
@@
-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
\ -------------