diff options
| author | 2015-01-31 22:42:01 +0100 | |
|---|---|---|
| committer | 2015-01-31 22:42:01 +0100 | |
| commit | 02d7e0e289cf1d42e17628fabbb4ac92bb2eca86 (patch) | |
| tree | 1e02c55e80001f853d8a7a51cc53effe3f4a5f56 /src/mess/drivers/wildfire.c | |
| parent | 509e4d02da3aeac3514253216c1b25658d581b6d (diff) | |
s2000 fix a couple of bugs
Diffstat (limited to 'src/mess/drivers/wildfire.c')
| -rw-r--r-- | src/mess/drivers/wildfire.c | 19 |
1 files changed, 18 insertions, 1 deletions
diff --git a/src/mess/drivers/wildfire.c b/src/mess/drivers/wildfire.c index c4dce72cc1a..39db9be728f 100644 --- a/src/mess/drivers/wildfire.c +++ b/src/mess/drivers/wildfire.c @@ -31,6 +31,9 @@ public: required_device<cpu_device> m_maincpu; required_device<speaker_sound_device> m_speaker; + DECLARE_WRITE8_MEMBER(write_d); + DECLARE_WRITE16_MEMBER(write_a); + virtual void machine_start(); }; @@ -41,7 +44,13 @@ public: ***************************************************************************/ -//.. +WRITE8_MEMBER(wildfire_state::write_d) +{ +} + +WRITE16_MEMBER(wildfire_state::write_a) +{ +} @@ -52,6 +61,11 @@ public: ***************************************************************************/ static INPUT_PORTS_START( wildfire ) + PORT_START("IN1") // I + PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_BUTTON3 ) PORT_NAME("Shooter Button") + PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_BUTTON1 ) PORT_NAME("Left Flipper") + PORT_BIT( 0x04, IP_ACTIVE_HIGH, IPT_BUTTON2 ) PORT_NAME("Right Flipper") + PORT_BIT( 0x08, IP_ACTIVE_HIGH, IPT_UNUSED ) INPUT_PORTS_END @@ -71,6 +85,9 @@ static MACHINE_CONFIG_START( wildfire, wildfire_state ) /* basic machine hardware */ MCFG_CPU_ADD("maincpu", AMI_S2150, MASTER_CLOCK) + MCFG_AMI_S2000_READ_I_CB(IOPORT("IN1")) + MCFG_AMI_S2000_WRITE_D_CB(WRITE8(wildfire_state, write_d)) + MCFG_AMI_S2000_WRITE_A_CB(WRITE16(wildfire_state, write_a)) MCFG_DEFAULT_LAYOUT(layout_wildfire) |
