diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/ARMInterpreter_LoadStore.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ARMInterpreter_LoadStore.cpp b/src/ARMInterpreter_LoadStore.cpp index ccbee34..16605ed 100644 --- a/src/ARMInterpreter_LoadStore.cpp +++ b/src/ARMInterpreter_LoadStore.cpp @@ -461,7 +461,7 @@ void A_STM(ARM* cpu) if (i == baseid && !isbanked) { - if ((cpu->Num == 0) || (!(cpu->CurInstr & (i-1)))) + if ((cpu->Num == 0) || (!(cpu->CurInstr & ((1<<i)-1)))) cpu->DataWrite32(base, oldbase); else cpu->DataWrite32(base, base); // checkme |