trunk/src/mame/drivers/chicago.c
r0 | r27455 | |
| 1 | /*************************************************************************** |
| 2 | |
| 3 | Chicago Coin discrete hardware games |
| 4 | |
| 5 | Game Name Model # |
| 6 | ----------------------------------------- |
| 7 | Demolition Derby (1976) #466 |
| 8 | Super Flipper (1975) #458 |
| 9 | Olympic TV Football (1973) #429-A |
| 10 | Olympic TV Hockey (1973) #429 |
| 11 | TV Goalee (1973) #414 |
| 12 | TV Ping Pong (1973) #424 |
| 13 | TV Pin Game (1975) #451 |
| 14 | TV Tennis (1973) #427 |
| 15 | |
| 16 | ***************************************************************************/ |
| 17 | |
| 18 | |
| 19 | #include "emu.h" |
| 20 | |
| 21 | #include "machine/rescap.h" |
| 22 | #include "machine/netlist.h" |
| 23 | #include "netlist/devices/net_lib.h" |
| 24 | #include "video/fixfreq.h" |
| 25 | #include "astring.h" |
| 26 | |
| 27 | // copied by Pong, not accurate for this driver! |
| 28 | // start |
| 29 | #define MASTER_CLOCK 7159000 |
| 30 | #define V_TOTAL (0x105+1) // 262 |
| 31 | #define H_TOTAL (0x1C6+1) // 454 |
| 32 | |
| 33 | #define HBSTART (H_TOTAL) |
| 34 | #define HBEND (80) |
| 35 | #define VBSTART (V_TOTAL) |
| 36 | #define VBEND (16) |
| 37 | |
| 38 | #define HRES_MULT (1) |
| 39 | |
| 40 | fixedfreq_interface fixedfreq_mode_chicago = { |
| 41 | MASTER_CLOCK, |
| 42 | H_TOTAL-67,H_TOTAL-40,H_TOTAL-8,H_TOTAL, |
| 43 | V_TOTAL-22,V_TOTAL-19,V_TOTAL-12,V_TOTAL, |
| 44 | 1, /* non-interlaced */ |
| 45 | 0.30 |
| 46 | }; |
| 47 | // end |
| 48 | |
| 49 | |
| 50 | class chicago_state : public driver_device |
| 51 | { |
| 52 | public: |
| 53 | chicago_state(const machine_config &mconfig, device_type type, const char *tag) |
| 54 | : driver_device(mconfig, type, tag), |
| 55 | m_maincpu(*this, "maincpu"), |
| 56 | m_video(*this, "fixfreq") |
| 57 | { |
| 58 | } |
| 59 | |
| 60 | // devices |
| 61 | required_device<netlist_mame_device_t> m_maincpu; |
| 62 | required_device<fixedfreq_device> m_video; |
| 63 | |
| 64 | protected: |
| 65 | |
| 66 | // driver_device overrides |
| 67 | virtual void machine_start(); |
| 68 | virtual void machine_reset(); |
| 69 | |
| 70 | virtual void video_start(); |
| 71 | |
| 72 | private: |
| 73 | |
| 74 | }; |
| 75 | |
| 76 | |
| 77 | static NETLIST_START(chicago) |
| 78 | SOLVER(Solver) |
| 79 | PARAM(Solver.FREQ, 48000) |
| 80 | PARAM(Solver.ACCURACY, 1e-4) // works and is sufficient |
| 81 | |
| 82 | // schematics |
| 83 | //... |
| 84 | |
| 85 | // NETDEV_ANALOG_CALLBACK(sound_cb, sound, exidyttl_state, sound_cb, "") |
| 86 | // NETDEV_ANALOG_CALLBACK(video_cb, videomix, fixedfreq_device, update_vid, "fixfreq") |
| 87 | NETLIST_END() |
| 88 | |
| 89 | |
| 90 | |
| 91 | void chicago_state::machine_start() |
| 92 | { |
| 93 | } |
| 94 | |
| 95 | void chicago_state::machine_reset() |
| 96 | { |
| 97 | } |
| 98 | |
| 99 | |
| 100 | void chicago_state::video_start() |
| 101 | { |
| 102 | } |
| 103 | |
| 104 | static MACHINE_CONFIG_START( chicago, chicago_state ) |
| 105 | |
| 106 | /* basic machine hardware */ |
| 107 | MCFG_DEVICE_ADD("maincpu", NETLIST_CPU, NETLIST_CLOCK) |
| 108 | MCFG_NETLIST_SETUP(chicago) |
| 109 | |
| 110 | /* video hardware */ |
| 111 | MCFG_FIXFREQ_ADD("fixfreq", "screen", fixedfreq_mode_chicago) |
| 112 | MACHINE_CONFIG_END |
| 113 | |
| 114 | |
| 115 | /*************************************************************************** |
| 116 | |
| 117 | Game driver(s) |
| 118 | |
| 119 | ***************************************************************************/ |
| 120 | |
| 121 | |
| 122 | ROM_START( destdrby ) |
| 123 | ROM_REGION( 0x10000, "maincpu", ROMREGION_ERASE00 ) |
| 124 | |
| 125 | ROM_REGION( 0x0400, "roms", ROMREGION_ERASE00 ) |
| 126 | ROM_LOAD( "cdi.b2", 0x0000, 0x0200, CRC(9c727712) SHA1(0d5da25fda57da873da0c066d3472c076c18b853) ) |
| 127 | ROM_LOAD( "cdi.b8", 0x0000, 0x0200, CRC(840653fa) SHA1(b71d35af4bb4a6f98acfa9161c0f3e8165440d16) ) |
| 128 | ROM_LOAD( "cdi.c8", 0x0000, 0x0200, CRC(79ebcfa1) SHA1(5267a38b76f58a9add928d1241803792b35f65c0) ) |
| 129 | ROM_LOAD( "cdi.d8", 0x0000, 0x0200, CRC(afcfe339) SHA1(34912eb50fe162743fa2a7433a1e8634050fb514) ) |
| 130 | ROM_LOAD( "cdi.e8", 0x0000, 0x0200, CRC(7b7bf492) SHA1(6d48ae1963c6f867a461d15e657df8196fdeaf20) ) |
| 131 | ROM_LOAD( "cdi.h3", 0x0000, 0x0200, CRC(66f25de0) SHA1(1984c3f9a4f5c01b1db784cec7279307aa9a851b) ) |
| 132 | ROM_LOAD( "cdi.h6", 0x0000, 0x0200, CRC(9c727712) SHA1(0d5da25fda57da873da0c066d3472c076c18b853) ) |
| 133 | ROM_LOAD( "cdi.n1", 0x0000, 0x0200, CRC(66f25de0) SHA1(1984c3f9a4f5c01b1db784cec7279307aa9a851b) ) |
| 134 | |
| 135 | ROM_LOAD( "cdi.c13", 0x0000, 0x0020, CRC(f304a1fb) SHA1(0f029274bb99723ebcc271d761e1500ca50b2738) ) |
| 136 | ROM_LOAD( "cdi.c14", 0x0000, 0x0020, CRC(f8dbd779) SHA1(55bdaf9eb1ba6185e20512c4874ebb625861508e) ) |
| 137 | ROM_LOAD( "cdi.d5", 0x0000, 0x0020, CRC(e9af4217) SHA1(813e126b1263e13f1684d700c5c4bec34d063b38) ) |
| 138 | ROM_LOAD( "cdi.n13", 0x0000, 0x0020, CRC(2e83bf80) SHA1(02fcc1e879c06759a21ef4f004fe7aa790814112) ) |
| 139 | ROM_LOAD( "cdi.g2", 0x0000, 0x0020, CRC(5ed8cdd2) SHA1(d193d819ad634c43d648ce49073799b4df6dfd2f) ) |
| 140 | ROM_LOAD( "cdi.j10", 0x0000, 0x0020, CRC(e9af4217) SHA1(813e126b1263e13f1684d700c5c4bec34d063b38) ) |
| 141 | ROM_LOAD( "cdi.r1", 0x0000, 0x0020, CRC(5ed8cdd2) SHA1(d193d819ad634c43d648ce49073799b4df6dfd2f) ) |
| 142 | ROM_END |
| 143 | |
| 144 | |
| 145 | GAME( 1976, destdrby, 0, chicago, 0, driver_device, 0, ROT0, "Chicago Coin", "Destruction Derby [TTL]", GAME_IS_SKELETON ) |
trunk/src/mame/drivers/electra.c
r0 | r27455 | |
| 1 | /*************************************************************************** |
| 2 | |
| 3 | Electra discrete hardware games |
| 4 | |
| 5 | Game Name |
| 6 | Avenger (1975) EG-1020 |
| 7 | Eliminator IV (1976) |
| 8 | Flying Fortress (1976) EG-1060 (Taito same name?) |
| 9 | Pace Car Pro (1975) EG-1000 |
| 10 | UFO Chase (1975) EG-1010 |
| 11 | Wings (1976) |
| 12 | |
| 13 | ***************************************************************************/ |
| 14 | |
| 15 | |
| 16 | #include "emu.h" |
| 17 | |
| 18 | #include "machine/rescap.h" |
| 19 | #include "machine/netlist.h" |
| 20 | #include "netlist/devices/net_lib.h" |
| 21 | #include "video/fixfreq.h" |
| 22 | #include "astring.h" |
| 23 | |
| 24 | // copied by Pong, not accurate for this driver! |
| 25 | // start |
| 26 | #define MASTER_CLOCK 7159000 |
| 27 | #define V_TOTAL (0x105+1) // 262 |
| 28 | #define H_TOTAL (0x1C6+1) // 454 |
| 29 | |
| 30 | #define HBSTART (H_TOTAL) |
| 31 | #define HBEND (80) |
| 32 | #define VBSTART (V_TOTAL) |
| 33 | #define VBEND (16) |
| 34 | |
| 35 | #define HRES_MULT (1) |
| 36 | |
| 37 | fixedfreq_interface fixedfreq_mode_electra = { |
| 38 | MASTER_CLOCK, |
| 39 | H_TOTAL-67,H_TOTAL-40,H_TOTAL-8,H_TOTAL, |
| 40 | V_TOTAL-22,V_TOTAL-19,V_TOTAL-12,V_TOTAL, |
| 41 | 1, /* non-interlaced */ |
| 42 | 0.30 |
| 43 | }; |
| 44 | // end |
| 45 | |
| 46 | |
| 47 | class electra_state : public driver_device |
| 48 | { |
| 49 | public: |
| 50 | electra_state(const machine_config &mconfig, device_type type, const char *tag) |
| 51 | : driver_device(mconfig, type, tag), |
| 52 | m_maincpu(*this, "maincpu"), |
| 53 | m_video(*this, "fixfreq") |
| 54 | { |
| 55 | } |
| 56 | |
| 57 | // devices |
| 58 | required_device<netlist_mame_device_t> m_maincpu; |
| 59 | required_device<fixedfreq_device> m_video; |
| 60 | |
| 61 | protected: |
| 62 | |
| 63 | // driver_device overrides |
| 64 | virtual void machine_start(); |
| 65 | virtual void machine_reset(); |
| 66 | |
| 67 | virtual void video_start(); |
| 68 | |
| 69 | private: |
| 70 | |
| 71 | }; |
| 72 | |
| 73 | |
| 74 | static NETLIST_START(electra) |
| 75 | SOLVER(Solver) |
| 76 | PARAM(Solver.FREQ, 48000) |
| 77 | PARAM(Solver.ACCURACY, 1e-4) // works and is sufficient |
| 78 | |
| 79 | // schematics |
| 80 | //... |
| 81 | |
| 82 | // NETDEV_ANALOG_CALLBACK(sound_cb, sound, exidyttl_state, sound_cb, "") |
| 83 | // NETDEV_ANALOG_CALLBACK(video_cb, videomix, fixedfreq_device, update_vid, "fixfreq") |
| 84 | NETLIST_END() |
| 85 | |
| 86 | |
| 87 | |
| 88 | void electra_state::machine_start() |
| 89 | { |
| 90 | } |
| 91 | |
| 92 | void electra_state::machine_reset() |
| 93 | { |
| 94 | } |
| 95 | |
| 96 | |
| 97 | void electra_state::video_start() |
| 98 | { |
| 99 | } |
| 100 | |
| 101 | static MACHINE_CONFIG_START( electra, electra_state ) |
| 102 | |
| 103 | /* basic machine hardware */ |
| 104 | MCFG_DEVICE_ADD("maincpu", NETLIST_CPU, NETLIST_CLOCK) |
| 105 | MCFG_NETLIST_SETUP(electra) |
| 106 | |
| 107 | /* video hardware */ |
| 108 | MCFG_FIXFREQ_ADD("fixfreq", "screen", fixedfreq_mode_electra) |
| 109 | MACHINE_CONFIG_END |
| 110 | |
| 111 | |
| 112 | /*************************************************************************** |
| 113 | |
| 114 | Game driver(s) |
| 115 | |
| 116 | ***************************************************************************/ |
| 117 | |
| 118 | |
| 119 | ROM_START( avenger ) |
| 120 | ROM_REGION( 0x10000, "maincpu", ROMREGION_ERASE00 ) |
| 121 | |
| 122 | ROM_REGION( 0x0200, "roms", ROMREGION_ERASE00 ) |
| 123 | ROM_LOAD( "url.l10", 0x0000, 0x0200, CRC(12052a01) SHA1(0674254f73be14b871870c52d7f731209411bcea) ) |
| 124 | ROM_LOAD( "url.d10", 0x0000, 0x0020, CRC(3c10773b) SHA1(84b6d10d372978e80f358e66713571a26e129eed) ) |
| 125 | ROM_LOAD( "url.g10", 0x0000, 0x0020, CRC(b2dba75e) SHA1(dc4e205aeb62ebd5617e571d9e7b467da377fff5) ) |
| 126 | ROM_LOAD( "url.h10", 0x0000, 0x0020, CRC(816a8136) SHA1(2eca1ce7b53dd314ad0b2fdf71b843aaca774721) ) |
| 127 | ROM_END |
| 128 | |
| 129 | |
| 130 | GAME( 1975, avenger, 0, electra, 0, driver_device, 0, ROT0, "Electra", "Avenger [TTL]", GAME_IS_SKELETON ) |
trunk/src/mame/drivers/aleisttl.c
r0 | r27455 | |
| 1 | /*************************************************************************** |
| 2 | |
| 3 | Allied Leisure discrete hardware games |
| 4 | |
| 5 | Hesitation (1974) AL-6500 |
| 6 | Paddle Battle (1973) |
| 7 | Robot (1975) AL-7500 |
| 8 | Ski (1975) |
| 9 | Street Burners (1975) |
| 10 | Super Soccer (1973) |
| 11 | Tennis Tourney (1973) |
| 12 | Zap (1974) |
| 13 | |
| 14 | ***************************************************************************/ |
| 15 | |
| 16 | |
| 17 | #include "emu.h" |
| 18 | |
| 19 | #include "machine/rescap.h" |
| 20 | #include "machine/netlist.h" |
| 21 | #include "netlist/devices/net_lib.h" |
| 22 | #include "video/fixfreq.h" |
| 23 | #include "astring.h" |
| 24 | |
| 25 | // copied by Pong, not accurate for this driver! |
| 26 | // start |
| 27 | #define MASTER_CLOCK 7159000 |
| 28 | #define V_TOTAL (0x105+1) // 262 |
| 29 | #define H_TOTAL (0x1C6+1) // 454 |
| 30 | |
| 31 | #define HBSTART (H_TOTAL) |
| 32 | #define HBEND (80) |
| 33 | #define VBSTART (V_TOTAL) |
| 34 | #define VBEND (16) |
| 35 | |
| 36 | #define HRES_MULT (1) |
| 37 | |
| 38 | fixedfreq_interface fixedfreq_mode_sburners = { |
| 39 | MASTER_CLOCK, |
| 40 | H_TOTAL-67,H_TOTAL-40,H_TOTAL-8,H_TOTAL, |
| 41 | V_TOTAL-22,V_TOTAL-19,V_TOTAL-12,V_TOTAL, |
| 42 | 1, /* non-interlaced */ |
| 43 | 0.30 |
| 44 | }; |
| 45 | // end |
| 46 | |
| 47 | |
| 48 | class sburners_state : public driver_device |
| 49 | { |
| 50 | public: |
| 51 | sburners_state(const machine_config &mconfig, device_type type, const char *tag) |
| 52 | : driver_device(mconfig, type, tag), |
| 53 | m_maincpu(*this, "maincpu"), |
| 54 | m_video(*this, "fixfreq") |
| 55 | { |
| 56 | } |
| 57 | |
| 58 | // devices |
| 59 | required_device<netlist_mame_device_t> m_maincpu; |
| 60 | required_device<fixedfreq_device> m_video; |
| 61 | |
| 62 | protected: |
| 63 | |
| 64 | // driver_device overrides |
| 65 | virtual void machine_start(); |
| 66 | virtual void machine_reset(); |
| 67 | |
| 68 | virtual void video_start(); |
| 69 | |
| 70 | private: |
| 71 | |
| 72 | }; |
| 73 | |
| 74 | |
| 75 | static NETLIST_START(sburners) |
| 76 | SOLVER(Solver) |
| 77 | PARAM(Solver.FREQ, 48000) |
| 78 | PARAM(Solver.ACCURACY, 1e-4) // works and is sufficient |
| 79 | |
| 80 | // schematics |
| 81 | //... |
| 82 | |
| 83 | // NETDEV_ANALOG_CALLBACK(sound_cb, sound, exidyttl_state, sound_cb, "") |
| 84 | // NETDEV_ANALOG_CALLBACK(video_cb, videomix, fixedfreq_device, update_vid, "fixfreq") |
| 85 | NETLIST_END() |
| 86 | |
| 87 | |
| 88 | |
| 89 | void sburners_state::machine_start() |
| 90 | { |
| 91 | } |
| 92 | |
| 93 | void sburners_state::machine_reset() |
| 94 | { |
| 95 | } |
| 96 | |
| 97 | |
| 98 | void sburners_state::video_start() |
| 99 | { |
| 100 | } |
| 101 | |
| 102 | static MACHINE_CONFIG_START( sburners, sburners_state ) |
| 103 | |
| 104 | /* basic machine hardware */ |
| 105 | MCFG_DEVICE_ADD("maincpu", NETLIST_CPU, NETLIST_CLOCK) |
| 106 | MCFG_NETLIST_SETUP(sburners) |
| 107 | |
| 108 | /* video hardware */ |
| 109 | MCFG_FIXFREQ_ADD("fixfreq", "screen", fixedfreq_mode_sburners) |
| 110 | MACHINE_CONFIG_END |
| 111 | |
| 112 | |
| 113 | /*************************************************************************** |
| 114 | |
| 115 | Game driver(s) |
| 116 | |
| 117 | ***************************************************************************/ |
| 118 | |
| 119 | |
| 120 | ROM_START( sburners ) |
| 121 | ROM_REGION( 0x10000, "maincpu", ROMREGION_ERASE00 ) |
| 122 | |
| 123 | ROM_REGION( 0x0400, "roms", ROMREGION_ERASE00 ) |
| 124 | ROM_LOAD( "url1.c15", 0x0000, 0x0200, CRC(e7941edb) SHA1(e3661a4b883e827fa8f0e5191007b948159cb3f4) ) |
| 125 | ROM_END |
| 126 | |
| 127 | |
| 128 | GAME( 1975, sburners, 0, sburners, 0, driver_device, 0, ROT0, "Alleid Leisure", "Street Burners [TTL]", GAME_IS_SKELETON ) |