From 1ead1fb7912b474b8f25c73e2ebee3b1deb2d434 Mon Sep 17 00:00:00 2001 From: RobertoFresca Date: Wed, 20 Dec 2017 23:44:03 -0300 Subject: [PATCH] Amatic Multi Game System: Added the third 8255 PPI for any system. Need to set the ports. [Roberto Fresca] --- src/mame/drivers/amaticmg.cpp | 13 ++++--------- 1 file changed, 4 insertions(+), 9 deletions(-) diff --git a/src/mame/drivers/amaticmg.cpp b/src/mame/drivers/amaticmg.cpp index 795bf15b55c..c76086edc2f 100644 --- a/src/mame/drivers/amaticmg.cpp +++ b/src/mame/drivers/amaticmg.cpp @@ -661,6 +661,7 @@ static ADDRESS_MAP_START( amaticmg_portmap, AS_IO, 8, amaticmg_state ) // AM_RANGE(0x00, 0x00) AM_DEVREADWRITE("ppi8255_2", ppi8255_device, read, write) // AM_RANGE(0x00, 0x00) AM_DEVWRITE("dac1", dac_byte_interface, write) // AM_RANGE(0x00, 0x00) AM_DEVWRITE("dac2", dac_byte_interface, write) + AM_RANGE(0xe8, 0xeb) AM_DEVREADWRITE("ppi8255_2", i8255_device, read, write) // not sure if exist. ADDRESS_MAP_END static ADDRESS_MAP_START( amaticmg2_portmap, AS_IO, 8, amaticmg_state ) @@ -673,21 +674,15 @@ static ADDRESS_MAP_START( amaticmg2_portmap, AS_IO, 8, amaticmg_state ) AM_RANGE(0x61, 0x61) AM_DEVREADWRITE("crtc", mc6845_device, register_r, register_w) // 0f for mg_iii_vger_3.64_v_8309 AM_RANGE(0xc0, 0xc0) AM_WRITE(rombank_w) AM_RANGE(0xe6, 0xe6) AM_WRITE(nmi_mask_w) + AM_RANGE(0xe8, 0xeb) AM_DEVREADWRITE("ppi8255_2", i8255_device, read, write) ADDRESS_MAP_END - -/* - Unknown R/W - ----------- - - -*/ - static ADDRESS_MAP_START( amaticmg4_portmap, AS_IO, 8, amaticmg_state ) ADDRESS_MAP_GLOBAL_MASK(0xff) // ADDRESS_MAP_UNMAP_HIGH AM_RANGE(0x00, 0x03) AM_DEVREADWRITE("ppi8255_0", i8255_device, read, write) AM_RANGE(0x04, 0x07) AM_DEVREADWRITE("ppi8255_1", i8255_device, read, write) + AM_RANGE(0x08, 0x0b) AM_DEVREADWRITE("ppi8255_2", i8255_device, read, write) AM_RANGE(0x50, 0x51) AM_DEVWRITE("ymsnd", ym3812_device, write) AM_RANGE(0x0e, 0x0e) AM_DEVWRITE("crtc", mc6845_device, address_w) AM_RANGE(0x0f, 0x0f) AM_DEVREADWRITE("crtc", mc6845_device, register_r, register_w) @@ -851,7 +846,7 @@ static MACHINE_CONFIG_START( amaticmg ) MCFG_I8255_IN_PORTB_CB(IOPORT("SW1")) MCFG_I8255_OUT_PORTC_CB(WRITE8(amaticmg_state, out_c_w)) -// MCFG_DEVICE_ADD("ppi8255_2", I8255A, 0) + MCFG_DEVICE_ADD("ppi8255_2", I8255A, 0) // MG4: 0x89 -> A:out; B:out; C(h):in; C(l):in. /* video hardware */ MCFG_SCREEN_ADD("screen", RASTER)