diff options
Diffstat (limited to 'src/devices/machine/1ma6.cpp')
-rw-r--r-- | src/devices/machine/1ma6.cpp | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/src/devices/machine/1ma6.cpp b/src/devices/machine/1ma6.cpp index 479c7b9d6d3..97b3eeb7292 100644 --- a/src/devices/machine/1ma6.cpp +++ b/src/devices/machine/1ma6.cpp @@ -117,7 +117,7 @@ hp_1ma6_device::hp_1ma6_device(const machine_config &mconfig, const char *tag, d clear_state(); } -WRITE8_MEMBER(hp_1ma6_device::reg_w) +void hp_1ma6_device::reg_w(offs_t offset, uint8_t data) { LOG("WR %u=%02x\n" , offset , data); switch(offset) { @@ -133,7 +133,7 @@ WRITE8_MEMBER(hp_1ma6_device::reg_w) } } -READ8_MEMBER(hp_1ma6_device::reg_r) +uint8_t hp_1ma6_device::reg_r(offs_t offset) { uint8_t res = 0; @@ -181,7 +181,7 @@ READ8_MEMBER(hp_1ma6_device::reg_r) return res; } -WRITE_LINE_MEMBER(hp_1ma6_device::cart_out_w) +void hp_1ma6_device::cart_out_w(int state) { LOG_DBG("cart_out_w %d\n" , state); if (state) { @@ -190,7 +190,7 @@ WRITE_LINE_MEMBER(hp_1ma6_device::cart_out_w) } } -WRITE_LINE_MEMBER(hp_1ma6_device::hole_w) +void hp_1ma6_device::hole_w(int state) { if (state) { LOG_DBG("hole_w\n"); @@ -198,7 +198,7 @@ WRITE_LINE_MEMBER(hp_1ma6_device::hole_w) } } -WRITE_LINE_MEMBER(hp_1ma6_device::tacho_tick_w) +void hp_1ma6_device::tacho_tick_w(int state) { if (state) { LOG_DBG("tacho_tick_w\n"); @@ -206,7 +206,7 @@ WRITE_LINE_MEMBER(hp_1ma6_device::tacho_tick_w) } } -WRITE_LINE_MEMBER(hp_1ma6_device::motion_w) +void hp_1ma6_device::motion_w(int state) { if (state) { LOG_DBG("motion_w @%.6f st=%d\n" , machine().time().as_double() , m_cmd_state); @@ -279,7 +279,7 @@ WRITE_LINE_MEMBER(hp_1ma6_device::motion_w) } } -WRITE_LINE_MEMBER(hp_1ma6_device::rd_bit_w) +void hp_1ma6_device::rd_bit_w(int state) { LOG_RW("RD bit %d (st=%d,sr=%02x,i=%u)\n" , state , m_cmd_state , m_data_sr , m_bit_idx); switch (m_cmd_state) { @@ -319,7 +319,7 @@ WRITE_LINE_MEMBER(hp_1ma6_device::rd_bit_w) } } -READ_LINE_MEMBER(hp_1ma6_device::wr_bit_r) +int hp_1ma6_device::wr_bit_r() { bool bit = m_cmd_state == CMD_WR_PREAMBLE ? false : BIT(m_data_sr , m_bit_idx); if (m_bit_idx) { @@ -341,7 +341,7 @@ void hp_1ma6_device::device_add_mconfig(machine_config &config) m_tape->set_acceleration(ACCELERATION); m_tape->set_set_points(SLOW_SPEED , FAST_SPEED); m_tape->set_tick_size(TACH_TICK_LEN); - m_tape->set_bits_per_word(16); + m_tape->set_image_format(hti_format_t::HTI_DELTA_MOD_16_BITS); m_tape->set_go_threshold(MOVING_THRESHOLD); m_tape->cart_out().set(FUNC(hp_1ma6_device::cart_out_w)); m_tape->hole().set(FUNC(hp_1ma6_device::hole_w)); |