diff options
author | 2013-01-31 12:21:12 +0000 | |
---|---|---|
committer | 2013-01-31 12:21:12 +0000 | |
commit | f63dc9ba6597a6b0b4fc0ab906637a85f43a50cf (patch) | |
tree | 4f6244c9e82aa087609c8adc5e058e441f82607b /src/mess/drivers/tsispch.c | |
parent | 3e73b779d0f9e8a35ea4883595e655201c668ea3 (diff) |
IRQ_CALLBACK modernization part 1 (no whatsnew)
Diffstat (limited to 'src/mess/drivers/tsispch.c')
-rw-r--r-- | src/mess/drivers/tsispch.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/mess/drivers/tsispch.c b/src/mess/drivers/tsispch.c index 7691c7ec13f..abad5d27b89 100644 --- a/src/mess/drivers/tsispch.c +++ b/src/mess/drivers/tsispch.c @@ -180,9 +180,9 @@ static const struct pic8259_interface pic8259_config = DEVCB_NULL }; -static IRQ_CALLBACK(irq_callback) +IRQ_CALLBACK_MEMBER(tsispch_state::irq_callback) { - return pic8259_acknowledge(device->machine().device("pic8259")); + return pic8259_acknowledge(machine().device("pic8259")); } /***************************************************************************** @@ -272,7 +272,7 @@ void tsispch_state::machine_reset() int i; for (i=0; i<32; i++) m_infifo[i] = 0; m_infifo_tail_ptr = m_infifo_head_ptr = 0; - machine().device("maincpu")->execute().set_irq_acknowledge_callback(irq_callback); + machine().device("maincpu")->execute().set_irq_acknowledge_callback(device_irq_acknowledge_delegate(FUNC(tsispch_state::irq_callback),this)); fprintf(stderr,"machine reset\n"); } |