diff options
author | Clyne Sullivan <clyne@bitgloo.com> | 2023-11-17 20:27:33 -0500 |
---|---|---|
committer | Clyne Sullivan <clyne@bitgloo.com> | 2023-11-17 20:27:33 -0500 |
commit | e4f1fba4e8cc3991a6b6f40570c096c01f7c302d (patch) | |
tree | 501a5c03f5a495ab9c5940840a6edfa49a008175 /libalee/dictionary.cpp | |
parent | 22a89e994939824015a2ee23ac8a4d544a0882b6 (diff) |
add native definition bit
Diffstat (limited to 'libalee/dictionary.cpp')
-rw-r--r-- | libalee/dictionary.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/libalee/dictionary.cpp b/libalee/dictionary.cpp index b1cbc5f..e4f6761 100644 --- a/libalee/dictionary.cpp +++ b/libalee/dictionary.cpp @@ -91,14 +91,14 @@ Addr Dictionary::find(Word word) noexcept const Addr len = l & 0x1F; Word lw; - if ((l >> 6) < MaxDistance) { + if ((l >> DistancePos) < MaxDistance) { lw = Word::fromLength(lt + sizeof(Cell), len); if (equal(word, lw)) return lt; else if (lt == Begin) break; else - lt -= l >> 6; + lt -= l >> DistancePos; } else { lw = Word::fromLength(lt + 2 * sizeof(Cell), len); if (equal(word, lw)) @@ -120,7 +120,7 @@ Addr Dictionary::getexec(Addr addr) noexcept const Addr len = l & 0x1Fu; addr += sizeof(Cell); - if ((l >> 6) == MaxDistance) + if ((l >> DistancePos) == MaxDistance) addr += sizeof(Cell); addr += len; |