CDROM: Implement get version and getstat commands

This commit is contained in:
Connor McLaughlin 2019-09-17 22:18:58 +10:00
commit e3c6035152
8 changed files with 159 additions and 12 deletions

View file

@ -58,7 +58,7 @@ void InterruptController::WriteRegister(u32 offset, u32 value)
case 0x00: // I_STATUS
{
Log_DebugPrintf("Clearing bits 0x%08X", value);
m_interrupt_status_register = m_interrupt_status_register & (~(value & REGISTER_WRITE_MASK));
m_interrupt_status_register = m_interrupt_status_register & (value & REGISTER_WRITE_MASK);
UpdateCPUInterruptRequest();
}
break;
@ -80,7 +80,7 @@ void InterruptController::UpdateCPUInterruptRequest()
{
// external interrupts set bit 10 only?
if (m_interrupt_status_register != 0)
m_cpu->SetExternalInterrupt(3);
m_cpu->SetExternalInterrupt(2);
else
m_cpu->ClearExternalInterrupt(3);
m_cpu->ClearExternalInterrupt(2);
}