src/mess/drivers/e01.c
| r8170 | r8171 | |
| 267 | 267 | ***************************************************************************/ |
| 268 | 268 | |
| 269 | 269 | /*------------------------------------------------- |
| 270 | MC146818_INTERFACE( rtc_intf ) |
| 271 | -------------------------------------------------*/ |
| 272 | /* |
| 273 | static 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 | */ |
| 282 | static 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 | /*------------------------------------------------- |
| 270 | 292 | mc6854_interface adlc_intf |
| 271 | 293 | -------------------------------------------------*/ |
| 272 | 294 | /* |
| r8170 | r8171 | |
| 407 | 429 | memory_set_bank(machine, "bank3", 1); |
| 408 | 430 | } |
| 409 | 431 | |
| 410 | | static int irq; |
| 411 | | static 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 | | |
| 417 | 432 | /*************************************************************************** |
| 418 | 433 | MACHINE DRIVERS |
| 419 | 434 | ***************************************************************************/ |