From cdb0f0e4a4083d9ca441e6f3660643dea7f74297 Mon Sep 17 00:00:00 2001 From: neauoire Date: Fri, 25 Aug 2023 13:06:00 -0700 Subject: [PATCH] (uxn.c) Removed unnecessary negation --- src/uxn.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/uxn.c b/src/uxn.c index 9e307e8..d62b61d 100644 --- a/src/uxn.c +++ b/src/uxn.c @@ -43,7 +43,7 @@ uxn_eval(Uxn *u, Uint16 pc) k = ins & 0x80 ? 0xff : 0; s = ins & 0x40 ? &u->rst : &u->wst; ptr = s->dat + s->ptr - 1; - switch(!(ins & 0x1f) ? (0 - (ins >> 5)) & 0xff : ins & 0x3f) { + switch(ins & 0x1f ? ins & 0x3f : (0 - (ins >> 5)) & 0xff) { /* IMM */ case 0x00: /* BRK */ return 1; case 0xff: /* JCI */ if(!s->dat[--s->ptr]) { pc += 2; break; } /* else fallthrough */