CDROM: Implement Getparam command

This commit is contained in:
Connor McLaughlin 2019-11-08 22:45:06 +10:00
parent 487f952c48
commit c3efc5637a
1 changed files with 14 additions and 0 deletions

View File

@ -909,6 +909,20 @@ void CDROM::ExecuteCommand()
}
break;
case Command::Getparam:
{
Log_DebugPrintf("CDROM Getparam command");
m_response_fifo.Push(m_secondary_status.bits);
m_response_fifo.Push(m_mode.bits);
m_response_fifo.Push(0);
m_response_fifo.Push(m_filter_file_number);
m_response_fifo.Push(m_filter_channel_number);
SetInterrupt(Interrupt::ACK);
EndCommand();
}
break;
default:
Panic("Unknown command");
break;