(uxn.c) Removed unnecessary negation

This commit is contained in:
neauoire 2023-08-25 13:06:00 -07:00
parent e0ad8f1c0c
commit cdb0f0e4a4
1 changed files with 1 additions and 1 deletions

View File

@ -43,7 +43,7 @@ uxn_eval(Uxn *u, Uint16 pc)
k = ins & 0x80 ? 0xff : 0; k = ins & 0x80 ? 0xff : 0;
s = ins & 0x40 ? &u->rst : &u->wst; s = ins & 0x40 ? &u->rst : &u->wst;
ptr = s->dat + s->ptr - 1; 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 */ /* IMM */
case 0x00: /* BRK */ return 1; case 0x00: /* BRK */ return 1;
case 0xff: /* JCI */ if(!s->dat[--s->ptr]) { pc += 2; break; } /* else fallthrough */ case 0xff: /* JCI */ if(!s->dat[--s->ptr]) { pc += 2; break; } /* else fallthrough */