mirror of
https://github.com/nineties/planckforth
synced 2024-12-26 21:58:42 +01:00
fixed a bug of do-loop
This commit is contained in:
parent
8356ff933a
commit
f71413d42b
1 changed files with 6 additions and 0 deletions
|
@ -1723,9 +1723,15 @@ do-stack 16 cells + do-sp !
|
|||
|
||||
\ compile: ( -- dest mark )
|
||||
: do
|
||||
compile 2dup
|
||||
compile >r \ save start
|
||||
compile >r \ save limit
|
||||
\ leave if start >= limit
|
||||
compile >
|
||||
compile 0branch
|
||||
0 ,
|
||||
here >do do-mark >do
|
||||
here cell- >do leave-mark >do
|
||||
; immediate
|
||||
|
||||
: leave ( -- orig mark )
|
||||
|
|
Loading…
Reference in a new issue