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.hpp | |
parent | 22a89e994939824015a2ee23ac8a4d544a0882b6 (diff) |
add native definition bit
Diffstat (limited to 'libalee/dictionary.hpp')
-rw-r--r-- | libalee/dictionary.hpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/libalee/dictionary.hpp b/libalee/dictionary.hpp index ad1ee02..092026b 100644 --- a/libalee/dictionary.hpp +++ b/libalee/dictionary.hpp @@ -73,8 +73,12 @@ public: /** "Immediate" marker bit for a word's definition. */ constexpr static Cell Immediate = (1 << 5); + /** TODO */ + constexpr static Cell Native = (1 << 6); + /** TODO */ + constexpr static Cell DistancePos = 7; /** Maximum "short" distance between two definitions. */ - constexpr static Cell MaxDistance = (1 << (sizeof(Cell) * 8 - 6)) - 1; + constexpr static Cell MaxDistance = (1 << (sizeof(Cell) * 8 - DistancePos)) - 1; /** Returns the value of the cell at the given address. */ virtual Cell read(Addr) const noexcept = 0; |