mirror of
https://github.com/holub/mame
synced 2025-07-08 11:21:56 +03:00
namcos22: get rid of ioport tag lookups, tweak ss22 analog limits (nw)
This commit is contained in:
parent
20c81f524b
commit
fa875ef58e
@ -1703,15 +1703,7 @@ WRITE16_MEMBER(namcos22_state::namcos22_keycus_w)
|
||||
* 0x50000008 and 0x5000000a
|
||||
*
|
||||
* Writes to 0x50000008 and 0x5000000a reset the state of the input buffer.
|
||||
*
|
||||
* Note that only the values read at 0x50000008 seem to be used in-game.
|
||||
*
|
||||
* Some of these values are redundant with respects to the work-RAM supplied input port
|
||||
* values supplied by the IO CPU. For example, the position of the stick shift is digital,
|
||||
* and may be read through this mechanism or through shared IO RAM at 0x60004030.
|
||||
*
|
||||
* Other values seem to be digital versions of analog ports, for example "the gas pedal is
|
||||
* pressed" as a boolean flag. IO RAM supplies it as an analog value.
|
||||
* It appears to be meant for debugging, not all games use it.
|
||||
*/
|
||||
READ16_MEMBER(namcos22_state::namcos22_portbit_r)
|
||||
{
|
||||
@ -1722,12 +1714,12 @@ READ16_MEMBER(namcos22_state::namcos22_portbit_r)
|
||||
|
||||
WRITE16_MEMBER(namcos22_state::namcos22_portbit_w)
|
||||
{
|
||||
m_portbits[offset] = ((offset == 0) ? m_p1 : m_p2).read_safe(0xffff);
|
||||
m_portbits[offset] = m_custom[offset].read_safe(0xffff);
|
||||
}
|
||||
|
||||
READ16_MEMBER(namcos22_state::namcos22_dipswitch_r)
|
||||
{
|
||||
return ioport("DSW0")->read();
|
||||
return m_dsw->read();
|
||||
}
|
||||
|
||||
WRITE16_MEMBER(namcos22_state::namcos22_cpuleds_w)
|
||||
@ -1846,7 +1838,7 @@ void namcos22_state::namcos22_am(address_map &map)
|
||||
* 0x50000000 - DIPSW3
|
||||
* 0x50000001 - DIPSW2
|
||||
*/
|
||||
map(0x50000000, 0x50000003).rw(FUNC(namcos22_state::namcos22_dipswitch_r), FUNC(namcos22_state::namcos22_cpuleds_w));
|
||||
map(0x50000000, 0x50000003).rw(FUNC(namcos22_state::namcos22_dipswitch_r), FUNC(namcos22_state::namcos22_cpuleds_w)).umask32(0xffff0000);
|
||||
map(0x50000008, 0x5000000b).rw(FUNC(namcos22_state::namcos22_portbit_r), FUNC(namcos22_state::namcos22_portbit_w));
|
||||
|
||||
/**
|
||||
@ -1967,8 +1959,8 @@ void namcos22_state::namcos22s_am(address_map &map)
|
||||
map(0x400000, 0x40001f).rw(FUNC(namcos22_state::namcos22_keycus_r), FUNC(namcos22_state::namcos22_keycus_w));
|
||||
map(0x410000, 0x413fff).ram(); // C139 SCI buffer
|
||||
map(0x420000, 0x42000f).rw(FUNC(namcos22_state::namcos22_sci_r), FUNC(namcos22_state::namcos22_sci_w)); // C139 SCI registers
|
||||
map(0x430000, 0x430003).w(FUNC(namcos22_state::namcos22_cpuleds_w));
|
||||
map(0x440000, 0x440003).r(FUNC(namcos22_state::namcos22_dipswitch_r));
|
||||
map(0x430000, 0x430003).w(FUNC(namcos22_state::namcos22_cpuleds_w)).umask32(0xffff0000);
|
||||
map(0x440000, 0x440003).r(FUNC(namcos22_state::namcos22_dipswitch_r)).umask32(0xffff0000);
|
||||
map(0x450008, 0x45000b).rw(FUNC(namcos22_state::namcos22_portbit_r), FUNC(namcos22_state::namcos22_portbit_w));
|
||||
map(0x460000, 0x463fff).rw(m_eeprom, FUNC(eeprom_parallel_28xx_device::read), FUNC(eeprom_parallel_28xx_device::write)).umask32(0xff00ff00);
|
||||
map(0x700000, 0x70001f).rw(FUNC(namcos22_state::syscon_r), FUNC(namcos22_state::ss22_syscon_w));
|
||||
@ -1992,21 +1984,29 @@ void namcos22_state::namcos22s_am(address_map &map)
|
||||
|
||||
|
||||
// Time Crisis gun
|
||||
READ32_MEMBER(namcos22_state::namcos22_gun_r)
|
||||
READ16_MEMBER(namcos22_state::namcos22_gun_r)
|
||||
{
|
||||
int xpos = ioport("LIGHTX")->read();
|
||||
int ypos = ioport("LIGHTY")->read();
|
||||
u16 xpos = m_lightx->read();
|
||||
u16 ypos = m_lighty->read();
|
||||
// ypos is not completely understood yet, there should be a difference between case 1 and 2
|
||||
// game determines real y = 430004 + 430008
|
||||
|
||||
// use screen edges for off-screen
|
||||
const u16 xmin = m_lightx->field(0xffff)->minval();
|
||||
const u16 xmax = m_lightx->field(0xffff)->maxval();
|
||||
const u16 ymin = m_lighty->field(0xffff)->minval();
|
||||
const u16 ymax = m_lighty->field(0xffff)->maxval();
|
||||
if (xpos == xmin || xpos == xmax || ypos == ymin || ypos == ymax)
|
||||
xpos = ypos = 0;
|
||||
|
||||
switch (offset)
|
||||
{
|
||||
case 0: /* 430000 */
|
||||
return xpos << 16;
|
||||
case 0: // 430000
|
||||
return xpos;
|
||||
|
||||
case 1: /* 430004 */
|
||||
case 2: /* 430008 */
|
||||
return ypos << 16;
|
||||
case 1: // 430004
|
||||
case 2: // 430008
|
||||
return ypos;
|
||||
|
||||
default:
|
||||
return 0;
|
||||
@ -2016,7 +2016,7 @@ READ32_MEMBER(namcos22_state::namcos22_gun_r)
|
||||
void namcos22_state::timecris_am(address_map &map)
|
||||
{
|
||||
namcos22s_am(map);
|
||||
map(0x430000, 0x43000f).r(FUNC(namcos22_state::namcos22_gun_r));
|
||||
map(0x430000, 0x43000f).r(FUNC(namcos22_state::namcos22_gun_r)).umask32(0xffff0000);
|
||||
}
|
||||
|
||||
|
||||
@ -2826,10 +2826,8 @@ WRITE8_MEMBER(namcos22_state::mcu_port5_w)
|
||||
|
||||
READ8_MEMBER(namcos22_state::mcu_port5_r)
|
||||
{
|
||||
if (m_mcu_iocontrol & 8)
|
||||
return m_mcup5a.read_safe(0xff);
|
||||
else
|
||||
return m_mcup5b.read_safe(0xff);
|
||||
u16 inputs = m_inputs->read();
|
||||
return (m_mcu_iocontrol & 8) ? inputs & 0xff : inputs >> 8;
|
||||
}
|
||||
|
||||
WRITE8_MEMBER(namcos22_state::mcu_port6_w)
|
||||
@ -2845,7 +2843,7 @@ READ8_MEMBER(namcos22_state::mcu_port6_r)
|
||||
|
||||
READ8_MEMBER(namcos22_state::namcos22s_mcu_adc_r)
|
||||
{
|
||||
u16 adc = m_adc_ports[offset >> 1 & 7].read_safe(0) << 2;
|
||||
u16 adc = m_adc_ports[offset >> 1 & 7].read_safe(0);
|
||||
return (offset & 1) ? adc >> 8 : adc;
|
||||
}
|
||||
|
||||
@ -2905,46 +2903,46 @@ void namcos22_state::handle_driving_io()
|
||||
{
|
||||
if (m_syscontrol[0x18] != 0)
|
||||
{
|
||||
u16 flags = ioport("INPUTS")->read();
|
||||
u16 gas = ioport("GAS")->read();
|
||||
u16 brake = ioport("BRAKE")->read();
|
||||
u16 steer = ioport("STEER")->read();
|
||||
u16 flags = m_inputs->read();
|
||||
u16 steer = m_adc_ports[0]->read();
|
||||
u16 gas = m_adc_ports[1]->read();
|
||||
u16 brake = m_adc_ports[2]->read();
|
||||
|
||||
switch (m_gametype)
|
||||
{
|
||||
case NAMCOS22_RIDGE_RACER:
|
||||
case NAMCOS22_RIDGE_RACER2:
|
||||
steer <<= 4;
|
||||
steer += 0x160;
|
||||
gas <<= 3;
|
||||
gas += 884;
|
||||
brake <<= 3;
|
||||
brake += 809;
|
||||
steer <<= 4;
|
||||
steer += 0x160;
|
||||
break;
|
||||
|
||||
case NAMCOS22_RAVE_RACER:
|
||||
gas <<= 3;
|
||||
gas += 992;
|
||||
brake <<= 3;
|
||||
brake += 3008;
|
||||
steer <<= 4;
|
||||
steer += 32;
|
||||
break;
|
||||
|
||||
case NAMCOS22_VICTORY_LAP:
|
||||
case NAMCOS22_ACE_DRIVER:
|
||||
gas <<= 3;
|
||||
gas += 992;
|
||||
brake <<= 3;
|
||||
brake += 3008;
|
||||
break;
|
||||
|
||||
case NAMCOS22_ACE_DRIVER:
|
||||
case NAMCOS22_VICTORY_LAP:
|
||||
steer <<= 4;
|
||||
steer += 2048;
|
||||
gas <<= 3;
|
||||
gas += 992;
|
||||
brake <<= 3;
|
||||
brake += 3008;
|
||||
break;
|
||||
|
||||
default:
|
||||
steer <<= 4;
|
||||
gas <<= 3;
|
||||
brake <<= 3;
|
||||
steer <<= 4;
|
||||
break;
|
||||
}
|
||||
|
||||
@ -2961,17 +2959,12 @@ void namcos22_state::handle_cybrcomm_io()
|
||||
{
|
||||
if (m_syscontrol[0x18] != 0)
|
||||
{
|
||||
u16 flags = ioport("INPUTS")->read();
|
||||
u16 volume0 = ioport("STICKY1")->read() * 0x10;
|
||||
u16 volume1 = ioport("STICKY2")->read() * 0x10;
|
||||
u16 volume2 = ioport("STICKX1")->read() * 0x10;
|
||||
u16 volume3 = ioport("STICKX2")->read() * 0x10;
|
||||
|
||||
u16 flags = m_inputs->read();
|
||||
m_shareram[0x030/2] = flags;
|
||||
m_shareram[0x032/2] = volume0;
|
||||
m_shareram[0x034/2] = volume1;
|
||||
m_shareram[0x036/2] = volume2;
|
||||
m_shareram[0x038/2] = volume3;
|
||||
m_shareram[0x032/2] = m_adc_ports[0]->read() * 0x10;
|
||||
m_shareram[0x034/2] = m_adc_ports[1]->read() * 0x10;
|
||||
m_shareram[0x036/2] = m_adc_ports[2]->read() * 0x10;
|
||||
m_shareram[0x038/2] = m_adc_ports[3]->read() * 0x10;
|
||||
handle_coinage(flags);
|
||||
}
|
||||
}
|
||||
@ -3029,7 +3022,7 @@ TIMER_DEVICE_CALLBACK_MEMBER(namcos22_state::propcycl_pedal_interrupt)
|
||||
TIMER_DEVICE_CALLBACK_MEMBER(namcos22_state::propcycl_pedal_update)
|
||||
{
|
||||
// arbitrary timer for reading optical pedal
|
||||
u8 i = ioport("PEDAL")->read();
|
||||
u8 i = m_pedal->read();
|
||||
|
||||
if (i != 0)
|
||||
{
|
||||
@ -3064,8 +3057,8 @@ TIMER_CALLBACK_MEMBER(namcos22_state::adillor_trackball_interrupt)
|
||||
TIMER_DEVICE_CALLBACK_MEMBER(namcos22_state::adillor_trackball_update)
|
||||
{
|
||||
// arbitrary timer for reading optical trackball
|
||||
u8 ix = ioport("TRACKX")->read();
|
||||
u8 iy = ioport("TRACKY")->read();
|
||||
u8 ix = m_trackx->read();
|
||||
u8 iy = m_tracky->read();
|
||||
|
||||
if (ix != 0x80 || iy < 0x80)
|
||||
{
|
||||
@ -3148,7 +3141,7 @@ static INPUT_PORTS_START( ridgera )
|
||||
PORT_BIT( 0x4000, IP_ACTIVE_LOW, IPT_UNKNOWN )
|
||||
PORT_BIT( 0x8000, IP_ACTIVE_LOW, IPT_UNKNOWN )
|
||||
|
||||
PORT_START("DSW0")
|
||||
PORT_START("DSW")
|
||||
PORT_SERVICE_DIPLOC( 0x0001, IP_ACTIVE_LOW, "SW2:1")
|
||||
PORT_DIPUNKNOWN_DIPLOC( 0x0002, 0x0002, "SW2:2" )
|
||||
PORT_DIPUNKNOWN_DIPLOC( 0x0004, 0x0004, "SW2:3" )
|
||||
@ -3166,14 +3159,14 @@ static INPUT_PORTS_START( ridgera )
|
||||
PORT_DIPUNKNOWN_DIPLOC( 0x4000, 0x4000, "SW3:7" )
|
||||
PORT_DIPUNKNOWN_DIPLOC( 0x8000, 0x8000, "SW3:8" )
|
||||
|
||||
PORT_START("GAS")
|
||||
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("BRAKE")
|
||||
PORT_START("ADC.2")
|
||||
PORT_BIT( 0xff, 0x00, IPT_PEDAL2 ) PORT_SENSITIVITY(100) PORT_KEYDELTA(10) PORT_NAME("Brake Pedal")
|
||||
|
||||
PORT_START("STEER")
|
||||
PORT_BIT( 0xff, 0x80, IPT_PADDLE ) PORT_SENSITIVITY(100) PORT_KEYDELTA(10) PORT_NAME("Steering Wheel")
|
||||
INPUT_PORTS_END
|
||||
|
||||
static INPUT_PORTS_START( ridgeracf )
|
||||
@ -3188,7 +3181,7 @@ static INPUT_PORTS_START( ridgeracf )
|
||||
|
||||
// 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("DSW0")
|
||||
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")
|
||||
@ -3213,7 +3206,7 @@ static INPUT_PORTS_START( ridgera2 )
|
||||
2-8 : no game over when time runs out (cheat)
|
||||
3-7 : debug polygons
|
||||
*/
|
||||
PORT_MODIFY("DSW0")
|
||||
PORT_MODIFY("DSW")
|
||||
PORT_DIPNAME( 0x8000, 0x8000, "Test Mode" ) PORT_DIPLOCATION("SW3:8")
|
||||
PORT_DIPSETTING( 0x8000, DEF_STR( Off ) )
|
||||
PORT_DIPSETTING( 0x0000, DEF_STR( On ) )
|
||||
@ -3252,22 +3245,7 @@ static INPUT_PORTS_START( cybrcomm )
|
||||
PORT_BIT( 0x4000, IP_ACTIVE_LOW, IPT_UNKNOWN )
|
||||
PORT_BIT( 0x8000, IP_ACTIVE_LOW, IPT_UNKNOWN )
|
||||
|
||||
/* Note(s)
|
||||
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("STICKY1") /* VOLUME 1 */
|
||||
PORT_BIT( 0xff, 0x7f, IPT_AD_STICK_Y ) PORT_MINMAX(0x47,0xb7) /* range based on test mode */ PORT_CODE_DEC(KEYCODE_I) PORT_CODE_INC(KEYCODE_K) PORT_SENSITIVITY(100) PORT_KEYDELTA(10) PORT_PLAYER(2) /* right joystick: vertical */
|
||||
PORT_START("STICKX1") /* VOLUME 2 */
|
||||
PORT_BIT( 0xff, 0x7f, IPT_AD_STICK_X ) PORT_MINMAX(0x47,0xb7) /* range based on test mode */ PORT_CODE_DEC(KEYCODE_J) PORT_CODE_INC(KEYCODE_L) PORT_SENSITIVITY(100) PORT_KEYDELTA(10) PORT_PLAYER(2) /* right joystick: horizontal */
|
||||
PORT_START("STICKY2") /* VOLUME 3 */
|
||||
PORT_BIT( 0xff, 0x7f, IPT_AD_STICK_Y ) PORT_MINMAX(0x47,0xb7) /* range based on test mode */ PORT_CODE_DEC(KEYCODE_E) PORT_CODE_INC(KEYCODE_D) PORT_SENSITIVITY(100) PORT_KEYDELTA(10) PORT_PLAYER(1) /* left joystick: vertical */
|
||||
PORT_START("STICKX2") /* VOLUME 4 */
|
||||
PORT_BIT( 0xff, 0x7f, IPT_AD_STICK_X ) PORT_MINMAX(0x47,0xb7) /* range based on test mode */ PORT_CODE_DEC(KEYCODE_S) PORT_CODE_INC(KEYCODE_F) PORT_SENSITIVITY(100) PORT_KEYDELTA(10) PORT_PLAYER(1) /* left joystick: horizontal */
|
||||
|
||||
PORT_START("DSW0")
|
||||
PORT_START("DSW")
|
||||
PORT_DIPUNKNOWN_DIPLOC( 0x0001, 0x0001, "SW2:1" )
|
||||
PORT_DIPUNKNOWN_DIPLOC( 0x0002, 0x0002, "SW2:2" )
|
||||
PORT_DIPUNKNOWN_DIPLOC( 0x0004, 0x0004, "SW2:3" )
|
||||
@ -3284,6 +3262,21 @@ 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 )
|
||||
@ -3305,13 +3298,23 @@ static INPUT_PORTS_START( acedrvr )
|
||||
PORT_BIT( 0x4000, IP_ACTIVE_LOW, IPT_UNKNOWN )
|
||||
PORT_BIT( 0x8000, IP_ACTIVE_LOW, IPT_BUTTON4 ) PORT_NAME("Motion-Stop")
|
||||
|
||||
PORT_START("P1")
|
||||
PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_PLAYER(2) PORT_NAME("Dev Service Enter")
|
||||
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( 0xff3e, IP_ACTIVE_LOW, IPT_UNKNOWN )
|
||||
PORT_BIT( 0xff30, IP_ACTIVE_LOW, IPT_UNKNOWN )
|
||||
|
||||
PORT_START("DSW0")
|
||||
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("DSW")
|
||||
PORT_DIPUNKNOWN_DIPLOC( 0x0001, 0x0001, "SW2:1" )
|
||||
PORT_DIPUNKNOWN_DIPLOC( 0x0002, 0x0002, "SW2:2" )
|
||||
PORT_DIPUNKNOWN_DIPLOC( 0x0004, 0x0004, "SW2:3" )
|
||||
@ -3333,24 +3336,27 @@ static INPUT_PORTS_START( acedrvr )
|
||||
PORT_DIPSETTING( 0x8000, DEF_STR( Off ) )
|
||||
PORT_DIPSETTING( 0x0000, DEF_STR( On ) )
|
||||
|
||||
PORT_START("GAS")
|
||||
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("BRAKE")
|
||||
PORT_START("ADC.2")
|
||||
PORT_BIT( 0xff, 0x00, IPT_PEDAL2 ) PORT_SENSITIVITY(100) PORT_KEYDELTA(10) PORT_NAME("Brake Pedal")
|
||||
|
||||
PORT_START("STEER")
|
||||
PORT_BIT( 0xff, 0x80, IPT_PADDLE ) PORT_SENSITIVITY(100) PORT_KEYDELTA(10) PORT_NAME("Steering Wheel")
|
||||
INPUT_PORTS_END
|
||||
|
||||
static INPUT_PORTS_START( victlap )
|
||||
PORT_INCLUDE( acedrvr )
|
||||
|
||||
PORT_MODIFY("P1")
|
||||
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( 0xfe3f, IP_ACTIVE_LOW, IPT_UNKNOWN )
|
||||
PORT_BIT( 0xfe0e, IP_ACTIVE_LOW, IPT_UNKNOWN )
|
||||
INPUT_PORTS_END
|
||||
|
||||
/*********************************************************************************************/
|
||||
@ -3361,7 +3367,7 @@ CUSTOM_INPUT_MEMBER(namcos22_state::alpine_motor_read)
|
||||
}
|
||||
|
||||
static INPUT_PORTS_START( alpiner )
|
||||
PORT_START("DSW0")
|
||||
PORT_START("DSW")
|
||||
PORT_DIPUNKNOWN_DIPLOC( 0x0001, 0x0001, "SW4:1" )
|
||||
PORT_DIPUNKNOWN_DIPLOC( 0x0002, 0x0002, "SW4:2" )
|
||||
PORT_DIPUNKNOWN_DIPLOC( 0x0004, 0x0004, "SW4:3" )
|
||||
@ -3372,29 +3378,27 @@ static INPUT_PORTS_START( alpiner )
|
||||
PORT_DIPUNKNOWN_DIPLOC( 0x0080, 0x0080, "SW4:8" )
|
||||
PORT_BIT( 0xff00, IP_ACTIVE_LOW, IPT_UNUSED )
|
||||
|
||||
PORT_START("MCUP5A")
|
||||
PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_COIN1 )
|
||||
PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_UNKNOWN )
|
||||
PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_SERVICE1 )
|
||||
PORT_SERVICE( 0x08, IP_ACTIVE_LOW )
|
||||
PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_START1 ) // Decision / View Change
|
||||
PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_16WAY // L Selection
|
||||
PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT) PORT_16WAY // R Selection
|
||||
PORT_BIT( 0x80, IP_ACTIVE_HIGH,IPT_CUSTOM ) PORT_CUSTOM_MEMBER(DEVICE_SELF, namcos22_state,alpine_motor_read, (void *)0) // steps are free
|
||||
|
||||
PORT_START("MCUP5B")
|
||||
PORT_BIT( 0x01, IP_ACTIVE_HIGH,IPT_CUSTOM ) PORT_CUSTOM_MEMBER(DEVICE_SELF, namcos22_state,alpine_motor_read, (void *)1) // steps are locked
|
||||
PORT_BIT( 0xfe, IP_ACTIVE_LOW, IPT_UNKNOWN )
|
||||
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_START1 ) // Decision / View Change
|
||||
PORT_BIT( 0x0020, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_16WAY // L Selection
|
||||
PORT_BIT( 0x0040, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT) PORT_16WAY // R Selection
|
||||
PORT_BIT( 0x0080, IP_ACTIVE_HIGH, IPT_CUSTOM ) PORT_CUSTOM_MEMBER(DEVICE_SELF, namcos22_state, alpine_motor_read, (void *)0) // steps are free
|
||||
PORT_BIT( 0x0100, IP_ACTIVE_HIGH, IPT_CUSTOM ) PORT_CUSTOM_MEMBER(DEVICE_SELF, namcos22_state, alpine_motor_read, (void *)1) // steps are locked
|
||||
PORT_BIT( 0xfe00, IP_ACTIVE_LOW, IPT_UNKNOWN )
|
||||
|
||||
PORT_START("ADC.0")
|
||||
PORT_BIT( 0xff, 0x80, IPT_AD_STICK_X ) PORT_SENSITIVITY(100) PORT_KEYDELTA(4) PORT_NAME("Steps Swing")
|
||||
PORT_BIT( 0x3ff, 0x200, IPT_AD_STICK_X ) PORT_MINMAX(0x080, 0x380) PORT_SENSITIVITY(100) PORT_KEYDELTA(16) PORT_NAME("Steps Swing")
|
||||
|
||||
PORT_START("ADC.1")
|
||||
PORT_BIT( 0xff, 0x80, IPT_AD_STICK_X ) PORT_SENSITIVITY(100) PORT_KEYDELTA(4) PORT_PLAYER(2) PORT_NAME("Steps Edge")
|
||||
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("DSW0")
|
||||
PORT_START("DSW")
|
||||
PORT_DIPUNKNOWN_DIPLOC( 0x0001, 0x0001, "SW4:1" )
|
||||
PORT_DIPUNKNOWN_DIPLOC( 0x0002, 0x0002, "SW4:2" )
|
||||
PORT_DIPUNKNOWN_DIPLOC( 0x0004, 0x0004, "SW4:3" )
|
||||
@ -3405,31 +3409,29 @@ static INPUT_PORTS_START( airco22 )
|
||||
PORT_DIPUNKNOWN_DIPLOC( 0x0080, 0x0080, "SW4:8" )
|
||||
PORT_BIT( 0xff00, IP_ACTIVE_LOW, IPT_UNUSED )
|
||||
|
||||
PORT_START("MCUP5A")
|
||||
PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_COIN1 )
|
||||
PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_UNKNOWN )
|
||||
PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_SERVICE1 )
|
||||
PORT_SERVICE( 0x08, IP_ACTIVE_LOW )
|
||||
PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_NAME("Missile Button")
|
||||
PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_NAME("Gun Trigger")
|
||||
PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_START1 ) // also view-change function
|
||||
PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_UNKNOWN )
|
||||
|
||||
PORT_START("MCUP5B")
|
||||
PORT_BIT( 0xff, IP_ACTIVE_LOW, IPT_UNKNOWN )
|
||||
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_BUTTON2 ) PORT_NAME("Missile Button")
|
||||
PORT_BIT( 0x0020, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_NAME("Gun Trigger")
|
||||
PORT_BIT( 0x0040, IP_ACTIVE_LOW, IPT_START1 ) // also view-change function
|
||||
PORT_BIT( 0x0080, IP_ACTIVE_LOW, IPT_UNKNOWN )
|
||||
PORT_BIT( 0xff00, IP_ACTIVE_LOW, IPT_UNKNOWN )
|
||||
|
||||
PORT_START("ADC.0")
|
||||
PORT_BIT( 0xff, 0x80, IPT_AD_STICK_X ) PORT_MINMAX(0x40, 0xc0) PORT_SENSITIVITY(100) PORT_KEYDELTA(3)
|
||||
PORT_BIT( 0x3ff, 0x200, IPT_AD_STICK_X ) PORT_MINMAX(0x100, 0x300) PORT_SENSITIVITY(100) PORT_KEYDELTA(12)
|
||||
|
||||
PORT_START("ADC.1")
|
||||
PORT_BIT( 0xff, 0x80, IPT_AD_STICK_Y ) PORT_MINMAX(0x40, 0xc0) PORT_SENSITIVITY(100) PORT_KEYDELTA(3)
|
||||
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( 0xff, 0x80, IPT_AD_STICK_Z ) PORT_MINMAX(0x40, 0xc0) PORT_SENSITIVITY(100) PORT_KEYDELTA(3) PORT_NAME("Throttle Stick")
|
||||
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
|
||||
|
||||
static INPUT_PORTS_START( cybrcycc )
|
||||
PORT_START("DSW0")
|
||||
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 ) )
|
||||
@ -3442,31 +3444,29 @@ static INPUT_PORTS_START( cybrcycc )
|
||||
PORT_DIPUNKNOWN_DIPLOC( 0x0080, 0x0080, "SW4:8" )
|
||||
PORT_BIT( 0xff00, IP_ACTIVE_LOW, IPT_UNUSED )
|
||||
|
||||
PORT_START("MCUP5A")
|
||||
PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_COIN1 )
|
||||
PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_UNKNOWN )
|
||||
PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_SERVICE1 )
|
||||
PORT_SERVICE( 0x08, IP_ACTIVE_LOW )
|
||||
PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_START1 ) // also view-change function
|
||||
PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_UNKNOWN )
|
||||
PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_UNKNOWN )
|
||||
PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_UNKNOWN )
|
||||
|
||||
PORT_START("MCUP5B")
|
||||
PORT_BIT( 0xff, IP_ACTIVE_LOW, IPT_UNKNOWN )
|
||||
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_START1 ) // also view-change function
|
||||
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_BIT( 0xff00, IP_ACTIVE_LOW, IPT_UNKNOWN )
|
||||
|
||||
PORT_START("ADC.0")
|
||||
PORT_BIT( 0xff, 0x80, IPT_PADDLE ) PORT_SENSITIVITY(100) PORT_KEYDELTA(10) PORT_NAME("Steering Wheel")
|
||||
PORT_BIT( 0x3ff, 0x200, IPT_PADDLE ) PORT_MINMAX(0x004, 0x3fc) PORT_SENSITIVITY(100) PORT_KEYDELTA(40) 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_BIT( 0x3ff, 0x000, IPT_PEDAL ) PORT_MINMAX(0x000, 0x300) PORT_SENSITIVITY(100) PORT_KEYDELTA(40) PORT_NAME("Gas Pedal")
|
||||
|
||||
PORT_START("ADC.2")
|
||||
PORT_BIT( 0xff, 0x00, IPT_PEDAL2 ) PORT_SENSITIVITY(100) PORT_KEYDELTA(10) PORT_NAME("Brake Pedal")
|
||||
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( dirtdash )
|
||||
PORT_START("DSW0")
|
||||
PORT_START("DSW")
|
||||
PORT_DIPUNKNOWN_DIPLOC( 0x0001, 0x0001, "SW4:1" )
|
||||
PORT_DIPUNKNOWN_DIPLOC( 0x0002, 0x0002, "SW4:2" )
|
||||
PORT_DIPUNKNOWN_DIPLOC( 0x0004, 0x0004, "SW4:3" )
|
||||
@ -3477,31 +3477,29 @@ static INPUT_PORTS_START( dirtdash )
|
||||
PORT_DIPUNKNOWN_DIPLOC( 0x0080, 0x0080, "SW4:8" )
|
||||
PORT_BIT( 0xff00, IP_ACTIVE_LOW, IPT_UNUSED )
|
||||
|
||||
PORT_START("MCUP5A")
|
||||
PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_COIN1 )
|
||||
PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_UNKNOWN )
|
||||
PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_SERVICE1 )
|
||||
PORT_SERVICE( 0x08, IP_ACTIVE_LOW )
|
||||
PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_BUTTON3 ) PORT_NAME("View Change")
|
||||
PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_NAME("Shift Up")
|
||||
PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_NAME("Shift Down")
|
||||
PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_BUTTON4 ) PORT_NAME("Motion-Stop")
|
||||
|
||||
PORT_START("MCUP5B")
|
||||
PORT_BIT( 0xff, IP_ACTIVE_LOW, IPT_UNKNOWN )
|
||||
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( 0xff, 0x80, IPT_PADDLE ) PORT_SENSITIVITY(100) PORT_KEYDELTA(3) PORT_NAME("Steering Wheel")
|
||||
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( 0xff, 0x00, IPT_PEDAL ) PORT_SENSITIVITY(100) PORT_KEYDELTA(10) PORT_NAME("Gas Pedal")
|
||||
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( 0xff, 0x00, IPT_PEDAL2 ) PORT_SENSITIVITY(100) PORT_KEYDELTA(10) PORT_NAME("Brake Pedal")
|
||||
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("DSW0")
|
||||
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 ) )
|
||||
@ -3514,31 +3512,29 @@ static INPUT_PORTS_START( tokyowar )
|
||||
PORT_DIPUNKNOWN_DIPLOC( 0x0080, 0x0080, "SW4:8" )
|
||||
PORT_BIT( 0xff00, IP_ACTIVE_LOW, IPT_UNUSED )
|
||||
|
||||
PORT_START("MCUP5A")
|
||||
PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_COIN1 )
|
||||
PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_UNKNOWN )
|
||||
PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_SERVICE1 )
|
||||
PORT_SERVICE( 0x08, IP_ACTIVE_LOW )
|
||||
PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_START1 ) // also view-change function
|
||||
PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_BUTTON5 ) PORT_NAME("Right Trigger")
|
||||
PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_BUTTON4 ) PORT_NAME("Left Trigger")
|
||||
PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_UNKNOWN )
|
||||
|
||||
PORT_START("MCUP5B")
|
||||
PORT_BIT( 0xff, IP_ACTIVE_LOW, IPT_UNKNOWN )
|
||||
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_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_BIT( 0xff00, IP_ACTIVE_LOW, IPT_UNKNOWN )
|
||||
|
||||
PORT_START("ADC.0")
|
||||
PORT_BIT( 0xff, 0x80, IPT_PADDLE ) PORT_SENSITIVITY(100) PORT_KEYDELTA(10) PORT_NAME("Steering Wheel")
|
||||
PORT_BIT( 0x3ff, 0x200, IPT_PADDLE ) PORT_MINMAX(0x100, 0x300) PORT_SENSITIVITY(100) PORT_KEYDELTA(20) PORT_NAME("Steering Wheel")
|
||||
|
||||
PORT_START("ADC.2")
|
||||
PORT_BIT( 0xff, 0x00, IPT_PEDAL ) PORT_SENSITIVITY(100) PORT_KEYDELTA(10) PORT_NAME("Gas Pedal")
|
||||
PORT_BIT( 0x3ff, 0x000, IPT_PEDAL ) PORT_MINMAX(0x000, 0x100) PORT_SENSITIVITY(100) PORT_KEYDELTA(20) PORT_NAME("Gas Pedal")
|
||||
|
||||
PORT_START("ADC.3")
|
||||
PORT_BIT( 0xff, 0x00, IPT_PEDAL2 ) PORT_SENSITIVITY(100) PORT_KEYDELTA(10) PORT_NAME("Brake Pedal")
|
||||
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("DSW0")
|
||||
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 ) )
|
||||
@ -3551,31 +3547,29 @@ static INPUT_PORTS_START( aquajet )
|
||||
PORT_DIPUNKNOWN_DIPLOC( 0x0080, 0x0080, "SW4:8" )
|
||||
PORT_BIT( 0xff00, IP_ACTIVE_LOW, IPT_UNUSED )
|
||||
|
||||
PORT_START("MCUP5A")
|
||||
PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_COIN1 )
|
||||
PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_UNKNOWN )
|
||||
PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_SERVICE1 )
|
||||
PORT_SERVICE( 0x08, IP_ACTIVE_LOW )
|
||||
PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_START1 )
|
||||
PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_UNKNOWN )
|
||||
PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_UNKNOWN )
|
||||
PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_UNKNOWN )
|
||||
|
||||
PORT_START("MCUP5B")
|
||||
PORT_BIT( 0xff, IP_ACTIVE_LOW, IPT_UNKNOWN )
|
||||
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_START1 )
|
||||
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_BIT( 0xff00, IP_ACTIVE_LOW, IPT_UNKNOWN )
|
||||
|
||||
PORT_START("ADC.0")
|
||||
PORT_BIT( 0xff, 0x7f, IPT_PADDLE ) PORT_SENSITIVITY(100) PORT_KEYDELTA(10) PORT_REVERSE
|
||||
PORT_BIT( 0x3ff, 0x1fc, IPT_PADDLE ) PORT_MINMAX(0x000, 0x3f8) PORT_SENSITIVITY(100) PORT_KEYDELTA(40) PORT_REVERSE
|
||||
|
||||
PORT_START("ADC.1")
|
||||
PORT_BIT( 0xff, 0x00, IPT_PEDAL ) PORT_MINMAX(0x00, 0x80) PORT_SENSITIVITY(100) PORT_KEYDELTA(10) PORT_REVERSE
|
||||
PORT_BIT( 0x3ff, 0x0e0, IPT_PEDAL ) PORT_MINMAX(0x0e0, 0x1fc) PORT_SENSITIVITY(100) PORT_KEYDELTA(40) PORT_REVERSE
|
||||
|
||||
PORT_START("ADC.2")
|
||||
PORT_BIT( 0xff, 0x7f, IPT_AD_STICK_Y ) PORT_SENSITIVITY(100) PORT_KEYDELTA(10) PORT_REVERSE
|
||||
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("DSW0")
|
||||
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 ) )
|
||||
@ -3588,7 +3582,7 @@ static INPUT_PORTS_START( adillor )
|
||||
PORT_DIPUNKNOWN_DIPLOC( 0x0080, 0x0080, "SW4:8" )
|
||||
PORT_BIT( 0xff00, IP_ACTIVE_LOW, IPT_UNUSED )
|
||||
|
||||
PORT_START("P1")
|
||||
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")
|
||||
@ -3597,29 +3591,27 @@ static INPUT_PORTS_START( adillor )
|
||||
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 )
|
||||
|
||||
PORT_START("MCUP5A")
|
||||
PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_COIN1 )
|
||||
PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_UNKNOWN )
|
||||
PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_SERVICE1 )
|
||||
PORT_SERVICE( 0x08, IP_ACTIVE_LOW )
|
||||
PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_UNKNOWN )
|
||||
PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_UNKNOWN )
|
||||
PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_UNKNOWN )
|
||||
PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_UNKNOWN )
|
||||
|
||||
PORT_START("MCUP5B")
|
||||
PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_START1 )
|
||||
PORT_BIT( 0xfe, IP_ACTIVE_LOW, IPT_UNKNOWN )
|
||||
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_UNKNOWN )
|
||||
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_BIT( 0x0100, IP_ACTIVE_LOW, IPT_START1 )
|
||||
PORT_BIT( 0xfe00, IP_ACTIVE_LOW, IPT_UNKNOWN )
|
||||
|
||||
PORT_START("TRACKX")
|
||||
PORT_BIT( 0xff, 0x80, IPT_AD_STICK_X ) PORT_MINMAX(0x01, 0xff) PORT_SENSITIVITY(100) PORT_KEYDELTA(20) PORT_NAME("Trackball X")
|
||||
PORT_BIT( 0xff, 0x80, IPT_AD_STICK_X ) PORT_MINMAX(0x01, 0xff) PORT_SENSITIVITY(100) PORT_KEYDELTA(8) PORT_NAME("Trackball X")
|
||||
|
||||
PORT_START("TRACKY")
|
||||
PORT_BIT( 0xff, 0x80, IPT_AD_STICK_Y ) PORT_MINMAX(0x01, 0xff) PORT_SENSITIVITY(100) PORT_KEYDELTA(20) PORT_NAME("Trackball Y")
|
||||
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("DSW0")
|
||||
PORT_START("DSW")
|
||||
PORT_DIPUNKNOWN_DIPLOC( 0x0001, 0x0001, "SW4:1" )
|
||||
PORT_DIPUNKNOWN_DIPLOC( 0x0002, 0x0002, "SW4:2" )
|
||||
PORT_DIPUNKNOWN_DIPLOC( 0x0004, 0x0004, "SW4:3" )
|
||||
@ -3630,32 +3622,30 @@ static INPUT_PORTS_START( propcycl )
|
||||
PORT_DIPUNKNOWN_DIPLOC( 0x0080, 0x0080, "SW4:8" )
|
||||
PORT_BIT( 0xff00, IP_ACTIVE_LOW, IPT_UNUSED )
|
||||
|
||||
PORT_START("MCUP5A")
|
||||
PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_COIN1 )
|
||||
PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_UNKNOWN )
|
||||
PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_SERVICE1 )
|
||||
PORT_SERVICE( 0x08, IP_ACTIVE_LOW )
|
||||
PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_UNKNOWN )
|
||||
PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_UNKNOWN )
|
||||
PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_UNKNOWN )
|
||||
PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_UNKNOWN )
|
||||
|
||||
PORT_START("MCUP5B")
|
||||
PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_START1 )
|
||||
PORT_BIT( 0xfe, IP_ACTIVE_LOW, IPT_UNKNOWN )
|
||||
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_UNKNOWN )
|
||||
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_BIT( 0x0100, IP_ACTIVE_LOW, IPT_START1 )
|
||||
PORT_BIT( 0xfe00, IP_ACTIVE_LOW, IPT_UNKNOWN )
|
||||
|
||||
PORT_START("ADC.0")
|
||||
PORT_BIT( 0xff, 0x7f, IPT_AD_STICK_X ) PORT_MINMAX(0x00, 0xfe) PORT_SENSITIVITY(100) PORT_KEYDELTA(10) PORT_REVERSE
|
||||
PORT_BIT( 0x3ff, 0x1ff, IPT_AD_STICK_X ) PORT_MINMAX(0x0bf, 0x33f) PORT_SENSITIVITY(100) PORT_KEYDELTA(40) PORT_REVERSE
|
||||
|
||||
PORT_START("ADC.1")
|
||||
PORT_BIT( 0xff, 0x7f, IPT_AD_STICK_Y ) PORT_MINMAX(0x00, 0xfe) PORT_SENSITIVITY(100) PORT_KEYDELTA(10)
|
||||
PORT_BIT( 0x3ff, 0x1ff, IPT_AD_STICK_Y ) PORT_MINMAX(0x0bf, 0x33f) PORT_SENSITIVITY(100) PORT_KEYDELTA(40)
|
||||
|
||||
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("DSW0")
|
||||
PORT_START("DSW")
|
||||
PORT_DIPUNKNOWN_DIPLOC( 0x0001, 0x0001, "SW4:1" )
|
||||
PORT_DIPUNKNOWN_DIPLOC( 0x0002, 0x0002, "SW4:2" )
|
||||
PORT_DIPUNKNOWN_DIPLOC( 0x0004, 0x0004, "SW4:3" )
|
||||
@ -3666,24 +3656,22 @@ static INPUT_PORTS_START( timecris )
|
||||
PORT_SERVICE_DIPLOC( 0x0080, IP_ACTIVE_LOW, "SW4:8")
|
||||
PORT_BIT( 0xff00, IP_ACTIVE_LOW, IPT_UNUSED )
|
||||
|
||||
PORT_START("MCUP5A")
|
||||
PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_COIN1 )
|
||||
PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_UNKNOWN )
|
||||
PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_SERVICE1 )
|
||||
PORT_SERVICE( 0x08, IP_ACTIVE_LOW )
|
||||
PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_NAME("Gun Trigger")
|
||||
PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_NAME("Foot Pedal")
|
||||
PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_UNKNOWN )
|
||||
PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_UNKNOWN )
|
||||
|
||||
PORT_START("MCUP5B")
|
||||
PORT_BIT( 0xff, IP_ACTIVE_LOW, IPT_UNKNOWN )
|
||||
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_BUTTON1 ) PORT_NAME("Gun Trigger")
|
||||
PORT_BIT( 0x0020, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_NAME("Foot Pedal")
|
||||
PORT_BIT( 0x0040, IP_ACTIVE_LOW, IPT_UNKNOWN )
|
||||
PORT_BIT( 0x0080, IP_ACTIVE_LOW, IPT_UNKNOWN )
|
||||
PORT_BIT( 0xff00, IP_ACTIVE_LOW, IPT_UNKNOWN )
|
||||
|
||||
PORT_START( "LIGHTX" ) // tuned for CRT
|
||||
PORT_BIT( 0xfff, 68+626/2, IPT_LIGHTGUN_X ) PORT_CROSSHAIR(X, 1.0, 0.0, 0) PORT_MINMAX(68, 68+626) PORT_SENSITIVITY(48) PORT_KEYDELTA(10)
|
||||
PORT_BIT( 0xffff, 68+626/2, IPT_LIGHTGUN_X ) PORT_CROSSHAIR(X, 1.0, 0.0, 0) PORT_MINMAX(68, 68+626) PORT_SENSITIVITY(48) PORT_KEYDELTA(10)
|
||||
|
||||
PORT_START( "LIGHTY" ) // tuned for CRT - can't shoot below the statusbar?
|
||||
PORT_BIT( 0xfff, 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_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)
|
||||
INPUT_PORTS_END
|
||||
|
||||
|
||||
@ -3764,8 +3752,10 @@ void namcos22_state::machine_reset()
|
||||
master_enable(false);
|
||||
slave_enable(false);
|
||||
m_dsp_irq_enabled = false;
|
||||
if (!m_is_ss22) m_iomcu->set_input_line(INPUT_LINE_RESET, ASSERT_LINE);
|
||||
|
||||
m_mcu->set_input_line(INPUT_LINE_RESET, ASSERT_LINE);
|
||||
if (!m_is_ss22)
|
||||
m_iomcu->set_input_line(INPUT_LINE_RESET, ASSERT_LINE);
|
||||
}
|
||||
|
||||
void namcos22_state::device_post_load()
|
||||
@ -5665,51 +5655,46 @@ void namcos22_state::install_141_speedup()
|
||||
|
||||
/*********************************************************************************************/
|
||||
|
||||
void namcos22_state::namcos22_init(int game_type)
|
||||
{
|
||||
m_gametype = game_type;
|
||||
}
|
||||
|
||||
void namcos22_state::init_ridgeraj()
|
||||
{
|
||||
namcos22_init(NAMCOS22_RIDGE_RACER);
|
||||
m_gametype = NAMCOS22_RIDGE_RACER;
|
||||
install_c74_speedup();
|
||||
}
|
||||
|
||||
void namcos22_state::init_ridger2j()
|
||||
{
|
||||
namcos22_init(NAMCOS22_RIDGE_RACER2);
|
||||
m_gametype = NAMCOS22_RIDGE_RACER2;
|
||||
install_c74_speedup();
|
||||
}
|
||||
|
||||
void namcos22_state::init_acedrvr()
|
||||
{
|
||||
namcos22_init(NAMCOS22_ACE_DRIVER);
|
||||
m_gametype = NAMCOS22_ACE_DRIVER;
|
||||
install_c74_speedup();
|
||||
}
|
||||
|
||||
void namcos22_state::init_victlap()
|
||||
{
|
||||
namcos22_init(NAMCOS22_VICTORY_LAP);
|
||||
m_gametype = NAMCOS22_VICTORY_LAP;
|
||||
install_c74_speedup();
|
||||
}
|
||||
|
||||
void namcos22_state::init_raveracw()
|
||||
{
|
||||
namcos22_init(NAMCOS22_RAVE_RACER);
|
||||
m_gametype = NAMCOS22_RAVE_RACER;
|
||||
install_c74_speedup();
|
||||
}
|
||||
|
||||
void namcos22_state::init_cybrcomm()
|
||||
{
|
||||
namcos22_init(NAMCOS22_CYBER_COMMANDO);
|
||||
m_gametype = NAMCOS22_CYBER_COMMANDO;
|
||||
install_c74_speedup();
|
||||
}
|
||||
|
||||
|
||||
void namcos22_state::init_alpiner()
|
||||
{
|
||||
namcos22_init(NAMCOS22_ALPINE_RACER);
|
||||
m_gametype = NAMCOS22_ALPINE_RACER;
|
||||
install_130_speedup();
|
||||
|
||||
m_motor_status = 2;
|
||||
@ -5717,7 +5702,7 @@ void namcos22_state::init_alpiner()
|
||||
|
||||
void namcos22_state::init_alpiner2()
|
||||
{
|
||||
namcos22_init(NAMCOS22_ALPINE_RACER_2);
|
||||
m_gametype = NAMCOS22_ALPINE_RACER_2;
|
||||
install_130_speedup();
|
||||
|
||||
m_motor_status = 2;
|
||||
@ -5725,7 +5710,7 @@ void namcos22_state::init_alpiner2()
|
||||
|
||||
void namcos22_state::init_alpinesa()
|
||||
{
|
||||
namcos22_init(NAMCOS22_ALPINE_SURFER);
|
||||
m_gametype = NAMCOS22_ALPINE_SURFER;
|
||||
install_141_speedup();
|
||||
|
||||
m_motor_status = 2;
|
||||
@ -5733,7 +5718,7 @@ void namcos22_state::init_alpinesa()
|
||||
|
||||
void namcos22_state::init_airco22()
|
||||
{
|
||||
namcos22_init(NAMCOS22_AIR_COMBAT22);
|
||||
m_gametype = NAMCOS22_AIR_COMBAT22;
|
||||
install_130_speedup(); // S22-BIOS ver1.20 namco all rights reserved 94/12/21
|
||||
}
|
||||
|
||||
@ -5757,43 +5742,43 @@ void namcos22_state::init_propcycl()
|
||||
//ROM[0x22296/4] &= 0xffff0000;
|
||||
//ROM[0x22296/4] |= 0x00004e75;
|
||||
|
||||
namcos22_init(NAMCOS22_PROP_CYCLE);
|
||||
m_gametype = NAMCOS22_PROP_CYCLE;
|
||||
install_141_speedup();
|
||||
}
|
||||
|
||||
void namcos22_state::init_cybrcyc()
|
||||
{
|
||||
namcos22_init(NAMCOS22_CYBER_CYCLES);
|
||||
m_gametype = NAMCOS22_CYBER_CYCLES;
|
||||
install_130_speedup();
|
||||
}
|
||||
|
||||
void namcos22_state::init_timecris()
|
||||
{
|
||||
namcos22_init(NAMCOS22_TIME_CRISIS);
|
||||
m_gametype = NAMCOS22_TIME_CRISIS;
|
||||
install_130_speedup();
|
||||
}
|
||||
|
||||
void namcos22_state::init_tokyowar()
|
||||
{
|
||||
namcos22_init(NAMCOS22_TOKYO_WARS);
|
||||
m_gametype = NAMCOS22_TOKYO_WARS;
|
||||
install_141_speedup();
|
||||
}
|
||||
|
||||
void namcos22_state::init_aquajet()
|
||||
{
|
||||
namcos22_init(NAMCOS22_AQUA_JET);
|
||||
m_gametype = NAMCOS22_AQUA_JET;
|
||||
install_141_speedup();
|
||||
}
|
||||
|
||||
void namcos22_state::init_adillor()
|
||||
{
|
||||
namcos22_init(NAMCOS22_ARMADILLO_RACING);
|
||||
m_gametype = NAMCOS22_ARMADILLO_RACING;
|
||||
install_141_speedup();
|
||||
}
|
||||
|
||||
void namcos22_state::init_dirtdash()
|
||||
{
|
||||
namcos22_init(NAMCOS22_DIRT_DASH);
|
||||
m_gametype = NAMCOS22_DIRT_DASH;
|
||||
install_141_speedup();
|
||||
}
|
||||
|
||||
|
@ -209,10 +209,14 @@ public:
|
||||
m_pc_pedal_interrupt(*this, "pc_p_int"),
|
||||
m_screen(*this, "screen"),
|
||||
m_adc_ports(*this, "ADC.%u", 0),
|
||||
m_p1(*this, "P1"),
|
||||
m_p2(*this, "P2"),
|
||||
m_mcup5a(*this, "MCUP5A"),
|
||||
m_mcup5b(*this, "MCUP5B"),
|
||||
m_dsw(*this, "DSW"),
|
||||
m_inputs(*this, "INPUTS"),
|
||||
m_custom(*this, "CUSTOM.%u", 0),
|
||||
m_pedal(*this, "PEDAL"),
|
||||
m_trackx(*this, "TRACKX"),
|
||||
m_tracky(*this, "TRACKY"),
|
||||
m_lightx(*this, "LIGHTX"),
|
||||
m_lighty(*this, "LIGHTY"),
|
||||
m_mcuout(*this, "mcuout%u", 0U),
|
||||
m_cpuled(*this, "cpuled%u", 0U)
|
||||
{ }
|
||||
@ -346,7 +350,7 @@ private:
|
||||
DECLARE_READ16_MEMBER(namcos22_portbit_r);
|
||||
DECLARE_WRITE16_MEMBER(namcos22_portbit_w);
|
||||
DECLARE_READ16_MEMBER(namcos22_dipswitch_r);
|
||||
DECLARE_READ32_MEMBER(namcos22_gun_r);
|
||||
DECLARE_READ16_MEMBER(namcos22_gun_r);
|
||||
DECLARE_WRITE16_MEMBER(namcos22_cpuleds_w);
|
||||
DECLARE_READ32_MEMBER(alpinesa_prot_r);
|
||||
DECLARE_WRITE32_MEMBER(alpinesa_prot_w);
|
||||
@ -431,7 +435,6 @@ private:
|
||||
void install_c74_speedup();
|
||||
void install_130_speedup();
|
||||
void install_141_speedup();
|
||||
void namcos22_init(int game_type);
|
||||
|
||||
TILE_GET_INFO_MEMBER(get_text_tile_info);
|
||||
DECLARE_MACHINE_START(adillor);
|
||||
@ -486,10 +489,14 @@ private:
|
||||
optional_device<timer_device> m_pc_pedal_interrupt;
|
||||
required_device<screen_device> m_screen;
|
||||
optional_ioport_array<8> m_adc_ports;
|
||||
optional_ioport m_p1;
|
||||
optional_ioport m_p2;
|
||||
optional_ioport m_mcup5a;
|
||||
optional_ioport m_mcup5b;
|
||||
required_ioport m_dsw;
|
||||
required_ioport m_inputs;
|
||||
optional_ioport_array<2> m_custom;
|
||||
optional_ioport m_pedal;
|
||||
optional_ioport m_trackx;
|
||||
optional_ioport m_tracky;
|
||||
optional_ioport m_lightx;
|
||||
optional_ioport m_lighty;
|
||||
output_finder<16> m_mcuout;
|
||||
output_finder<8> m_cpuled;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user