fix big with ARM STM instructions that include Rb in Rlist

This commit is contained in:
StapleButter 2017-06-12 16:36:24 +02:00
parent 9852709ca3
commit bdb7edab51
1 changed files with 1 additions and 1 deletions

View File

@ -461,7 +461,7 @@ void A_STM(ARM* cpu)
if (i == baseid && !isbanked) 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); cpu->DataWrite32(base, oldbase);
else else
cpu->DataWrite32(base, base); // checkme cpu->DataWrite32(base, base); // checkme