mirror of
https://github.com/nineties/planckforth
synced 2024-12-27 21:58:35 +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
|
[compile] if
|
||||||
; immediate
|
; immediate
|
||||||
|
|
||||||
|
\ ( n -- n n | n )
|
||||||
|
\ duplicate if n<>0
|
||||||
|
: ?dup dup if dup then ;
|
||||||
|
|
||||||
\ === Loops ===
|
\ === Loops ===
|
||||||
\ begin <body> <condition> until
|
\ begin <body> <condition> until
|
||||||
\ begin <body> again
|
\ begin <body> again
|
||||||
|
|
Loading…
Reference in a new issue