Fixes.
h3rald h3rald@h3rald.com
Sat, 29 Nov 2025 17:23:12 +0100
M
xywvm.c
→
xywvm.c
@@ -174,7 +174,7 @@ //// Instructions
static void PSH() { - if (usp > STACK_SIZE - 1) + if (*usp > STACK_SIZE - 1) { xyw_memory[SYSTEM_ERROR] = XYW_ERROR_STACK_OVERFLOW; return;@@ -184,7 +184,7 @@ }
static void PSHw() { - if (usp > STACK_SIZE - 2) + if (*usp > STACK_SIZE - 2) { xyw_memory[SYSTEM_ERROR] = XYW_ERROR_STACK_OVERFLOW; return;@@ -211,7 +211,7 @@ {
return *y; } // If no mode is set, pop from stack - if (usp < 1) + if (*usp < 1) { xyw_memory[SYSTEM_ERROR] = XYW_ERROR_STACK_UNDERFLOW; return -1;@@ -240,7 +240,7 @@ {
return yw(); } // If no mode is set, pop from stack - if (usp < 2) + if (*usp < 2) { xyw_memory[SYSTEM_ERROR] = XYW_ERROR_STACK_UNDERFLOW; return -1;