The Lambda Lab
/
projects
/
forth.jl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
77664f8
)
Interpreter almost works!!!
author
Tim Vaughan
<tgvaughan@gmail.com>
Sat, 23 Apr 2016 02:11:24 +0000
(14:11 +1200)
committer
Tim Vaughan
<tgvaughan@gmail.com>
Sat, 23 Apr 2016 02:11:24 +0000
(14:11 +1200)
src/forth.jl
patch
|
blob
|
history
diff --git
a/src/forth.jl
b/src/forth.jl
index
d6a10e6
..
27f9dc3
100644
(file)
--- a/
src/forth.jl
+++ b/
src/forth.jl
@@
-842,6
+842,11
@@
end)
#### VM loop ####
function runVM()
+ # Start with IP pointing to first instruction of outer interpreter
+ reg.IP = QUIT + 1
+
+ # Primitive processing loop.
+ # Everyting else is simply a consequence of this loop!
jmp = mem[NEXT]
while (jmp = callPrim(jmp)) != 0 end
end