Previous 15994 Revisions Next

r5201 Friday 10th July, 2009 at 08:54:20 UTC by Curt Coder
[MPF1] Refactored to use new I8255A device.
[src/mess/drivers]mpf1.c

src/mess/drivers/mpf1.c
r5200r5201
2626*/
2727
2828#include "driver.h"
29#include "machine/8255ppi.h"
29#include "machine/i8255a.h"
3030#include "cpu/z80/z80.h"
3131#include "machine/z80ctc.h"
3232#include "machine/z80pio.h"
r5200r5201
112112   ADDRESS_MAP_GLOBAL_MASK(0xff)
113113
114114   // The 16 I/O port combinations for the 8255 (P8255A-5, 8628LLP, (c) 1981 AMD)
115   AM_RANGE(0x00, 0x03) AM_DEVREADWRITE("ppi8255", ppi8255_r, ppi8255_w) AM_MIRROR(0x3C)
115   AM_RANGE(0x00, 0x03) AM_DEVREADWRITE("ppi8255", i8255a_r, i8255a_w) AM_MIRROR(0x3C)
116116
117117//  TODO: create drivers to emulate the following two chips
118118//  The 16 I/O port combinations for the CTC (Zilog, Z0843004PSC, Z80 CTC, 8644)
r5200r5201
426426
427427
428428
429static const ppi8255_interface ppi8255_intf =
429static I8255A_INTERFACE( ppi8255_intf )
430430{
431431   DEVCB_HANDLER(mpf1_porta_r),   /* Port A read */
432432   DEVCB_HANDLER(mpf1_portb_r),   /* Port B read */
r5200r5201
463463
464464   MDRV_Z80PIO_ADD( "z80pio", mpf1_pio_intf )
465465
466   MDRV_PPI8255_ADD( "ppi8255", ppi8255_intf )
466   MDRV_I8255A_ADD( "ppi8255", ppi8255_intf )
467467
468468   // sound hardware
469469   MDRV_SPEAKER_STANDARD_MONO("mono")
r5200r5201
483483
484484   MDRV_Z80PIO_ADD( "z80pio", mpf1_pio_intf )
485485
486   MDRV_PPI8255_ADD( "ppi8255", ppi8255_intf )
486   MDRV_I8255A_ADD( "ppi8255", ppi8255_intf )
487487
488488   // sound hardware
489489   MDRV_SPEAKER_STANDARD_MONO("mono")

Previous 15994 Revisions Next


© 1998-2018 The MESS Team