Implement BREAK to exit REPT and FOR loops

Fixes #684
This commit is contained in:
Rangi
2021-01-03 22:00:02 -05:00
committed by Eldred Habert
parent 7ce5cf1595
commit 62bea23c49
13 changed files with 204 additions and 7 deletions

17
test/asm/nested-break.asm Normal file
View File

@@ -0,0 +1,17 @@
n=1
rept 10
print "A"
for x, 10
print "a"
if x==n
break
endc
print "z"
endr
if n==6
break
endc
println "Z"
n=n+1
endr
println "\nn={d:n} x={d:x}"