aboutsummaryrefslogtreecommitdiff
path: root/vm.d
diff options
context:
space:
mode:
Diffstat (limited to 'vm.d')
-rw-r--r--vm.d7
1 files changed, 7 insertions, 0 deletions
diff --git a/vm.d b/vm.d
index ba7fc50..a865a50 100644
--- a/vm.d
+++ b/vm.d
@@ -500,6 +500,13 @@ class VM {
double anum = asNumber(a);
this.pushA(makeNumberValue(anum - bnum));
break;
+ case OpCode.OP_MULTIPLY:
+ Value b = this.popA();
+ Value a = this.popA();
+ double bnum = asNumber(b);
+ double anum = asNumber(a);
+ this.pushA(makeNumberValue(anum * bnum));
+ break;
case OpCode.OP_NOT:
Value val = this.popA();
bool bval = asBoolean(val);