First draft of nuvolink simulation

This commit is contained in:
akuker
2020-09-11 17:00:11 -05:00
parent 0826f297f1
commit 0d7debcf68
7 changed files with 718 additions and 5 deletions

View File

@@ -303,6 +303,11 @@ void FASTCALL SCSIDEV::Execute()
CmdSeek6();
return;
// Unknown Nuvolink command
case 0x0C:
CmdNuvolink0C();
return;
// INQUIRY
case 0x12:
CmdInquiry();
@@ -1117,6 +1122,38 @@ void FASTCALL SCSIDEV::CmdReadToc()
DataIn();
}
//---------------------------------------------------------------------------
//
// Unknown Vendor-specific command (probably cmmd_mdsens - Medium Sense)
//
//---------------------------------------------------------------------------
void FASTCALL SCSIDEV::CmdNuvolink0C(){
DWORD lun;
BOOL status;
ASSERT(this);
LOGTRACE("Received Medium Sense command for Nuvolink");
// Logical Unit
lun = (ctrl.cmd[1] >> 5) & 0x07;
if (!ctrl.unit[lun]) {
Error();
return;
}
// // Command processing on drive
// status = ctrl.unit[lun]->PlayAudio(ctrl.cmd);
// if (!status) {
// // Failure (Error)
// Error();
// return;
// }
// status phase
Status();
}
//---------------------------------------------------------------------------
//
// PLAY AUDIO(10)