mirror of
https://github.com/holub/mame
synced 2025-05-29 09:03:08 +03:00
Amatic Multi Game System: Added the third 8255 PPI
for any system. Need to set the ports. [Roberto Fresca]
This commit is contained in:
parent
72dc2e5ec7
commit
1ead1fb791
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user