mirror of
https://github.com/nineties/planckforth
synced 2024-12-25 21:58:22 +01:00
Add ?dup
This commit is contained in:
parent
e11e1f782e
commit
a1242df09e
1 changed files with 4 additions and 0 deletions
4
core.fs
4
core.fs
|
@ -629,6 +629,10 @@ alias-builtin xor ^
|
|||
[compile] if
|
||||
; immediate
|
||||
|
||||
\ ( n -- n n | n )
|
||||
\ duplicate if n<>0
|
||||
: ?dup dup if dup then ;
|
||||
|
||||
\ === Loops ===
|
||||
\ begin <body> <condition> until
|
||||
\ begin <body> again
|
||||
|
|
Loading…
Reference in a new issue