Previous 15994 Revisions Next

r6349 Monday 9th November, 2009 at 20:15:44 UTC by Curt Coder
[CONKORT] Cleanup.
[src/mess/machine]conkort.c

src/mess/machine/conkort.c
r6348r6349
383383
384384static READ8_HANDLER( fast_ctrl_r )
385385{
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;
387402}
388403
389404static READ8_HANDLER( fast_data_r )
r6348r6349
433448
434449static ADDRESS_MAP_START( fast_io_map, ADDRESS_SPACE_IO, 8 )
435450   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)
445460ADDRESS_MAP_END
446461
447462/* Input Ports */
r6348r6349
497512
498513/* Z80 PIO */
499514
500static 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
507515static READ8_DEVICE_HANDLER( conkort_pio_port_a_r )
508516{
509517   slow_t *conkort = get_safe_token_machine_slow(device->machine);
r6348r6349
559567
560568}
561569
562static void conkort_pio_ardy_w(const device_config *device, int state)
570static WRITE_LINE_DEVICE_HANDLER( conkort_pio_ardy_w )
563571{
564572   slow_t *conkort = get_safe_token_machine_slow(device->machine);
565573
r6348r6349
568576
569577static const z80pio_interface conkort_pio_intf =
570578{
571   DEVCB_LINE(conkort_pio_interrupt),      /* interrupt callback */
579   DEVCB_CPU_INPUT_LINE(Z80_TAG, INPUT_LINE_IRQ0),      /* interrupt callback */
572580   DEVCB_HANDLER(conkort_pio_port_a_r),   /* port A read callback */
573581   DEVCB_HANDLER(conkort_pio_port_b_r),   /* port B read callback */
574582   DEVCB_HANDLER(conkort_pio_port_a_w),   /* port A write callback */
r6348r6349
681689   MDRV_CPU_CONFIG(slow_daisy_chain)
682690
683691   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)
685693MACHINE_DRIVER_END
686694
687695static MACHINE_DRIVER_START( luxor_55_21046 )
r6348r6349
691699   MDRV_CPU_CONFIG(fast_daisy_chain)
692700
693701   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)
695703MACHINE_DRIVER_END
696704
697705/* ROMs */

Previous 15994 Revisions Next


© 1998-2018 The MESS Team