Core: Ignore EverDrive - 64 X7 Serial Registers in PI_DMA_READ

This commit is contained in:
zilmar 2022-10-17 08:48:30 +10:30
parent 65bbc375b9
commit 60969607c8
1 changed files with 10 additions and 0 deletions

View File

@ -264,6 +264,16 @@ void PeripheralInterfaceHandler::PI_DMA_READ()
return; return;
} }
if (PI_CART_ADDR_REG >= 0x1F800000 && PI_CART_ADDR_REG < 0x1F810000)
{
//EverDrive - 64 X7 Serial Registers (don't care)
PI_STATUS_REG &= ~PI_STATUS_DMA_BUSY;
PI_STATUS_REG |= PI_STATUS_INTERRUPT;
MI_INTR_REG |= MI_INTR_PI;
m_Reg.CheckInterrupts();
return;
}
// Write ROM area (for 64DD conversion) // Write ROM area (for 64DD conversion)
if (PI_CART_ADDR_REG >= 0x10000000 && PI_CART_ADDR_REG <= 0x1FBFFFFF && g_Settings->LoadBool(Game_AllowROMWrites)) if (PI_CART_ADDR_REG >= 0x10000000 && PI_CART_ADDR_REG <= 0x1FBFFFFF && g_Settings->LoadBool(Game_AllowROMWrites))
{ {