Use cleaner mechanism for checking the register list bits
Jeffrey Pfau jeffrey@endrift.com
Wed, 22 Oct 2014 22:01:48 -0700
1 files changed,
2 insertions(+),
2 deletions(-)
jump to
M
src/gba/gba-memory.c
→
src/gba/gba-memory.c
@@ -629,7 +629,7 @@ }
#define LDM_LOOP_BEGIN \ for (i = 0; i < 16; ++i) { \ - if (~mask & (1 << i)) { \ + if (!(mask & (1 << i))) { \ continue; \ }@@ -733,7 +733,7 @@ }
#define STM_LOOP_BEGIN \ for (i = 0; i < 16; ++i) { \ - if (~mask & (1 << i)) { \ + if (!(mask & (1 << i))) { \ continue; \ } \ value = cpu->gprs[i];