From 043bb75a6b5eb30e11d3e3fe109e7d69a33a923c Mon Sep 17 00:00:00 2001 From: Jeffrey Pfau Date: Wed, 22 Oct 2014 22:01:48 -0700 Subject: [PATCH] Use cleaner mechanism for checking the register list bits --- src/gba/gba-memory.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/gba/gba-memory.c b/src/gba/gba-memory.c index 1810c1372..1e384b8ee 100644 --- a/src/gba/gba-memory.c +++ b/src/gba/gba-memory.c @@ -629,7 +629,7 @@ void GBAStore8(struct ARMCore* cpu, uint32_t address, int8_t value, int* cycleCo #define LDM_LOOP_BEGIN \ for (i = 0; i < 16; ++i) { \ - if (~mask & (1 << i)) { \ + if (!(mask & (1 << i))) { \ continue; \ } @@ -733,7 +733,7 @@ uint32_t GBALoadMultiple(struct ARMCore* cpu, uint32_t address, int mask, enum L #define STM_LOOP_BEGIN \ for (i = 0; i < 16; ++i) { \ - if (~mask & (1 << i)) { \ + if (!(mask & (1 << i))) { \ continue; \ } \ value = cpu->gprs[i];