mirror of
https://github.com/holub/mame
synced 2025-07-05 01:48:29 +03:00
model1io.cpp: Better fix (nw)
This commit is contained in:
parent
562bf4d4db
commit
1d1b6b44e7
@ -167,7 +167,7 @@ model1io_device::model1io_device(const machine_config &mconfig, const char *tag,
|
|||||||
m_eeprom(*this, "eeprom"),
|
m_eeprom(*this, "eeprom"),
|
||||||
m_buttons(*this, "buttons"),
|
m_buttons(*this, "buttons"),
|
||||||
m_read_cb(*this), m_write_cb(*this),
|
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_drive_read_cb(*this), m_drive_write_cb(*this),
|
||||||
m_an_cb{ {*this}, {*this}, {*this}, {*this}, {*this}, {*this}, {*this}, {*this} },
|
m_an_cb{ {*this}, {*this}, {*this}, {*this}, {*this}, {*this}, {*this}, {*this} },
|
||||||
m_output_cb(*this),
|
m_output_cb(*this),
|
||||||
@ -185,7 +185,7 @@ void model1io_device::device_start()
|
|||||||
m_read_cb.resolve_safe(0xff);
|
m_read_cb.resolve_safe(0xff);
|
||||||
m_write_cb.resolve_safe();
|
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_in_cb[i].resolve_safe(0xff);
|
||||||
|
|
||||||
m_drive_read_cb.resolve_safe(0xff);
|
m_drive_read_cb.resolve_safe(0xff);
|
||||||
|
@ -40,6 +40,12 @@
|
|||||||
#define MCFG_MODEL1IO_IN3_CB(_devcb) \
|
#define MCFG_MODEL1IO_IN3_CB(_devcb) \
|
||||||
devcb = &downcast<model1io_device &>(*device).set_in_callback(DEVCB_##_devcb, 3);
|
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) \
|
#define MCFG_MODEL1IO_DRIVE_READ_CB(_devcb) \
|
||||||
devcb = &downcast<model1io_device &>(*device).set_drive_read_callback(DEVCB_##_devcb);
|
devcb = &downcast<model1io_device &>(*device).set_drive_read_callback(DEVCB_##_devcb);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user