commit 3d9408e6054e2348a6ed848ad0b21e27c751e64e
parent b35bded3e4dace0b2e5c6ebb721e175984c5030a
Author: neauoire <aliceffekt@gmail.com>
Date: Mon, 30 Oct 2023 14:22:19 -0700
(uxn.c) Removed useless mask
Diffstat:
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/uxn.c b/src/uxn.c
@@ -18,10 +18,10 @@ WITH REGARD TO THIS SOFTWARE.
#define DEVR(o, p) { if(m2) { o = ((emu_dei(u, p) << 8) + emu_dei(u, p + 1)); } else o = emu_dei(u, p); }
#define DEVW(p, y) { if(m2) { emu_deo(u, p, y >> 8); emu_deo(u, p + 1, y); } else emu_deo(u, p, y); }
#define PUSH1(y) { s->dat[s->ptr++] = (y); }
-#define PUSH2(y) { t = (y); s->dat[s->ptr++] = t >> 0x8; s->dat[s->ptr++] = t & 0xff; }
+#define PUSH2(y) { t = (y); s->dat[s->ptr++] = t >> 8; s->dat[s->ptr++] = t; }
#define PUSHx(y) { if(m2) { PUSH2(y) } else PUSH1(y) }
#define POP1(o) { o = s->dat[--*sp]; }
-#define POP2(o) { o = s->dat[--*sp] | s->dat[--*sp] << 0x8; }
+#define POP2(o) { o = s->dat[--*sp] | s->dat[--*sp] << 8; }
#define POPx(o) { if(m2) { POP2(o) } else POP1(o) }
int