mirror of
https://github.com/holub/mame
synced 2025-05-04 13:33:05 +03:00
Set the error bit in the IDE status register if the command causes a check condition [smf]
This commit is contained in:
parent
ac953c7ea8
commit
73a1093f30
@ -36,6 +36,9 @@ void atapi_hle_device::process_buffer()
|
||||
ExecCommand();
|
||||
GetLength(&m_data_size);
|
||||
|
||||
if (m_status_code == STATUS_CODE_CHECK_CONDITION)
|
||||
m_status |= IDE_STATUS_ERR;
|
||||
|
||||
m_buffer_size = (m_cylinder_high << 8) | m_cylinder_low;
|
||||
if (m_buffer_size == 0xffff)
|
||||
m_buffer_size = 0xfffe;
|
||||
|
Loading…
Reference in New Issue
Block a user