mirror of
https://github.com/holub/mame
synced 2025-04-23 08:49:55 +03:00
namcos22: small update (nw)
This commit is contained in:
parent
fbd447c067
commit
05d7ca2bde
@ -1683,6 +1683,9 @@ READ16_MEMBER(namcos22_state::namcos22_keycus_r)
|
||||
break;
|
||||
}
|
||||
|
||||
if (machine().side_effects_disabled())
|
||||
return 0;
|
||||
|
||||
// pick a random number, but don't pick the same twice in a row
|
||||
u16 old_rng = m_keycus_rng;
|
||||
do
|
||||
@ -1708,7 +1711,10 @@ WRITE16_MEMBER(namcos22_state::namcos22_keycus_w)
|
||||
READ16_MEMBER(namcos22_state::namcos22_portbit_r)
|
||||
{
|
||||
u16 ret = m_portbits[offset] & 1;
|
||||
m_portbits[offset] = m_portbits[offset] >> 1 | 0x8000;
|
||||
|
||||
if (!machine().side_effects_disabled())
|
||||
m_portbits[offset] = m_portbits[offset] >> 1 | 0x8000;
|
||||
|
||||
return ret;
|
||||
}
|
||||
|
||||
@ -2087,7 +2093,8 @@ READ16_MEMBER(namcos22_state::namcos22_dspram16_r)
|
||||
break;
|
||||
|
||||
case 2:
|
||||
m_dspram16_latch = value >> 16;
|
||||
if (!machine().side_effects_disabled())
|
||||
m_dspram16_latch = value >> 16;
|
||||
value &= 0xffff;
|
||||
break;
|
||||
|
||||
@ -2789,6 +2796,8 @@ void namcos22_state::iomcu_s22_io(address_map &map)
|
||||
|
||||
Tokyo Wars:
|
||||
1 = start button lamp
|
||||
4 = handle solenoid
|
||||
6 = seat motor
|
||||
other: ?
|
||||
*/
|
||||
|
||||
@ -3122,27 +3131,38 @@ static INPUT_PORTS_START( ridgera )
|
||||
/* 1 3 5 When the cabinet is set to Deluxe, the stick shift is basically
|
||||
|-|-| an 8-way joystick that locks into place.
|
||||
2 4 6 Standard (default) setup uses a racing shifter like in Ace Driver. */
|
||||
PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_NAME("Shift Down")
|
||||
PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_NAME("Shift Up")
|
||||
PORT_BIT( 0x0004, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_NAME("Shift Left") // not used in Standard Cabinet
|
||||
PORT_BIT( 0x0008, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT) PORT_NAME("Shift Right") // not used in Standard Cabinet
|
||||
PORT_BIT( 0x0010, IP_ACTIVE_LOW, IPT_BUTTON3 ) PORT_NAME("Clutch Pedal") // not used in Standard Cabinet
|
||||
PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_NAME("Shift Down")
|
||||
PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_NAME("Shift Up")
|
||||
PORT_BIT( 0x0004, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_NAME("Shift Left") // not used in Standard Cabinet
|
||||
PORT_BIT( 0x0008, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_NAME("Shift Right") // "
|
||||
PORT_BIT( 0x0010, IP_ACTIVE_LOW, IPT_BUTTON3 ) PORT_NAME("Clutch Pedal") // "
|
||||
PORT_BIT( 0x0020, IP_ACTIVE_LOW, IPT_UNKNOWN )
|
||||
PORT_BIT( 0x0040, IP_ACTIVE_LOW, IPT_UNKNOWN )
|
||||
PORT_BIT( 0x0080, IP_ACTIVE_LOW, IPT_UNKNOWN )
|
||||
PORT_CONFNAME( 0x0100, 0x0000, DEF_STR( Cabinet ) ) // @ JAMMA pins
|
||||
PORT_CONFNAME( 0x0100, 0x0000, DEF_STR( Cabinet ) )
|
||||
PORT_CONFSETTING( 0x0000, DEF_STR( Standard ) )
|
||||
PORT_CONFSETTING( 0x0100, "Deluxe" )
|
||||
PORT_BIT( 0x0200, IP_ACTIVE_LOW, IPT_COIN2 )
|
||||
PORT_BIT( 0x0400, IP_ACTIVE_LOW, IPT_SERVICE3 ) // also service mode?
|
||||
PORT_SERVICE( 0x0400, IP_ACTIVE_LOW )
|
||||
PORT_BIT( 0x0800, IP_ACTIVE_LOW, IPT_SERVICE1 )
|
||||
PORT_BIT( 0x1000, IP_ACTIVE_LOW, IPT_COIN1 )
|
||||
PORT_BIT( 0x2000, IP_ACTIVE_LOW, IPT_UNKNOWN )
|
||||
PORT_BIT( 0x4000, IP_ACTIVE_LOW, IPT_UNKNOWN )
|
||||
PORT_BIT( 0x8000, IP_ACTIVE_LOW, IPT_UNKNOWN )
|
||||
|
||||
PORT_START("ADC.0")
|
||||
PORT_BIT( 0xff, 0x80, IPT_PADDLE ) PORT_MINMAX(0x20, 0xe0) PORT_SENSITIVITY(100) PORT_KEYDELTA(10) PORT_NAME("Steering Wheel")
|
||||
|
||||
PORT_START("ADC.1")
|
||||
PORT_BIT( 0xff, 0x00, IPT_PEDAL ) PORT_MINMAX(0x00, 0xd0) PORT_SENSITIVITY(100) PORT_KEYDELTA(10) PORT_NAME("Gas Pedal")
|
||||
|
||||
PORT_START("ADC.2")
|
||||
PORT_BIT( 0xff, 0x00, IPT_PEDAL2 ) PORT_MINMAX(0x00, 0xc0) PORT_SENSITIVITY(100) PORT_KEYDELTA(10) PORT_NAME("Brake Pedal")
|
||||
|
||||
PORT_START("DSW")
|
||||
PORT_SERVICE_DIPLOC( 0x0001, IP_ACTIVE_LOW, "SW2:1")
|
||||
PORT_DIPNAME( 0x0001, 0x0001, "Test Mode" ) PORT_DIPLOCATION("SW2:1")
|
||||
PORT_DIPSETTING( 0x0001, DEF_STR( Off ) )
|
||||
PORT_DIPSETTING( 0x0000, DEF_STR( On ) )
|
||||
PORT_DIPUNKNOWN_DIPLOC( 0x0002, 0x0002, "SW2:2" )
|
||||
PORT_DIPUNKNOWN_DIPLOC( 0x0004, 0x0004, "SW2:3" )
|
||||
PORT_DIPUNKNOWN_DIPLOC( 0x0008, 0x0008, "SW2:4" )
|
||||
@ -3158,15 +3178,6 @@ static INPUT_PORTS_START( ridgera )
|
||||
PORT_DIPUNKNOWN_DIPLOC( 0x2000, 0x2000, "SW3:6" )
|
||||
PORT_DIPUNKNOWN_DIPLOC( 0x4000, 0x4000, "SW3:7" )
|
||||
PORT_DIPUNKNOWN_DIPLOC( 0x8000, 0x8000, "SW3:8" )
|
||||
|
||||
PORT_START("ADC.0")
|
||||
PORT_BIT( 0xff, 0x80, IPT_PADDLE ) PORT_SENSITIVITY(100) PORT_KEYDELTA(10) PORT_NAME("Steering Wheel")
|
||||
|
||||
PORT_START("ADC.1")
|
||||
PORT_BIT( 0xff, 0x00, IPT_PEDAL ) PORT_SENSITIVITY(100) PORT_KEYDELTA(10) PORT_NAME("Gas Pedal")
|
||||
|
||||
PORT_START("ADC.2")
|
||||
PORT_BIT( 0xff, 0x00, IPT_PEDAL2 ) PORT_SENSITIVITY(100) PORT_KEYDELTA(10) PORT_NAME("Brake Pedal")
|
||||
INPUT_PORTS_END
|
||||
|
||||
static INPUT_PORTS_START( ridgeracf )
|
||||
@ -3177,14 +3188,17 @@ static INPUT_PORTS_START( ridgeracf )
|
||||
PORT_BIT( 0x0040, IP_ACTIVE_LOW, IPT_BUTTON5 ) PORT_NAME("AT Switch")
|
||||
PORT_BIT( 0x0080, IP_ACTIVE_LOW, IPT_BUTTON6 ) PORT_NAME("MT Switch")
|
||||
PORT_BIT( 0x0100, IP_ACTIVE_LOW, IPT_SERVICE2 )
|
||||
PORT_SERVICE( 0x0400, IP_ACTIVE_LOW )
|
||||
|
||||
// DIP3-1 to DIP3-3 are for setting up the viewing angle (game used one board per screen?)
|
||||
// Some of the other dipswitches are for debugging, like with Ridge Racer 2.
|
||||
PORT_MODIFY("DSW")
|
||||
PORT_DIPUNKNOWN_DIPLOC( 0x0001, 0x0000, "SW2:1" ) // always on?
|
||||
PORT_DIPUNKNOWN_DIPLOC( 0x0002, 0x0000, "SW2:2" ) // always on?
|
||||
PORT_DIPNAME( 0x8000, 0x8000, "Test Mode" ) PORT_DIPLOCATION("SW3:8")
|
||||
PORT_DIPNAME( 0x0001, 0x0000, "Unknown" ) PORT_DIPLOCATION("SW2:1") // always on?
|
||||
PORT_DIPSETTING( 0x0001, DEF_STR( Off ) )
|
||||
PORT_DIPSETTING( 0x0000, DEF_STR( On ) )
|
||||
PORT_DIPNAME( 0x0002, 0x0000, "Unknown" ) PORT_DIPLOCATION("SW2:2") // always on?
|
||||
PORT_DIPSETTING( 0x0002, DEF_STR( Off ) )
|
||||
PORT_DIPSETTING( 0x0000, DEF_STR( On ) )
|
||||
PORT_DIPNAME( 0x8000, 0x8000, "Test Mode 2" ) PORT_DIPLOCATION("SW3:8")
|
||||
PORT_DIPSETTING( 0x8000, DEF_STR( Off ) )
|
||||
PORT_DIPSETTING( 0x0000, DEF_STR( On ) )
|
||||
INPUT_PORTS_END
|
||||
@ -3193,7 +3207,7 @@ static INPUT_PORTS_START( ridgera2 )
|
||||
PORT_INCLUDE( ridgera )
|
||||
|
||||
PORT_MODIFY("INPUTS")
|
||||
PORT_CONFNAME( 0x2100, 0x2000, DEF_STR( Cabinet ) ) // @ JAMMA pins
|
||||
PORT_CONFNAME( 0x2100, 0x2000, DEF_STR( Cabinet ) )
|
||||
PORT_CONFSETTING( 0x0000, "50 Inch" )
|
||||
PORT_CONFSETTING( 0x0100, "Twin" )
|
||||
PORT_CONFSETTING( 0x2000, DEF_STR( Standard ) )
|
||||
@ -3207,7 +3221,7 @@ static INPUT_PORTS_START( ridgera2 )
|
||||
3-7 : debug polygons
|
||||
*/
|
||||
PORT_MODIFY("DSW")
|
||||
PORT_DIPNAME( 0x8000, 0x8000, "Test Mode" ) PORT_DIPLOCATION("SW3:8")
|
||||
PORT_DIPNAME( 0x8000, 0x8000, "Test Mode 2" ) PORT_DIPLOCATION("SW3:8")
|
||||
PORT_DIPSETTING( 0x8000, DEF_STR( Off ) )
|
||||
PORT_DIPSETTING( 0x0000, DEF_STR( On ) )
|
||||
INPUT_PORTS_END
|
||||
@ -3217,8 +3231,7 @@ static INPUT_PORTS_START( raveracw )
|
||||
|
||||
PORT_MODIFY("INPUTS")
|
||||
PORT_BIT( 0x0040, IP_ACTIVE_LOW, IPT_BUTTON4 ) PORT_NAME("View Change")
|
||||
|
||||
PORT_CONFNAME( 0x2100, 0x2000, DEF_STR( Cabinet ) ) // @ JAMMA pins
|
||||
PORT_CONFNAME( 0x2100, 0x2000, DEF_STR( Cabinet ) )
|
||||
PORT_CONFSETTING( 0x0000, "50 Inch" )
|
||||
PORT_CONFSETTING( 0x0100, "Twin" )
|
||||
PORT_CONFSETTING( 0x2000, DEF_STR( Standard ) )
|
||||
@ -3228,8 +3241,8 @@ INPUT_PORTS_END
|
||||
|
||||
static INPUT_PORTS_START( cybrcomm )
|
||||
PORT_START("INPUTS")
|
||||
PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_NAME("Gun Trigger") // placed on both sticks
|
||||
PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_NAME("Missile Button") // placed on both sticks
|
||||
PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_NAME("Gun Trigger") // placed on both sticks
|
||||
PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_NAME("Missile Button") // placed on both sticks
|
||||
PORT_BIT( 0x0004, IP_ACTIVE_LOW, IPT_UNKNOWN )
|
||||
PORT_BIT( 0x0008, IP_ACTIVE_LOW, IPT_UNKNOWN )
|
||||
PORT_BIT( 0x0010, IP_ACTIVE_LOW, IPT_UNKNOWN )
|
||||
@ -3245,6 +3258,21 @@ static INPUT_PORTS_START( cybrcomm )
|
||||
PORT_BIT( 0x4000, IP_ACTIVE_LOW, IPT_UNKNOWN )
|
||||
PORT_BIT( 0x8000, IP_ACTIVE_LOW, IPT_UNKNOWN )
|
||||
|
||||
// The ranges here are based on the test mode which displays +-224
|
||||
// The eeprom is calibrated using these settings. If the SUBCPU handling changes then these might end up needing to change again too.
|
||||
// Default key arrangement is based on dual-joystick 'Tank' arrangement found in Assault and CyberSled
|
||||
PORT_START("ADC.0") // right joystick: vertical
|
||||
PORT_BIT( 0xff, 0x7f, IPT_AD_STICK_Y ) PORT_MINMAX(0x47, 0xb7) PORT_CODE_DEC(KEYCODE_I) PORT_CODE_INC(KEYCODE_K) PORT_SENSITIVITY(100) PORT_KEYDELTA(10) PORT_PLAYER(2)
|
||||
|
||||
PORT_START("ADC.1") // left joystick: vertical
|
||||
PORT_BIT( 0xff, 0x7f, IPT_AD_STICK_Y ) PORT_MINMAX(0x47, 0xb7) PORT_CODE_DEC(KEYCODE_E) PORT_CODE_INC(KEYCODE_D) PORT_SENSITIVITY(100) PORT_KEYDELTA(10) PORT_PLAYER(1)
|
||||
|
||||
PORT_START("ADC.2") // right joystick: horizontal
|
||||
PORT_BIT( 0xff, 0x7f, IPT_AD_STICK_X ) PORT_MINMAX(0x47, 0xb7) PORT_CODE_DEC(KEYCODE_J) PORT_CODE_INC(KEYCODE_L) PORT_SENSITIVITY(100) PORT_KEYDELTA(10) PORT_PLAYER(2)
|
||||
|
||||
PORT_START("ADC.3") // left joystick: horizontal
|
||||
PORT_BIT( 0xff, 0x7f, IPT_AD_STICK_X ) PORT_MINMAX(0x47, 0xb7) PORT_CODE_DEC(KEYCODE_S) PORT_CODE_INC(KEYCODE_F) PORT_SENSITIVITY(100) PORT_KEYDELTA(10) PORT_PLAYER(1)
|
||||
|
||||
PORT_START("DSW")
|
||||
PORT_DIPUNKNOWN_DIPLOC( 0x0001, 0x0001, "SW2:1" )
|
||||
PORT_DIPUNKNOWN_DIPLOC( 0x0002, 0x0002, "SW2:2" )
|
||||
@ -3262,26 +3290,11 @@ static INPUT_PORTS_START( cybrcomm )
|
||||
PORT_DIPUNKNOWN_DIPLOC( 0x2000, 0x2000, "SW3:6" )
|
||||
PORT_DIPUNKNOWN_DIPLOC( 0x4000, 0x4000, "SW3:7" )
|
||||
PORT_DIPUNKNOWN_DIPLOC( 0x8000, 0x8000, "SW3:8" )
|
||||
|
||||
// The ranges here are based on the test mode which displays +-224
|
||||
// The eeprom is calibrated using these settings. If the SUBCPU handling changes then these might end up needing to change again too.
|
||||
// Default key arrangement is based on dual-joystick 'Tank' arrangement found in Assault and CyberSled
|
||||
PORT_START("ADC.0") // right joystick: vertical
|
||||
PORT_BIT( 0xff, 0x7f, IPT_AD_STICK_Y ) PORT_MINMAX(0x47, 0xb7) PORT_CODE_DEC(KEYCODE_I) PORT_CODE_INC(KEYCODE_K) PORT_SENSITIVITY(100) PORT_KEYDELTA(10) PORT_PLAYER(2)
|
||||
|
||||
PORT_START("ADC.1") // left joystick: vertical
|
||||
PORT_BIT( 0xff, 0x7f, IPT_AD_STICK_Y ) PORT_MINMAX(0x47, 0xb7) PORT_CODE_DEC(KEYCODE_E) PORT_CODE_INC(KEYCODE_D) PORT_SENSITIVITY(100) PORT_KEYDELTA(10) PORT_PLAYER(1)
|
||||
|
||||
PORT_START("ADC.2") // right joystick: horizontal
|
||||
PORT_BIT( 0xff, 0x7f, IPT_AD_STICK_X ) PORT_MINMAX(0x47, 0xb7) PORT_CODE_DEC(KEYCODE_J) PORT_CODE_INC(KEYCODE_L) PORT_SENSITIVITY(100) PORT_KEYDELTA(10) PORT_PLAYER(2)
|
||||
|
||||
PORT_START("ADC.3") // left joystick: horizontal
|
||||
PORT_BIT( 0xff, 0x7f, IPT_AD_STICK_X ) PORT_MINMAX(0x47, 0xb7) PORT_CODE_DEC(KEYCODE_S) PORT_CODE_INC(KEYCODE_F) PORT_SENSITIVITY(100) PORT_KEYDELTA(10) PORT_PLAYER(1)
|
||||
INPUT_PORTS_END
|
||||
|
||||
static INPUT_PORTS_START( acedrvr )
|
||||
PORT_START("INPUTS")
|
||||
PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_NAME("Shift Down")
|
||||
PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_NAME("Shift Down")
|
||||
PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_NAME("Shift Up")
|
||||
PORT_BIT( 0x0004, IP_ACTIVE_LOW, IPT_UNKNOWN )
|
||||
PORT_BIT( 0x0008, IP_ACTIVE_LOW, IPT_UNKNOWN )
|
||||
@ -3291,28 +3304,21 @@ static INPUT_PORTS_START( acedrvr )
|
||||
PORT_BIT( 0x0080, IP_ACTIVE_LOW, IPT_UNKNOWN )
|
||||
PORT_BIT( 0x0100, IP_ACTIVE_LOW, IPT_UNKNOWN )
|
||||
PORT_BIT( 0x0200, IP_ACTIVE_LOW, IPT_COIN2 )
|
||||
PORT_BIT( 0x0400, IP_ACTIVE_LOW, IPT_UNKNOWN )
|
||||
PORT_SERVICE( 0x0400, IP_ACTIVE_LOW )
|
||||
PORT_BIT( 0x0800, IP_ACTIVE_LOW, IPT_SERVICE1 )
|
||||
PORT_BIT( 0x1000, IP_ACTIVE_LOW, IPT_COIN1 )
|
||||
PORT_BIT( 0x2000, IP_ACTIVE_LOW, IPT_UNKNOWN )
|
||||
PORT_BIT( 0x4000, IP_ACTIVE_LOW, IPT_UNKNOWN )
|
||||
PORT_BIT( 0x8000, IP_ACTIVE_LOW, IPT_BUTTON4 ) PORT_NAME("Motion-Stop")
|
||||
|
||||
PORT_START("CUSTOM.0")
|
||||
PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_PLAYER(2) PORT_NAME("Dev Service Enter") // also "REC" start
|
||||
PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_PLAYER(2) PORT_NAME("Dev Service Exit") // also "REC" stop
|
||||
PORT_BIT( 0x0004, IP_ACTIVE_LOW, IPT_UNKNOWN ) // enters free camera view while in attract mode
|
||||
PORT_BIT( 0x0008, IP_ACTIVE_LOW, IPT_UNKNOWN ) // resets game?
|
||||
PORT_BIT( 0x0040, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_PLAYER(2) PORT_NAME("Dev Service Up")
|
||||
PORT_BIT( 0x0080, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_PLAYER(2) PORT_NAME("Dev Service Down")
|
||||
PORT_BIT( 0xff30, IP_ACTIVE_LOW, IPT_UNKNOWN )
|
||||
PORT_START("ADC.0")
|
||||
PORT_BIT( 0xff, 0x80, IPT_PADDLE ) PORT_MINMAX(0x20, 0xe0) PORT_SENSITIVITY(100) PORT_KEYDELTA(10) PORT_NAME("Steering Wheel")
|
||||
|
||||
PORT_START("CUSTOM.1")
|
||||
PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_UNKNOWN )
|
||||
PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_UNKNOWN )
|
||||
PORT_BIT( 0x0004, IP_ACTIVE_LOW, IPT_UNKNOWN ) // pauses game?
|
||||
PORT_BIT( 0x0008, IP_ACTIVE_LOW, IPT_UNKNOWN )
|
||||
PORT_BIT( 0xfff0, IP_ACTIVE_LOW, IPT_UNKNOWN )
|
||||
PORT_START("ADC.1")
|
||||
PORT_BIT( 0xff, 0x00, IPT_PEDAL ) PORT_MINMAX(0x00, 0x90) PORT_SENSITIVITY(100) PORT_KEYDELTA(10) PORT_NAME("Gas Pedal")
|
||||
|
||||
PORT_START("ADC.2")
|
||||
PORT_BIT( 0xff, 0x00, IPT_PEDAL2 ) PORT_MINMAX(0x00, 0x48) PORT_SENSITIVITY(100) PORT_KEYDELTA(10) PORT_NAME("Brake Pedal")
|
||||
|
||||
PORT_START("DSW")
|
||||
PORT_DIPUNKNOWN_DIPLOC( 0x0001, 0x0001, "SW2:1" )
|
||||
@ -3332,31 +3338,44 @@ static INPUT_PORTS_START( acedrvr )
|
||||
PORT_DIPNAME( 0x4000, 0x4000, "Test Mode?" ) PORT_DIPLOCATION("SW3:7")
|
||||
PORT_DIPSETTING( 0x4000, DEF_STR( Off ) )
|
||||
PORT_DIPSETTING( 0x0000, DEF_STR( On ) )
|
||||
PORT_DIPNAME( 0x8000, 0x8000, "Test Mode?" ) PORT_DIPLOCATION("SW3:8")
|
||||
PORT_DIPNAME( 0x8000, 0x8000, "Test Mode?" ) PORT_DIPLOCATION("SW3:8") // enter test mode if SW3:7 is on
|
||||
PORT_DIPSETTING( 0x8000, DEF_STR( Off ) )
|
||||
PORT_DIPSETTING( 0x0000, DEF_STR( On ) )
|
||||
|
||||
PORT_START("ADC.0")
|
||||
PORT_BIT( 0xff, 0x80, IPT_PADDLE ) PORT_SENSITIVITY(100) PORT_KEYDELTA(10) PORT_NAME("Steering Wheel")
|
||||
PORT_START("DEV")
|
||||
PORT_CONFNAME( 0x01, 0x00, "Enable Dev Inputs" )
|
||||
PORT_CONFSETTING( 0x00, DEF_STR( No ) )
|
||||
PORT_CONFSETTING( 0x01, DEF_STR( Yes ) )
|
||||
|
||||
PORT_START("ADC.1")
|
||||
PORT_BIT( 0xff, 0x00, IPT_PEDAL ) PORT_SENSITIVITY(100) PORT_KEYDELTA(10) PORT_NAME("Gas Pedal")
|
||||
PORT_START("CUSTOM.0")
|
||||
PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_CONDITION("DEV", 0x01, EQUALS, 0x01) PORT_PLAYER(2) PORT_NAME("Dev Service Enter") // also "REC" start
|
||||
PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_CONDITION("DEV", 0x01, EQUALS, 0x01) PORT_PLAYER(2) PORT_NAME("Dev Service Exit") // also "REC" stop
|
||||
PORT_BIT( 0x0004, IP_ACTIVE_LOW, IPT_BUTTON3 ) PORT_CONDITION("DEV", 0x01, EQUALS, 0x01) PORT_PLAYER(2) PORT_NAME("Dev Unknown 1") // enters free camera view while in attract mode
|
||||
PORT_BIT( 0x0008, IP_ACTIVE_LOW, IPT_BUTTON4 ) PORT_CONDITION("DEV", 0x01, EQUALS, 0x01) PORT_PLAYER(2) PORT_NAME("Dev Unknown 2") // resets game?
|
||||
PORT_BIT( 0x0010, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_CONDITION("DEV", 0x01, EQUALS, 0x01) PORT_PLAYER(2) PORT_NAME("Dev Service Left")
|
||||
PORT_BIT( 0x0020, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_CONDITION("DEV", 0x01, EQUALS, 0x01) PORT_PLAYER(2) PORT_NAME("Dev Service Right")
|
||||
PORT_BIT( 0x0040, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_CONDITION("DEV", 0x01, EQUALS, 0x01) PORT_PLAYER(2) PORT_NAME("Dev Service Up")
|
||||
PORT_BIT( 0x0080, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_CONDITION("DEV", 0x01, EQUALS, 0x01) PORT_PLAYER(2) PORT_NAME("Dev Service Down")
|
||||
PORT_BIT( 0xff00, IP_ACTIVE_LOW, IPT_UNKNOWN ) PORT_CONDITION("DEV", 0x01, EQUALS, 0x01)
|
||||
PORT_BIT( 0xffff, IP_ACTIVE_LOW, IPT_UNUSED ) PORT_CONDITION("DEV", 0x01, EQUALS, 0x00)
|
||||
|
||||
PORT_START("ADC.2")
|
||||
PORT_BIT( 0xff, 0x00, IPT_PEDAL2 ) PORT_SENSITIVITY(100) PORT_KEYDELTA(10) PORT_NAME("Brake Pedal")
|
||||
PORT_START("CUSTOM.1")
|
||||
PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_UNKNOWN ) PORT_CONDITION("DEV", 0x01, EQUALS, 0x01)
|
||||
PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_UNKNOWN ) PORT_CONDITION("DEV", 0x01, EQUALS, 0x01)
|
||||
PORT_BIT( 0x0004, IP_ACTIVE_LOW, IPT_UNKNOWN ) PORT_CONDITION("DEV", 0x01, EQUALS, 0x01) // pauses game?
|
||||
PORT_BIT( 0x0008, IP_ACTIVE_LOW, IPT_UNKNOWN ) PORT_CONDITION("DEV", 0x01, EQUALS, 0x01)
|
||||
PORT_BIT( 0xfff0, IP_ACTIVE_LOW, IPT_UNKNOWN ) PORT_CONDITION("DEV", 0x01, EQUALS, 0x01)
|
||||
PORT_BIT( 0xffff, IP_ACTIVE_LOW, IPT_UNUSED ) PORT_CONDITION("DEV", 0x01, EQUALS, 0x00)
|
||||
INPUT_PORTS_END
|
||||
|
||||
static INPUT_PORTS_START( victlap )
|
||||
PORT_INCLUDE( acedrvr )
|
||||
|
||||
PORT_MODIFY("CUSTOM.0")
|
||||
PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_PLAYER(2) PORT_NAME("Dev Service Exit")
|
||||
PORT_BIT( 0x0010, IP_ACTIVE_LOW, IPT_UNKNOWN ) // win race and reset game?
|
||||
PORT_BIT( 0x0020, IP_ACTIVE_LOW, IPT_UNKNOWN )
|
||||
PORT_BIT( 0x0040, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_PLAYER(2) PORT_NAME("Dev Service Up")
|
||||
PORT_BIT( 0x0080, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_PLAYER(2) PORT_NAME("Dev Service Down")
|
||||
PORT_BIT( 0x0100, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_PLAYER(2) PORT_NAME("Dev Service Enter")
|
||||
PORT_BIT( 0xfe0e, IP_ACTIVE_LOW, IPT_UNKNOWN )
|
||||
PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_CONDITION("DEV", 0x01, EQUALS, 0x01) PORT_PLAYER(2) PORT_NAME("Dev Service Exit")
|
||||
PORT_BIT( 0x0100, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_CONDITION("DEV", 0x01, EQUALS, 0x01) PORT_PLAYER(2) PORT_NAME("Dev Service Enter")
|
||||
PORT_BIT( 0xfe0e, IP_ACTIVE_LOW, IPT_UNKNOWN ) PORT_CONDITION("DEV", 0x01, EQUALS, 0x01)
|
||||
PORT_BIT( 0xffff, IP_ACTIVE_LOW, IPT_UNUSED ) PORT_CONDITION("DEV", 0x01, EQUALS, 0x00)
|
||||
INPUT_PORTS_END
|
||||
|
||||
/*********************************************************************************************/
|
||||
@ -3367,17 +3386,6 @@ CUSTOM_INPUT_MEMBER(namcos22_state::alpine_motor_read)
|
||||
}
|
||||
|
||||
static INPUT_PORTS_START( alpiner )
|
||||
PORT_START("DSW")
|
||||
PORT_DIPUNKNOWN_DIPLOC( 0x0001, 0x0001, "SW4:1" )
|
||||
PORT_DIPUNKNOWN_DIPLOC( 0x0002, 0x0002, "SW4:2" )
|
||||
PORT_DIPUNKNOWN_DIPLOC( 0x0004, 0x0004, "SW4:3" )
|
||||
PORT_DIPUNKNOWN_DIPLOC( 0x0008, 0x0008, "SW4:4" )
|
||||
PORT_DIPUNKNOWN_DIPLOC( 0x0010, 0x0010, "SW4:5" )
|
||||
PORT_DIPUNKNOWN_DIPLOC( 0x0020, 0x0020, "SW4:6" )
|
||||
PORT_DIPUNKNOWN_DIPLOC( 0x0040, 0x0040, "SW4:7" )
|
||||
PORT_DIPUNKNOWN_DIPLOC( 0x0080, 0x0080, "SW4:8" )
|
||||
PORT_BIT( 0xff00, IP_ACTIVE_LOW, IPT_UNUSED )
|
||||
|
||||
PORT_START("INPUTS")
|
||||
PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_COIN1 )
|
||||
PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_UNKNOWN )
|
||||
@ -3395,9 +3403,7 @@ static INPUT_PORTS_START( alpiner )
|
||||
|
||||
PORT_START("ADC.1")
|
||||
PORT_BIT( 0x3ff, 0x200, IPT_AD_STICK_X ) PORT_MINMAX(0x080, 0x380) PORT_SENSITIVITY(100) PORT_KEYDELTA(16) PORT_PLAYER(2) PORT_NAME("Steps Edge")
|
||||
INPUT_PORTS_END
|
||||
|
||||
static INPUT_PORTS_START( airco22 )
|
||||
PORT_START("DSW")
|
||||
PORT_DIPUNKNOWN_DIPLOC( 0x0001, 0x0001, "SW4:1" )
|
||||
PORT_DIPUNKNOWN_DIPLOC( 0x0002, 0x0002, "SW4:2" )
|
||||
@ -3408,7 +3414,9 @@ static INPUT_PORTS_START( airco22 )
|
||||
PORT_DIPUNKNOWN_DIPLOC( 0x0040, 0x0040, "SW4:7" )
|
||||
PORT_DIPUNKNOWN_DIPLOC( 0x0080, 0x0080, "SW4:8" )
|
||||
PORT_BIT( 0xff00, IP_ACTIVE_LOW, IPT_UNUSED )
|
||||
INPUT_PORTS_END
|
||||
|
||||
static INPUT_PORTS_START( airco22 )
|
||||
PORT_START("INPUTS")
|
||||
PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_COIN1 )
|
||||
PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_UNKNOWN )
|
||||
@ -3427,14 +3435,10 @@ static INPUT_PORTS_START( airco22 )
|
||||
PORT_BIT( 0x3ff, 0x200, IPT_AD_STICK_Y ) PORT_MINMAX(0x100, 0x300) PORT_SENSITIVITY(100) PORT_KEYDELTA(12)
|
||||
|
||||
PORT_START("ADC.2") // throttle stick auto-centers
|
||||
PORT_BIT( 0x3ff, 0x200, IPT_AD_STICK_Z ) PORT_MINMAX(0x100, 0x300) PORT_SENSITIVITY(100) PORT_KEYDELTA(12) PORT_NAME("Throttle Stick")
|
||||
INPUT_PORTS_END
|
||||
PORT_BIT( 0x3ff, 0x200, IPT_AD_STICK_Y ) PORT_MINMAX(0x100, 0x300) PORT_SENSITIVITY(100) PORT_KEYDELTA(12) PORT_PLAYER(2) PORT_NAME("Throttle Stick")
|
||||
|
||||
static INPUT_PORTS_START( cybrcycc )
|
||||
PORT_START("DSW")
|
||||
PORT_DIPNAME( 0x0001, 0x0001, "Test Mode?" ) PORT_DIPLOCATION("SW4:1")
|
||||
PORT_DIPSETTING( 0x0001, DEF_STR( Off ) )
|
||||
PORT_DIPSETTING( 0x0000, DEF_STR( On ) )
|
||||
PORT_DIPUNKNOWN_DIPLOC( 0x0001, 0x0001, "SW4:1" )
|
||||
PORT_DIPUNKNOWN_DIPLOC( 0x0002, 0x0002, "SW4:2" )
|
||||
PORT_DIPUNKNOWN_DIPLOC( 0x0004, 0x0004, "SW4:3" )
|
||||
PORT_DIPUNKNOWN_DIPLOC( 0x0008, 0x0008, "SW4:4" )
|
||||
@ -3443,7 +3447,9 @@ static INPUT_PORTS_START( cybrcycc )
|
||||
PORT_DIPUNKNOWN_DIPLOC( 0x0040, 0x0040, "SW4:7" )
|
||||
PORT_DIPUNKNOWN_DIPLOC( 0x0080, 0x0080, "SW4:8" )
|
||||
PORT_BIT( 0xff00, IP_ACTIVE_LOW, IPT_UNUSED )
|
||||
INPUT_PORTS_END
|
||||
|
||||
static INPUT_PORTS_START( cybrcycc )
|
||||
PORT_START("INPUTS")
|
||||
PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_COIN1 )
|
||||
PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_UNKNOWN )
|
||||
@ -3463,9 +3469,46 @@ static INPUT_PORTS_START( cybrcycc )
|
||||
|
||||
PORT_START("ADC.2")
|
||||
PORT_BIT( 0x3ff, 0x000, IPT_PEDAL2 ) PORT_MINMAX(0x000, 0x100) PORT_SENSITIVITY(100) PORT_KEYDELTA(40) PORT_NAME("Brake Pedal")
|
||||
|
||||
PORT_START("DSW")
|
||||
PORT_DIPNAME( 0x0001, 0x0001, "Test Mode" ) PORT_DIPLOCATION("SW4:1")
|
||||
PORT_DIPSETTING( 0x0001, DEF_STR( Off ) )
|
||||
PORT_DIPSETTING( 0x0000, DEF_STR( On ) )
|
||||
PORT_DIPUNKNOWN_DIPLOC( 0x0002, 0x0002, "SW4:2" )
|
||||
PORT_DIPUNKNOWN_DIPLOC( 0x0004, 0x0004, "SW4:3" )
|
||||
PORT_DIPUNKNOWN_DIPLOC( 0x0008, 0x0008, "SW4:4" )
|
||||
PORT_DIPUNKNOWN_DIPLOC( 0x0010, 0x0010, "SW4:5" )
|
||||
PORT_DIPUNKNOWN_DIPLOC( 0x0020, 0x0020, "SW4:6" )
|
||||
PORT_DIPUNKNOWN_DIPLOC( 0x0040, 0x0040, "SW4:7" )
|
||||
PORT_DIPUNKNOWN_DIPLOC( 0x0080, 0x0080, "SW4:8" )
|
||||
PORT_BIT( 0xff00, IP_ACTIVE_LOW, IPT_UNUSED )
|
||||
INPUT_PORTS_END
|
||||
|
||||
static INPUT_PORTS_START( dirtdash )
|
||||
PORT_START("INPUTS")
|
||||
PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_COIN1 )
|
||||
PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_UNKNOWN )
|
||||
PORT_BIT( 0x0004, IP_ACTIVE_LOW, IPT_SERVICE1 )
|
||||
PORT_SERVICE( 0x0008, IP_ACTIVE_LOW )
|
||||
PORT_BIT( 0x0010, IP_ACTIVE_LOW, IPT_BUTTON3 ) PORT_NAME("View Change")
|
||||
PORT_BIT( 0x0020, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_NAME("Shift Up")
|
||||
PORT_BIT( 0x0040, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_NAME("Shift Down")
|
||||
PORT_BIT( 0x0080, IP_ACTIVE_LOW, IPT_BUTTON4 ) PORT_NAME("Motion-Stop")
|
||||
PORT_BIT( 0x0100, IP_ACTIVE_LOW, IPT_UNKNOWN )
|
||||
PORT_CONFNAME( 0x0200, 0x0000, DEF_STR( Cabinet ) )
|
||||
PORT_CONFSETTING( 0x0000, DEF_STR( Standard ) )
|
||||
PORT_CONFSETTING( 0x0200, "Deluxe" ) // car suspension valves
|
||||
PORT_BIT( 0xfc00, IP_ACTIVE_LOW, IPT_UNKNOWN )
|
||||
|
||||
PORT_START("ADC.0")
|
||||
PORT_BIT( 0x3ff, 0x200, IPT_PADDLE ) PORT_MINMAX(0x001, 0x3ff) PORT_SENSITIVITY(100) PORT_KEYDELTA(12) PORT_NAME("Steering Wheel")
|
||||
|
||||
PORT_START("ADC.1")
|
||||
PORT_BIT( 0x3ff, 0x000, IPT_PEDAL ) PORT_MINMAX(0x000, 0x140) PORT_SENSITIVITY(100) PORT_KEYDELTA(40) PORT_NAME("Gas Pedal")
|
||||
|
||||
PORT_START("ADC.2")
|
||||
PORT_BIT( 0x3ff, 0x000, IPT_PEDAL2 ) PORT_MINMAX(0x000, 0x100) PORT_SENSITIVITY(100) PORT_KEYDELTA(40) PORT_NAME("Brake Pedal")
|
||||
|
||||
PORT_START("DSW")
|
||||
PORT_DIPUNKNOWN_DIPLOC( 0x0001, 0x0001, "SW4:1" )
|
||||
PORT_DIPUNKNOWN_DIPLOC( 0x0002, 0x0002, "SW4:2" )
|
||||
@ -3476,42 +3519,9 @@ static INPUT_PORTS_START( dirtdash )
|
||||
PORT_DIPUNKNOWN_DIPLOC( 0x0040, 0x0040, "SW4:7" )
|
||||
PORT_DIPUNKNOWN_DIPLOC( 0x0080, 0x0080, "SW4:8" )
|
||||
PORT_BIT( 0xff00, IP_ACTIVE_LOW, IPT_UNUSED )
|
||||
|
||||
PORT_START("INPUTS")
|
||||
PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_COIN1 )
|
||||
PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_UNKNOWN )
|
||||
PORT_BIT( 0x0004, IP_ACTIVE_LOW, IPT_SERVICE1 )
|
||||
PORT_SERVICE( 0x0008, IP_ACTIVE_LOW )
|
||||
PORT_BIT( 0x0010, IP_ACTIVE_LOW, IPT_BUTTON3 ) PORT_NAME("View Change")
|
||||
PORT_BIT( 0x0020, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_NAME("Shift Up")
|
||||
PORT_BIT( 0x0040, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_NAME("Shift Down")
|
||||
PORT_BIT( 0x0080, IP_ACTIVE_LOW, IPT_BUTTON4 ) PORT_NAME("Motion-Stop")
|
||||
PORT_BIT( 0xff00, IP_ACTIVE_LOW, IPT_UNKNOWN )
|
||||
|
||||
PORT_START("ADC.0")
|
||||
PORT_BIT( 0x3ff, 0x200, IPT_PADDLE ) PORT_MINMAX(0x001, 0x3ff) PORT_SENSITIVITY(100) PORT_KEYDELTA(12) PORT_NAME("Steering Wheel")
|
||||
|
||||
PORT_START("ADC.1")
|
||||
PORT_BIT( 0x3ff, 0x000, IPT_PEDAL ) PORT_MINMAX(0x000, 0x140) PORT_SENSITIVITY(100) PORT_KEYDELTA(40) PORT_NAME("Gas Pedal")
|
||||
|
||||
PORT_START("ADC.2")
|
||||
PORT_BIT( 0x3ff, 0x000, IPT_PEDAL2 ) PORT_MINMAX(0x000, 0x100) PORT_SENSITIVITY(100) PORT_KEYDELTA(40) PORT_NAME("Brake Pedal")
|
||||
INPUT_PORTS_END
|
||||
|
||||
static INPUT_PORTS_START( tokyowar )
|
||||
PORT_START("DSW")
|
||||
PORT_DIPNAME( 0x0001, 0x0001, "Test Mode?" ) PORT_DIPLOCATION("SW4:1")
|
||||
PORT_DIPSETTING( 0x0001, DEF_STR( Off ) )
|
||||
PORT_DIPSETTING( 0x0000, DEF_STR( On ) )
|
||||
PORT_DIPUNKNOWN_DIPLOC( 0x0002, 0x0002, "SW4:2" )
|
||||
PORT_DIPUNKNOWN_DIPLOC( 0x0004, 0x0004, "SW4:3" )
|
||||
PORT_DIPUNKNOWN_DIPLOC( 0x0008, 0x0008, "SW4:4" )
|
||||
PORT_DIPUNKNOWN_DIPLOC( 0x0010, 0x0010, "SW4:5" )
|
||||
PORT_DIPUNKNOWN_DIPLOC( 0x0020, 0x0020, "SW4:6" )
|
||||
PORT_DIPUNKNOWN_DIPLOC( 0x0040, 0x0040, "SW4:7" )
|
||||
PORT_DIPUNKNOWN_DIPLOC( 0x0080, 0x0080, "SW4:8" )
|
||||
PORT_BIT( 0xff00, IP_ACTIVE_LOW, IPT_UNUSED )
|
||||
|
||||
PORT_START("INPUTS")
|
||||
PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_COIN1 )
|
||||
PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_UNKNOWN )
|
||||
@ -3520,7 +3530,9 @@ static INPUT_PORTS_START( tokyowar )
|
||||
PORT_BIT( 0x0010, IP_ACTIVE_LOW, IPT_START1 ) // also view-change function
|
||||
PORT_BIT( 0x0020, IP_ACTIVE_LOW, IPT_BUTTON5 ) PORT_NAME("Right Trigger")
|
||||
PORT_BIT( 0x0040, IP_ACTIVE_LOW, IPT_BUTTON4 ) PORT_NAME("Left Trigger")
|
||||
PORT_BIT( 0x0080, IP_ACTIVE_LOW, IPT_UNKNOWN )
|
||||
PORT_CONFNAME( 0x0080, 0x0080, DEF_STR( Cabinet ) )
|
||||
PORT_CONFSETTING( 0x0080, DEF_STR( Standard ) )
|
||||
PORT_CONFSETTING( 0x0000, "Deluxe" ) // cannon recoil motors
|
||||
PORT_BIT( 0xff00, IP_ACTIVE_LOW, IPT_UNKNOWN )
|
||||
|
||||
PORT_START("ADC.0")
|
||||
@ -3531,11 +3543,9 @@ static INPUT_PORTS_START( tokyowar )
|
||||
|
||||
PORT_START("ADC.3")
|
||||
PORT_BIT( 0x3ff, 0x000, IPT_PEDAL2 ) PORT_MINMAX(0x000, 0x100) PORT_SENSITIVITY(100) PORT_KEYDELTA(20) PORT_NAME("Brake Pedal")
|
||||
INPUT_PORTS_END
|
||||
|
||||
static INPUT_PORTS_START( aquajet )
|
||||
PORT_START("DSW")
|
||||
PORT_DIPNAME( 0x0001, 0x0001, "Test Mode?" ) PORT_DIPLOCATION("SW4:1")
|
||||
PORT_DIPNAME( 0x0001, 0x0001, "Test Mode" ) PORT_DIPLOCATION("SW4:1")
|
||||
PORT_DIPSETTING( 0x0001, DEF_STR( Off ) )
|
||||
PORT_DIPSETTING( 0x0000, DEF_STR( On ) )
|
||||
PORT_DIPUNKNOWN_DIPLOC( 0x0002, 0x0002, "SW4:2" )
|
||||
@ -3546,7 +3556,9 @@ static INPUT_PORTS_START( aquajet )
|
||||
PORT_DIPUNKNOWN_DIPLOC( 0x0040, 0x0040, "SW4:7" )
|
||||
PORT_DIPUNKNOWN_DIPLOC( 0x0080, 0x0080, "SW4:8" )
|
||||
PORT_BIT( 0xff00, IP_ACTIVE_LOW, IPT_UNUSED )
|
||||
INPUT_PORTS_END
|
||||
|
||||
static INPUT_PORTS_START( aquajet )
|
||||
PORT_START("INPUTS")
|
||||
PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_COIN1 )
|
||||
PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_UNKNOWN )
|
||||
@ -3566,11 +3578,9 @@ static INPUT_PORTS_START( aquajet )
|
||||
|
||||
PORT_START("ADC.2")
|
||||
PORT_BIT( 0x3ff, 0x1fc, IPT_AD_STICK_Y ) PORT_MINMAX(0x000, 0x3f8) PORT_SENSITIVITY(100) PORT_KEYDELTA(40) PORT_REVERSE
|
||||
INPUT_PORTS_END
|
||||
|
||||
static INPUT_PORTS_START( adillor )
|
||||
PORT_START("DSW")
|
||||
PORT_DIPNAME( 0x0001, 0x0001, "Test Mode?" ) PORT_DIPLOCATION("SW4:1")
|
||||
PORT_DIPNAME( 0x0001, 0x0001, "Test Mode" ) PORT_DIPLOCATION("SW4:1")
|
||||
PORT_DIPSETTING( 0x0001, DEF_STR( Off ) )
|
||||
PORT_DIPSETTING( 0x0000, DEF_STR( On ) )
|
||||
PORT_DIPUNKNOWN_DIPLOC( 0x0002, 0x0002, "SW4:2" )
|
||||
@ -3581,16 +3591,9 @@ static INPUT_PORTS_START( adillor )
|
||||
PORT_DIPUNKNOWN_DIPLOC( 0x0040, 0x0040, "SW4:7" )
|
||||
PORT_DIPUNKNOWN_DIPLOC( 0x0080, 0x0080, "SW4:8" )
|
||||
PORT_BIT( 0xff00, IP_ACTIVE_LOW, IPT_UNUSED )
|
||||
INPUT_PORTS_END
|
||||
|
||||
PORT_START("CUSTOM.0")
|
||||
PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_PLAYER(2) PORT_NAME("Dev Service Enter")
|
||||
PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_PLAYER(2) PORT_NAME("Dev Service Exit")
|
||||
PORT_BIT( 0x0004, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_PLAYER(2) PORT_NAME("Dev Service Left")
|
||||
PORT_BIT( 0x0008, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_PLAYER(2) PORT_NAME("Dev Service Right") // when in normal testmode, press this to enter the extra testmode
|
||||
PORT_BIT( 0x0010, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_PLAYER(2) PORT_NAME("Dev Service Up")
|
||||
PORT_BIT( 0x0020, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_PLAYER(2) PORT_NAME("Dev Service Down")
|
||||
PORT_BIT( 0xffc0, IP_ACTIVE_LOW, IPT_UNKNOWN )
|
||||
|
||||
static INPUT_PORTS_START( adillor )
|
||||
PORT_START("INPUTS")
|
||||
PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_COIN1 )
|
||||
PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_UNKNOWN )
|
||||
@ -3608,11 +3611,11 @@ static INPUT_PORTS_START( adillor )
|
||||
|
||||
PORT_START("TRACKY")
|
||||
PORT_BIT( 0xff, 0x80, IPT_AD_STICK_Y ) PORT_MINMAX(0x01, 0xff) PORT_SENSITIVITY(100) PORT_KEYDELTA(8) PORT_NAME("Trackball Y")
|
||||
INPUT_PORTS_END
|
||||
|
||||
static INPUT_PORTS_START( propcycl )
|
||||
PORT_START("DSW")
|
||||
PORT_DIPUNKNOWN_DIPLOC( 0x0001, 0x0001, "SW4:1" )
|
||||
PORT_DIPNAME( 0x0001, 0x0001, "Test Mode" ) PORT_DIPLOCATION("SW4:1")
|
||||
PORT_DIPSETTING( 0x0001, DEF_STR( Off ) )
|
||||
PORT_DIPSETTING( 0x0000, DEF_STR( On ) )
|
||||
PORT_DIPUNKNOWN_DIPLOC( 0x0002, 0x0002, "SW4:2" )
|
||||
PORT_DIPUNKNOWN_DIPLOC( 0x0004, 0x0004, "SW4:3" )
|
||||
PORT_DIPUNKNOWN_DIPLOC( 0x0008, 0x0008, "SW4:4" )
|
||||
@ -3622,6 +3625,23 @@ static INPUT_PORTS_START( propcycl )
|
||||
PORT_DIPUNKNOWN_DIPLOC( 0x0080, 0x0080, "SW4:8" )
|
||||
PORT_BIT( 0xff00, IP_ACTIVE_LOW, IPT_UNUSED )
|
||||
|
||||
PORT_START("DEV")
|
||||
PORT_CONFNAME( 0x01, 0x00, "Enable Dev Inputs" )
|
||||
PORT_CONFSETTING( 0x00, DEF_STR( No ) )
|
||||
PORT_CONFSETTING( 0x01, DEF_STR( Yes ) )
|
||||
|
||||
PORT_START("CUSTOM.0")
|
||||
PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_CONDITION("DEV", 0x01, EQUALS, 0x01) PORT_PLAYER(2) PORT_NAME("Dev Service Enter")
|
||||
PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_CONDITION("DEV", 0x01, EQUALS, 0x01) PORT_PLAYER(2) PORT_NAME("Dev Service Exit")
|
||||
PORT_BIT( 0x0004, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_CONDITION("DEV", 0x01, EQUALS, 0x01) PORT_PLAYER(2) PORT_NAME("Dev Service Left")
|
||||
PORT_BIT( 0x0008, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_CONDITION("DEV", 0x01, EQUALS, 0x01) PORT_PLAYER(2) PORT_NAME("Dev Service Right") // when in normal testmode, press this to enter the extra testmode
|
||||
PORT_BIT( 0x0010, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_CONDITION("DEV", 0x01, EQUALS, 0x01) PORT_PLAYER(2) PORT_NAME("Dev Service Up")
|
||||
PORT_BIT( 0x0020, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_CONDITION("DEV", 0x01, EQUALS, 0x01) PORT_PLAYER(2) PORT_NAME("Dev Service Down")
|
||||
PORT_BIT( 0xffc0, IP_ACTIVE_LOW, IPT_UNKNOWN ) PORT_CONDITION("DEV", 0x01, EQUALS, 0x01)
|
||||
PORT_BIT( 0xffff, IP_ACTIVE_LOW, IPT_UNUSED ) PORT_CONDITION("DEV", 0x01, EQUALS, 0x00)
|
||||
INPUT_PORTS_END
|
||||
|
||||
static INPUT_PORTS_START( propcycl )
|
||||
PORT_START("INPUTS")
|
||||
PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_COIN1 )
|
||||
PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_UNKNOWN )
|
||||
@ -3642,9 +3662,7 @@ static INPUT_PORTS_START( propcycl )
|
||||
|
||||
PORT_START("PEDAL")
|
||||
PORT_BIT( 0x7f, 0x00, IPT_PEDAL ) PORT_SENSITIVITY(100) PORT_KEYDELTA(10)
|
||||
INPUT_PORTS_END
|
||||
|
||||
static INPUT_PORTS_START( timecris )
|
||||
PORT_START("DSW")
|
||||
PORT_DIPUNKNOWN_DIPLOC( 0x0001, 0x0001, "SW4:1" )
|
||||
PORT_DIPUNKNOWN_DIPLOC( 0x0002, 0x0002, "SW4:2" )
|
||||
@ -3653,9 +3671,11 @@ static INPUT_PORTS_START( timecris )
|
||||
PORT_DIPUNKNOWN_DIPLOC( 0x0010, 0x0010, "SW4:5" )
|
||||
PORT_DIPUNKNOWN_DIPLOC( 0x0020, 0x0020, "SW4:6" )
|
||||
PORT_DIPUNKNOWN_DIPLOC( 0x0040, 0x0040, "SW4:7" )
|
||||
PORT_SERVICE_DIPLOC( 0x0080, IP_ACTIVE_LOW, "SW4:8")
|
||||
PORT_DIPUNKNOWN_DIPLOC( 0x0080, 0x0080, "SW4:8" )
|
||||
PORT_BIT( 0xff00, IP_ACTIVE_LOW, IPT_UNUSED )
|
||||
INPUT_PORTS_END
|
||||
|
||||
static INPUT_PORTS_START( timecris )
|
||||
PORT_START("INPUTS")
|
||||
PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_COIN1 )
|
||||
PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_UNKNOWN )
|
||||
@ -3672,6 +3692,19 @@ static INPUT_PORTS_START( timecris )
|
||||
|
||||
PORT_START( "LIGHTY" ) // tuned for CRT - can't shoot below the statusbar?
|
||||
PORT_BIT( 0xffff, 43+241/2, IPT_LIGHTGUN_Y ) PORT_CROSSHAIR(Y, 1.0, 0.0, 0) PORT_MINMAX(43, 43+241) PORT_SENSITIVITY(64) PORT_KEYDELTA(4)
|
||||
|
||||
PORT_START("DSW")
|
||||
PORT_DIPUNKNOWN_DIPLOC( 0x0001, 0x0001, "SW4:1" )
|
||||
PORT_DIPUNKNOWN_DIPLOC( 0x0002, 0x0002, "SW4:2" )
|
||||
PORT_DIPUNKNOWN_DIPLOC( 0x0004, 0x0004, "SW4:3" )
|
||||
PORT_DIPUNKNOWN_DIPLOC( 0x0008, 0x0008, "SW4:4" )
|
||||
PORT_DIPUNKNOWN_DIPLOC( 0x0010, 0x0010, "SW4:5" )
|
||||
PORT_DIPUNKNOWN_DIPLOC( 0x0020, 0x0020, "SW4:6" )
|
||||
PORT_DIPUNKNOWN_DIPLOC( 0x0040, 0x0040, "SW4:7" )
|
||||
PORT_DIPNAME( 0x0080, 0x0080, "Test Mode" ) PORT_DIPLOCATION("SW4:8")
|
||||
PORT_DIPSETTING( 0x0080, DEF_STR( Off ) )
|
||||
PORT_DIPSETTING( 0x0000, DEF_STR( On ) )
|
||||
PORT_BIT( 0xff00, IP_ACTIVE_LOW, IPT_UNUSED )
|
||||
INPUT_PORTS_END
|
||||
|
||||
|
||||
@ -5788,7 +5821,7 @@ void namcos22_state::init_dirtdash()
|
||||
|
||||
/* YEAR, NAME, PARENT, MACHINE, INPUT, CLASS, INIT, MNTR, COMPANY, FULLNAME, FLAGS */
|
||||
// System22 games
|
||||
GAME( 1993, ridgerac, 0, namcos22, ridgera, namcos22_state, init_ridgeraj, ROT0, "Namco", "Ridge Racer (Rev. RR3, World)", MACHINE_SUPPORTS_SAVE | MACHINE_IMPERFECT_GRAPHICS ) // 1994-01-17
|
||||
GAME( 1993, ridgerac, 0, namcos22, ridgera, namcos22_state, init_ridgeraj, ROT0, "Namco", "Ridge Racer (Rev. RR3, World)", MACHINE_SUPPORTS_SAVE | MACHINE_IMPERFECT_GRAPHICS ) // 1994-01-17, RR3 means USA?
|
||||
GAME( 1993, ridgerac3, ridgerac, namcos22, ridgera, namcos22_state, init_ridgeraj, ROT0, "Namco", "Ridge Racer (Rev. RR2 Ver.B, World, 3-screen?)", MACHINE_SUPPORTS_SAVE | MACHINE_IMPERFECT_GRAPHICS ) // 1993-10-28, no indication that this really is a 3-screen version.
|
||||
GAME( 1993, ridgeracb, ridgerac, namcos22, ridgera, namcos22_state, init_ridgeraj, ROT0, "Namco", "Ridge Racer (Rev. RR2, World)", MACHINE_SUPPORTS_SAVE | MACHINE_IMPERFECT_GRAPHICS ) // 1993-10-07
|
||||
GAME( 1993, ridgeracj, ridgerac, namcos22, ridgera, namcos22_state, init_ridgeraj, ROT0, "Namco", "Ridge Racer (Rev. RR1, Japan)", MACHINE_SUPPORTS_SAVE | MACHINE_IMPERFECT_GRAPHICS ) // 1993-10-07
|
||||
|
@ -22,10 +22,6 @@ void namcos22_renderer::init()
|
||||
{
|
||||
memset(&m_scenenode_root, 0, sizeof(m_scenenode_root));
|
||||
m_scenenode_cur = nullptr;
|
||||
|
||||
m_clipx = 320;
|
||||
m_clipy = 240;
|
||||
m_cliprect.set(0, 639, 0, 479);
|
||||
}
|
||||
|
||||
|
||||
@ -237,31 +233,11 @@ void namcos22_renderer::renderscanline_sprite(int32_t scanline, const extent_t &
|
||||
|
||||
void namcos22_renderer::poly3d_drawquad(screen_device &screen, bitmap_rgb32 &bitmap, struct namcos22_scenenode *node)
|
||||
{
|
||||
namcos22_object_data &extra = object_data_alloc();
|
||||
vertex_t v[4];
|
||||
vertex_t clipv[6];
|
||||
int clipverts;
|
||||
int vertnum;
|
||||
|
||||
int direct = node->data.quad.direct;
|
||||
int flags = node->data.quad.flags;
|
||||
int color = node->data.quad.color;
|
||||
int cz_adjust = node->data.quad.cz_adjust;
|
||||
|
||||
extra.destbase = &bitmap;
|
||||
extra.pfade_enabled = 0;
|
||||
extra.zfog_enabled = 0;
|
||||
extra.fadefactor = 0;
|
||||
extra.fogfactor = 0;
|
||||
|
||||
extra.pens = &m_state.m_palette->pen((color & 0x7f) << 8);
|
||||
extra.primap = &screen.priority();
|
||||
extra.bn = node->data.quad.texturebank;
|
||||
extra.flags = flags;
|
||||
extra.cz_adjust = cz_adjust;
|
||||
extra.cmode = node->data.quad.cmode;
|
||||
extra.prioverchar = ((node->data.quad.cmode & 7) == 1) ? 1 : 0;
|
||||
extra.prioverchar |= m_state.m_is_ss22 ? 2 : 0;
|
||||
|
||||
// scene clip
|
||||
float cx = 320.0f + node->data.quad.vx;
|
||||
@ -317,6 +293,26 @@ void namcos22_renderer::poly3d_drawquad(screen_device &screen, bitmap_rgb32 &bit
|
||||
}
|
||||
}
|
||||
|
||||
namcos22_object_data &extra = object_data_alloc();
|
||||
int flags = node->data.quad.flags;
|
||||
int color = node->data.quad.color;
|
||||
int cz_adjust = node->data.quad.cz_adjust;
|
||||
|
||||
extra.destbase = &bitmap;
|
||||
extra.pfade_enabled = 0;
|
||||
extra.zfog_enabled = 0;
|
||||
extra.fadefactor = 0;
|
||||
extra.fogfactor = 0;
|
||||
|
||||
extra.pens = &m_state.m_palette->pen((color & 0x7f) << 8);
|
||||
extra.primap = &screen.priority();
|
||||
extra.bn = node->data.quad.texturebank;
|
||||
extra.flags = flags;
|
||||
extra.cz_adjust = cz_adjust;
|
||||
extra.cmode = node->data.quad.cmode;
|
||||
extra.prioverchar = ((node->data.quad.cmode & 7) == 1) ? 1 : 0;
|
||||
extra.prioverchar |= m_state.m_is_ss22 ? 2 : 0;
|
||||
|
||||
if (m_state.m_is_ss22)
|
||||
{
|
||||
// global fade
|
||||
@ -625,10 +621,6 @@ void namcos22_renderer::render_scene(screen_device &screen, bitmap_rgb32 &bitmap
|
||||
node->data.nonleaf.next[i] = nullptr;
|
||||
}
|
||||
|
||||
m_clipx = 320;
|
||||
m_clipy = 240;
|
||||
m_cliprect.set(0, 639, 0, 479);
|
||||
|
||||
wait("render_scene");
|
||||
}
|
||||
|
||||
@ -1221,10 +1213,10 @@ void namcos22_state::slavesim_handle_bb0003(const s32 *src)
|
||||
m_camera_vx = (s16)(src[0x5] >> 16);
|
||||
m_camera_vy = (s16)(src[0x5] & 0xffff);
|
||||
m_camera_zoom = dspfloat_to_nativefloat(src[0x6]);
|
||||
m_camera_vl = dspfloat_to_nativefloat(src[0x7]) * m_camera_zoom;
|
||||
m_camera_vr = dspfloat_to_nativefloat(src[0x8]) * m_camera_zoom;
|
||||
m_camera_vu = dspfloat_to_nativefloat(src[0x9]) * m_camera_zoom;
|
||||
m_camera_vd = dspfloat_to_nativefloat(src[0xa]) * m_camera_zoom;
|
||||
m_camera_vl = dspfloat_to_nativefloat(src[0x7]) * m_camera_zoom + 0.5f;
|
||||
m_camera_vr = dspfloat_to_nativefloat(src[0x8]) * m_camera_zoom + 0.5f;
|
||||
m_camera_vu = dspfloat_to_nativefloat(src[0x9]) * m_camera_zoom + 0.5f;
|
||||
m_camera_vd = dspfloat_to_nativefloat(src[0xa]) * m_camera_zoom + 0.5f;
|
||||
|
||||
m_reflection = src[0x2] >> 16 & 0x30; // z too?
|
||||
m_cullflip = (m_reflection == 0x10 || m_reflection == 0x20);
|
||||
@ -1893,7 +1885,10 @@ READ16_MEMBER(namcos22_state::spotram_r)
|
||||
{
|
||||
// read
|
||||
u16 ret = m_spotram[m_spotram_address >> 1 & 0x7ff];
|
||||
m_spotram_address += 2;
|
||||
|
||||
if (!machine().side_effects_disabled())
|
||||
m_spotram_address += 2;
|
||||
|
||||
return ret;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user