Previous 199869 Revisions Next

r19603 Sunday 16th December, 2012 at 22:16:34 UTC by hap
fix recent polaris crash
[src/mame/drivers]8080bw.c

trunk/src/mame/drivers/8080bw.c
r19602r19603
718718
719719   /* basic machine hardware */
720720   MCFG_CPU_ADD("maincpu", I8080A, XTAL_18MHz / 10) // divider guessed
721   // TODO: move irq handling away from mw8080.c, this game runs on custom hardware
721722   MCFG_CPU_PROGRAM_MAP(spacecom_map)
722723   MCFG_CPU_IO_MAP(spacecom_io_map)
723724
r19602r19603
752753/*                                                     */
753754/*******************************************************/
754755
755READ8_MEMBER( _8080bw_state::invrvnge_02_r )
756READ8_MEMBER(_8080bw_state::invrvnge_02_r)
756757{
757758   UINT8 data = ioport("IN2")->read();
758759   if (m_c8080bw_flip_screen) return data;
r19602r19603
877878   PORT_BIT( 0x40, IP_ACTIVE_HIGH, IPT_JOYSTICK_RIGHT ) PORT_2WAY
878879   PORT_BIT( 0x80, IP_ACTIVE_HIGH, IPT_UNKNOWN )
879880
880   // TODO: figure out where dipswitch is read, it's not IN0 or IN2 in the current implementation
881   // TODO: figure out where dipswitch is read, it's not IN0 or IN2 in the current implementation.
882   // ROM disassembly doesn't show any dipswitch reads on portmapped I/O, maybe the manual is for a different ROM set? (that we don't have the dump for)
881883#if 0
882884   // these are the settings according to Gameplan Intruder manual
883885   PORT_DIPNAME( 0x03, 0x02, DEF_STR( Lives ) )         PORT_DIPLOCATION("SW1:1,2")
r19602r19603
12931295/*******************************************************/
12941296
12951297
1296READ8_MEMBER( _8080bw_state::schasercv_02_r )
1298READ8_MEMBER(_8080bw_state::schasercv_02_r)
12971299{
12981300   UINT8 data = ioport("IN2")->read();
12991301   if (m_c8080bw_flip_screen) return data;
r19602r19603
16201622   MACHINE_START_CALL_MEMBER(mw8080bw);
16211623}
16221624
1623READ8_MEMBER( _8080bw_state::polaris_port00_r )
1625READ8_MEMBER(_8080bw_state::polaris_port00_r)
16241626{
16251627   UINT8 data = ioport("IN0")->read();
16261628   if (m_c8080bw_flip_screen) return data;
r19602r19603
16451647
16461648
16471649static INPUT_PORTS_START( polaris )
1648   PORT_INCLUDE( schaser )
1649
1650   PORT_MODIFY("IN0")
1650   PORT_START("IN0")
16511651   PORT_DIPUNUSED_DIPLOC( 0x01, 0x00, "SW?:1" )
16521652   PORT_DIPUNUSED_DIPLOC( 0x02, 0x00, "SW?:2" )
16531653   PORT_BIT( 0x04, IP_ACTIVE_HIGH, IPT_TILT )
r19602r19603
16571657   PORT_BIT( 0x40, IP_ACTIVE_HIGH, IPT_JOYSTICK_LEFT ) PORT_8WAY PORT_PLAYER(2)
16581658   PORT_BIT( 0x80, IP_ACTIVE_HIGH, IPT_JOYSTICK_UP ) PORT_8WAY PORT_PLAYER(2)
16591659
1660   PORT_MODIFY("IN1")
1660   PORT_START("IN1")
16611661   PORT_BIT( 0x01, IP_ACTIVE_LOW,  IPT_COIN1 )
16621662   PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_START2 )
16631663   PORT_BIT( 0x04, IP_ACTIVE_HIGH, IPT_START1 )
r19602r19603
16671667   PORT_BIT( 0x40, IP_ACTIVE_HIGH, IPT_JOYSTICK_LEFT ) PORT_8WAY PORT_PLAYER(1)
16681668   PORT_BIT( 0x80, IP_ACTIVE_HIGH, IPT_JOYSTICK_UP ) PORT_8WAY PORT_PLAYER(1)
16691669
1670   PORT_MODIFY("IN2")
1670   PORT_START("IN2")
1671   PORT_DIPNAME( 0x03, 0x00, DEF_STR( Lives ) )      PORT_DIPLOCATION("SW1:1,2")
1672   PORT_DIPSETTING(    0x00, "3" )
1673   PORT_DIPSETTING(    0x01, "4" )
1674   PORT_DIPSETTING(    0x02, "5" )
1675   PORT_DIPSETTING(    0x03, "6" )
16711676   /* 0x04 should be Cabinet - Upright/Cocktail,
16721677       but until the cocktail hack is changed,
16731678       this will have to do. */
r19602r19603
16881693   PORT_DIPSETTING(    0x00, DEF_STR( Off ) )
16891694   PORT_DIPSETTING(    0x80, DEF_STR( On ) )
16901695
1691   PORT_MODIFY("VR1")
1696   /* Dummy port for cocktail mode */
1697   INVADERS_CAB_TYPE_PORT
1698
1699   PORT_START("VR1")
16921700   PORT_ADJUSTER( 80, "Sub Volume VR1" )
16931701
1694   PORT_MODIFY("VR2")
1702   PORT_START("VR2")
16951703   PORT_ADJUSTER( 70, "Sub Volume VR2" )
16961704
1697   PORT_MODIFY("VR3")
1705   PORT_START("VR3")
16981706   PORT_ADJUSTER( 90, "Sub Volume VR3" )
16991707INPUT_PORTS_END
17001708
r19602r19603
22122220   INVADERS_CAB_TYPE_PORT
22132221INPUT_PORTS_END
22142222
2215READ8_MEMBER( _8080bw_state::shuttlei_ff_r )
2223READ8_MEMBER(_8080bw_state::shuttlei_ff_r)
22162224{
22172225   UINT8 data = ioport("INPUTS")->read();
22182226   if (!m_c8080bw_flip_screen) return data;
22192227   return (data & 0x3b) | ioport("P2")->read();
22202228}
22212229
2222WRITE8_MEMBER( _8080bw_state::shuttlei_ff_w )
2230WRITE8_MEMBER(_8080bw_state::shuttlei_ff_w)
22232231{
22242232        /* bit 0 goes high when first coin inserted
22252233           bit 1 also goes high when subsequent coins are inserted
r19602r19603
22482256
22492257   /* basic machine hardware */
22502258   MCFG_CPU_ADD("maincpu", I8080, XTAL_18MHz / 10) // divider guessed
2259   // TODO: move irq handling away from mw8080.c, this game runs on custom hardware
22512260   MCFG_CPU_PROGRAM_MAP(shuttlei_map)
22522261   MCFG_CPU_IO_MAP(shuttlei_io_map)
22532262

Previous 199869 Revisions Next


© 1997-2024 The MAME Team