Returned busy stack erroring while I finish Inle

This commit is contained in:
Devine Lu Linvega 2022-06-13 08:31:46 -07:00
parent 70ccb4fa68
commit 4d252e3109
2 changed files with 3 additions and 2 deletions

View File

@ -17,7 +17,8 @@ WITH REGARD TO THIS SOFTWARE.
static const char *errors[] = { static const char *errors[] = {
"underflow", "underflow",
"overflow", "overflow",
"division by zero" "division by zero",
"Busy"
}; };
static void static void

View File

@ -88,7 +88,7 @@ uxn_eval(Uxn *u, Uint16 pc)
case 0x1f: /* SFT */ POP8(a) POP(b) PUSH(src, b >> (a & 0x0f) << ((a & 0xf0) >> 4)) break; case 0x1f: /* SFT */ POP8(a) POP(b) PUSH(src, b >> (a & 0x0f) << ((a & 0xf0) >> 4)) break;
} }
} }
return 1; return (u->wst->ptr || u->rst->ptr) ? uxn_halt(u, instr, 4, pc - 1) : 1;
err: err:
return uxn_halt(u, instr, errcode, pc - 1); return uxn_halt(u, instr, errcode, pc - 1);
} }