mirror of
https://github.com/holub/mame
synced 2025-04-16 05:24:54 +03:00
gokidetor.cpp: Rename Gokidetor to La Cucaracha (#9883)
This commit is contained in:
parent
2c37a11ddc
commit
7ae12dd2c7
@ -3984,6 +3984,7 @@ files {
|
||||
MAME_DIR .. "src/mame/includes/crbaloon.h",
|
||||
MAME_DIR .. "src/mame/video/crbaloon.cpp",
|
||||
MAME_DIR .. "src/mame/audio/crbaloon.cpp",
|
||||
MAME_DIR .. "src/mame/drivers/cucaracha.cpp",
|
||||
MAME_DIR .. "src/mame/drivers/cyclemb.cpp",
|
||||
MAME_DIR .. "src/mame/drivers/darius.cpp",
|
||||
MAME_DIR .. "src/mame/includes/darius.h",
|
||||
@ -4002,7 +4003,6 @@ files {
|
||||
MAME_DIR .. "src/mame/drivers/gladiatr.cpp",
|
||||
MAME_DIR .. "src/mame/includes/gladiatr.h",
|
||||
MAME_DIR .. "src/mame/video/gladiatr.cpp",
|
||||
MAME_DIR .. "src/mame/drivers/gokidetor.cpp",
|
||||
MAME_DIR .. "src/mame/drivers/grchamp.cpp",
|
||||
MAME_DIR .. "src/mame/includes/grchamp.h",
|
||||
MAME_DIR .. "src/mame/audio/grchamp.cpp",
|
||||
|
@ -288,6 +288,7 @@ csplayh5.cpp
|
||||
cswat.cpp
|
||||
cubeqst.cpp
|
||||
cubo.cpp
|
||||
cucaracha.cpp
|
||||
cultures.cpp
|
||||
cupidon.cpp
|
||||
cv1k.cpp
|
||||
@ -500,7 +501,6 @@ gng.cpp
|
||||
go2000.cpp
|
||||
goal92.cpp
|
||||
goindol.cpp
|
||||
gokidetor.cpp
|
||||
goldart.cpp
|
||||
goldngam.cpp
|
||||
goldnpkr.cpp
|
||||
|
@ -2,9 +2,13 @@
|
||||
// copyright-holders:AJR
|
||||
/***************************************************************************
|
||||
|
||||
Gokidetor (c) 1992 Taito
|
||||
La Cucaracha (c) 1992 Taito
|
||||
|
||||
Mechanical whack-a-mole with a dot-matrix LED screen.
|
||||
Available in English and Spanish (latter is undumped).
|
||||
Released in Japan as Gokidetor (ゴキデター) (undumped).
|
||||
|
||||
Up to 6 machines can be linked in a "competition mode" (fastest wins).
|
||||
|
||||
***************************************************************************/
|
||||
|
||||
@ -19,15 +23,15 @@
|
||||
|
||||
namespace {
|
||||
|
||||
class gokidetor_state : public driver_device
|
||||
class cucaracha_state : public driver_device
|
||||
{
|
||||
public:
|
||||
gokidetor_state(const machine_config &mconfig, device_type type, const char *tag)
|
||||
cucaracha_state(const machine_config &mconfig, device_type type, const char *tag)
|
||||
: driver_device(mconfig, type, tag)
|
||||
, m_maincpu(*this, "maincpu")
|
||||
{ }
|
||||
|
||||
void gokidetor(machine_config &config);
|
||||
void cucaracha(machine_config &config);
|
||||
|
||||
private:
|
||||
void out4_w(uint8_t data);
|
||||
@ -47,49 +51,49 @@ private:
|
||||
};
|
||||
|
||||
|
||||
void gokidetor_state::machine_start()
|
||||
void cucaracha_state::machine_start()
|
||||
{
|
||||
}
|
||||
|
||||
|
||||
void gokidetor_state::out4_w(uint8_t data)
|
||||
void cucaracha_state::out4_w(uint8_t data)
|
||||
{
|
||||
logerror("Writing %02X to TE7750 port 4\n", data);
|
||||
}
|
||||
|
||||
void gokidetor_state::out5_w(uint8_t data)
|
||||
void cucaracha_state::out5_w(uint8_t data)
|
||||
{
|
||||
logerror("Writing %02X to TE7750 port 5\n", data);
|
||||
}
|
||||
|
||||
void gokidetor_state::out6_w(uint8_t data)
|
||||
void cucaracha_state::out6_w(uint8_t data)
|
||||
{
|
||||
logerror("Writing %02X to TE7750 port 6\n", data);
|
||||
}
|
||||
|
||||
void gokidetor_state::out7_w(uint8_t data)
|
||||
void cucaracha_state::out7_w(uint8_t data)
|
||||
{
|
||||
logerror("Writing %02X to TE7750 port 7\n", data);
|
||||
}
|
||||
|
||||
void gokidetor_state::out8_w(uint8_t data)
|
||||
void cucaracha_state::out8_w(uint8_t data)
|
||||
{
|
||||
logerror("Writing %02X to TE7750 port 8\n", data & 0x3f);
|
||||
}
|
||||
|
||||
void gokidetor_state::out9_w(uint8_t data)
|
||||
void cucaracha_state::out9_w(uint8_t data)
|
||||
{
|
||||
logerror("Writing %02X to TE7750 port 9\n", data);
|
||||
}
|
||||
|
||||
void gokidetor_state::ym_porta_w(uint8_t data)
|
||||
void cucaracha_state::ym_porta_w(uint8_t data)
|
||||
{
|
||||
if (data != 0x40)
|
||||
logerror("Writing %02X to YM2203 port A\n", data);
|
||||
}
|
||||
|
||||
|
||||
void gokidetor_state::main_map(address_map &map)
|
||||
void cucaracha_state::main_map(address_map &map)
|
||||
{
|
||||
map(0x0000, 0x7fff).rom();
|
||||
map(0x8000, 0x9fff).rom(); // probably banked
|
||||
@ -112,7 +116,7 @@ void gokidetor_state::main_map(address_map &map)
|
||||
}
|
||||
|
||||
|
||||
void gokidetor_state::sound_map(address_map &map)
|
||||
void cucaracha_state::sound_map(address_map &map)
|
||||
{
|
||||
map(0x0000, 0x7fff).rom();
|
||||
map(0x8000, 0x8fff).ram();
|
||||
@ -123,10 +127,10 @@ void gokidetor_state::sound_map(address_map &map)
|
||||
}
|
||||
|
||||
|
||||
void gokidetor_state::gokidetor(machine_config &config)
|
||||
void cucaracha_state::cucaracha(machine_config &config)
|
||||
{
|
||||
Z80(config, m_maincpu, XTAL(16'000'000) / 4); // divider not verified
|
||||
m_maincpu->set_addrmap(AS_PROGRAM, &gokidetor_state::main_map);
|
||||
m_maincpu->set_addrmap(AS_PROGRAM, &cucaracha_state::main_map);
|
||||
// IRQ from ???
|
||||
// NMI related to E002 input and TE7750 port 7
|
||||
|
||||
@ -135,16 +139,16 @@ void gokidetor_state::gokidetor(machine_config &config)
|
||||
te7750.in_port1_cb().set_ioport("IN1");
|
||||
te7750.in_port2_cb().set_ioport("IN2");
|
||||
te7750.in_port3_cb().set_ioport("IN3");
|
||||
te7750.out_port4_cb().set(FUNC(gokidetor_state::out4_w));
|
||||
te7750.out_port5_cb().set(FUNC(gokidetor_state::out5_w));
|
||||
te7750.out_port6_cb().set(FUNC(gokidetor_state::out6_w));
|
||||
te7750.out_port7_cb().set(FUNC(gokidetor_state::out7_w));
|
||||
te7750.out_port4_cb().set(FUNC(cucaracha_state::out4_w));
|
||||
te7750.out_port5_cb().set(FUNC(cucaracha_state::out5_w));
|
||||
te7750.out_port6_cb().set(FUNC(cucaracha_state::out6_w));
|
||||
te7750.out_port7_cb().set(FUNC(cucaracha_state::out7_w));
|
||||
te7750.in_port8_cb().set_ioport("IN8");
|
||||
te7750.out_port8_cb().set(FUNC(gokidetor_state::out8_w));
|
||||
te7750.out_port9_cb().set(FUNC(gokidetor_state::out9_w));
|
||||
te7750.out_port8_cb().set(FUNC(cucaracha_state::out8_w));
|
||||
te7750.out_port9_cb().set(FUNC(cucaracha_state::out9_w));
|
||||
|
||||
z80_device &soundcpu(Z80(config, "soundcpu", 4000000));
|
||||
soundcpu.set_addrmap(AS_PROGRAM, &gokidetor_state::sound_map);
|
||||
soundcpu.set_addrmap(AS_PROGRAM, &cucaracha_state::sound_map);
|
||||
|
||||
pc060ha_device &ciu(PC060HA(config, "ciu", 0));
|
||||
ciu.set_master_tag(m_maincpu);
|
||||
@ -154,7 +158,7 @@ void gokidetor_state::gokidetor(machine_config &config)
|
||||
|
||||
ym2203_device &ymsnd(YM2203(config, "ymsnd", 3000000));
|
||||
ymsnd.irq_handler().set_inputline("soundcpu", 0);
|
||||
ymsnd.port_a_write_callback().set(FUNC(gokidetor_state::ym_porta_w));
|
||||
ymsnd.port_a_write_callback().set(FUNC(cucaracha_state::ym_porta_w));
|
||||
ymsnd.add_route(0, "mono", 0.25);
|
||||
ymsnd.add_route(1, "mono", 0.25);
|
||||
ymsnd.add_route(2, "mono", 0.25);
|
||||
@ -163,7 +167,7 @@ void gokidetor_state::gokidetor(machine_config &config)
|
||||
OKIM6295(config, "oki", 1056000, okim6295_device::PIN7_HIGH).add_route(ALL_OUTPUTS, "mono", 0.50); // clock frequency & pin 7 not verified
|
||||
}
|
||||
|
||||
INPUT_PORTS_START( gokidetor )
|
||||
INPUT_PORTS_START( cucaracha )
|
||||
PORT_START("IN1")
|
||||
PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_OTHER ) PORT_CODE(KEYCODE_1)
|
||||
PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_OTHER ) PORT_CODE(KEYCODE_2)
|
||||
@ -252,10 +256,10 @@ INPUT_PORTS_START( gokidetor )
|
||||
PORT_DIPSETTING( 0x00, DEF_STR( On ) )
|
||||
INPUT_PORTS_END
|
||||
|
||||
ROM_START( gokidetor )
|
||||
ROM_START( cucaracha )
|
||||
ROM_REGION( 0x20000, "maincpu", 0 )
|
||||
ROM_LOAD( "ic2", 0, 0x20000, CRC(f9dbca28) SHA1(b2f6d6b66bfa5e5ca7c26a0709f7136bf9e1a42e) )
|
||||
// 8000-FFFF appears to be graphics; 10000-1FFFF is unused
|
||||
// 8000-FFFF are graphics; 10000-1FFFF is unused
|
||||
|
||||
ROM_REGION( 0x10000, "soundcpu", 0 )
|
||||
ROM_LOAD( "ic34", 0, 0x10000, CRC(fd06305d) SHA1(7889f0c360650bfd0fe593c522685a978879bfee) )
|
||||
@ -272,10 +276,10 @@ ROM_START( gokidetor )
|
||||
ROM_LOAD( "d33-06.pal20l8b.ic44", 0x5000, 0x144, CRC(bf4eeb17) SHA1(d78f65eacf1c7893f87b9fe8be0e5e1b28af7c7a) )
|
||||
ROM_END
|
||||
|
||||
ROM_START( gokidetor2 )
|
||||
ROM_START( cucaracha2 )
|
||||
ROM_REGION( 0x20000, "maincpu", 0 )
|
||||
ROM_LOAD( "ic2.rom", 0, 0x20000, CRC(03bf24d1) SHA1(ef63a5be25d77ac20984402cc45137d292a9fa1d) )
|
||||
// 8000-FFFF appears to be graphics; 10000-1FFFF is unused
|
||||
// 8000-FFFF are graphics; 10000-1FFFF is unused
|
||||
|
||||
ROM_REGION( 0x10000, "soundcpu", 0 )
|
||||
ROM_LOAD( "ic34.rom", 0, 0x10000, CRC(fd06305d) SHA1(7889f0c360650bfd0fe593c522685a978879bfee) )
|
||||
@ -294,5 +298,5 @@ ROM_END
|
||||
|
||||
} // Anonymous namespace
|
||||
|
||||
GAME( 1992, gokidetor, 0, gokidetor, gokidetor, gokidetor_state, empty_init, ROT0, "Taito", "Gokidetor (set 1)", MACHINE_IS_SKELETON_MECHANICAL )
|
||||
GAME( 1992, gokidetor2, gokidetor, gokidetor, gokidetor, gokidetor_state, empty_init, ROT0, "Taito", "Gokidetor (set 2)", MACHINE_IS_SKELETON_MECHANICAL )
|
||||
GAME( 1992, cucaracha, 0, cucaracha, cucaracha, cucaracha_state, empty_init, ROT0, "Taito", "La Cucaracha (set 1)", MACHINE_IS_SKELETON_MECHANICAL )
|
||||
GAME( 1992, cucaracha2, cucaracha, cucaracha, cucaracha, cucaracha_state, empty_init, ROT0, "Taito", "La Cucaracha (set 2)", MACHINE_IS_SKELETON_MECHANICAL )
|
@ -11667,6 +11667,10 @@ mgprem11 // (c) 1995
|
||||
odeontw //
|
||||
odeontw2 // (c) 1999
|
||||
|
||||
@source:cucaracha.cpp
|
||||
cucaracha // (c) 1992 Taito
|
||||
cucaracha2 // (c) 1992 Taito
|
||||
|
||||
@source:cultures.cpp
|
||||
cultures // (c) 1994 Face
|
||||
|
||||
@ -15567,10 +15571,6 @@ goindolj // (c) 1987 Sun a Electronics
|
||||
goindolu // (c) 1987 Sun a Electronics
|
||||
homo // bootleg
|
||||
|
||||
@source:gokidetor.cpp
|
||||
gokidetor // (c) 1992 Taito
|
||||
gokidetor2 // (c) 1992 Taito
|
||||
|
||||
@source:goldart.cpp
|
||||
goldart
|
||||
goldartp
|
||||
|
Loading…
Reference in New Issue
Block a user