mirror of
https://github.com/nineties/planckforth
synced 2024-12-27 21:58:35 +01:00
Add "immediate"
This commit is contained in:
parent
a63cbd0b69
commit
d1cfab7667
1 changed files with 11 additions and 0 deletions
11
core.fs
11
core.fs
|
@ -382,4 +382,15 @@ c ; i ,
|
||||||
\ Set immediate-bit of ';'
|
\ Set immediate-bit of ';'
|
||||||
l @ C + # { ? k @ k @ + | } $
|
l @ C + # { ? k @ k @ + | } $
|
||||||
|
|
||||||
|
: immediate-bit [ ' L , k @ k @ + , ] ;
|
||||||
|
: length-mask [ ' L , k O k 0 + , ] ;
|
||||||
|
|
||||||
|
\ ( "name" -- )
|
||||||
|
: set-immediate
|
||||||
|
W F C + # { ? immediate-bit | } $
|
||||||
|
;
|
||||||
|
|
||||||
|
\ Set immediate-bit of single-line comment word \
|
||||||
|
\ so that we can write comments in compile-mode.
|
||||||
|
set-immediate \
|
||||||
Q
|
Q
|
||||||
|
|
Loading…
Reference in a new issue