Yosakdon : fixed cocktail mode

This commit is contained in:
Robbbert 2012-12-22 04:07:21 +00:00
parent 2fe87196f0
commit f14393d3b5
2 changed files with 16 additions and 9 deletions

View File

@ -174,7 +174,7 @@ WRITE8_MEMBER(_8080bw_state::lrescue_sh_port_2_w)
if (rising_bits & 0x10) m_samples->start(3, 6); /* Shooting Star and Rescue Ship sounds */
if ((~data & 0x10) && (m_port_2_last_extra & 0x10)) m_samples->stop(3); /* This makes the rescue ship sound beep on and off */
m_flip_screen = BIT(data, 5) & BIT(ioport(CABINET_PORT_TAG)->read(), 0);
m_flip_screen = BIT(data, 5) & ioport(CABINET_PORT_TAG)->read();
m_port_2_last_extra = data;
}
@ -276,7 +276,7 @@ WRITE8_MEMBER(_8080bw_state::ballbomb_sh_port_2_w)
if (data & 0x04) m_samples->start(0, 4); /* Plane is dropping new balloons at start of level */
if (rising_bits & 0x10) m_samples->start(2, 2); /* Balloon hit and bomb drops */
m_flip_screen = BIT(data, 5) & BIT(ioport(CABINET_PORT_TAG)->read(), 0);
m_flip_screen = BIT(data, 5) & ioport(CABINET_PORT_TAG)->read();
m_port_2_last_extra = data;
}
@ -1025,7 +1025,7 @@ WRITE8_MEMBER(_8080bw_state::invrvnge_sh_port_2_w)
20 - flip screen */
m_screen_red = BIT(data, 4);
m_flip_screen = BIT(data, 5) & BIT(ioport(CABINET_PORT_TAG)->read(), 0);
m_flip_screen = BIT(data, 5) & ioport(CABINET_PORT_TAG)->read();
// no sound-related writes?
}
@ -1144,7 +1144,7 @@ WRITE8_MEMBER(_8080bw_state::lupin3_sh_port_2_w)
m_color_map = data & 0x40;
m_flip_screen = (data & 0x20) && (ioport("IN2")->read() & 0x04);
m_flip_screen = BIT(data, 5) & BIT(ioport("IN2")->read(), 2);
m_port_2_last_extra = data;
}
@ -1176,7 +1176,7 @@ WRITE8_MEMBER(_8080bw_state::schasercv_sh_port_2_w)
machine().sound().system_enable(data & 0x10);
m_flip_screen = BIT(data, 5) & BIT(ioport(CABINET_PORT_TAG)->read(), 0);
m_flip_screen = BIT(data, 5) & ioport(CABINET_PORT_TAG)->read();
}
@ -1212,7 +1212,7 @@ WRITE8_MEMBER(_8080bw_state::yosakdon_sh_port_2_w)
if (rising_bits & 0x10) m_samples->start(2, 7); /* Game Over */
m_flip_screen = data & 0x20;
m_flip_screen = BIT(data, 5) & ioport(CABINET_PORT_TAG)->read();
m_port_2_last_extra = data;
}
@ -1261,7 +1261,7 @@ WRITE8_MEMBER(_8080bw_state::shuttlei_sh_port_2_w)
WRITE8_MEMBER( _8080bw_state::darthvdr_00_w )
{
m_flip_screen = BIT(data, 0) & BIT(ioport(CABINET_PORT_TAG)->read(), 0);
m_flip_screen = BIT(data, 0) & ioport(CABINET_PORT_TAG)->read();
}
WRITE8_MEMBER( _8080bw_state::darthvdr_08_w )

View File

@ -1066,6 +1066,9 @@ static INPUT_PORTS_START( cosmicmo )
PORT_DIPNAME( 0x80, 0x00, DEF_STR( Coinage ) ) PORT_DIPLOCATION("SW1:8")
PORT_DIPSETTING( 0x00, DEF_STR( 1C_1C ) )
PORT_DIPSETTING( 0x80, DEF_STR( 1C_2C ) )
// PORT_MODIFY(CABINET_PORT_TAG)
// PORT_BIT( 0xff, IP_ACTIVE_HIGH, IPT_UNKNOWN )
INPUT_PORTS_END
@ -1916,10 +1919,10 @@ static INPUT_PORTS_START( yosakdon )
/* Dummy controls port, P1 */
INVADERS_CONTROL_PORT_P1
INVADERS_CONTROL_PORT_P2
/* Dummy port for cocktail mode (not used) */
PORT_START(CABINET_PORT_TAG)
PORT_BIT( 0xff, IP_ACTIVE_HIGH, IPT_UNKNOWN )
INVADERS_CAB_TYPE_PORT
INPUT_PORTS_END
@ -1933,6 +1936,10 @@ static MACHINE_CONFIG_DERIVED_CLASS( yosakdon, mw8080bw_root, _8080bw_state )
/* sound hardware */
MCFG_FRAGMENT_ADD(invaders_samples_audio)
/* video hardware */
MCFG_SCREEN_MODIFY("screen")
MCFG_SCREEN_UPDATE_DRIVER(_8080bw_state, screen_update_invaders)
MACHINE_CONFIG_END