CDROM: Stub out SCEx test commands

This commit is contained in:
Connor McLaughlin 2019-11-09 00:21:04 +10:00
parent 5eea2f9ced
commit 7e7b7dc216
1 changed files with 21 additions and 0 deletions

View File

@ -941,6 +941,27 @@ void CDROM::ExecuteTestCommand(u8 subcommand)
{ {
switch (subcommand) switch (subcommand)
{ {
case 0x04: // Reset SCEx counters
{
Log_DebugPrintf("Reset SCEx counters");
m_secondary_status.motor_on = true;
m_response_fifo.Push(m_secondary_status.bits);
SetInterrupt(Interrupt::ACK);
EndCommand();
return;
}
case 0x05: // Read SCEx counters
{
Log_DebugPrintf("Read SCEx counters");
m_response_fifo.Push(m_secondary_status.bits);
m_response_fifo.Push(0); // # of TOC reads?
m_response_fifo.Push(0); // # of SCEx strings received
SetInterrupt(Interrupt::ACK);
EndCommand();
return;
}
case 0x20: // Get CDROM BIOS Date/Version case 0x20: // Get CDROM BIOS Date/Version
{ {
Log_DebugPrintf("Get CDROM BIOS Date/Version"); Log_DebugPrintf("Get CDROM BIOS Date/Version");