mirror of
https://github.com/holub/mame
synced 2025-04-22 16:31:49 +03:00
New working machine added (#5579)
---------- Game & Watch: Helmet [algestam, hap, Mr. Do, Sean Riddle]
This commit is contained in:
parent
903e7e7890
commit
5fcd53a77f
@ -49,7 +49,7 @@ MT-03 s SM5A Vermin (aka The Exterminator)
|
||||
RC-04* s SM5A? Fire (aka Fireman Fireman)
|
||||
IP-05* s SM5A? Judge
|
||||
MN-06* g SM5A? Manhole
|
||||
CN-07* g SM5A? Helmet (aka Headache)
|
||||
CN-07 g SM5A Helmet (aka Headache)
|
||||
LN-08* g SM5A? Lion
|
||||
PR-21 ws SM5A Parachute
|
||||
OC-22 ws SM5A Octopus
|
||||
@ -1376,6 +1376,94 @@ ROM_END
|
||||
|
||||
|
||||
|
||||
/***************************************************************************
|
||||
|
||||
Nintendo Game & Watch: Helmet (model CN-07)
|
||||
* PCB label CN-07
|
||||
* Sharp SM5A label CN-17 21ZA (no decap)
|
||||
* lcd screen with custom segments, 1-bit sound
|
||||
|
||||
In the UK, it was distributed as Headache by CGL.
|
||||
|
||||
***************************************************************************/
|
||||
|
||||
class gnw_helmet_state : public hh_sm510_state
|
||||
{
|
||||
public:
|
||||
gnw_helmet_state(const machine_config &mconfig, device_type type, const char *tag) :
|
||||
hh_sm510_state(mconfig, type, tag)
|
||||
{ }
|
||||
|
||||
void gnw_helmet(machine_config &config);
|
||||
};
|
||||
|
||||
// config
|
||||
|
||||
static INPUT_PORTS_START( gnw_helmet )
|
||||
PORT_START("IN.0") // R2
|
||||
PORT_BIT( 0x0f, IP_ACTIVE_HIGH, IPT_UNUSED )
|
||||
|
||||
PORT_START("IN.1") // R3
|
||||
PORT_CONFNAME( 0x01, 0x00, "Invincibility (Cheat)") // factory test, unpopulated on PCB -- disable after boot
|
||||
PORT_CONFSETTING( 0x00, DEF_STR( Off ) )
|
||||
PORT_CONFSETTING( 0x01, DEF_STR( On ) )
|
||||
PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_UNUSED ) // same as 0x01?
|
||||
PORT_BIT( 0x04, IP_ACTIVE_HIGH, IPT_UNUSED ) // "
|
||||
PORT_BIT( 0x08, IP_ACTIVE_HIGH, IPT_UNUSED ) // alarm test?
|
||||
|
||||
PORT_START("IN.2") // R4
|
||||
PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_SELECT ) PORT_CHANGED_CB(input_changed) PORT_NAME("Time")
|
||||
PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_START2 ) PORT_CHANGED_CB(input_changed) PORT_NAME("Game B")
|
||||
PORT_BIT( 0x04, IP_ACTIVE_HIGH, IPT_START1 ) PORT_CHANGED_CB(input_changed) PORT_NAME("Game A")
|
||||
PORT_BIT( 0x08, IP_ACTIVE_HIGH, IPT_SERVICE2 ) PORT_CHANGED_CB(input_changed) PORT_NAME("Alarm")
|
||||
|
||||
PORT_START("BA")
|
||||
PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_CHANGED_CB(input_changed) PORT_16WAY
|
||||
|
||||
PORT_START("B")
|
||||
PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_CHANGED_CB(input_changed) PORT_16WAY
|
||||
|
||||
PORT_START("ACL")
|
||||
PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_SERVICE1 ) PORT_CHANGED_CB(acl_button) PORT_NAME("ACL")
|
||||
INPUT_PORTS_END
|
||||
|
||||
void gnw_helmet_state::gnw_helmet(machine_config &config)
|
||||
{
|
||||
/* basic machine hardware */
|
||||
SM5A(config, m_maincpu);
|
||||
m_maincpu->set_r_mask_option(sm510_base_device::RMASK_DIRECT); // confirmed
|
||||
m_maincpu->write_segs().set(FUNC(hh_sm510_state::sm500_lcd_segment_w));
|
||||
m_maincpu->read_k().set(FUNC(hh_sm510_state::input_r));
|
||||
m_maincpu->write_r().set(FUNC(hh_sm510_state::piezo_input_w));
|
||||
m_maincpu->read_ba().set_ioport("BA");
|
||||
m_maincpu->read_b().set_ioport("B");
|
||||
|
||||
/* video hardware */
|
||||
screen_device &screen(SCREEN(config, "screen", SCREEN_TYPE_SVG));
|
||||
screen.set_refresh_hz(60);
|
||||
screen.set_size(1657, 1080);
|
||||
screen.set_visarea_full();
|
||||
|
||||
/* sound hardware */
|
||||
SPEAKER(config, "mono").front_center();
|
||||
SPEAKER_SOUND(config, m_speaker);
|
||||
m_speaker->add_route(ALL_OUTPUTS, "mono", 0.25);
|
||||
}
|
||||
|
||||
// roms
|
||||
|
||||
ROM_START( gnw_helmet )
|
||||
ROM_REGION( 0x1000, "maincpu", 0 )
|
||||
ROM_LOAD( "cn-07", 0x0000, 0x0740, CRC(6d251e2e) SHA1(c61f591514de36fb2270038a6505945564c9f90e) )
|
||||
|
||||
ROM_REGION( 109241, "screen", 0)
|
||||
ROM_LOAD( "gnw_helmet.svg", 0, 109241, CRC(fa8294a3) SHA1(05b734ac0126d3bffe160a23753a0a7e6f82996e) )
|
||||
ROM_END
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
/***************************************************************************
|
||||
|
||||
Nintendo Game & Watch: Parachute (model PR-21)
|
||||
@ -9822,6 +9910,7 @@ CONS( 1991, kgarfld, 0, 0, kgarfld, kgarfld, kgarfld_state,
|
||||
// Nintendo G&W: silver/gold (initial series is uncategorized, "silver" was made up later)
|
||||
CONS( 1980, gnw_ball, 0, 0, gnw_ball, gnw_ball, gnw_ball_state, empty_init, "Nintendo", "Game & Watch: Ball", MACHINE_SUPPORTS_SAVE )
|
||||
CONS( 1980, gnw_vermin, 0, 0, gnw_vermin, gnw_vermin, gnw_vermin_state, empty_init, "Nintendo", "Game & Watch: Vermin", MACHINE_SUPPORTS_SAVE )
|
||||
CONS( 1981, gnw_helmet, 0, 0, gnw_helmet, gnw_helmet, gnw_helmet_state, empty_init, "Nintendo", "Game & Watch: Helmet", MACHINE_SUPPORTS_SAVE )
|
||||
|
||||
// Nintendo G&W: wide screen
|
||||
CONS( 1981, gnw_pchute, 0, 0, gnw_pchute, gnw_pchute, gnw_pchute_state, empty_init, "Nintendo", "Game & Watch: Parachute", MACHINE_SUPPORTS_SAVE )
|
||||
|
@ -15314,6 +15314,7 @@ gnw_fire // Nintendo
|
||||
gnw_fireatk // Nintendo
|
||||
gnw_gcliff // Nintendo
|
||||
gnw_ghouse // Nintendo
|
||||
gnw_helmet // Nintendo
|
||||
gnw_lboat // Nintendo
|
||||
gnw_manhole // Nintendo
|
||||
gnw_mario // Nintendo
|
||||
|
Loading…
Reference in New Issue
Block a user