i'm tired

This commit is contained in:
Michaël Banaan Ananas 2014-09-23 17:56:41 +00:00
parent 76ef187c27
commit 808dc58272
11 changed files with 108 additions and 106 deletions

View File

@ -2796,7 +2796,7 @@ READ8_MEMBER(namcos22_state::mcu_port7_r)
READ8_MEMBER(namcos22_state::namcos22s_mcu_adc_r) READ8_MEMBER(namcos22_state::namcos22s_mcu_adc_r)
{ {
UINT16 adc = m_adc_ports[offset >> 1 & 7]->read_safe(0) << 2; UINT16 adc = m_adc_inp[offset >> 1 & 7]->read_safe(0) << 2;
return (offset & 1) ? adc >> 8 : adc; return (offset & 1) ? adc >> 8 : adc;
} }

View File

@ -1377,7 +1377,7 @@ public:
m_screen(*this, "screen"), m_screen(*this, "screen"),
m_palette(*this, "palette"), m_palette(*this, "palette"),
m_generic_paletteram_32(*this, "paletteram"), m_generic_paletteram_32(*this, "paletteram"),
m_adc_ports(*this, "ADC") m_adc_inp(*this, "ADC")
{ } { }
required_device<mips3_device> m_maincpu; required_device<mips3_device> m_maincpu;
@ -1402,7 +1402,7 @@ public:
required_device<screen_device> m_screen; required_device<screen_device> m_screen;
required_device<palette_device> m_palette; required_device<palette_device> m_palette;
required_shared_ptr<UINT32> m_generic_paletteram_32; required_shared_ptr<UINT32> m_generic_paletteram_32;
optional_ioport_array<4> m_adc_ports; optional_ioport_array<4> m_adc_inp;
c404_t m_c404; c404_t m_c404;
c361_t m_c361; c361_t m_c361;
@ -2962,7 +2962,7 @@ WRITE16_MEMBER(namcos23_state::iob_p6_w)
READ16_MEMBER(namcos23_state::iob_analog_r) READ16_MEMBER(namcos23_state::iob_analog_r)
{ {
return m_adc_ports[offset & 3]->read_safe(0); return m_adc_inp[offset & 3]->read_safe(0);
} }

View File

@ -688,10 +688,16 @@ READ16_MEMBER( segaorun_state::outrun_custom_io_r )
return m_i8255->read(space, offset & 3); return m_i8255->read(space, offset & 3);
case 0x10/2: case 0x10/2:
return m_in_ports[offset & 3]->read(); {
static const char *const sysports[] = { "SERVICE", "UNKNOWN", "COINAGE", "DSW" };
return ioport(sysports[offset & 3])->read();
}
case 0x30/2: case 0x30/2:
return m_adc_ports[m_adc_select]->read_safe(0x0010); {
static const char *const ports[] = { "ADC0", "ADC1", "ADC2", "ADC3", "ADC4", "ADC5", "ADC6", "ADC7" };
return ioport(ports[m_adc_select])->read_safe(0x0010);
}
case 0x60/2: case 0x60/2:
return watchdog_reset_r(space, 0); return watchdog_reset_r(space, 0);
@ -770,10 +776,16 @@ READ16_MEMBER( segaorun_state::shangon_custom_io_r )
case 0x1002/2: case 0x1002/2:
case 0x1004/2: case 0x1004/2:
case 0x1006/2: case 0x1006/2:
return m_in_ports[offset & 3]->read(); {
static const char *const sysports[] = { "SERVICE", "UNKNOWN", "COINAGE", "DSW" };
return ioport(sysports[offset & 3])->read();
}
case 0x3020/2: case 0x3020/2:
return m_adc_ports[m_adc_select]->read_safe(0x0010); {
static const char *const ports[] = { "ADC0", "ADC1", "ADC2", "ADC3" };
return ioport(ports[m_adc_select])->read_safe(0x0010);
}
default: default:
break; break;
@ -935,7 +947,7 @@ CUSTOM_INPUT_MEMBER(segaorun_state::bankmotor_pos_r)
static INPUT_PORTS_START( outrun_generic ) static INPUT_PORTS_START( outrun_generic )
PORT_START("IN.0") PORT_START("SERVICE")
PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_UNKNOWN ) PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_UNKNOWN )
PORT_SERVICE_NO_TOGGLE( 0x02, IP_ACTIVE_LOW ) PORT_SERVICE_NO_TOGGLE( 0x02, IP_ACTIVE_LOW )
PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_SERVICE1 ) PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_SERVICE1 )
@ -945,13 +957,13 @@ static INPUT_PORTS_START( outrun_generic )
PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_COIN1 ) PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_COIN1 )
PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_COIN2 ) PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_COIN2 )
PORT_START("IN.1") PORT_START("UNKNOWN")
PORT_BIT( 0xff, IP_ACTIVE_LOW, IPT_UNKNOWN ) PORT_BIT( 0xff, IP_ACTIVE_LOW, IPT_UNKNOWN )
PORT_START("IN.2") PORT_START("COINAGE")
SEGA_COINAGE_LOC(SWA) SEGA_COINAGE_LOC(SWA)
PORT_START("IN.3") PORT_START("DSW")
PORT_DIPUNUSED_DIPLOC( 0x01, IP_ACTIVE_LOW, "SWB:1" ) PORT_DIPUNUSED_DIPLOC( 0x01, IP_ACTIVE_LOW, "SWB:1" )
PORT_DIPUNUSED_DIPLOC( 0x02, IP_ACTIVE_LOW, "SWB:2" ) PORT_DIPUNUSED_DIPLOC( 0x02, IP_ACTIVE_LOW, "SWB:2" )
PORT_DIPNAME( 0x04, 0x00, DEF_STR( Demo_Sounds ) ) PORT_DIPLOCATION("SWB:3") PORT_DIPNAME( 0x04, 0x00, DEF_STR( Demo_Sounds ) ) PORT_DIPLOCATION("SWB:3")
@ -969,16 +981,16 @@ static INPUT_PORTS_START( outrun_generic )
PORT_DIPSETTING( 0x40, DEF_STR( Hard ) ) PORT_DIPSETTING( 0x40, DEF_STR( Hard ) )
PORT_DIPSETTING( 0x00, DEF_STR( Hardest ) ) PORT_DIPSETTING( 0x00, DEF_STR( Hardest ) )
PORT_START("ADC.0") // steering PORT_START("ADC0") // steering
PORT_BIT( 0xff, 0x80, IPT_PADDLE ) PORT_MINMAX(0x20,0xe0) PORT_SENSITIVITY(100) PORT_KEYDELTA(4) PORT_BIT( 0xff, 0x80, IPT_PADDLE ) PORT_MINMAX(0x20,0xe0) PORT_SENSITIVITY(100) PORT_KEYDELTA(4)
PORT_START("ADC.1") // gas pedal PORT_START("ADC1") // gas pedal
PORT_BIT( 0xff, 0x00, IPT_PEDAL ) PORT_SENSITIVITY(100) PORT_KEYDELTA(20) PORT_BIT( 0xff, 0x00, IPT_PEDAL ) PORT_SENSITIVITY(100) PORT_KEYDELTA(20)
PORT_START("ADC.2") // brake PORT_START("ADC2") // brake
PORT_BIT( 0xff, 0x00, IPT_PEDAL2 ) PORT_SENSITIVITY(100) PORT_KEYDELTA(40) PORT_BIT( 0xff, 0x00, IPT_PEDAL2 ) PORT_SENSITIVITY(100) PORT_KEYDELTA(40)
PORT_START("ADC.3") PORT_START("ADC3")
PORT_BIT( 0xff, IP_ACTIVE_HIGH, IPT_SPECIAL ) PORT_CUSTOM_MEMBER(DEVICE_SELF, segaorun_state, bankmotor_pos_r, NULL) PORT_BIT( 0xff, IP_ACTIVE_HIGH, IPT_SPECIAL ) PORT_CUSTOM_MEMBER(DEVICE_SELF, segaorun_state, bankmotor_pos_r, NULL)
INPUT_PORTS_END INPUT_PORTS_END
@ -991,7 +1003,7 @@ INPUT_PORTS_END
static INPUT_PORTS_START( outrun ) static INPUT_PORTS_START( outrun )
PORT_INCLUDE( outrun_generic ) PORT_INCLUDE( outrun_generic )
PORT_MODIFY("IN.3") PORT_MODIFY("DSW")
PORT_DIPNAME( 0x03, 0x01, DEF_STR( Cabinet ) ) PORT_DIPLOCATION("SWB:1,2") PORT_DIPNAME( 0x03, 0x01, DEF_STR( Cabinet ) ) PORT_DIPLOCATION("SWB:1,2")
PORT_DIPSETTING( 0x03, "Moving" ) PORT_DIPSETTING( 0x03, "Moving" )
PORT_DIPSETTING( 0x02, "Up Cockpit" ) PORT_DIPSETTING( 0x02, "Up Cockpit" )
@ -1003,7 +1015,7 @@ INPUT_PORTS_END
static INPUT_PORTS_START( outrundx ) static INPUT_PORTS_START( outrundx )
PORT_INCLUDE( outrun_generic ) PORT_INCLUDE( outrun_generic )
PORT_MODIFY("IN.3") PORT_MODIFY("DSW")
PORT_DIPNAME( 0x01, 0x01, DEF_STR( Cabinet ) ) PORT_DIPLOCATION("SWB:1") PORT_DIPNAME( 0x01, 0x01, DEF_STR( Cabinet ) ) PORT_DIPLOCATION("SWB:1")
PORT_DIPSETTING( 0x00, "Not Moving" ) PORT_DIPSETTING( 0x00, "Not Moving" )
PORT_DIPSETTING( 0x01, "Moving" ) PORT_DIPSETTING( 0x01, "Moving" )
@ -1020,10 +1032,10 @@ INPUT_PORTS_END
static INPUT_PORTS_START( toutrun ) static INPUT_PORTS_START( toutrun )
PORT_INCLUDE( outrun_generic ) PORT_INCLUDE( outrun_generic )
PORT_MODIFY("IN.0") PORT_MODIFY("SERVICE")
PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_BUTTON4 ) PORT_NAME("Turbo") PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_BUTTON4 ) PORT_NAME("Turbo")
PORT_MODIFY("IN.3") PORT_MODIFY("DSW")
PORT_DIPNAME( 0x03, 0x01, DEF_STR( Cabinet ) ) PORT_DIPLOCATION("SWB:1,2") PORT_DIPNAME( 0x03, 0x01, DEF_STR( Cabinet ) ) PORT_DIPLOCATION("SWB:1,2")
PORT_DIPSETTING( 0x03, "Moving" ) PORT_DIPSETTING( 0x03, "Moving" )
PORT_DIPSETTING( 0x02, "Cockpit Conversion" ) PORT_DIPSETTING( 0x02, "Cockpit Conversion" )
@ -1046,7 +1058,7 @@ INPUT_PORTS_END
static INPUT_PORTS_START( toutrunm ) static INPUT_PORTS_START( toutrunm )
PORT_INCLUDE( toutrun ) PORT_INCLUDE( toutrun )
PORT_MODIFY("IN.3") PORT_MODIFY("DSW")
PORT_DIPNAME( 0x03, 0x03, DEF_STR( Cabinet ) ) PORT_DIPLOCATION("SWB:1,2") PORT_DIPNAME( 0x03, 0x03, DEF_STR( Cabinet ) ) PORT_DIPLOCATION("SWB:1,2")
PORT_DIPSETTING( 0x03, "Moving" ) PORT_DIPSETTING( 0x03, "Moving" )
// PORT_DIPSETTING( 0x02, DEF_STR( Unused ) ) // PORT_DIPSETTING( 0x02, DEF_STR( Unused ) )
@ -1063,7 +1075,7 @@ INPUT_PORTS_END
static INPUT_PORTS_START( toutrunc ) static INPUT_PORTS_START( toutrunc )
PORT_INCLUDE( toutrun ) PORT_INCLUDE( toutrun )
PORT_MODIFY("IN.3") PORT_MODIFY("DSW")
PORT_DIPNAME( 0x03, 0x00, DEF_STR( Cabinet ) ) PORT_DIPLOCATION("SWB:1,2") PORT_DIPNAME( 0x03, 0x00, DEF_STR( Cabinet ) ) PORT_DIPLOCATION("SWB:1,2")
// PORT_DIPSETTING( 0x03, DEF_STR( Unused ) ) // PORT_DIPSETTING( 0x03, DEF_STR( Unused ) )
// PORT_DIPSETTING( 0x02, DEF_STR( Unused ) ) // PORT_DIPSETTING( 0x02, DEF_STR( Unused ) )
@ -1078,10 +1090,10 @@ INPUT_PORTS_END
static INPUT_PORTS_START( shangon ) static INPUT_PORTS_START( shangon )
PORT_INCLUDE( outrun_generic ) PORT_INCLUDE( outrun_generic )
PORT_MODIFY("IN.0") PORT_MODIFY("SERVICE")
PORT_BIT( 0xff, IP_ACTIVE_LOW, IPT_UNKNOWN ) PORT_BIT( 0xff, IP_ACTIVE_LOW, IPT_UNKNOWN )
PORT_MODIFY("IN.1") PORT_MODIFY("UNKNOWN")
PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_COIN1 ) PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_COIN1 )
PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_COIN2 ) PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_COIN2 )
PORT_SERVICE_NO_TOGGLE( 0x04, IP_ACTIVE_LOW ) PORT_SERVICE_NO_TOGGLE( 0x04, IP_ACTIVE_LOW )
@ -1091,7 +1103,7 @@ static INPUT_PORTS_START( shangon )
PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_UNUSED ) PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_UNUSED )
PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_UNUSED ) PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_UNUSED )
PORT_MODIFY("IN.3") PORT_MODIFY("DSW")
PORT_DIPNAME( 0x01, 0x00, DEF_STR( Demo_Sounds ) ) PORT_DIPLOCATION("SWB:1") PORT_DIPNAME( 0x01, 0x00, DEF_STR( Demo_Sounds ) ) PORT_DIPLOCATION("SWB:1")
PORT_DIPSETTING( 0x01, DEF_STR( Off ) ) PORT_DIPSETTING( 0x01, DEF_STR( Off ) )
PORT_DIPSETTING( 0x00, DEF_STR( On ) ) PORT_DIPSETTING( 0x00, DEF_STR( On ) )
@ -1109,10 +1121,10 @@ static INPUT_PORTS_START( shangon )
PORT_DIPUNUSED_DIPLOC( 0x40, IP_ACTIVE_LOW, "SWB:7" ) PORT_DIPUNUSED_DIPLOC( 0x40, IP_ACTIVE_LOW, "SWB:7" )
PORT_DIPUNUSED_DIPLOC( 0x80, IP_ACTIVE_LOW, "SWB:8" ) PORT_DIPUNUSED_DIPLOC( 0x80, IP_ACTIVE_LOW, "SWB:8" )
PORT_MODIFY("ADC.0") // steering PORT_MODIFY("ADC0") // steering
PORT_BIT( 0xff, 0x80, IPT_PADDLE ) PORT_MINMAX(0x20,0xe0) PORT_SENSITIVITY(100) PORT_KEYDELTA(4) PORT_REVERSE PORT_BIT( 0xff, 0x80, IPT_PADDLE ) PORT_MINMAX(0x20,0xe0) PORT_SENSITIVITY(100) PORT_KEYDELTA(4) PORT_REVERSE
PORT_MODIFY("ADC.3") PORT_MODIFY("ADC3")
PORT_BIT( 0xff, IP_ACTIVE_HIGH, IPT_UNUSED ) PORT_BIT( 0xff, IP_ACTIVE_HIGH, IPT_UNUSED )
INPUT_PORTS_END INPUT_PORTS_END

View File

@ -108,8 +108,9 @@ READ16_MEMBER( segaybd_state::analog_r )
WRITE16_MEMBER( segaybd_state::analog_w ) WRITE16_MEMBER( segaybd_state::analog_w )
{ {
static const char *const ports[] = { "ADC0", "ADC1", "ADC2", "ADC3", "ADC4", "ADC5", "ADC6" };
int selected = ((offset & 3) == 3) ? (3 + (m_misc_io_data[0x08/2] & 3)) : (offset & 3); int selected = ((offset & 3) == 3) ? (3 + (m_misc_io_data[0x08/2] & 3)) : (offset & 3);
m_analog_data[offset & 3] = m_adc_ports[selected]->read_safe(0xff); m_analog_data[offset & 3] = ioport(ports[selected])->read_safe(0xff);
} }
@ -119,6 +120,7 @@ WRITE16_MEMBER( segaybd_state::analog_w )
READ16_MEMBER( segaybd_state::io_chip_r ) READ16_MEMBER( segaybd_state::io_chip_r )
{ {
static const char *const portnames[] = { "P1", "GENERAL", "PORTC", "PORTD", "PORTE", "DSW", "COINAGE", "PORTH" };
offset &= 0x1f/2; offset &= 0x1f/2;
switch (offset) switch (offset)
@ -137,7 +139,7 @@ READ16_MEMBER( segaybd_state::io_chip_r )
return m_misc_io_data[offset]; return m_misc_io_data[offset];
// otherwise, return an input port // otherwise, return an input port
return m_in_ports[offset]->read(); return ioport(portnames[offset])->read();
// 'SEGA' protection // 'SEGA' protection
case 0x10/2: case 0x10/2:
@ -816,10 +818,10 @@ ADDRESS_MAP_END
//************************************************************************** //**************************************************************************
static INPUT_PORTS_START( yboard_generic ) static INPUT_PORTS_START( yboard_generic )
PORT_START("IN.0") PORT_START("P1")
PORT_BIT( 0xff, IP_ACTIVE_LOW, IPT_UNKNOWN ) PORT_BIT( 0xff, IP_ACTIVE_LOW, IPT_UNKNOWN )
PORT_START("IN.1") PORT_START("GENERAL")
PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_UNKNOWN ) // afterburner (gloc) PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_UNKNOWN ) // afterburner (gloc)
PORT_SERVICE_NO_TOGGLE( 0x02, IP_ACTIVE_LOW ) PORT_SERVICE_NO_TOGGLE( 0x02, IP_ACTIVE_LOW )
PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_SERVICE1 ) PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_SERVICE1 )
@ -829,16 +831,16 @@ static INPUT_PORTS_START( yboard_generic )
PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_COIN1 ) PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_COIN1 )
PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_COIN2 ) PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_COIN2 )
PORT_START("IN.2") PORT_START("PORTC")
PORT_BIT( 0xff, IP_ACTIVE_LOW, IPT_UNUSED ) PORT_BIT( 0xff, IP_ACTIVE_LOW, IPT_UNUSED )
PORT_START("IN.3") PORT_START("PORTD")
PORT_BIT( 0xff, IP_ACTIVE_LOW, IPT_UNUSED ) PORT_BIT( 0xff, IP_ACTIVE_LOW, IPT_UNUSED )
PORT_START("IN.4") PORT_START("PORTE")
PORT_BIT( 0xff, IP_ACTIVE_LOW, IPT_UNUSED ) PORT_BIT( 0xff, IP_ACTIVE_LOW, IPT_UNUSED )
PORT_START("IN.5") PORT_START("DSW")
PORT_DIPUNUSED_DIPLOC( 0x01, IP_ACTIVE_LOW, "SWB:1" ) PORT_DIPUNUSED_DIPLOC( 0x01, IP_ACTIVE_LOW, "SWB:1" )
PORT_DIPUNUSED_DIPLOC( 0x02, IP_ACTIVE_LOW, "SWB:2" ) PORT_DIPUNUSED_DIPLOC( 0x02, IP_ACTIVE_LOW, "SWB:2" )
PORT_DIPUNUSED_DIPLOC( 0x04, IP_ACTIVE_LOW, "SWB:3" ) PORT_DIPUNUSED_DIPLOC( 0x04, IP_ACTIVE_LOW, "SWB:3" )
@ -848,10 +850,10 @@ static INPUT_PORTS_START( yboard_generic )
PORT_DIPUNUSED_DIPLOC( 0x40, IP_ACTIVE_LOW, "SWB:7" ) PORT_DIPUNUSED_DIPLOC( 0x40, IP_ACTIVE_LOW, "SWB:7" )
PORT_DIPUNUSED_DIPLOC( 0x80, IP_ACTIVE_LOW, "SWB:8" ) PORT_DIPUNUSED_DIPLOC( 0x80, IP_ACTIVE_LOW, "SWB:8" )
PORT_START("IN.6") PORT_START("COINAGE")
SEGA_COINAGE_LOC(SWA) SEGA_COINAGE_LOC(SWA)
PORT_START("IN.7") PORT_START("PORTH")
PORT_BIT( 0xff, IP_ACTIVE_LOW, IPT_UNUSED ) PORT_BIT( 0xff, IP_ACTIVE_LOW, IPT_UNUSED )
INPUT_PORTS_END INPUT_PORTS_END
@ -864,11 +866,11 @@ INPUT_PORTS_END
static INPUT_PORTS_START( gforce2 ) static INPUT_PORTS_START( gforce2 )
PORT_INCLUDE( yboard_generic ) PORT_INCLUDE( yboard_generic )
PORT_MODIFY("IN.1") PORT_MODIFY("GENERAL")
PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_NAME("Shoot") PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_NAME("Shoot")
PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_NAME("Missile") PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_NAME("Missile")
PORT_MODIFY("IN.5") PORT_MODIFY("DSW")
PORT_DIPNAME( 0x01, 0x00, DEF_STR( Demo_Sounds ) ) PORT_DIPLOCATION("SWB:1") PORT_DIPNAME( 0x01, 0x00, DEF_STR( Demo_Sounds ) ) PORT_DIPLOCATION("SWB:1")
PORT_DIPSETTING( 0x01, DEF_STR( Off ) ) PORT_DIPSETTING( 0x01, DEF_STR( Off ) )
PORT_DIPSETTING( 0x00, DEF_STR( On ) ) PORT_DIPSETTING( 0x00, DEF_STR( On ) )
@ -891,13 +893,13 @@ static INPUT_PORTS_START( gforce2 )
PORT_DIPSETTING( 0x40, DEF_STR( Upright ) ) PORT_DIPSETTING( 0x40, DEF_STR( Upright ) )
PORT_DIPSETTING( 0x00, "City" ) PORT_DIPSETTING( 0x00, "City" )
PORT_START("ADC.0") // stick X PORT_START("ADC0") // stick X
PORT_BIT( 0xff, 0x80, IPT_AD_STICK_X ) PORT_MINMAX(0x01,0xff) PORT_SENSITIVITY(100) PORT_KEYDELTA(4) PORT_BIT( 0xff, 0x80, IPT_AD_STICK_X ) PORT_MINMAX(0x01,0xff) PORT_SENSITIVITY(100) PORT_KEYDELTA(4)
PORT_START("ADC.1") // stick Y PORT_START("ADC1") // stick Y
PORT_BIT( 0xff, 0x80, IPT_AD_STICK_Y ) PORT_MINMAX(0x01,0xff) PORT_SENSITIVITY(100) PORT_KEYDELTA(4) PORT_REVERSE PORT_BIT( 0xff, 0x80, IPT_AD_STICK_Y ) PORT_MINMAX(0x01,0xff) PORT_SENSITIVITY(100) PORT_KEYDELTA(4) PORT_REVERSE
PORT_START("ADC.2") // throttle PORT_START("ADC2") // throttle
PORT_BIT( 0xff, 0x80, IPT_AD_STICK_Z ) PORT_MINMAX(0x01,0xff) PORT_SENSITIVITY(100) PORT_KEYDELTA(79) PORT_BIT( 0xff, 0x80, IPT_AD_STICK_Z ) PORT_MINMAX(0x01,0xff) PORT_SENSITIVITY(100) PORT_KEYDELTA(79)
INPUT_PORTS_END INPUT_PORTS_END
@ -905,12 +907,12 @@ INPUT_PORTS_END
static INPUT_PORTS_START( gloc ) static INPUT_PORTS_START( gloc )
PORT_INCLUDE( yboard_generic ) PORT_INCLUDE( yboard_generic )
PORT_MODIFY("IN.1") PORT_MODIFY("GENERAL")
PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_BUTTON3 ) PORT_NAME("After Burner") PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_BUTTON3 ) PORT_NAME("After Burner")
PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_NAME("Vulcan") PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_NAME("Vulcan")
PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_NAME("Missile") PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_NAME("Missile")
PORT_MODIFY("IN.5") PORT_MODIFY("DSW")
PORT_DIPNAME( 0x03, 0x03, DEF_STR( Difficulty ) ) PORT_DIPLOCATION("SWB:1,2") PORT_DIPNAME( 0x03, 0x03, DEF_STR( Difficulty ) ) PORT_DIPLOCATION("SWB:1,2")
PORT_DIPSETTING( 0x02, DEF_STR( Easy ) ) PORT_DIPSETTING( 0x02, DEF_STR( Easy ) )
PORT_DIPSETTING( 0x03, DEF_STR( Normal ) ) PORT_DIPSETTING( 0x03, DEF_STR( Normal ) )
@ -933,13 +935,13 @@ static INPUT_PORTS_START( gloc )
PORT_DIPSETTING( 0x80, "3 to Start, 2 to Continue" ) PORT_DIPSETTING( 0x80, "3 to Start, 2 to Continue" )
PORT_DIPSETTING( 0x00, "4 to Start, 3 to Continue" ) PORT_DIPSETTING( 0x00, "4 to Start, 3 to Continue" )
PORT_START("ADC.3") // stick Y PORT_START("ADC3") // stick Y
PORT_BIT( 0xff, 0x80, IPT_AD_STICK_Y ) PORT_MINMAX(0x40,0xc0) PORT_SENSITIVITY(100) PORT_KEYDELTA(4) PORT_REVERSE PORT_BIT( 0xff, 0x80, IPT_AD_STICK_Y ) PORT_MINMAX(0x40,0xc0) PORT_SENSITIVITY(100) PORT_KEYDELTA(4) PORT_REVERSE
PORT_START("ADC.4") // throttle PORT_START("ADC4") // throttle
PORT_BIT( 0xff, 0x80, IPT_AD_STICK_Z ) PORT_SENSITIVITY(100) PORT_KEYDELTA(79) PORT_BIT( 0xff, 0x80, IPT_AD_STICK_Z ) PORT_SENSITIVITY(100) PORT_KEYDELTA(79)
PORT_START("ADC.5") // stick X PORT_START("ADC5") // stick X
PORT_BIT( 0xff, 0x80, IPT_AD_STICK_X ) PORT_MINMAX(0x20,0xe0) PORT_SENSITIVITY(100) PORT_KEYDELTA(4) PORT_BIT( 0xff, 0x80, IPT_AD_STICK_X ) PORT_MINMAX(0x20,0xe0) PORT_SENSITIVITY(100) PORT_KEYDELTA(4)
INPUT_PORTS_END INPUT_PORTS_END
@ -947,12 +949,12 @@ INPUT_PORTS_END
static INPUT_PORTS_START( glocr360 ) static INPUT_PORTS_START( glocr360 )
PORT_INCLUDE( yboard_generic ) PORT_INCLUDE( yboard_generic )
PORT_MODIFY("IN.1") PORT_MODIFY("GENERAL")
PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_BUTTON3 ) PORT_NAME("After Burner") PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_BUTTON3 ) PORT_NAME("After Burner")
PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_NAME("Vulcan") PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_NAME("Vulcan")
PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_NAME("Missile") PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_NAME("Missile")
PORT_MODIFY("IN.5") PORT_MODIFY("DSW")
PORT_DIPNAME( 0x03, 0x03, "Game Type" ) PORT_DIPLOCATION("SWB:1,2") PORT_DIPNAME( 0x03, 0x03, "Game Type" ) PORT_DIPLOCATION("SWB:1,2")
PORT_DIPSETTING( 0x02, "Fighting Only" ) PORT_DIPSETTING( 0x02, "Fighting Only" )
PORT_DIPSETTING( 0x03, "Fight/Experience" ) PORT_DIPSETTING( 0x03, "Fight/Experience" )
@ -982,7 +984,7 @@ static INPUT_PORTS_START( glocr360 )
// PORT_DIPSETTING( 0x50, "1" ) // PORT_DIPSETTING( 0x50, "1" )
// PORT_DIPSETTING( 0x60, "1" ) // PORT_DIPSETTING( 0x60, "1" )
PORT_MODIFY("IN.6") PORT_MODIFY("COINAGE")
PORT_DIPNAME( 0x0f, 0x0f, DEF_STR( Coin_A ) ) PORT_DIPLOCATION("SWA:1,2,3,4") PORT_DIPNAME( 0x0f, 0x0f, DEF_STR( Coin_A ) ) PORT_DIPLOCATION("SWA:1,2,3,4")
// PORT_DIPSETTING( 0x07, DEF_STR( 1C_1C ) ) // PORT_DIPSETTING( 0x07, DEF_STR( 1C_1C ) )
// PORT_DIPSETTING( 0x05, DEF_STR( 1C_1C ) ) // PORT_DIPSETTING( 0x05, DEF_STR( 1C_1C ) )
@ -1018,16 +1020,16 @@ static INPUT_PORTS_START( glocr360 )
PORT_DIPSETTING( 0x80, DEF_STR( 1C_8C ) ) PORT_DIPSETTING( 0x80, DEF_STR( 1C_8C ) )
PORT_DIPSETTING( 0x00, "Free Play (if Coin A too) or 1/1" ) PORT_DIPSETTING( 0x00, "Free Play (if Coin A too) or 1/1" )
PORT_START("ADC.0") // moving pitch PORT_START("ADC0") // moving pitch
PORT_BIT( 0xff, 0x7f, IPT_AD_STICK_X ) PORT_SENSITIVITY(100) PORT_KEYDELTA(4) PORT_PLAYER(2) PORT_BIT( 0xff, 0x7f, IPT_AD_STICK_X ) PORT_SENSITIVITY(100) PORT_KEYDELTA(4) PORT_PLAYER(2)
PORT_START("ADC.2") // moving roll PORT_START("ADC2") // moving roll
PORT_BIT( 0xff, 0x7f, IPT_AD_STICK_X ) PORT_SENSITIVITY(100) PORT_KEYDELTA(4) PORT_PLAYER(3) PORT_BIT( 0xff, 0x7f, IPT_AD_STICK_X ) PORT_SENSITIVITY(100) PORT_KEYDELTA(4) PORT_PLAYER(3)
PORT_START("ADC.3") // stick Y PORT_START("ADC3") // stick Y
PORT_BIT( 0xff, 0x7f, IPT_AD_STICK_Y ) PORT_SENSITIVITY(100) PORT_KEYDELTA(4) PORT_REVERSE PORT_BIT( 0xff, 0x7f, IPT_AD_STICK_Y ) PORT_SENSITIVITY(100) PORT_KEYDELTA(4) PORT_REVERSE
PORT_START("ADC.5") // stick X PORT_START("ADC5") // stick X
PORT_BIT( 0xff, 0x7f, IPT_AD_STICK_X ) PORT_SENSITIVITY(100) PORT_KEYDELTA(4) PORT_BIT( 0xff, 0x7f, IPT_AD_STICK_X ) PORT_SENSITIVITY(100) PORT_KEYDELTA(4)
INPUT_PORTS_END INPUT_PORTS_END
@ -1035,10 +1037,10 @@ INPUT_PORTS_END
static INPUT_PORTS_START( pdrift ) static INPUT_PORTS_START( pdrift )
PORT_INCLUDE( yboard_generic ) PORT_INCLUDE( yboard_generic )
PORT_MODIFY("IN.1") PORT_MODIFY("GENERAL")
PORT_BIT( 0x20, IP_ACTIVE_HIGH, IPT_BUTTON1 ) PORT_NAME("Gear Shift") PORT_CODE(KEYCODE_SPACE) PORT_TOGGLE PORT_BIT( 0x20, IP_ACTIVE_HIGH, IPT_BUTTON1 ) PORT_NAME("Gear Shift") PORT_CODE(KEYCODE_SPACE) PORT_TOGGLE
PORT_MODIFY("IN.5") PORT_MODIFY("DSW")
PORT_DIPNAME( 0x03, 0x02, DEF_STR( Cabinet ) ) PORT_DIPLOCATION("SWB:1,2") PORT_DIPNAME( 0x03, 0x02, DEF_STR( Cabinet ) ) PORT_DIPLOCATION("SWB:1,2")
PORT_DIPSETTING( 0x03, "Moving" ) PORT_DIPSETTING( 0x03, "Moving" )
PORT_DIPSETTING( 0x02, "Upright/Sit Down" ) PORT_DIPSETTING( 0x02, "Upright/Sit Down" )
@ -1061,13 +1063,13 @@ static INPUT_PORTS_START( pdrift )
PORT_DIPSETTING( 0x40, DEF_STR( Hard ) ) PORT_DIPSETTING( 0x40, DEF_STR( Hard ) )
PORT_DIPSETTING( 0x00, DEF_STR( Hardest ) ) PORT_DIPSETTING( 0x00, DEF_STR( Hardest ) )
PORT_START("ADC.3") // brake PORT_START("ADC3") // brake
PORT_BIT( 0xff, 0x00, IPT_PEDAL2 ) PORT_SENSITIVITY(100) PORT_KEYDELTA(40) PORT_BIT( 0xff, 0x00, IPT_PEDAL2 ) PORT_SENSITIVITY(100) PORT_KEYDELTA(40)
PORT_START("ADC.4") // gas pedal PORT_START("ADC4") // gas pedal
PORT_BIT( 0xff, 0x00, IPT_PEDAL ) PORT_SENSITIVITY(100) PORT_KEYDELTA(20) PORT_BIT( 0xff, 0x00, IPT_PEDAL ) PORT_SENSITIVITY(100) PORT_KEYDELTA(20)
PORT_START("ADC.5") // steering PORT_START("ADC5") // steering
PORT_BIT( 0xff, 0x80, IPT_PADDLE ) PORT_MINMAX(0x20,0xe0) PORT_SENSITIVITY(100) PORT_KEYDELTA(4) PORT_BIT( 0xff, 0x80, IPT_PADDLE ) PORT_MINMAX(0x20,0xe0) PORT_SENSITIVITY(100) PORT_KEYDELTA(4)
INPUT_PORTS_END INPUT_PORTS_END
@ -1075,7 +1077,7 @@ INPUT_PORTS_END
static INPUT_PORTS_START( pdrifte ) static INPUT_PORTS_START( pdrifte )
PORT_INCLUDE( pdrift ) PORT_INCLUDE( pdrift )
PORT_MODIFY("IN.5") PORT_MODIFY("DSW")
PORT_DIPNAME( 0x03, 0x02, DEF_STR( Cabinet ) ) PORT_DIPLOCATION("SWB:1,2") PORT_DIPNAME( 0x03, 0x02, DEF_STR( Cabinet ) ) PORT_DIPLOCATION("SWB:1,2")
PORT_DIPSETTING( 0x03, "Moving" ) PORT_DIPSETTING( 0x03, "Moving" )
PORT_DIPSETTING( 0x02, DEF_STR( Upright ) ) PORT_DIPSETTING( 0x02, DEF_STR( Upright ) )
@ -1102,7 +1104,7 @@ INPUT_PORTS_END
static INPUT_PORTS_START( pdriftj ) static INPUT_PORTS_START( pdriftj )
PORT_INCLUDE( pdrift ) PORT_INCLUDE( pdrift )
PORT_MODIFY("IN.5") PORT_MODIFY("DSW")
PORT_DIPNAME( 0x03, 0x02, DEF_STR( Cabinet ) ) PORT_DIPLOCATION("SWB:1,2") PORT_DIPNAME( 0x03, 0x02, DEF_STR( Cabinet ) ) PORT_DIPLOCATION("SWB:1,2")
PORT_DIPSETTING( 0x03, "Moving" ) PORT_DIPSETTING( 0x03, "Moving" )
PORT_DIPSETTING( 0x02, "Upright/Sit Down" ) PORT_DIPSETTING( 0x02, "Upright/Sit Down" )
@ -1129,7 +1131,7 @@ INPUT_PORTS_END
static INPUT_PORTS_START( pdriftl ) static INPUT_PORTS_START( pdriftl )
PORT_INCLUDE( pdrift ) PORT_INCLUDE( pdrift )
PORT_MODIFY("IN.5") PORT_MODIFY("DSW")
PORT_DIPUNUSED_DIPLOC( 0x08, IP_ACTIVE_LOW, "SWB:4" ) PORT_DIPUNUSED_DIPLOC( 0x08, IP_ACTIVE_LOW, "SWB:4" )
PORT_DIPNAME( 0x10, 0x00, "Ground Level Tilts" ) PORT_DIPLOCATION("SWB:5") PORT_DIPNAME( 0x10, 0x00, "Ground Level Tilts" ) PORT_DIPLOCATION("SWB:5")
PORT_DIPSETTING( 0x00, DEF_STR( No ) ) PORT_DIPSETTING( 0x00, DEF_STR( No ) )
@ -1144,7 +1146,7 @@ static INPUT_PORTS_START( pdriftl )
PORT_DIPSETTING( 0x20, "6" ) PORT_DIPSETTING( 0x20, "6" )
PORT_DIPSETTING( 0x00, "7 - Hardest" ) PORT_DIPSETTING( 0x00, "7 - Hardest" )
PORT_MODIFY("IN.6") PORT_MODIFY("COINAGE")
PORT_DIPNAME( 0x0f, 0x0f, DEF_STR( Coin_A ) ) PORT_DIPLOCATION("SWA:1,2,3,4") PORT_DIPNAME( 0x0f, 0x0f, DEF_STR( Coin_A ) ) PORT_DIPLOCATION("SWA:1,2,3,4")
PORT_DIPSETTING( 0x0a, DEF_STR( 1C_6C ) ) PORT_DIPSETTING( 0x0a, DEF_STR( 1C_6C ) )
PORT_DIPSETTING( 0x0d, DEF_STR( 1C_3C ) ) PORT_DIPSETTING( 0x0d, DEF_STR( 1C_3C ) )
@ -1211,7 +1213,7 @@ INPUT_PORTS_END
static INPUT_PORTS_START( rchase ) static INPUT_PORTS_START( rchase )
PORT_INCLUDE( yboard_generic ) PORT_INCLUDE( yboard_generic )
PORT_MODIFY("IN.1") PORT_MODIFY("GENERAL")
PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_PLAYER(2) PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_PLAYER(2)
PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_PLAYER(1) PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_PLAYER(1)
PORT_SERVICE_NO_TOGGLE( 0x04, IP_ACTIVE_LOW ) PORT_SERVICE_NO_TOGGLE( 0x04, IP_ACTIVE_LOW )
@ -1221,7 +1223,7 @@ static INPUT_PORTS_START( rchase )
PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_START2 ) PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_START2 )
PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_START1 ) PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_START1 )
PORT_MODIFY("IN.6") PORT_MODIFY("COINAGE")
PORT_DIPNAME( 0x03, 0x03, "Coin to Credit" ) PORT_DIPLOCATION("SWA:1,2") PORT_DIPNAME( 0x03, 0x03, "Coin to Credit" ) PORT_DIPLOCATION("SWA:1,2")
PORT_DIPSETTING( 0x00, DEF_STR( 4C_1C ) ) PORT_DIPSETTING( 0x00, DEF_STR( 4C_1C ) )
PORT_DIPSETTING( 0x01, DEF_STR( 3C_1C ) ) PORT_DIPSETTING( 0x01, DEF_STR( 3C_1C ) )
@ -1245,7 +1247,7 @@ static INPUT_PORTS_START( rchase )
PORT_DIPSETTING( 0x20, "7 gives +1" ) PORT_DIPSETTING( 0x20, "7 gives +1" )
PORT_DIPSETTING( 0x00, "Error" ) PORT_DIPSETTING( 0x00, "Error" )
PORT_MODIFY("IN.5") PORT_MODIFY("DSW")
PORT_DIPNAME( 0x03, 0x03, "Credits" ) PORT_DIPLOCATION("SWB:1,2") PORT_DIPNAME( 0x03, 0x03, "Credits" ) PORT_DIPLOCATION("SWB:1,2")
PORT_DIPSETTING( 0x03, "1 to Start, 1 to Continue" ) PORT_DIPSETTING( 0x03, "1 to Start, 1 to Continue" )
PORT_DIPSETTING( 0x02, "2 to Start, 1 to Continue" ) PORT_DIPSETTING( 0x02, "2 to Start, 1 to Continue" )
@ -1266,16 +1268,16 @@ static INPUT_PORTS_START( rchase )
PORT_DIPSETTING( 0x80, DEF_STR( Off ) ) PORT_DIPSETTING( 0x80, DEF_STR( Off ) )
PORT_DIPSETTING( 0x00, DEF_STR( On ) ) PORT_DIPSETTING( 0x00, DEF_STR( On ) )
PORT_START("ADC.0") PORT_START("ADC0")
PORT_BIT( 0xff, 0x80, IPT_LIGHTGUN_X ) PORT_SENSITIVITY(50) PORT_KEYDELTA(5) PORT_BIT( 0xff, 0x80, IPT_LIGHTGUN_X ) PORT_SENSITIVITY(50) PORT_KEYDELTA(5)
PORT_START("ADC.1") PORT_START("ADC1")
PORT_BIT( 0xff, 0x80, IPT_LIGHTGUN_Y ) PORT_SENSITIVITY(50) PORT_KEYDELTA(5) PORT_BIT( 0xff, 0x80, IPT_LIGHTGUN_Y ) PORT_SENSITIVITY(50) PORT_KEYDELTA(5)
PORT_START("ADC.2") PORT_START("ADC2")
PORT_BIT( 0xff, 0x80, IPT_LIGHTGUN_X ) PORT_SENSITIVITY(50) PORT_KEYDELTA(5) PORT_PLAYER(2) PORT_BIT( 0xff, 0x80, IPT_LIGHTGUN_X ) PORT_SENSITIVITY(50) PORT_KEYDELTA(5) PORT_PLAYER(2)
PORT_START("ADC.3") PORT_START("ADC3")
PORT_BIT( 0xff, 0x80, IPT_LIGHTGUN_Y ) PORT_SENSITIVITY(50) PORT_KEYDELTA(5) PORT_PLAYER(2) PORT_BIT( 0xff, 0x80, IPT_LIGHTGUN_Y ) PORT_SENSITIVITY(50) PORT_KEYDELTA(5) PORT_PLAYER(2)
INPUT_PORTS_END INPUT_PORTS_END
@ -1283,7 +1285,7 @@ INPUT_PORTS_END
static INPUT_PORTS_START( strkfgtr ) static INPUT_PORTS_START( strkfgtr )
PORT_INCLUDE( gloc ) PORT_INCLUDE( gloc )
PORT_MODIFY("IN.5") PORT_MODIFY("DSW")
PORT_DIPNAME( 0x03, 0x03, DEF_STR( Difficulty ) ) PORT_DIPLOCATION("SWB:1,2") PORT_DIPNAME( 0x03, 0x03, DEF_STR( Difficulty ) ) PORT_DIPLOCATION("SWB:1,2")
PORT_DIPSETTING( 0x02, DEF_STR( Easy ) ) PORT_DIPSETTING( 0x02, DEF_STR( Easy ) )
PORT_DIPSETTING( 0x03, DEF_STR( Normal ) ) PORT_DIPSETTING( 0x03, DEF_STR( Normal ) )

View File

@ -738,7 +738,7 @@ WRITE8_MEMBER(taitojc_state::hc11_output_w)
READ8_MEMBER(taitojc_state::hc11_analog_r) READ8_MEMBER(taitojc_state::hc11_analog_r)
{ {
return m_analog_ports[offset]->read_safe(0); return m_analog_inp[offset]->read_safe(0);
} }

View File

@ -200,7 +200,7 @@ public:
m_gfxdecode(*this, "gfxdecode"), m_gfxdecode(*this, "gfxdecode"),
m_screen(*this, "screen"), m_screen(*this, "screen"),
m_palette(*this, "palette"), m_palette(*this, "palette"),
m_adc_ports(*this, "ADC") m_adc_inp(*this, "ADC")
{ } { }
required_device<cpu_device> m_maincpu; required_device<cpu_device> m_maincpu;
@ -229,7 +229,7 @@ public:
required_device<gfxdecode_device> m_gfxdecode; required_device<gfxdecode_device> m_gfxdecode;
required_device<screen_device> m_screen; required_device<screen_device> m_screen;
required_device<palette_device> m_palette; required_device<palette_device> m_palette;
optional_ioport_array<8> m_adc_ports; optional_ioport_array<8> m_adc_inp;
UINT8 m_syscontrol[0x20]; UINT8 m_syscontrol[0x20];

View File

@ -35,8 +35,6 @@ public:
m_segaic16road(*this, "segaic16road"), m_segaic16road(*this, "segaic16road"),
m_bankmotor_timer(*this, "bankmotor"), m_bankmotor_timer(*this, "bankmotor"),
m_workram(*this, "workram"), m_workram(*this, "workram"),
m_in_ports(*this, "IN"),
m_adc_ports(*this, "ADC"),
m_custom_map(NULL), m_custom_map(NULL),
m_shangon_video(false), m_shangon_video(false),
m_scanline_timer(NULL), m_scanline_timer(NULL),
@ -127,10 +125,6 @@ protected:
// memory // memory
required_shared_ptr<UINT16> m_workram; required_shared_ptr<UINT16> m_workram;
// input ports
required_ioport_array<4> m_in_ports;
optional_ioport_array<8> m_adc_ports;
// configuration // configuration
read16_delegate m_custom_io_r; read16_delegate m_custom_io_r;
write16_delegate m_custom_io_w; write16_delegate m_custom_io_w;

View File

@ -21,22 +21,20 @@ public:
// construction/destruction // construction/destruction
segaybd_state(const machine_config &mconfig, device_type type, const char *tag) segaybd_state(const machine_config &mconfig, device_type type, const char *tag)
: sega_16bit_common_base(mconfig, type, tag), : sega_16bit_common_base(mconfig, type, tag),
m_maincpu(*this, "maincpu"), m_maincpu(*this, "maincpu"),
m_subx(*this, "subx"), m_subx(*this, "subx"),
m_suby(*this, "suby"), m_suby(*this, "suby"),
m_soundcpu(*this, "soundcpu"), m_soundcpu(*this, "soundcpu"),
m_linkcpu(*this, "linkcpu"), m_linkcpu(*this, "linkcpu"),
m_bsprites(*this, "bsprites"), m_bsprites(*this, "bsprites"),
m_ysprites(*this, "ysprites"), m_ysprites(*this, "ysprites"),
m_segaic16vid(*this, "segaic16vid"), m_segaic16vid(*this, "segaic16vid"),
m_in_ports(*this, "IN"), m_pdrift_bank(0),
m_adc_ports(*this, "ADC"), m_scanline_timer(NULL),
m_pdrift_bank(0), m_irq2_scanline(0),
m_scanline_timer(NULL), m_timer_irq_state(0),
m_irq2_scanline(0), m_vblank_irq_state(0),
m_timer_irq_state(0), m_tmp_bitmap(512, 512)
m_vblank_irq_state(0),
m_tmp_bitmap(512, 512)
{ {
memset(m_analog_data, 0, sizeof(m_analog_data)); memset(m_analog_data, 0, sizeof(m_analog_data));
memset(m_misc_io_data, 0, sizeof(m_misc_io_data)); memset(m_misc_io_data, 0, sizeof(m_misc_io_data));
@ -112,10 +110,6 @@ protected:
required_device<sega_yboard_sprite_device> m_ysprites; required_device<sega_yboard_sprite_device> m_ysprites;
required_device<segaic16_video_device> m_segaic16vid; required_device<segaic16_video_device> m_segaic16vid;
// input ports
required_ioport_array<8> m_in_ports;
optional_ioport_array<6> m_adc_ports;
// configuration // configuration
output_delegate m_output_cb1; output_delegate m_output_cb1;
output_delegate m_output_cb2; output_delegate m_output_cb2;

View File

@ -53,7 +53,7 @@ public:
m_gfxdecode(*this, "gfxdecode"), m_gfxdecode(*this, "gfxdecode"),
m_screen(*this, "screen"), m_screen(*this, "screen"),
m_palette(*this, "palette"), m_palette(*this, "palette"),
m_analog_ports(*this, "AN") m_analog_inp(*this, "AN")
{ {
m_mcu_output = 0; m_mcu_output = 0;
m_speed_meter = 0; m_speed_meter = 0;
@ -76,7 +76,7 @@ public:
required_device<gfxdecode_device> m_gfxdecode; required_device<gfxdecode_device> m_gfxdecode;
required_device<screen_device> m_screen; required_device<screen_device> m_screen;
required_device<palette_device> m_palette; required_device<palette_device> m_palette;
optional_ioport_array<8> m_analog_ports; optional_ioport_array<8> m_analog_inp;
taitojc_renderer *m_renderer; taitojc_renderer *m_renderer;

View File

@ -52,7 +52,7 @@
<screen index="0"> <screen index="0">
<bounds x="0" y="0" width="640" height="480" /> <bounds x="0" y="0" width="640" height="480" />
</screen> </screen>
<bezel element="shifter" inputtag="IN.0" inputmask="0x10"> <bezel element="shifter" inputtag="SERVICE" inputmask="0x10">
<bounds x="606" y="414" width="32" height="64" /> <bounds x="606" y="414" width="32" height="64" />
<color alpha="0.6" /> <color alpha="0.6" />
</bezel> </bezel>
@ -61,7 +61,7 @@
<screen index="0"> <screen index="0">
<bounds x="0" y="0" width="640" height="480" /> <bounds x="0" y="0" width="640" height="480" />
</screen> </screen>
<bezel element="shifter" inputtag="IN.0" inputmask="0x10"> <bezel element="shifter" inputtag="SERVICE" inputmask="0x10">
<bounds x="2" y="414" width="32" height="64" /> <bounds x="2" y="414" width="32" height="64" />
<color alpha="0.6" /> <color alpha="0.6" />
</bezel> </bezel>

View File

@ -52,7 +52,7 @@
<screen index="0"> <screen index="0">
<bounds x="0" y="0" width="640" height="480" /> <bounds x="0" y="0" width="640" height="480" />
</screen> </screen>
<bezel element="shifter" inputtag="IN.1" inputmask="0x20"> <bezel element="shifter" inputtag="GENERAL" inputmask="0x20">
<bounds x="606" y="414" width="32" height="64" /> <bounds x="606" y="414" width="32" height="64" />
<color alpha="0.6" /> <color alpha="0.6" />
</bezel> </bezel>
@ -61,7 +61,7 @@
<screen index="0"> <screen index="0">
<bounds x="0" y="0" width="640" height="480" /> <bounds x="0" y="0" width="640" height="480" />
</screen> </screen>
<bezel element="shifter" inputtag="IN.1" inputmask="0x20"> <bezel element="shifter" inputtag="GENERAL" inputmask="0x20">
<bounds x="2" y="414" width="32" height="64" /> <bounds x="2" y="414" width="32" height="64" />
<color alpha="0.6" /> <color alpha="0.6" />
</bezel> </bezel>