mirror of
https://github.com/holub/mame
synced 2025-07-04 17:38:08 +03:00
scyclone.cpp: added shifter, bullets display now. Thanks Haze for the tip (nw)
This commit is contained in:
parent
591804bef3
commit
ba29536dc9
@ -91,7 +91,9 @@ ADDRESS_MAP_END
|
|||||||
|
|
||||||
static ADDRESS_MAP_START( scyclone_iomap, AS_IO, 8, scyclone_state )
|
static ADDRESS_MAP_START( scyclone_iomap, AS_IO, 8, scyclone_state )
|
||||||
ADDRESS_MAP_GLOBAL_MASK(0xff)
|
ADDRESS_MAP_GLOBAL_MASK(0xff)
|
||||||
AM_RANGE(0x01, 0x01) AM_READ_PORT("IN0")
|
AM_RANGE(0x00, 0x00) AM_DEVREAD("mb14241", mb14241_device, shift_result_r) AM_DEVWRITE("mb14241", mb14241_device, shift_count_w)
|
||||||
|
AM_RANGE(0x01, 0x01) AM_READ_PORT("IN0") AM_DEVWRITE("mb14241", mb14241_device, shift_data_w)
|
||||||
|
AM_RANGE(0x02, 0x02) AM_READ_PORT("DSW1")
|
||||||
AM_RANGE(0x03, 0x03) AM_READ_PORT("DSW0") AM_WRITENOP
|
AM_RANGE(0x03, 0x03) AM_READ_PORT("DSW0") AM_WRITENOP
|
||||||
AM_RANGE(0x04, 0x04) AM_WRITENOP
|
AM_RANGE(0x04, 0x04) AM_WRITENOP
|
||||||
AM_RANGE(0x05, 0x05) AM_WRITENOP
|
AM_RANGE(0x05, 0x05) AM_WRITENOP
|
||||||
@ -126,12 +128,12 @@ static INPUT_PORTS_START( scyclone )
|
|||||||
PORT_BIT( 0x04, IP_ACTIVE_HIGH, IPT_UNKNOWN )
|
PORT_BIT( 0x04, IP_ACTIVE_HIGH, IPT_UNKNOWN )
|
||||||
PORT_BIT( 0x08, IP_ACTIVE_HIGH, IPT_START1 )
|
PORT_BIT( 0x08, IP_ACTIVE_HIGH, IPT_START1 )
|
||||||
PORT_BIT( 0x10, IP_ACTIVE_HIGH, IPT_COIN1 )
|
PORT_BIT( 0x10, IP_ACTIVE_HIGH, IPT_COIN1 )
|
||||||
PORT_BIT( 0x20, IP_ACTIVE_HIGH, IPT_UNKNOWN )
|
PORT_BIT( 0x20, IP_ACTIVE_HIGH, IPT_BUTTON1 )
|
||||||
PORT_BIT( 0x40, IP_ACTIVE_HIGH, IPT_JOYSTICK_RIGHT )
|
PORT_BIT( 0x40, IP_ACTIVE_HIGH, IPT_JOYSTICK_RIGHT )
|
||||||
PORT_BIT( 0x80, IP_ACTIVE_HIGH, IPT_JOYSTICK_LEFT )
|
PORT_BIT( 0x80, IP_ACTIVE_HIGH, IPT_JOYSTICK_LEFT )
|
||||||
|
|
||||||
PORT_START("DSW0")
|
PORT_START("DSW0")
|
||||||
PORT_DIPNAME( 0x03, 0x03, DEF_STR( Lives ) ) PORT_DIPLOCATION("DSW0:1,2")
|
PORT_DIPNAME( 0x03, 0x01, DEF_STR( Lives ) ) PORT_DIPLOCATION("DSW0:1,2")
|
||||||
PORT_DIPSETTING( 0x00, "2" )
|
PORT_DIPSETTING( 0x00, "2" )
|
||||||
PORT_DIPSETTING( 0x01, "3" )
|
PORT_DIPSETTING( 0x01, "3" )
|
||||||
PORT_DIPSETTING( 0x02, "4" )
|
PORT_DIPSETTING( 0x02, "4" )
|
||||||
@ -142,6 +144,12 @@ static INPUT_PORTS_START( scyclone )
|
|||||||
PORT_DIPUNKNOWN_DIPLOC( 0x20, 0x20, "DSW0:6" )
|
PORT_DIPUNKNOWN_DIPLOC( 0x20, 0x20, "DSW0:6" )
|
||||||
PORT_DIPUNKNOWN_DIPLOC( 0x40, 0x40, "DSW0:7" )
|
PORT_DIPUNKNOWN_DIPLOC( 0x40, 0x40, "DSW0:7" )
|
||||||
PORT_DIPUNKNOWN_DIPLOC( 0x80, 0x80, "DSW0:8" )
|
PORT_DIPUNKNOWN_DIPLOC( 0x80, 0x80, "DSW0:8" )
|
||||||
|
|
||||||
|
PORT_START("DSW1")
|
||||||
|
PORT_DIPUNKNOWN_DIPLOC( 0x01, 0x01, "DSW1:1" )
|
||||||
|
PORT_DIPUNKNOWN_DIPLOC( 0x02, 0x02, "DSW1:2" )
|
||||||
|
PORT_DIPUNKNOWN_DIPLOC( 0x04, 0x04, "DSW1:3" )
|
||||||
|
PORT_DIPUNKNOWN_DIPLOC( 0x08, 0x08, "DSW1:4" )
|
||||||
INPUT_PORTS_END
|
INPUT_PORTS_END
|
||||||
|
|
||||||
WRITE8_MEMBER(scyclone_state::scyclone_port06_w)
|
WRITE8_MEMBER(scyclone_state::scyclone_port06_w)
|
||||||
|
Loading…
Reference in New Issue
Block a user