From c92d085d65e16ced14dcb7c49e55033b51227b2b Mon Sep 17 00:00:00 2001 From: bylex Date: Wed, 26 Feb 2025 08:49:04 +0100 Subject: [PATCH] Fix stack instructions --- opcodes.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/opcodes.c b/opcodes.c index 50f40fe..d8c3673 100644 --- a/opcodes.c +++ b/opcodes.c @@ -155,6 +155,7 @@ void pts(uint8_t source_reg, uint8_t unused_1, uint8_t unused_2) { stack[stack_pointer++] = regs[source_reg]; } + current_instruction += 2; return; } @@ -169,6 +170,7 @@ void pfs(uint8_t dest_reg, uint8_t unused_1, uint8_t unused_2) { regs[dest_reg] = stack[--stack_pointer]; } + current_instruction += 2; return; } -- 2.25.1