diff options
Diffstat (limited to 'src/mame/drivers/pong.cpp')
-rw-r--r-- | src/mame/drivers/pong.cpp | 38 |
1 files changed, 19 insertions, 19 deletions
diff --git a/src/mame/drivers/pong.cpp b/src/mame/drivers/pong.cpp index 27eddca1a71..9834d60bfde 100644 --- a/src/mame/drivers/pong.cpp +++ b/src/mame/drivers/pong.cpp @@ -144,7 +144,7 @@ public: } // devices - required_device<netlist_mame_device_t> m_maincpu; + required_device<netlist_mame_device> m_maincpu; required_device<fixedfreq_device> m_video; required_device<dac_word_interface> m_dac; /* just to have a sound device */ @@ -176,8 +176,8 @@ public: } // sub devices - required_device<netlist_mame_logic_input_t> m_sw1a; - required_device<netlist_mame_logic_input_t> m_sw1b; + required_device<netlist_mame_logic_input_device> m_sw1a; + required_device<netlist_mame_logic_input_device> m_sw1b; DECLARE_INPUT_CHANGED_MEMBER(input_changed); @@ -207,15 +207,15 @@ public: m_sw1_4(*this, "maincpu:sw1_4") { } - required_device<netlist_mame_analog_output_t> m_led_serve; - required_device<netlist_mame_analog_output_t> m_lamp_credit1; - required_device<netlist_mame_analog_output_t> m_lamp_credit2; - required_device<netlist_mame_analog_output_t> m_coin_counter; + required_device<netlist_mame_analog_output_device> m_led_serve; + required_device<netlist_mame_analog_output_device> m_lamp_credit1; + required_device<netlist_mame_analog_output_device> m_lamp_credit2; + required_device<netlist_mame_analog_output_device> m_coin_counter; - required_device<netlist_mame_logic_input_t> m_sw1_1; - required_device<netlist_mame_logic_input_t> m_sw1_2; - required_device<netlist_mame_logic_input_t> m_sw1_3; - required_device<netlist_mame_logic_input_t> m_sw1_4; + required_device<netlist_mame_logic_input_device> m_sw1_1; + required_device<netlist_mame_logic_input_device> m_sw1_2; + required_device<netlist_mame_logic_input_device> m_sw1_3; + required_device<netlist_mame_logic_input_device> m_sw1_4; NETDEV_ANALOG_CALLBACK_MEMBER(serve_cb) { @@ -266,7 +266,7 @@ NETLIST_END() INPUT_CHANGED_MEMBER(pong_state::input_changed) { - int numpad = (uintptr_t) (param); + int numpad = uintptr_t(param); switch (numpad) { @@ -371,7 +371,7 @@ static INPUT_PORTS_START( breakout ) INPUT_PORTS_END -static MACHINE_CONFIG_START( pong, pong_state ) +static MACHINE_CONFIG_START( pong ) /* basic machine hardware */ MCFG_DEVICE_ADD("maincpu", NETLIST_CPU, NETLIST_CLOCK) @@ -406,7 +406,7 @@ static MACHINE_CONFIG_START( pong, pong_state ) MCFG_SOUND_ROUTE_EX(0, "dac", 1.0, DAC_VREF_POS_INPUT) MCFG_SOUND_ROUTE_EX(0, "dac", -1.0, DAC_VREF_NEG_INPUT) MACHINE_CONFIG_END -static MACHINE_CONFIG_START( breakout, breakout_state ) +static MACHINE_CONFIG_START( breakout ) /* basic machine hardware */ MCFG_DEVICE_ADD("maincpu", NETLIST_CPU, NETLIST_CLOCK) @@ -467,7 +467,7 @@ static MACHINE_CONFIG_DERIVED( pongf, pong ) MACHINE_CONFIG_END -static MACHINE_CONFIG_START( pongd, pong_state ) +static MACHINE_CONFIG_START( pongd ) /* basic machine hardware */ MCFG_DEVICE_ADD("maincpu", NETLIST_CPU, NETLIST_CLOCK) @@ -565,10 +565,10 @@ ROM_START( consolet ) // dummy to satisfy game entry ROM_END */ -GAME( 1972, pong, 0, pong, pong, driver_device, 0, ROT0, "Atari", "Pong (Rev E) external [TTL]", MACHINE_SUPPORTS_SAVE) -GAME( 1972, pongf, 0, pongf, pong, driver_device, 0, ROT0, "Atari", "Pong (Rev E) [TTL]", MACHINE_SUPPORTS_SAVE) -GAME( 1973, pongd, 0, pongd, pongd, driver_device, 0, ROT0, "Atari", "Pong Doubles [TTL]", MACHINE_SUPPORTS_SAVE) -GAMEL( 1976, breakout, 0, breakout, breakout, driver_device, 0, ROT90, "Atari", "Breakout [TTL]", MACHINE_SUPPORTS_SAVE, layout_breakout) +GAME( 1972, pong, 0, pong, pong, pong_state, 0, ROT0, "Atari", "Pong (Rev E) external [TTL]", MACHINE_SUPPORTS_SAVE) +GAME( 1972, pongf, 0, pongf, pong, pong_state, 0, ROT0, "Atari", "Pong (Rev E) [TTL]", MACHINE_SUPPORTS_SAVE) +GAME( 1973, pongd, 0, pongd, pongd, pong_state, 0, ROT0, "Atari", "Pong Doubles [TTL]", MACHINE_SUPPORTS_SAVE) +GAMEL( 1976, breakout, 0, breakout, breakout, breakout_state, 0, ROT90, "Atari", "Breakout [TTL]", MACHINE_SUPPORTS_SAVE, layout_breakout) // 100% TTL //GAME( 1973, coupedav, pongd, pongd, pongd, driver_device, 0, ROT0, "Atari France", "Coupe Davis [TTL]", MACHINE_SUPPORTS_SAVE) |