model1io.cpp: Better fix (nw)

This commit is contained in:
AJR 2018-04-26 22:12:11 -04:00
parent 562bf4d4db
commit 1d1b6b44e7
2 changed files with 8 additions and 2 deletions

View File

@ -167,7 +167,7 @@ model1io_device::model1io_device(const machine_config &mconfig, const char *tag,
m_eeprom(*this, "eeprom"),
m_buttons(*this, "buttons"),
m_read_cb(*this), m_write_cb(*this),
m_in_cb{ {*this}, {*this}, {*this}, {*this}, {*this}, {*this} },
m_in_cb{ {*this}, {*this}, {*this}, {*this}, {*this}, {*this} },
m_drive_read_cb(*this), m_drive_write_cb(*this),
m_an_cb{ {*this}, {*this}, {*this}, {*this}, {*this}, {*this}, {*this}, {*this} },
m_output_cb(*this),
@ -185,7 +185,7 @@ void model1io_device::device_start()
m_read_cb.resolve_safe(0xff);
m_write_cb.resolve_safe();
for (unsigned i = 0; i < 4; i++)
for (unsigned i = 0; i < 6; i++)
m_in_cb[i].resolve_safe(0xff);
m_drive_read_cb.resolve_safe(0xff);

View File

@ -40,6 +40,12 @@
#define MCFG_MODEL1IO_IN3_CB(_devcb) \
devcb = &downcast<model1io_device &>(*device).set_in_callback(DEVCB_##_devcb, 3);
#define MCFG_MODEL1IO_IN4_CB(_devcb) \
devcb = &downcast<model1io_device &>(*device).set_in_callback(DEVCB_##_devcb, 4);
#define MCFG_MODEL1IO_IN5_CB(_devcb) \
devcb = &downcast<model1io_device &>(*device).set_in_callback(DEVCB_##_devcb, 5);
#define MCFG_MODEL1IO_DRIVE_READ_CB(_devcb) \
devcb = &downcast<model1io_device &>(*device).set_drive_read_callback(DEVCB_##_devcb);