Explorar el Código

dyncom: Increment addr when accessing LR in LDM

Lioncash hace 11 años
padre
commit
e37425b380
Se han modificado 1 ficheros con 2 adiciones y 0 borrados
  1. 2 0
      src/core/arm/dyncom/arm_dyncom_interpreter.cpp

+ 2 - 0
src/core/arm/dyncom/arm_dyncom_interpreter.cpp

@@ -4362,6 +4362,8 @@ unsigned InterpreterMainLoop(ARMul_State* state) {
                         cpu->Reg[14] = Memory::Read32(addr);
                     else
                         cpu->Reg_usr[1] = Memory::Read32(addr);
+
+                    addr += 4;
                 }
             } else if (!BIT(inst, 22)) {
                 for(int i = 0; i < 16; i++ ){