mirror of
https://github.com/akuker/RASCSI.git
synced 2026-04-25 14:26:28 +00:00
Added command byte count to SCSI command mapping (#966)
* Extended mapping table with command byte count * Terminate early if command is unknown
This commit is contained in:
@@ -42,7 +42,7 @@ void PrimaryDevice::AddCommand(scsi_command opcode, const operation& execute)
|
||||
void PrimaryDevice::Dispatch(scsi_command cmd)
|
||||
{
|
||||
if (const auto& it = commands.find(cmd); it != commands.end()) {
|
||||
LOGDEBUG("Executing %s ($%02X)", command_names.find(cmd)->second, static_cast<int>(cmd))
|
||||
LOGDEBUG("Executing %s ($%02X)", command_mapping.find(cmd)->second.second, static_cast<int>(cmd))
|
||||
|
||||
it->second();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user