aboutsummaryrefslogtreecommitdiffstats
path: root/corewords.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'corewords.hpp')
-rw-r--r--corewords.hpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/corewords.hpp b/corewords.hpp
index 020694f..56f7703 100644
--- a/corewords.hpp
+++ b/corewords.hpp
@@ -29,22 +29,22 @@ class CoreWords
public:
constexpr static std::size_t WordCount = 32;
- constexpr static Cell Immediate = (1 << 5);
+ constexpr static Cell Immediate = (1 << 6);
+
+ constexpr static int Semicolon = 26;
static int findi(const char *);
static int findi(State&, Word);
static void run(unsigned int, State&);
private:
- // Ends with '\0': regular word
- // Ends with '\1': compile-only word
constexpr static char wordsarr[] =
"_lit\0drop\0dup\0swap\0pick\0sys\0"
"+\0-\0m*\0_/\0_%\0"
"_@\0_!\0>r\0r>\0=\0"
"<\0&\0|\0^\0"
"<<\0>>\0:\0'\0execute\0"
- "exit\0;\1_jmp0\0_jmp\0"
+ "exit\0;\0_jmp0\0_jmp\0"
"depth\0_rdepth\0key\0";
};