aboutsummaryrefslogtreecommitdiffstats
path: root/libalee/corewords.cpp
diff options
context:
space:
mode:
authorClyne Sullivan <clyne@bitgloo.com>2023-12-31 14:50:46 -0500
committerClyne Sullivan <clyne@bitgloo.com>2023-12-31 14:50:46 -0500
commit2261914a6b291bf4073cddf30a862df3c3a341e9 (patch)
tree3b03cec84c391039b60ec83df037fcf3057ce260 /libalee/corewords.cpp
parent22a89e994939824015a2ee23ac8a4d544a0882b6 (diff)
distancepos constant
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.