aboutsummaryrefslogtreecommitdiffstats
path: root/libalee/corewords.cpp
diff options
context:
space:
mode:
authorClyne Sullivan <clyne@bitgloo.com>2023-11-17 20:27:33 -0500
committerClyne Sullivan <clyne@bitgloo.com>2023-11-17 20:27:33 -0500
commite4f1fba4e8cc3991a6b6f40570c096c01f7c302d (patch)
tree501a5c03f5a495ab9c5940840a6edfa49a008175 /libalee/corewords.cpp
parent22a89e994939824015a2ee23ac8a4d544a0882b6 (diff)
add native definition bit
Diffstat (limited to 'libalee/corewords.cpp')
-rw-r--r--libalee/corewords.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/libalee/corewords.cpp b/libalee/corewords.cpp
index d47e092..8ff7ac6 100644
--- a/libalee/corewords.cpp
+++ b/libalee/corewords.cpp
@@ -241,7 +241,7 @@ void CoreWords::word_semic(State& state) { // Concludes word definition.
dcell = Dictionary::MaxDistance;
}
state.dict.write(cell,
- (state.dict.read(cell) & 0x1F) | static_cast<Cell>(dcell << 6));
+ (state.dict.read(cell) & 0x1F) | static_cast<Cell>(dcell << Dictionary::DistancePos));
state.dict.latest(cell);
}
void CoreWords::word_jmp0(State& state) { // Jump if popped value equals zero.