mirror of
https://github.com/holub/mame
synced 2025-05-21 13:18:56 +03:00
fix regression with spang bootlegs
This commit is contained in:
parent
206abde2d4
commit
c444c74051
@ -717,6 +717,9 @@ INPUT_PORTS_END
|
||||
static INPUT_PORTS_START( spangbl )
|
||||
PORT_INCLUDE( pang )
|
||||
|
||||
PORT_MODIFY("SYS0")
|
||||
PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_UNKNOWN ) /* unused? */
|
||||
|
||||
PORT_MODIFY("IN1")
|
||||
PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_UNKNOWN ) // must be high for game to boot..
|
||||
INPUT_PORTS_END
|
||||
@ -724,12 +727,12 @@ INPUT_PORTS_END
|
||||
static INPUT_PORTS_START( mstworld )
|
||||
/* this port may not have the same role */
|
||||
PORT_START("SYS0")
|
||||
PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_UNKNOWN ) /* USED - handled in port5_r */
|
||||
PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_UNKNOWN ) /* unused? */
|
||||
PORT_SERVICE_NO_TOGGLE( 0x02, IP_ACTIVE_LOW )
|
||||
PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_UNKNOWN ) /* unused? */
|
||||
PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_VBLANK )
|
||||
PORT_BIT( 0x70, IP_ACTIVE_LOW, IPT_UNKNOWN ) /* unused? */
|
||||
PORT_BIT( 0x80, IP_ACTIVE_HIGH, IPT_SPECIAL ) PORT_READ_LINE_DEVICE_MEMBER("eeprom", eeprom_device, read_bit)
|
||||
PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_UNKNOWN ) /* unused? */
|
||||
|
||||
PORT_START("IN0")
|
||||
PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_UNKNOWN )
|
||||
@ -1107,11 +1110,11 @@ static TIMER_DEVICE_CALLBACK( mitchell_irq )
|
||||
mitchell_state *state = timer.machine().driver_data<mitchell_state>();
|
||||
int scanline = param;
|
||||
|
||||
if(scanline == 248 || scanline == 0)
|
||||
if (scanline == 240 || scanline == 0)
|
||||
{
|
||||
device_set_input_line(state->m_maincpu,0,HOLD_LINE);
|
||||
device_set_input_line(state->m_maincpu, 0, HOLD_LINE);
|
||||
|
||||
state->m_irq_source = (scanline == 248);
|
||||
state->m_irq_source = (scanline == 0);
|
||||
}
|
||||
}
|
||||
|
||||
@ -1230,13 +1233,13 @@ static const msm5205_interface msm5205_config =
|
||||
|
||||
static MACHINE_CONFIG_DERIVED( spangbl, pang )
|
||||
|
||||
MCFG_DEVICE_REMOVE("maincpu")
|
||||
|
||||
MCFG_CPU_ADD("maincpu",Z80, XTAL_16MHz/2)
|
||||
MCFG_CPU_MODIFY("maincpu")
|
||||
MCFG_CPU_PROGRAM_MAP(spangbl_map)
|
||||
MCFG_CPU_IO_MAP(spangbl_io_map)
|
||||
MCFG_CPU_VBLANK_INT("screen", irq0_line_hold)
|
||||
|
||||
MCFG_DEVICE_REMOVE("scantimer")
|
||||
|
||||
MCFG_CPU_ADD("audiocpu", Z80, 8000000)
|
||||
MCFG_CPU_PROGRAM_MAP(spangbl_sound_map)
|
||||
MCFG_CPU_IO_MAP(spangbl_sound_io_map)
|
||||
|
Loading…
Reference in New Issue
Block a user