all repos — mgba @ 043bb75a6b5eb30e11d3e3fe109e7d69a33a923c

mGBA Game Boy Advance Emulator

Use cleaner mechanism for checking the register list bits
Jeffrey Pfau jeffrey@endrift.com
Wed, 22 Oct 2014 22:01:48 -0700
commit

043bb75a6b5eb30e11d3e3fe109e7d69a33a923c

parent

1619b760e197bb7762f1d5270864231d2770fd47

1 files changed, 2 insertions(+), 2 deletions(-)

jump to
M src/gba/gba-memory.csrc/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];