From 70ccb4fa687eb9e823cdc7eb9b20e39b193bd859 Mon Sep 17 00:00:00 2001 From: Devine Lu Linvega Date: Sun, 12 Jun 2022 14:13:07 -0700 Subject: [PATCH] Removed err4 --- src/devices/system.c | 3 +-- src/uxn.c | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/src/devices/system.c b/src/devices/system.c index e44dc5f..7f638d7 100644 --- a/src/devices/system.c +++ b/src/devices/system.c @@ -17,8 +17,7 @@ WITH REGARD TO THIS SOFTWARE. static const char *errors[] = { "underflow", "overflow", - "division by zero", - "busy" + "division by zero" }; static void diff --git a/src/uxn.c b/src/uxn.c index 8c1ea8c..6aaa73a 100644 --- a/src/uxn.c +++ b/src/uxn.c @@ -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; } } - return (u->wst->ptr || u->rst->ptr) ? uxn_halt(u, instr, 4, pc - 1) : 1; + return 1; err: return uxn_halt(u, instr, errcode, pc - 1); }