Skip to content

Commit

Permalink
Fixed pong (rom based). Minor changes no netlist code.[Couriersud]
Browse files Browse the repository at this point in the history
  • Loading branch information
couriers committed Mar 4, 2014
1 parent d2758a5 commit 8b493ef
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 21 deletions.
2 changes: 1 addition & 1 deletion src/emu/netlist/devices/net_lib.c
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ void netlist_factory_t::initialize()
ENTRY(mainclock, MAINCLOCK, "FREQ")
ENTRY(solver, SOLVER, "FREQ")
ENTRY(gnd, GND, "-")
ENTRY(switch2, SWITCH2, "+i1,i2")
ENTRY(switch2, SWITCH2, "-")
ENTRY(nicRSFF, NETDEV_RSFF, "+S,R")
ENTRY(7400, TTL_7400_NAND, "+A,B")
ENTRY(7402, TTL_7402_NOR, "+A,B")
Expand Down
4 changes: 2 additions & 2 deletions src/emu/netlist/nl_base.c
Original file line number Diff line number Diff line change
Expand Up @@ -591,7 +591,7 @@ ATTR_COLD void netlist_net_t::register_con(netlist_core_terminal_t &terminal)
m_active++;
}

ATTR_HOT ATTR_ALIGN static void update_dev(const netlist_core_terminal_t *inp, const UINT32 mask)
ATTR_HOT ATTR_ALIGN static inline void update_dev(const netlist_core_terminal_t *inp, const UINT32 mask)
{
if ((inp->state() & mask) != 0)
{
Expand All @@ -603,7 +603,7 @@ ATTR_HOT ATTR_ALIGN static void update_dev(const netlist_core_terminal_t *inp, c
}
}

ATTR_HOT /*ATTR_ALIGN*/ inline void netlist_net_t::update_devs()
ATTR_HOT ATTR_ALIGN inline void netlist_net_t::update_devs()
{
assert(m_num_cons != 0);
assert(this->isRailNet());
Expand Down
1 change: 0 additions & 1 deletion src/emu/netlist/nl_base.h
Original file line number Diff line number Diff line change
Expand Up @@ -565,7 +565,6 @@ class netlist_net_t : public netlist_object_t
ATTR_COLD void merge_net(netlist_net_t *othernet);
ATTR_COLD void register_railterminal(netlist_output_t &mr);

/* inline not always works out */
ATTR_HOT inline void update_devs();

ATTR_HOT inline const netlist_time time() const { return m_time; }
Expand Down
19 changes: 2 additions & 17 deletions src/mame/drivers/pong.c
Original file line number Diff line number Diff line change
Expand Up @@ -144,28 +144,13 @@ static NETLIST_START(pong_schematics)

TTL_7404_INVERT(e4d, STOPG)

#if 1

TTL_7404_INVERT(c9f, c9c.Q)
TTL_7404_INVERT(c9c, c9f.Q)

SWITCH2(coinsw)
NET_C(c9c.Q, coinsw.1)
NET_C(c9f.Q, coinsw.2)

#else
RES(RYf, 50) // output impedance - not in schematics, hack (till better proxies exist)
RES(RYc, 50) // output impedance - not in schematics, hack (till better proxies exist)

TTL_7404_INVERT(c9f, RYc.2)
TTL_7404_INVERT(c9c, RYf.2)
NET_C(c9f.Q, RYf.1)
NET_C(c9c.Q, RYc.1)

SWITCH2(coinsw)
NET_C(RYc.2, coinsw.1)
NET_C(RYf.2, coinsw.2)
#endif
NET_C(coinsw.Q, GND)

/* Antenna circuit */
Expand Down Expand Up @@ -980,7 +965,7 @@ MACHINE_CONFIG_END

ROM_START( pong ) /* dummy to satisfy game entry*/
ROM_REGION( 0x10000, "maincpu", 0 ) /* enough for netlist */
ROM_LOAD( "pong.netlist", 0x000000, 17790 /*0x0043d9*/, CRC(64edd5a0) SHA1(9e661f2fba44f46015fdccffa7766dd4e61cdc7d) )
ROM_LOAD( "pong.netlist", 0x000000, 0x00457f, CRC(72d5e4fe) SHA1(7bb15828223c34915c5e2869dd7917532a4bb7b4) )
ROM_END

ROM_START( pongf ) /* dummy to satisfy game entry*/
Expand All @@ -993,7 +978,7 @@ ROM_START( pongd ) /* dummy to satisfy game entry*/
ROM_END
#endif

GAME( 1972, pong, 0, pong, pong, driver_device, 0, ROT0, "Atari", "Pong (Rev E) external", GAME_SUPPORTS_SAVE | GAME_NOT_WORKING)
GAME( 1972, pong, 0, pong, pong, driver_device, 0, ROT0, "Atari", "Pong (Rev E) external", GAME_SUPPORTS_SAVE)
GAME( 1972, pongf, 0, pongf, pong, driver_device, 0, ROT0, "Atari", "Pong (Rev E)", GAME_SUPPORTS_SAVE )
#if PONGD
GAME( 1974, pongd, 0, pongd, pongd, driver_device, 0, ROT0, "Atari", "Pong Doubles", GAME_SUPPORTS_SAVE )
Expand Down

0 comments on commit 8b493ef

Please sign in to comment.