mirror of
https://github.com/nineties/planckforth
synced 2024-12-25 21:58:22 +01:00
Add "c"
This commit is contained in:
parent
4895cc8c66
commit
4efb8db97d
1 changed files with 11 additions and 0 deletions
11
core.fs
11
core.fs
|
@ -131,4 +131,15 @@ h@l@, k1k0-h@$ k'h@k1k0-+$ h@C+h!
|
|||
i, kkf, kff, kef,
|
||||
l!
|
||||
|
||||
\ Utility for defining a word
|
||||
\ 'c' ( "c" -- w )
|
||||
\ Read character, create new word then push its address.
|
||||
\ 'latest' will not be updated.
|
||||
h@l@, k1k0-h@$ kch@k1k0-+$ h@C+h!
|
||||
i, 'h, '@, 'l, '@, ',,
|
||||
'L, k1k0-, 'h, '@, '$,
|
||||
'k, 'h, '@, 'L, k1k0-, '+, '$,
|
||||
'h, '@, 'C, '+, 'h, '!, 'e,
|
||||
l!
|
||||
|
||||
Q
|
||||
|
|
Loading…
Reference in a new issue