diff options
author | 2013-02-18 12:17:41 +0000 | |
---|---|---|
committer | 2013-02-18 12:17:41 +0000 | |
commit | 8882b5f7f86e08100f46ad6ff0504b2061fc6770 (patch) | |
tree | 8a642176e26a6f2e5f3aef1fb5ca70a468f22443 /src/mess/drivers/mod8.c | |
parent | fb972fd2b5e449de199ad51faf64a7ddc93f5b3b (diff) |
IRQ_CALLBACK_MEMBER cleanup (no whatsnew)
Diffstat (limited to 'src/mess/drivers/mod8.c')
-rw-r--r-- | src/mess/drivers/mod8.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/mess/drivers/mod8.c b/src/mess/drivers/mod8.c index 127d7884daf..bc9aaf1a508 100644 --- a/src/mess/drivers/mod8.c +++ b/src/mess/drivers/mod8.c @@ -36,6 +36,7 @@ public: UINT8 m_tty_key_data; int m_tty_cnt; virtual void machine_reset(); + IRQ_CALLBACK_MEMBER(mod8_irq_callback); }; WRITE8_MEMBER( mod8_state::out_w ) @@ -82,14 +83,14 @@ ADDRESS_MAP_END static INPUT_PORTS_START( mod8 ) INPUT_PORTS_END -static IRQ_CALLBACK ( mod8_irq_callback ) +IRQ_CALLBACK_MEMBER(mod8_state::mod8_irq_callback) { return 0xC0; // LAA - NOP equivalent } void mod8_state::machine_reset() { - machine().device("maincpu")->execute().set_irq_acknowledge_callback(mod8_irq_callback); + machine().device("maincpu")->execute().set_irq_acknowledge_callback(device_irq_acknowledge_delegate(FUNC(mod8_state::mod8_irq_callback),this)); } WRITE8_MEMBER( mod8_state::kbd_put ) |