mirror of
https://github.com/nineties/planckforth
synced 2025-01-13 08:01:10 +01:00
Wrote ','
This commit is contained in:
parent
edde64d0c1
commit
1009da441a
1 changed files with 17 additions and 0 deletions
17
core.fs
17
core.fs
|
@ -104,4 +104,21 @@ l!
|
||||||
|
|
||||||
\ That's all for the brief explanation. Let's restart bootstrap!
|
\ That's all for the brief explanation. Let's restart bootstrap!
|
||||||
|
|
||||||
|
\ The COMMA operator
|
||||||
|
\ ',' ( a -- ) Store a to 'here' and increment 'here' CELL bytes.
|
||||||
|
h@l@h@! h@C+h!
|
||||||
|
k1k0-h@$ k,h@k1k0-+$ h@C+h!
|
||||||
|
i h@!h@C+h! \ docol
|
||||||
|
khf h@!h@C+h!
|
||||||
|
k@f h@!h@C+h!
|
||||||
|
k!f h@!h@C+h! \ store 'a' to here
|
||||||
|
khf h@!h@C+h!
|
||||||
|
k@f h@!h@C+h!
|
||||||
|
kCf h@!h@C+h!
|
||||||
|
k+f h@!h@C+h! \ compute here + CELL
|
||||||
|
khf h@!h@C+h!
|
||||||
|
k!f h@!h@C+h! \ here <- here + CELL
|
||||||
|
kef h@!h@C+h! \ exit
|
||||||
|
l!
|
||||||
|
|
||||||
Q
|
Q
|
||||||
|
|
Loading…
Reference in a new issue