From 5ceea0f2c2138f2aaed8b023a4ef68f9d558f07b Mon Sep 17 00:00:00 2001 From: Nekokabu Date: Mon, 11 Jul 2016 21:27:33 +0900 Subject: [PATCH] Add some of the 64DD Registers to SW_Const --- .../N64System/Recompiler/x86/x86RecompilerOps.cpp | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/Source/Project64-core/N64System/Recompiler/x86/x86RecompilerOps.cpp b/Source/Project64-core/N64System/Recompiler/x86/x86RecompilerOps.cpp index 98b8adddd..08fc40f7d 100644 --- a/Source/Project64-core/N64System/Recompiler/x86/x86RecompilerOps.cpp +++ b/Source/Project64-core/N64System/Recompiler/x86/x86RecompilerOps.cpp @@ -10852,6 +10852,21 @@ void CX86RecompilerOps::SW_Const(uint32_t Value, uint32_t VAddr) } } break; + case 0x05000000: + //64DD Registers + if (g_Settings->LoadBool(Setting_EnableDisk)) + { + switch (PAddr) + { + case 0x05000520: MoveConstToVariable(Value, &g_Reg->ASIC_HARD_RESET, "ASIC_HARD_RESET"); break; + default: + if (g_Settings->LoadBool(Debugger_ShowUnhandledMemory)) + { + g_Notify->DisplayError(stdstr_f("%s\ntrying to store %08X in %08X?", __FUNCTION__, Value, VAddr).c_str()); + } + } + break; + } case 0x1fc00000: { m_RegWorkingSet.SetBlockCycleCount(m_RegWorkingSet.GetBlockCycleCount() - g_System->CountPerOp());