aboutsummaryrefslogtreecommitdiffstats
path: root/executor.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'executor.hpp')
-rw-r--r--executor.hpp19
1 files changed, 8 insertions, 11 deletions
diff --git a/executor.hpp b/executor.hpp
index 485e82a..62afe5f 100644
--- a/executor.hpp
+++ b/executor.hpp
@@ -21,22 +21,19 @@
#include "corewords.hpp"
-//#include <iostream>
-
class Executor
{
public:
static int fullexec(State& state, Addr addr) {
state.pushr(0);
- state.ip = addr - 1;
-
- do {
- ++state.ip;
- //std::cout << "-- " << state.rsize() << "e " << state.ip << std::endl;
- CoreWords::run(state.dict.read(state.ip), state);
- } while (state.ip);
-
- return 0;
+ state.ip = addr - 1;
+
+ do {
+ ++state.ip;
+ CoreWords::run(state.dict.read(state.ip), state);
+ } while (state.ip);
+
+ return 0;
}
};