[Project64] Add Load32MIPSInterface
This commit is contained in:
parent
cf3b797ebd
commit
0324714be7
|
@ -2523,16 +2523,8 @@ bool CMipsMemoryVM::LW_NonMemory(uint32_t PAddr, uint32_t* Value)
|
|||
*Value = m_MemLookupValue.UW[0];
|
||||
break;
|
||||
case 0x04300000:
|
||||
switch (PAddr)
|
||||
{
|
||||
case 0x04300000: *Value = g_Reg->MI_MODE_REG; break;
|
||||
case 0x04300004: *Value = g_Reg->MI_VERSION_REG; break;
|
||||
case 0x04300008: *Value = g_Reg->MI_INTR_REG; break;
|
||||
case 0x0430000C: *Value = g_Reg->MI_INTR_MASK_REG; break;
|
||||
default:
|
||||
*Value = 0;
|
||||
return false;
|
||||
}
|
||||
Load32MIPSInterface();
|
||||
*Value = m_MemLookupValue.UW[0];
|
||||
break;
|
||||
case 0x04400000:
|
||||
switch (PAddr)
|
||||
|
@ -5653,4 +5645,21 @@ void CMipsMemoryVM::Load32DPCommand(void)
|
|||
g_Notify->BreakPoint(__FILE__, __LINE__);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
void CMipsMemoryVM::Load32MIPSInterface(void)
|
||||
{
|
||||
switch (m_MemLookupAddress & 0x1FFFFFFF)
|
||||
{
|
||||
case 0x04300000: m_MemLookupValue.UW[0] = g_Reg->MI_MODE_REG; break;
|
||||
case 0x04300004: m_MemLookupValue.UW[0] = g_Reg->MI_VERSION_REG; break;
|
||||
case 0x04300008: m_MemLookupValue.UW[0] = g_Reg->MI_INTR_REG; break;
|
||||
case 0x0430000C: m_MemLookupValue.UW[0] = g_Reg->MI_INTR_MASK_REG; break;
|
||||
default:
|
||||
m_MemLookupValue.UW[0] = 0;
|
||||
if (bHaveDebugger())
|
||||
{
|
||||
g_Notify->BreakPoint(__FILE__, __LINE__);
|
||||
}
|
||||
}
|
||||
}
|
|
@ -185,6 +185,7 @@ private:
|
|||
static void Load32RDRAMRegisters(void);
|
||||
static void Load32SPRegisters(void);
|
||||
static void Load32DPCommand(void);
|
||||
static void Load32MIPSInterface(void);
|
||||
|
||||
CMipsMemory_CallBack * const m_CBClass;
|
||||
|
||||
|
|
Loading…
Reference in New Issue