From: Tim Vaughan Date: Mon, 10 Oct 2016 11:01:37 +0000 (+1300) Subject: Now reads lib1 fine, but doesn't continue to lib2. X-Git-Url: https://thelambdalab.xyz/gitweb/index.cgi?a=commitdiff_plain;h=2ab8823537ce8773c38605931ab69b332953c738;p=forth.jl.git Now reads lib1 fine, but doesn't continue to lib2. --- diff --git a/src/forth.jl b/src/forth.jl index 4013917..58f6940 100644 --- a/src/forth.jl +++ b/src/forth.jl @@ -1245,6 +1245,7 @@ INCLUDED_CFA = defWord("INCLUDED", SOURCE_ID_CFA, FETCH_CFA, QUERY_FILE_CFA, # Read line from file INTERPRET_CFA, # Interpret line EOF_FLAG_CFA, FETCH_CFA, ZBRANCH_CFA, -7, # Loop if not EOF + SOURCE_ID_CFA, FETCH_CFA, CLOSE_FILE_CFA, DROP_CFA, # Close file SOURCE_ID_CFA, STORE_CFA, # Restore input source EXIT_CFA]) @@ -1305,8 +1306,8 @@ function run(;initialize=true) jmp = mem[EXIT_CFA] while jmp != 0 try - #print("Entering prim $(getPrimName(jmp)), PS: ") - #printPS() + print("Entering prim $(getPrimName(jmp)), PS: ") + printPS() jmp = callPrim(jmp)