From 9e6a1673caa7e7daa14d6fa7d4bfab60e882e585 Mon Sep 17 00:00:00 2001 From: IonutParau Date: Sat, 13 Jun 2026 22:33:47 +0200 Subject: [PATCH] critical additions --- src/vm.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/vm.h b/src/vm.h index 10db3cb..82e8894 100644 --- a/src/vm.h +++ b/src/vm.h @@ -132,6 +132,11 @@ typedef enum noomV_Opcode : unsigned char { // op.b stores the operation type. NOOMV_INSTR_OP, + // pops value, sets stack[op.uD] = value + NOOMV_INSTR_SETVAL, + // pops value, sets *upvals[op.uD] = value + NOOMV_INSTR_SETUPVAL, + // Control flow // returns from a function. The amount returned is from op.uD