mirror of
https://github.com/holub/mame
synced 2025-06-30 16:00:01 +03:00
gaelco2.cpp: bare minimum to get saltcrdi 'in-game' (nw)
This commit is contained in:
parent
f91bbc9c7b
commit
ef17299ae5
@ -413,10 +413,32 @@ ROM_END
|
||||
|
||||
static INPUT_PORTS_START( saltcrdi ) // dipswitches are on the REVERSE side of the PCB (!)
|
||||
PORT_START("IN0")
|
||||
PORT_BIT( 0xffff, IP_ACTIVE_LOW, IPT_UNKNOWN )
|
||||
PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_UNKNOWN )
|
||||
PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_UNKNOWN )
|
||||
PORT_BIT( 0x0004, IP_ACTIVE_LOW, IPT_UNKNOWN )
|
||||
PORT_BIT( 0x0008, IP_ACTIVE_LOW, IPT_UNKNOWN )
|
||||
PORT_BIT( 0x0010, IP_ACTIVE_LOW, IPT_BUTTON1 ) // pedal
|
||||
PORT_BIT( 0x0020, IP_ACTIVE_LOW, IPT_BUTTON2 ) // green
|
||||
PORT_BIT( 0x0040, IP_ACTIVE_LOW, IPT_BUTTON3 ) // red
|
||||
PORT_BIT( 0x0080, IP_ACTIVE_LOW, IPT_UNKNOWN )
|
||||
PORT_BIT( 0xff00, IP_ACTIVE_LOW, IPT_UNKNOWN )
|
||||
|
||||
PORT_START("IN1")
|
||||
PORT_BIT( 0xffff, IP_ACTIVE_LOW, IPT_UNKNOWN )
|
||||
PORT_START("DSW")
|
||||
PORT_SERVICE_DIPLOC(0x01, IP_ACTIVE_LOW, "SW1:1")
|
||||
PORT_DIPUNKNOWN_DIPLOC(0x02, 0x02, "SW1:2")
|
||||
PORT_DIPUNKNOWN_DIPLOC(0x04, 0x04, "SW1:3")
|
||||
PORT_DIPUNKNOWN_DIPLOC(0x08, 0x08, "SW1:4")
|
||||
PORT_DIPUNKNOWN_DIPLOC(0x10, 0x10, "SW1:5")
|
||||
PORT_DIPNAME( 0xe0, 0x00, DEF_STR( Language ) ) PORT_DIPLOCATION("SW1:6,7,8")
|
||||
PORT_DIPSETTING( 0x00, DEF_STR( Spanish ) )
|
||||
PORT_DIPSETTING( 0x20, DEF_STR( English ) )
|
||||
PORT_DIPSETTING( 0x40, DEF_STR( German ) )
|
||||
PORT_DIPSETTING( 0x60, "Catalan" ) // ?
|
||||
PORT_DIPSETTING( 0x80, DEF_STR( Spanish ) ) // double?
|
||||
PORT_DIPSETTING( 0xa0, "Portuguese" ) // ?
|
||||
PORT_DIPSETTING( 0xc0, DEF_STR( French ) )
|
||||
PORT_DIPSETTING( 0xe0, DEF_STR( Spanish ) ) // triple?
|
||||
PORT_BIT( 0xff00, IP_ACTIVE_LOW, IPT_UNKNOWN )
|
||||
|
||||
PORT_START("COIN")
|
||||
PORT_BIT( 0xffff, IP_ACTIVE_LOW, IPT_UNKNOWN )
|
||||
@ -431,10 +453,8 @@ void gaelco2_state::saltcrdi_map(address_map &map)
|
||||
map(0x210000, 0x211fff).ram().w(FUNC(gaelco2_state::gaelco2_palette_w)).share("paletteram");
|
||||
map(0x218004, 0x218009).ram().share("vregs");
|
||||
map(0x300000, 0x300001).portr("IN0");
|
||||
map(0x300002, 0x300003).portr("IN1");
|
||||
map(0x30004a, 0x30004b).nopw();
|
||||
map(0x310000, 0x310001).portr("DSW");
|
||||
map(0x320000, 0x320001).portr("COIN");
|
||||
map(0x500000, 0x500001).w(FUNC(gaelco2_state::alighunt_coin_w));
|
||||
map(0xfe0000, 0xfe7fff).ram();
|
||||
map(0xfe8000, 0xfeffff).ram().share("shareram");
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user