trunk/src/emu/machine/hdc9234.c
r32480 | r32481 | |
473 | 473 | |
474 | 474 | int hdc9234_device::desired_cylinder() |
475 | 475 | { |
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); |
477 | 477 | } |
478 | 478 | |
479 | 479 | int hdc9234_device::desired_sector() |
r32480 | r32481 | |
488 | 488 | |
489 | 489 | int hdc9234_device::current_cylinder() |
490 | 490 | { |
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); |
492 | 492 | } |
493 | 493 | |
494 | 494 | int hdc9234_device::current_sector() |