aboutsummaryrefslogtreecommitdiffstats
path: root/libalee/corewords.cpp
diff options
context:
space:
mode:
authorClyne Sullivan <clyne@bitgloo.com>2023-03-11 16:24:25 -0500
committerClyne Sullivan <clyne@bitgloo.com>2023-03-11 16:24:25 -0500
commitbf7fe756a175a90dd82e970e5d620c6d8c459c17 (patch)
tree82dab52271f35db08177410ab1ef94cfe1d66be7 /libalee/corewords.cpp
parentf186ff2a22459ebf2fd83b63b66370d018dcbbef (diff)
u. um*
Diffstat (limited to 'libalee/corewords.cpp')
-rw-r--r--libalee/corewords.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/libalee/corewords.cpp b/libalee/corewords.cpp
index f22772c..136619c 100644
--- a/libalee/corewords.cpp
+++ b/libalee/corewords.cpp
@@ -222,6 +222,14 @@ execute:
find(state, word);
}
break;
+ case 34: // um*
+ cell = state.pop();
+ dcell = static_cast<DoubleCell>(
+ static_cast<Addr>(state.pop()) *
+ static_cast<Addr>(cell));
+ state.push(dcell);
+ state.push(dcell >> (sizeof(Cell) * 8));
+ break;
default:
state.push(index - WordCount);
break;