summaryrefslogtreecommitdiff
path: root/vm.c
diff options
context:
space:
mode:
authorubq323 <ubq323@ubq323.website>2024-06-21 16:23:03 +0100
committerubq323 <ubq323@ubq323.website>2024-06-21 16:23:03 +0100
commitd6ce4e22ad9b98ab06812506f5bec2d4226ee7d2 (patch)
tree8d8c0435856faf871e7b5eff7d38a3c88da04051 /vm.c
parent81662aa56b8ad2fa397b1d3e9dd3bb398c7d1798 (diff)
mandelbrot
Diffstat (limited to 'vm.c')
-rw-r--r--vm.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/vm.c b/vm.c
index eac0033..e3509c7 100644
--- a/vm.c
+++ b/vm.c
@@ -88,6 +88,9 @@ int runvm(State *S) {
case OP_PUTS:
println_val(PEEK());
break;
+ case OP_PRINT:
+ print_val(PEEK());
+ break;
case OP_DROP:
--th->sp;
break;