diff options
author | Clyne Sullivan <clyne@bitgloo.com> | 2023-02-09 20:15:16 -0500 |
---|---|---|
committer | Clyne Sullivan <clyne@bitgloo.com> | 2023-02-09 20:15:16 -0500 |
commit | 78507c65c4ab649bbb0655d9485bf2f6e712af5c (patch) | |
tree | 4563a821183fd6e11d7efc968ee5f8515db8ed85 /dictionary.cpp | |
parent | 501ca28d509bf6f41ed5797fa68f07e37ab9a294 (diff) |
implement if and then
Diffstat (limited to 'dictionary.cpp')
-rw-r--r-- | dictionary.cpp | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/dictionary.cpp b/dictionary.cpp index dced709..e1165d2 100644 --- a/dictionary.cpp +++ b/dictionary.cpp @@ -35,9 +35,6 @@ void Dictionary::addDefinition(std::string_view str) add(str.size()); for (char c : str) add(c); - - if (here & 1) - allot(1); } bool Dictionary::issame(Addr addr, std::string_view str, std::size_t n) @@ -75,6 +72,6 @@ Addr Dictionary::find(std::string_view str) Addr Dictionary::getexec(Addr addr) { const auto len = read(addr) & 0x1F; - return ((addr + 1 + len) + 1) & ~1; + return addr + 1 + len; } |