Stacks cleared on error.
authorTim Vaughan <tgvaughan@gmail.com>
Tue, 26 Apr 2016 21:05:46 +0000 (09:05 +1200)
committerTim Vaughan <tgvaughan@gmail.com>
Tue, 26 Apr 2016 21:05:46 +0000 (09:05 +1200)
src/forth.jl

index bba6a98..fba2375 100644 (file)
@@ -1020,6 +1020,8 @@ function run(;initialize=true)
 
             mem[STATE] = 0
             mem[NUMTIB] = 0
+            reg.PSP = mem[PSP0]
+            reg.RSP = mem[RSP0]
             reg.IP = QUIT + 1
             jmp = NEXT
         end