aboutsummaryrefslogtreecommitdiffstats
path: root/state.cpp
diff options
context:
space:
mode:
authorClyne Sullivan <clyne@bitgloo.com>2023-02-26 08:37:24 -0500
committerClyne Sullivan <clyne@bitgloo.com>2023-02-26 08:37:24 -0500
commit42d64c6da242bd100533ab0c31c3835b50fa1b2d (patch)
treed8cd79a55875b0daee738a99d6fda49401dffb20 /state.cpp
parent739fce1848538a92f9ae2ca893b65fbd50e6a720 (diff)
optimize ip incrementation
Diffstat (limited to 'state.cpp')
-rw-r--r--state.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/state.cpp b/state.cpp
index c27d95b..8e0f78d 100644
--- a/state.cpp
+++ b/state.cpp
@@ -37,12 +37,12 @@ State::Error State::execute(Addr addr)
if (!stat) {
if (addr < CoreWords::WordCount) {
CoreWords::run(addr, *this);
+ ip = 0;
} else {
auto ins = addr;
for (;;) {
CoreWords::run(ins, *this);
- ip += sizeof(Cell);
ins = dict.read(ip);
}
}