From: bylex Date: Wed, 26 Feb 2025 07:49:04 +0000 (+0100) Subject: Fix stack instructions X-Git-Url: https://git.bylex.cz/?a=commitdiff_plain;h=c92d085d65e16ced14dcb7c49e55033b51227b2b;p=maturita.git Fix stack instructions --- 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; }