Fixed cylinder number calculation. (nw)

This commit is contained in:
Michael Zapf 2014-10-01 11:20:12 +00:00
parent b010c28707
commit 7020cb18d3

View File

@ -473,7 +473,7 @@ int hdc9234_device::desired_head()
int hdc9234_device::desired_cylinder()
{
return (m_register_w[DESIRED_CYLINDER] & 0xff) | (m_register_w[DESIRED_HEAD] & 0x70);
return (m_register_w[DESIRED_CYLINDER] & 0xff) | ((m_register_w[DESIRED_HEAD] & 0x70) << 4);
}
int hdc9234_device::desired_sector()
@ -488,7 +488,7 @@ int hdc9234_device::current_head()
int hdc9234_device::current_cylinder()
{
return (m_register_r[CURRENT_CYLINDER] & 0xff) | (m_register_r[CURRENT_HEAD] & 0x70);
return (m_register_r[CURRENT_CYLINDER] & 0xff) | ((m_register_r[CURRENT_HEAD] & 0x70) << 4);
}
int hdc9234_device::current_sector()