From 845d864bc0edb32447e49660b2ddd46066891398 Mon Sep 17 00:00:00 2001 From: Aryadev Chavali Date: Mon, 16 Oct 2023 11:04:43 +0100 Subject: Set opcode after reading parameters in inst_read_byte --- src/inst.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/inst.c b/src/inst.c index 49d35d3..9d7bf29 100644 --- a/src/inst.c +++ b/src/inst.c @@ -142,5 +142,7 @@ inst_t inst_read_bytecode(darr_t *darr) inst.operand = read_type_from_darr(darr, DATA_TYPE_BYTE); // Otherwise opcode doesn't take operands + inst.opcode = opcode; + return inst; } -- cgit v1.2.3-13-gbd6f