src/mess/machine/conkort.c
| r6348 | r6349 | |
| 383 | 383 | |
| 384 | 384 | static READ8_HANDLER( fast_ctrl_r ) |
| 385 | 385 | { |
| 386 | | return 0xff; // TODO what is this? |
| 386 | /* |
| 387 | |
| 388 | bit description |
| 389 | |
| 390 | 0 |
| 391 | 1 |
| 392 | 2 |
| 393 | 3 ? (must be 1 to boot) |
| 394 | 4 |
| 395 | 5 |
| 396 | 6 |
| 397 | 7 |
| 398 | |
| 399 | */ |
| 400 | |
| 401 | return 0x08; |
| 387 | 402 | } |
| 388 | 403 | |
| 389 | 404 | static READ8_HANDLER( fast_data_r ) |
| r6348 | r6349 | |
| 433 | 448 | |
| 434 | 449 | static ADDRESS_MAP_START( fast_io_map, ADDRESS_SPACE_IO, 8 ) |
| 435 | 450 | ADDRESS_MAP_GLOBAL_MASK(0xff) |
| 436 | | AM_RANGE(0x0f, 0x0f) AM_READ(fast_data_r) |
| 437 | | AM_RANGE(0x1f, 0x1f) AM_WRITE(fast_data_w) |
| 438 | | AM_RANGE(0x2f, 0x2f) AM_WRITE(fast_status_w) |
| 439 | | // AM_RANGE(0x3f, 0x3f) AM_WRITE() |
| 440 | | // AM_RANGE(0x4f, 0x4f) AM_WRITE() |
| 441 | | AM_RANGE(0x5d, 0x5d) AM_READ(fast_ctrl_r) |
| 442 | | AM_RANGE(0x68, 0x6b) AM_DEVREAD(SAB1793_TAG, wd17xx_r) |
| 443 | | AM_RANGE(0x78, 0x7b) AM_DEVWRITE(SAB1793_TAG, wd17xx_w) |
| 444 | | AM_RANGE(0x87, 0x87) AM_DEVREADWRITE(Z80DMA_TAG, z80dma_r, z80dma_w) |
| 451 | AM_RANGE(0x00, 0x00) AM_MIRROR(0x0f) AM_READ(fast_data_r) |
| 452 | AM_RANGE(0x10, 0x10) AM_MIRROR(0x0f) AM_WRITE(fast_data_w) |
| 453 | AM_RANGE(0x20, 0x20) AM_MIRROR(0x0f) AM_WRITE(fast_status_w) |
| 454 | // AM_RANGE(0x30, 0x30) AM_MIRROR(0x0f) AM_WRITE() |
| 455 | // AM_RANGE(0x40, 0x40) AM_MIRROR(0x0f) AM_WRITE() |
| 456 | AM_RANGE(0x50, 0x50) AM_MIRROR(0x0f) AM_READ(fast_ctrl_r) |
| 457 | AM_RANGE(0x60, 0x63) AM_MIRROR(0x0c) AM_DEVREAD(SAB1793_TAG, wd17xx_r) |
| 458 | AM_RANGE(0x70, 0x73) AM_MIRROR(0x0c) AM_DEVWRITE(SAB1793_TAG, wd17xx_w) |
| 459 | AM_RANGE(0x80, 0x80) AM_MIRROR(0x0f) AM_DEVREADWRITE(Z80DMA_TAG, z80dma_r, z80dma_w) |
| 445 | 460 | ADDRESS_MAP_END |
| 446 | 461 | |
| 447 | 462 | /* Input Ports */ |
| r6348 | r6349 | |
| 497 | 512 | |
| 498 | 513 | /* Z80 PIO */ |
| 499 | 514 | |
| 500 | | static void conkort_pio_interrupt(const device_config *device, int state) |
| 501 | | { |
| 502 | | slow_t *conkort = get_safe_token_machine_slow(device->machine); |
| 503 | | |
| 504 | | cpu_set_input_line(conkort->cpu, INPUT_LINE_IRQ0, state); |
| 505 | | } |
| 506 | | |
| 507 | 515 | static READ8_DEVICE_HANDLER( conkort_pio_port_a_r ) |
| 508 | 516 | { |
| 509 | 517 | slow_t *conkort = get_safe_token_machine_slow(device->machine); |
| r6348 | r6349 | |
| 559 | 567 | |
| 560 | 568 | } |
| 561 | 569 | |
| 562 | | static void conkort_pio_ardy_w(const device_config *device, int state) |
| 570 | static WRITE_LINE_DEVICE_HANDLER( conkort_pio_ardy_w ) |
| 563 | 571 | { |
| 564 | 572 | slow_t *conkort = get_safe_token_machine_slow(device->machine); |
| 565 | 573 | |
| r6348 | r6349 | |
| 568 | 576 | |
| 569 | 577 | static const z80pio_interface conkort_pio_intf = |
| 570 | 578 | { |
| 571 | | DEVCB_LINE(conkort_pio_interrupt), /* interrupt callback */ |
| 579 | DEVCB_CPU_INPUT_LINE(Z80_TAG, INPUT_LINE_IRQ0), /* interrupt callback */ |
| 572 | 580 | DEVCB_HANDLER(conkort_pio_port_a_r), /* port A read callback */ |
| 573 | 581 | DEVCB_HANDLER(conkort_pio_port_b_r), /* port B read callback */ |
| 574 | 582 | DEVCB_HANDLER(conkort_pio_port_a_w), /* port A write callback */ |
| r6348 | r6349 | |
| 681 | 689 | MDRV_CPU_CONFIG(slow_daisy_chain) |
| 682 | 690 | |
| 683 | 691 | MDRV_Z80PIO_ADD(Z80PIO_TAG, conkort_pio_intf) |
| 684 | | MDRV_WD179X_ADD(WD1791_TAG, slow_wd17xx_interface ) |
| 692 | MDRV_WD179X_ADD(WD1791_TAG, slow_wd17xx_interface) |
| 685 | 693 | MACHINE_DRIVER_END |
| 686 | 694 | |
| 687 | 695 | static MACHINE_DRIVER_START( luxor_55_21046 ) |
| r6348 | r6349 | |
| 691 | 699 | MDRV_CPU_CONFIG(fast_daisy_chain) |
| 692 | 700 | |
| 693 | 701 | MDRV_Z80DMA_ADD(Z80DMA_TAG, XTAL_16MHz/4, dma_intf) |
| 694 | | MDRV_WD1793_ADD(SAB1793_TAG, fast_wd17xx_interface ) |
| 702 | MDRV_WD1793_ADD(SAB1793_TAG, fast_wd17xx_interface) |
| 695 | 703 | MACHINE_DRIVER_END |
| 696 | 704 | |
| 697 | 705 | /* ROMs */ |