Previous 199869 Revisions Next

r32481 Wednesday 1st October, 2014 at 11:20:12 UTC by Michael Zapf
Fixed cylinder number calculation. (nw)
[src/emu/machine]hdc9234.c

trunk/src/emu/machine/hdc9234.c
r32480r32481
473473
474474int hdc9234_device::desired_cylinder()
475475{
476   return (m_register_w[DESIRED_CYLINDER] & 0xff) | (m_register_w[DESIRED_HEAD] & 0x70);
476   return (m_register_w[DESIRED_CYLINDER] & 0xff) | ((m_register_w[DESIRED_HEAD] & 0x70) << 4);
477477}
478478
479479int hdc9234_device::desired_sector()
r32480r32481
488488
489489int hdc9234_device::current_cylinder()
490490{
491   return (m_register_r[CURRENT_CYLINDER] & 0xff) | (m_register_r[CURRENT_HEAD] & 0x70);
491   return (m_register_r[CURRENT_CYLINDER] & 0xff) | ((m_register_r[CURRENT_HEAD] & 0x70) << 4);
492492}
493493
494494int hdc9234_device::current_sector()

Previous 199869 Revisions Next


© 1997-2024 The MAME Team