aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/ahoy/emulator.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ahoy/emulator.c b/src/ahoy/emulator.c
index 34e31ad..100d70c 100644
--- a/src/ahoy/emulator.c
+++ b/src/ahoy/emulator.c
@@ -241,7 +241,7 @@ opexec(uint16_t op)
if (scr_row >= lengthof(screen))
break;
- msk = ((uint64_t)spr_row << (64 - 8)) >> V[x];
+ msk = ((uint64_t)spr_row << (UINT64_WIDTH - 8)) >> V[x];
V[0xF] = screen[scr_row] & msk;
screen[scr_row] ^= msk;
}