mirror of
https://github.com/holub/mame
synced 2025-04-25 09:50:04 +03:00
viper: Changes so that driver boots again with recent changes to voodoo video timing. (nw)
This commit is contained in:
parent
8d11ab6ada
commit
19d8963148
@ -2241,8 +2241,15 @@ INPUT_PORTS_END
|
||||
INPUT_PORTS_START( boxingm )
|
||||
PORT_INCLUDE( viper )
|
||||
|
||||
PORT_MODIFY("IN4")
|
||||
PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_NAME("BodyPad L")
|
||||
PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_NAME("Select R")
|
||||
PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_BUTTON3 ) PORT_NAME("Select L")
|
||||
|
||||
PORT_MODIFY("IN5")
|
||||
PORT_BIT(0x80, IP_ACTIVE_LOW, IPT_UNKNOWN ) // memory card check for boxingm (actually comms enable?)
|
||||
PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_BUTTON4 ) PORT_NAME("BodyPad R")
|
||||
PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_UNKNOWN ) // memory card check for boxingm (actually comms enable?)
|
||||
|
||||
INPUT_PORTS_END
|
||||
|
||||
// TODO: left/right escape, 2nd service switch?
|
||||
@ -2286,15 +2293,16 @@ INPUT_PORTS_END
|
||||
|
||||
INTERRUPT_GEN_MEMBER(viper_state::viper_vblank)
|
||||
{
|
||||
mpc8240_interrupt(MPC8240_IRQ0);
|
||||
//mpc8240_interrupt(MPC8240_IRQ0);
|
||||
//mpc8240_interrupt(MPC8240_IRQ3);
|
||||
}
|
||||
|
||||
WRITE_LINE_MEMBER(viper_state::voodoo_vblank)
|
||||
{
|
||||
// FIXME: The driver seems to hang using the voodoo vblank signa
|
||||
//if (state)
|
||||
// mpc8240_interrupt(MPC8240_IRQ0);
|
||||
// FIXME: The driver seems to hang using the voodoo vblank signal
|
||||
// Seems to only work if using negative vsync
|
||||
if (!state)
|
||||
mpc8240_interrupt(MPC8240_IRQ0);
|
||||
//mpc8240_interrupt(MPC8240_IRQ3);
|
||||
}
|
||||
|
||||
@ -2375,7 +2383,7 @@ void viper_state::machine_reset()
|
||||
MACHINE_CONFIG_START(viper_state::viper)
|
||||
|
||||
/* basic machine hardware */
|
||||
MCFG_CPU_ADD("maincpu", MPC8240, 200000000)
|
||||
MCFG_CPU_ADD("maincpu", MPC8240, 166666666) // Unknown
|
||||
MCFG_PPC_BUS_FREQUENCY(100000000)
|
||||
MCFG_CPU_PROGRAM_MAP(viper_map)
|
||||
MCFG_CPU_VBLANK_INT_DRIVER("screen", viper_state, viper_vblank)
|
||||
|
Loading…
Reference in New Issue
Block a user