mirror of
https://github.com/holub/mame
synced 2025-05-05 22:04:43 +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();
|
ExecCommand();
|
||||||
GetLength(&m_data_size);
|
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;
|
m_buffer_size = (m_cylinder_high << 8) | m_cylinder_low;
|
||||||
if (m_buffer_size == 0xffff)
|
if (m_buffer_size == 0xffff)
|
||||||
m_buffer_size = 0xfffe;
|
m_buffer_size = 0xfffe;
|
||||||
|
Loading…
Reference in New Issue
Block a user