Previous 15994 Revisions Next

r8171 Wednesday 26th May, 2010 at 12:46:03 UTC by Curt Coder
[E01] Implemented slightly less hacky RTC IRQ.
[src/mess/drivers]e01.c

src/mess/drivers/e01.c
r8170r8171
267267***************************************************************************/
268268
269269/*-------------------------------------------------
270    MC146818_INTERFACE( rtc_intf )
271-------------------------------------------------*/
272/*
273static WRITE_LINE_DEVICE_HANDLER( rtc_irq_w )
274{
275   e01_state *driver_state = (e01_state *)device->machine->driver_data;
276
277   driver_state->rtc_irq = state;
278
279   update_interrupts(device->machine);
280}
281*/
282static TIMER_DEVICE_CALLBACK( rtc_irq_hack )
283{
284   e01_state *state = (e01_state *)timer->machine->driver_data;
285
286   state->rtc_irq = !state->rtc_irq;
287
288   update_interrupts(timer->machine);
289}
290
291/*-------------------------------------------------
270292    mc6854_interface adlc_intf
271293-------------------------------------------------*/
272294/*
r8170r8171
407429   memory_set_bank(machine, "bank3", 1);
408430}
409431
410static int irq;
411static TIMER_DEVICE_CALLBACK( rtc_irq_hack )
412{
413   cputag_set_input_line(timer->machine, R65C102_TAG, INPUT_LINE_IRQ0, irq ? CLEAR_LINE : ASSERT_LINE);
414   irq = !irq;
415}
416
417432/***************************************************************************
418433    MACHINE DRIVERS
419434***************************************************************************/

Previous 15994 Revisions Next


© 1998-2018 The MESS Team