diff options
author | 2019-04-30 19:55:56 +0300 | |
---|---|---|
committer | 2019-04-30 19:55:56 +0300 | |
commit | 79d5d49e8ae5a4fd6671a257262c6f11d3a19164 (patch) | |
tree | cda569e3375bf3eedc8a86e862b7d9390cf2714f /src | |
parent | 1d628222c94458dfbc0e371b1edadbf1cb40640e (diff) |
model2: powsled debug inputs (nw)
Diffstat (limited to 'src')
-rw-r--r-- | src/mame/drivers/model2.cpp | 33 | ||||
-rw-r--r-- | src/mame/includes/model2.h | 1 |
2 files changed, 29 insertions, 5 deletions
diff --git a/src/mame/drivers/model2.cpp b/src/mame/drivers/model2.cpp index 0e176f8961a..e66f9081dcc 100644 --- a/src/mame/drivers/model2.cpp +++ b/src/mame/drivers/model2.cpp @@ -671,9 +671,7 @@ WRITE32_MEMBER(model2b_state::copro_sharc_iop_w) (strcmp(machine().system().name, "gunblade" ) == 0) || (strcmp(machine().system().name, "von" ) == 0) || (strcmp(machine().system().name, "vonj" ) == 0) || - (strcmp(machine().system().name, "rchase2" ) == 0) || - (strcmp(machine().system().name, "powsled") == 0) || - (strcmp(machine().system().name, "powsledr") == 0)) + (strcmp(machine().system().name, "rchase2" ) == 0)) { m_copro_adsp->external_iop_write(offset, data); } @@ -2294,6 +2292,23 @@ static INPUT_PORTS_START( topskatr ) PORT_BIT(0xff, 0x80, IPT_AD_STICK_X) PORT_MINMAX(0x00, 0xff) PORT_SENSITIVITY(50) PORT_KEYDELTA(15) PORT_NAME("Slide") INPUT_PORTS_END +static INPUT_PORTS_START( powsled ) + PORT_INCLUDE(model2) + + PORT_MODIFY("IN0") + PORT_BIT(0x80, IP_ACTIVE_LOW, IPT_BUTTON5) PORT_NAME("Skip Error") + + PORT_START("IN3") + PORT_BIT(0x01, IP_ACTIVE_LOW, IPT_BUTTON1) PORT_PLAYER(3) + PORT_BIT(0x02, IP_ACTIVE_LOW, IPT_BUTTON2) PORT_PLAYER(3) PORT_NAME("Cancel Network Check") + PORT_BIT(0x04, IP_ACTIVE_LOW, IPT_BUTTON3) PORT_PLAYER(3) + PORT_BIT(0x08, IP_ACTIVE_LOW, IPT_BUTTON4) PORT_PLAYER(3) + PORT_BIT(0x10, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN) PORT_PLAYER(3) + PORT_BIT(0x20, IP_ACTIVE_LOW, IPT_JOYSTICK_UP) PORT_PLAYER(3) + PORT_BIT(0x40, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT) PORT_PLAYER(3) + PORT_BIT(0x80, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT) PORT_PLAYER(3) +INPUT_PORTS_END + /*********************************** * @@ -2821,6 +2836,14 @@ void model2b_state::indy500(machine_config &config) io.an_port_callback<2>().set_ioport("BRAKE"); } +void model2b_state::powsled(machine_config &config) +{ + model2b(config); + + sega_315_5649_device &io(*subdevice<sega_315_5649_device>("io")); + io.in_pe_callback().set_ioport("IN3"); +} + void model2b_state::rchase2_iocpu_map(address_map &map) { @@ -6883,8 +6906,8 @@ GAME( 1996, lastbrnxu, lastbrnx, model2b, vf2, model2b_state, empty_i GAME( 1996, lastbrnxj, lastbrnx, model2b, vf2, model2b_state, empty_init, ROT0, "Sega", "Last Bronx (Japan, Revision A)", MACHINE_NOT_WORKING|MACHINE_IMPERFECT_GRAPHICS ) GAME( 1996, doa, 0, model2b_0229, doa, model2b_state, init_doa, ROT0, "Sega", "Dead or Alive (Model 2B, Revision B)", MACHINE_NOT_WORKING|MACHINE_IMPERFECT_GRAPHICS ) GAME( 1996, sgt24h, 0, indy500, sgt24h, model2b_state, init_sgt24h, ROT0, "Jaleco", "Super GT 24h", MACHINE_NOT_WORKING|MACHINE_IMPERFECT_GRAPHICS ) -GAME( 1996, powsled, 0, model2b, vf2, model2b_state, empty_init, ROT0, "Sega", "Power Sled (Revision A)", MACHINE_NOT_WORKING|MACHINE_IMPERFECT_GRAPHICS ) -GAME( 1996, powsledr, powsled, model2b, vf2, model2b_state, empty_init, ROT0, "Sega", "Power Sled Relay (Revision A)", MACHINE_NOT_WORKING|MACHINE_IMPERFECT_GRAPHICS ) +GAME( 1996, powsled, 0, powsled, powsled, model2b_state, empty_init, ROT0, "Sega", "Power Sled (Slave, Revision A)", MACHINE_NOT_WORKING|MACHINE_IMPERFECT_GRAPHICS ) +GAME( 1996, powsledr, powsled, powsled, powsled, model2b_state, empty_init, ROT0, "Sega", "Power Sled (Relay, Revision A)", MACHINE_NOT_WORKING|MACHINE_IMPERFECT_GRAPHICS ) GAME( 1996, dynabb, 0, dynabb, dynabb, model2b_state, empty_init, ROT0, "Sega", "Dynamite Baseball", MACHINE_NOT_WORKING|MACHINE_IMPERFECT_GRAPHICS ) GAME( 1997, dynabb97, 0, dynabb, dynabb, model2b_state, empty_init, ROT0, "Sega", "Dynamite Baseball 97 (Revision A)", MACHINE_NOT_WORKING|MACHINE_IMPERFECT_GRAPHICS ) GAME( 1997, overrevb, overrev, indy500, overrev, model2b_state, empty_init, ROT0, "Jaleco", "Over Rev (Model 2B, Revision B)", MACHINE_NOT_WORKING|MACHINE_IMPERFECT_GRAPHICS ) diff --git a/src/mame/includes/model2.h b/src/mame/includes/model2.h index a8332fc65e3..5595869d011 100644 --- a/src/mame/includes/model2.h +++ b/src/mame/includes/model2.h @@ -495,6 +495,7 @@ public: void model2b_0229(machine_config &config); void model2b_5881(machine_config &config); void indy500(machine_config &config); + void powsled(machine_config &config); void rchase2(machine_config &config); void gunblade(machine_config &config); void dynabb(machine_config &config); |