mirror of
https://github.com/holub/mame
synced 2025-04-25 17:56:43 +03:00
New working machine added (#5591)
* New working machine added ---------- Game & Watch: Flagman [algestam, Mr. Do, Sean Riddle] * hh_sm510: Change inputs for gnw_flagman * hh_sm510: Revert inputs change for gnw_flagman and add PORT_16WAY
This commit is contained in:
parent
49d312af88
commit
c8e25d0765
@ -44,7 +44,7 @@ Game list (* denotes not emulated yet)
|
||||
Serial Series MCU Title
|
||||
---------------------------------------------
|
||||
AC-01 s SM5A Ball (aka Toss-Up)
|
||||
FL-02* s SM5A? Flagman
|
||||
FL-02 s SM5A Flagman
|
||||
MT-03 s SM5A Vermin (aka The Exterminator)
|
||||
RC-04* s SM5A? Fire (aka Fireman Fireman)
|
||||
IP-05* s SM5A? Judge
|
||||
@ -1295,6 +1295,88 @@ ROM_END
|
||||
|
||||
|
||||
|
||||
/***************************************************************************
|
||||
|
||||
Nintendo Game & Watch: Flagman (model FL-02)
|
||||
* PCB label FL-02
|
||||
* Sharp SM5A label FL-02 2005 (no decap)
|
||||
* lcd screen with custom segments, 1-bit sound
|
||||
|
||||
In the USA, it was distributed as Flag Man by Mego under their Time-Out series.
|
||||
|
||||
***************************************************************************/
|
||||
|
||||
class gnw_flagman_state : public hh_sm510_state
|
||||
{
|
||||
public:
|
||||
gnw_flagman_state(const machine_config &mconfig, device_type type, const char *tag) :
|
||||
hh_sm510_state(mconfig, type, tag)
|
||||
{ }
|
||||
|
||||
void gnw_flagman(machine_config &config);
|
||||
};
|
||||
|
||||
// config
|
||||
|
||||
static INPUT_PORTS_START( gnw_flagman )
|
||||
PORT_START("IN.0") // R2
|
||||
PORT_BIT( 0x0f, IP_ACTIVE_HIGH, IPT_UNUSED )
|
||||
|
||||
PORT_START("IN.1") // R3
|
||||
PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_JOYSTICKLEFT_UP ) PORT_CHANGED_CB(input_changed) PORT_16WAY PORT_NAME("1") // 1
|
||||
PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_JOYSTICKRIGHT_UP ) PORT_CHANGED_CB(input_changed) PORT_16WAY PORT_NAME("2") // 2
|
||||
PORT_BIT( 0x04, IP_ACTIVE_HIGH, IPT_JOYSTICKLEFT_DOWN ) PORT_CHANGED_CB(input_changed) PORT_16WAY PORT_NAME("3") // 3
|
||||
PORT_BIT( 0x08, IP_ACTIVE_HIGH, IPT_JOYSTICKRIGHT_DOWN ) PORT_CHANGED_CB(input_changed) PORT_16WAY PORT_NAME("4") // 4
|
||||
|
||||
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_UNUSED )
|
||||
|
||||
PORT_START("B")
|
||||
PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_UNUSED ) // display test?
|
||||
|
||||
PORT_START("ACL")
|
||||
PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_SERVICE1 ) PORT_CHANGED_CB(acl_button) PORT_NAME("ACL")
|
||||
INPUT_PORTS_END
|
||||
|
||||
void gnw_flagman_state::gnw_flagman(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_b().set_ioport("B");
|
||||
|
||||
/* video hardware */
|
||||
screen_device &screen(SCREEN(config, "screen", SCREEN_TYPE_SVG));
|
||||
screen.set_refresh_hz(60);
|
||||
screen.set_size(1511, 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_flagman )
|
||||
ROM_REGION( 0x1000, "maincpu", 0 )
|
||||
ROM_LOAD( "fl-02", 0x0000, 0x0740, CRC(cc7a99e4) SHA1(d03d9a6b278bc11df7839708831241b5fa805f69) )
|
||||
|
||||
ROM_REGION( 55994, "screen", 0)
|
||||
ROM_LOAD( "gnw_flagman.svg", 0, 55994, CRC(7ab91965) SHA1(a78b8b28b6849fea6a216c4b549c90e8cf1602fe) )
|
||||
ROM_END
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
/***************************************************************************
|
||||
|
||||
Nintendo Game & Watch: Vermin (model MT-03)
|
||||
@ -9915,6 +9997,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_flagman, 0, 0, gnw_flagman, gnw_flagman, gnw_flagman_state, empty_init, "Nintendo", "Game & Watch: Flagman", 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 )
|
||||
|
||||
|
@ -15317,6 +15317,7 @@ gnw_dkong2 // Nintendo
|
||||
gnw_egg // Nintendo
|
||||
gnw_fire // Nintendo
|
||||
gnw_fireatk // Nintendo
|
||||
gnw_flagman // Nintendo
|
||||
gnw_gcliff // Nintendo
|
||||
gnw_ghouse // Nintendo
|
||||
gnw_helmet // Nintendo
|
||||
|
Loading…
Reference in New Issue
Block a user