Previous 199869 Revisions Next

r20683 Saturday 2nd February, 2013 at 22:41:49 UTC by hap
cleanup adc reads on super22
[src/mame/drivers]namcos22.c
[src/mame/includes]namcos22.h

trunk/src/mame/drivers/namcos22.c
r20682r20683
26592659   set_led_status(machine(), 0, data & 2);
26602660}
26612661
2662READ8_MEMBER(namcos22_state::propcycle_mcu_adc_r)
2662READ8_MEMBER(namcos22_state::namcos22s_mcu_adc_r)
26632663{
2664   // H+L = horizontal, 1 H+L = vertical
2665   UINT16 ddx, ddy;
2666
2667   ddx = ioport("STICKX")->read();
2668   if (ddx > 0) ddx -= 1;
2669   ddy = ioport("STICKY")->read();
2670   if (ddy > 0) ddy -= 1;
2671
2672   ddx <<= 2;
2673   ddy <<= 2;
2674
2675   switch (offset)
2676   {
2677      case 0:
2678         return (ddx & 0xff);
2679      case 1:
2680         return (ddx>>8);
2681      case 2:
2682         return (ddy & 0xff);
2683      case 3:
2684         return (ddy>>8);
2685      default:
2686         return 0;
2687   }
2664   static const char *const portnames[] = { "ADC0", "ADC1", "ADC2", "ADC3" };
2665   if (offset & 1)
2666      return (ioport(portnames[offset >> 1 & 3])->read_safe(0) << 2) >> 8 & 0xff;
2667   else
2668      return (ioport(portnames[offset >> 1 & 3])->read_safe(0) << 2) & 0xff;
26882669}
26892670
26902671TIMER_CALLBACK_MEMBER(namcos22_state::alpine_steplock_callback)
r20682r20683
27152696   }
27162697}
27172698
2718READ8_MEMBER(namcos22_state::alpineracer_mcu_adc_r)
2719{
2720   // 0 H+L = swing, 1 H+L = edge
2721   UINT16 swing = ioport("SWING")->read()<<2;
2722   UINT16 edge  = ioport("EDGE" )->read()<<2;
2723
2724   switch (offset)
2725   {
2726      case 0:
2727         return swing & 0xff;
2728
2729      case 1:
2730         return (swing>>8);
2731
2732      case 2:
2733         return edge & 0xff;
2734
2735      case 3:
2736         return (edge>>8);
2737
2738      default:
2739         return 0;
2740   }
2741}
2742
2743READ8_MEMBER(namcos22_state::cybrcycc_mcu_adc_r)
2744{
2745   UINT16 gas,brake,steer;
2746   ReadAnalogDrivingPorts( machine(), &gas, &brake, &steer );
2747
2748   gas <<= 2;
2749   brake <<= 2;
2750   steer <<= 2;
2751
2752   switch (offset)
2753   {
2754      case 0:
2755         return steer & 0xff;
2756
2757      case 1:
2758         return (steer>>8);
2759
2760      case 2:
2761         return gas & 0xff;
2762
2763      case 3:
2764         return (gas>>8);
2765
2766      case 4:
2767         return brake & 0xff;
2768
2769      case 5:
2770         return (brake>>8);
2771
2772      default:
2773         return 0;
2774   }
2775}
2776
2777READ8_MEMBER(namcos22_state::tokyowar_mcu_adc_r)
2778{
2779   UINT16 gas,brake,steer;
2780   ReadAnalogDrivingPorts( machine(), &gas, &brake, &steer );
2781
2782   gas <<= 2;
2783   brake <<= 2;
2784   steer <<= 2;
2785
2786   switch (offset)
2787   {
2788      case 0:
2789         return steer & 0xff;
2790
2791      case 1:
2792         return (steer>>8);
2793
2794      case 4:
2795         return gas & 0xff;
2796
2797      case 5:
2798         return (gas>>8);
2799
2800      case 6:
2801         return brake & 0xff;
2802
2803      case 7:
2804         return (brake>>8);
2805
2806      default:
2807         return 0;
2808   }
2809}
2810
2811READ8_MEMBER(namcos22_state::aquajet_mcu_adc_r)
2812{
2813   UINT16 gas, steer, ddy;
2814
2815   gas   = ioport("GAS")->read() ^ 0x7f;
2816   steer = ioport("STEER")->read() ^ 0xff;
2817   ddy = ioport("STICKY")->read();
2818   if (ddy > 0) ddy -= 1;
2819
2820   gas <<= 2;
2821   steer <<= 2;
2822   ddy <<= 2;
2823
2824   /*
2825       0 & 1 = handle left/right
2826       2 & 3 = accelerator
2827       4 & 5 = handle pole (Y axis)
2828   */
2829
2830   switch (offset)
2831   {
2832      case 0:
2833         return steer & 0xff;
2834
2835      case 1:
2836         return (steer>>8);
2837
2838      case 2:
2839         return gas & 0xff;
2840
2841      case 3:
2842         return (gas>>8);
2843
2844      case 4:
2845         return ddy & 0xff;
2846
2847      case 5:
2848         return (ddy>>8);
2849
2850      default:
2851         return 0;
2852   }
2853}
2854
2855READ8_MEMBER(namcos22_state::adillor_mcu_adc_r)
2856{
2857   // unused
2858   return 0;
2859}
2860
2861READ8_MEMBER(namcos22_state::airco22_mcu_adc_r)
2862{
2863   UINT16 pedal, x, y;
2864
2865   pedal = ioport("PEDAL")->read()<<2;
2866   x = ioport("STICKX")->read()<<2;
2867   y = ioport("STICKY")->read()<<2;
2868
2869   switch (offset)
2870   {
2871      case 0:
2872         return x & 0xff;
2873
2874      case 1:
2875         return (x>>8);
2876
2877      case 2:
2878         return y & 0xff;
2879
2880      case 3:
2881         return (y>>8);
2882
2883      case 4:
2884         return pedal & 0xff;
2885
2886      case 5:
2887         return (pedal>>8);
2888
2889      default:
2890         return 0;
2891   }
2892}
2893
28942699static ADDRESS_MAP_START( mcu_io, AS_IO, 8, namcos22_state )
28952700   AM_RANGE(M37710_PORT4, M37710_PORT4) AM_READ(mcu_port4_r ) AM_WRITE(mcu_port4_w )
28962701   AM_RANGE(M37710_PORT5, M37710_PORT5) AM_READ(mcu_port5_r ) AM_WRITE(mcu_port5_w )
28972702   AM_RANGE(M37710_PORT6, M37710_PORT6) AM_READ(mcu_port6_r ) AM_WRITE(mcu_port6_w )
28982703   AM_RANGE(M37710_PORT7, M37710_PORT7) AM_READ(mcu_port7_r ) AM_WRITE(mcu_port7_w )
2704   AM_RANGE(M37710_ADC0_L, M37710_ADC3_H) AM_READ(namcos22s_mcu_adc_r)
2705   AM_RANGE(M37710_ADC4_L, M37710_ADC7_H) AM_READNOP
28992706ADDRESS_MAP_END
29002707
29012708READ8_MEMBER(namcos22_state::mcu_port4_s22_r)
r20682r20683
49774784   PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT) PORT_16WAY // R Selection
49784785   PORT_BIT( 0x80, IP_ACTIVE_HIGH,IPT_SPECIAL ) PORT_CUSTOM_MEMBER(DEVICE_SELF, namcos22_state,alpine_motor_read, (void *)0) // steps are free
49794786
4980   PORT_START("SWING")
4981   PORT_BIT( 0xff, 0x80, IPT_AD_STICK_X ) PORT_SENSITIVITY(100) PORT_KEYDELTA(4) PORT_NAME("Steps Swing")
4982
4983   PORT_START("EDGE")
4984   PORT_BIT( 0xff, 0x80, IPT_AD_STICK_Y ) PORT_SENSITIVITY(100) PORT_KEYDELTA(4) PORT_NAME("Steps Edge")
4985
49864787   PORT_START("MCUP5B")
49874788   PORT_BIT( 0x01, IP_ACTIVE_HIGH,IPT_SPECIAL ) PORT_CUSTOM_MEMBER(DEVICE_SELF, namcos22_state,alpine_motor_read, (void *)1) // steps are locked
49884789   PORT_BIT( 0xfe, IP_ACTIVE_LOW, IPT_UNKNOWN )
4790
4791   PORT_START("ADC0")
4792   PORT_BIT( 0xff, 0x80, IPT_AD_STICK_X ) PORT_SENSITIVITY(100) PORT_KEYDELTA(4) PORT_NAME("Steps Swing")
4793
4794   PORT_START("ADC1")
4795   PORT_BIT( 0xff, 0x80, IPT_AD_STICK_Y ) PORT_SENSITIVITY(100) PORT_KEYDELTA(4) PORT_NAME("Steps Edge")
49894796INPUT_PORTS_END /* Alpine Racer */
49904797
49914798static INPUT_PORTS_START( airco22 )
r20682r20683
50154822   PORT_DIPSETTING(    0x80, DEF_STR( Off ) )
50164823   PORT_DIPSETTING(    0x00, DEF_STR( On ) )
50174824
5018   PORT_START("PEDAL")
5019   PORT_BIT( 0xff, 0x00, IPT_PEDAL ) PORT_MINMAX(0x00, 0xff) PORT_SENSITIVITY(100) PORT_KEYDELTA(4)
5020
5021   PORT_START("STICKX")
5022   PORT_BIT( 0xff, 0x80, IPT_AD_STICK_X ) PORT_SENSITIVITY(100) PORT_KEYDELTA(4)
5023
5024   PORT_START("STICKY")
5025   PORT_BIT( 0xff, 0x80, IPT_AD_STICK_Y ) PORT_SENSITIVITY(100) PORT_KEYDELTA(4)
5026
50274825   PORT_START("MCUP5A")
50284826   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_COIN1 )
50294827   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_UNKNOWN )
r20682r20683
50364834
50374835   PORT_START("MCUP5B")
50384836   PORT_BIT( 0xff, IP_ACTIVE_LOW, IPT_UNKNOWN )
4837
4838   PORT_START("ADC0")
4839   PORT_BIT( 0xff, 0x80, IPT_AD_STICK_X ) PORT_SENSITIVITY(100) PORT_KEYDELTA(4)
4840
4841   PORT_START("ADC1")
4842   PORT_BIT( 0xff, 0x80, IPT_AD_STICK_Y ) PORT_SENSITIVITY(100) PORT_KEYDELTA(4)
4843
4844   PORT_START("ADC2")
4845   PORT_BIT( 0xff, 0x00, IPT_PEDAL ) PORT_MINMAX(0x00, 0xff) PORT_SENSITIVITY(100) PORT_KEYDELTA(4)
50394846INPUT_PORTS_END /* Air Combat22 */
50404847
50414848static INPUT_PORTS_START( cybrcycc )
r20682r20683
50784885   PORT_START("MCUP5B")
50794886   PORT_BIT( 0xff, IP_ACTIVE_LOW, IPT_UNKNOWN )
50804887
5081   DRIVING_ANALOG_PORTS
4888   PORT_START("ADC0")
4889   PORT_BIT( 0xff, 0x80, IPT_PADDLE ) PORT_SENSITIVITY(100) PORT_KEYDELTA(10) PORT_NAME("Steering Wheel")
4890
4891   PORT_START("ADC1")
4892   PORT_BIT( 0xff, 0x00, IPT_PEDAL )  PORT_SENSITIVITY(100) PORT_KEYDELTA(10) PORT_NAME("Gas Pedal")
4893
4894   PORT_START("ADC2")
4895   PORT_BIT( 0xff, 0x00, IPT_PEDAL2 ) PORT_SENSITIVITY(100) PORT_KEYDELTA(10) PORT_NAME("Brake Pedal")
50824896INPUT_PORTS_END /* Cyber Cycles */
50834897
50844898static INPUT_PORTS_START( dirtdash )
r20682r20683
51214935   PORT_START("MCUP5B")
51224936   PORT_BIT( 0xff, IP_ACTIVE_LOW, IPT_UNKNOWN )
51234937
5124   DRIVING_ANALOG_PORTS
5125   PORT_MODIFY("STEER") // default is too sensitive
4938   PORT_START("ADC0")
51264939   PORT_BIT( 0xff, 0x80, IPT_PADDLE ) PORT_SENSITIVITY(100) PORT_KEYDELTA(3) PORT_NAME("Steering Wheel")
4940
4941   PORT_START("ADC1")
4942   PORT_BIT( 0xff, 0x00, IPT_PEDAL )  PORT_SENSITIVITY(100) PORT_KEYDELTA(10) PORT_NAME("Gas Pedal")
4943
4944   PORT_START("ADC2")
4945   PORT_BIT( 0xff, 0x00, IPT_PEDAL2 ) PORT_SENSITIVITY(100) PORT_KEYDELTA(10) PORT_NAME("Brake Pedal")
51274946INPUT_PORTS_END /* Dirt Dash */
51284947
51294948static INPUT_PORTS_START( tokyowar )
r20682r20683
51664985   PORT_START("MCUP5B")
51674986   PORT_BIT( 0xff, IP_ACTIVE_LOW, IPT_UNKNOWN )
51684987
5169   DRIVING_ANALOG_PORTS
4988   PORT_START("ADC0")
4989   PORT_BIT( 0xff, 0x80, IPT_PADDLE ) PORT_SENSITIVITY(100) PORT_KEYDELTA(10) PORT_NAME("Steering Wheel")
4990
4991   PORT_START("ADC2")
4992   PORT_BIT( 0xff, 0x00, IPT_PEDAL )  PORT_SENSITIVITY(100) PORT_KEYDELTA(10) PORT_NAME("Gas Pedal")
4993
4994   PORT_START("ADC3")
4995   PORT_BIT( 0xff, 0x00, IPT_PEDAL2 ) PORT_SENSITIVITY(100) PORT_KEYDELTA(10) PORT_NAME("Brake Pedal")
51704996INPUT_PORTS_END /* Tokyo Wars */
51714997
51724998static INPUT_PORTS_START( aquajet )
r20682r20683
51965022   PORT_DIPSETTING(    0x80, DEF_STR( Off ) )
51975023   PORT_DIPSETTING(    0x00, DEF_STR( On ) )
51985024
5199   PORT_START("GAS")
5200   PORT_BIT( 0x7f, 0x00, IPT_PEDAL ) PORT_SENSITIVITY(100) PORT_KEYDELTA(10)
5201
5202   PORT_START("STEER")
5203   PORT_BIT( 0xff, 0x80, IPT_PADDLE ) PORT_SENSITIVITY(100) PORT_KEYDELTA(10)
5204
5205   PORT_START("STICKY")
5206   PORT_BIT( 0xff, 0x80, IPT_AD_STICK_Y ) PORT_SENSITIVITY(100) PORT_KEYDELTA(10)
5207
52085025   PORT_START("MCUP5A")
52095026   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_COIN1 )
52105027   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_UNKNOWN )
r20682r20683
52175034
52185035   PORT_START("MCUP5B")
52195036   PORT_BIT( 0xff, IP_ACTIVE_LOW, IPT_UNKNOWN )
5037
5038   PORT_START("ADC0")
5039   PORT_BIT( 0xff, 0x7f, IPT_PADDLE ) PORT_SENSITIVITY(100) PORT_KEYDELTA(10) PORT_REVERSE
5040
5041   PORT_START("ADC1")
5042   PORT_BIT( 0xff, 0x00, IPT_PEDAL ) PORT_MINMAX(0x00, 0x80) PORT_SENSITIVITY(100) PORT_KEYDELTA(10) PORT_REVERSE
5043
5044   PORT_START("ADC2")
5045   PORT_BIT( 0xff, 0x7f, IPT_AD_STICK_Y ) PORT_SENSITIVITY(100) PORT_KEYDELTA(10) PORT_REVERSE
52205046INPUT_PORTS_END /* Aqua Jet */
52215047
52225048static INPUT_PORTS_START( adillor )
r20682r20683
52615087   PORT_BIT( 0xfe, IP_ACTIVE_LOW, IPT_UNKNOWN )
52625088
52635089   PORT_START("TRACKX")
5264   PORT_BIT( 0xff, 0x80, IPT_AD_STICK_X ) PORT_MINMAX(0x01, 0xff) PORT_SENSITIVITY(100) PORT_KEYDELTA(20)
5090   PORT_BIT( 0xff, 0x80, IPT_AD_STICK_X ) PORT_MINMAX(0x01, 0xff) PORT_SENSITIVITY(100) PORT_KEYDELTA(20) PORT_NAME("Trackball X")
52655091
52665092   PORT_START("TRACKY")
5267   PORT_BIT( 0xff, 0x80, IPT_AD_STICK_Y ) PORT_MINMAX(0x01, 0xff) PORT_SENSITIVITY(100) PORT_KEYDELTA(20)
5093   PORT_BIT( 0xff, 0x80, IPT_AD_STICK_Y ) PORT_MINMAX(0x01, 0xff) PORT_SENSITIVITY(100) PORT_KEYDELTA(20) PORT_NAME("Trackball Y")
52685094INPUT_PORTS_END /* Armadillo Racing */
52695095
52705096static INPUT_PORTS_START( propcycl )
r20682r20683
52945120   PORT_DIPSETTING(    0x80, DEF_STR( Off ) )
52955121   PORT_DIPSETTING(    0x00, DEF_STR( On ) )
52965122
5297   PORT_START("PEDAL")
5298   PORT_BIT( 0x7f, 0x00, IPT_PEDAL ) PORT_SENSITIVITY(100) PORT_KEYDELTA(10)
5299
5300   PORT_START("STICKX")
5301   PORT_BIT( 0xff, 0x80, IPT_AD_STICK_X ) PORT_SENSITIVITY(100) PORT_KEYDELTA(10) PORT_REVERSE
5302
5303   PORT_START("STICKY")
5304   PORT_BIT( 0xff, 0x80, IPT_AD_STICK_Y ) PORT_SENSITIVITY(100) PORT_KEYDELTA(10)
5305
53065123   PORT_START("MCUP5A")
53075124   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_COIN1 )
53085125   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_UNKNOWN )
r20682r20683
53165133   PORT_START("MCUP5B")
53175134   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_START1 )
53185135   PORT_BIT( 0xfe, IP_ACTIVE_LOW, IPT_UNKNOWN )
5136
5137   PORT_START("ADC0")
5138   PORT_BIT( 0xff, 0x7f, IPT_AD_STICK_X ) PORT_MINMAX(0x00, 0xfe) PORT_SENSITIVITY(100) PORT_KEYDELTA(10) PORT_REVERSE
5139
5140   PORT_START("ADC1")
5141   PORT_BIT( 0xff, 0x7f, IPT_AD_STICK_Y ) PORT_MINMAX(0x00, 0xfe) PORT_SENSITIVITY(100) PORT_KEYDELTA(10)
5142
5143   PORT_START("PEDAL")
5144   PORT_BIT( 0x7f, 0x00, IPT_PEDAL ) PORT_SENSITIVITY(100) PORT_KEYDELTA(10)
53195145INPUT_PORTS_END /* Prop Cycle */
53205146
53215147static INPUT_PORTS_START( timecris )
r20682r20683
53435169   PORT_DIPSETTING(    0x00, DEF_STR( On ) )
53445170   PORT_SERVICE( 0x80, IP_ACTIVE_LOW )
53455171
5346   PORT_START( "LIGHTX" ) // tuned for CRT
5347   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)
5348   PORT_START( "LIGHTY" ) // tuned for CRT - can't shoot below the statusbar?
5349   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)
5350
53515172   PORT_START("MCUP5A")
53525173   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_COIN1 )
53535174   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_UNKNOWN )
r20682r20683
53605181
53615182   PORT_START("MCUP5B")
53625183   PORT_BIT( 0xff, IP_ACTIVE_LOW, IPT_UNKNOWN )
5184
5185   PORT_START( "LIGHTX" ) // tuned for CRT
5186   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)
5187
5188   PORT_START( "LIGHTY" ) // tuned for CRT - can't shoot below the statusbar?
5189   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)
53635190INPUT_PORTS_END /* Time Crisis */
53645191
53655192/*****************************************************************************************************/
r20682r20683
57425569   namcos22_state *state = machine.driver_data<namcos22_state>();
57435570   namcos22_init(machine, game_type);
57445571
5745   state->m_mcu->space(AS_IO).install_read_handler(M37710_ADC0_L, M37710_ADC7_H, read8_delegate(FUNC(namcos22_state::alpineracer_mcu_adc_r),state));
57465572   state->m_mcu->space(AS_IO).install_write_handler(M37710_PORT5, M37710_PORT5, write8_delegate(FUNC(namcos22_state::alpine_mcu_port5_w),state));
57475573
57485574   state->m_motor_timer = machine.scheduler().timer_alloc(timer_expired_delegate(FUNC(namcos22_state::alpine_steplock_callback),state));
r20682r20683
57845610   namcos22_init(machine(), NAMCOS22_AIR_COMBAT22);
57855611
57865612   // S22-BIOS ver1.20 namco all rights reserved 94/12/21
5787   m_mcu->space(AS_IO).install_read_handler(M37710_ADC0_L, M37710_ADC7_H, read8_delegate(FUNC(namcos22_state::airco22_mcu_adc_r),this));
57885613}
57895614
57905615DRIVER_INIT_MEMBER(namcos22_state,propcycl)
r20682r20683
58075632//   pROM[0x22296/4] |= 0x00004e75;
58085633
58095634   namcos22_init(machine(), NAMCOS22_PROP_CYCLE);
5810   m_mcu->space(AS_IO).install_read_handler(M37710_ADC0_L, M37710_ADC7_H, read8_delegate(FUNC(namcos22_state::propcycle_mcu_adc_r),this));
58115635   m_mcu->space(AS_IO).install_write_handler(M37710_PORT5, M37710_PORT5, write8_delegate(FUNC(namcos22_state::propcycle_mcu_port5_w),this));
58125636   install_141_speedup(machine());
58135637}
r20682r20683
58685692{
58695693   namcos22_init(machine(), NAMCOS22_CYBER_CYCLES);
58705694
5871   m_mcu->space(AS_IO).install_read_handler(M37710_ADC0_L, M37710_ADC7_H, read8_delegate(FUNC(namcos22_state::cybrcycc_mcu_adc_r),this));
58725695   install_130_speedup(machine());
58735696
58745697   m_keycus_id = 0x0387;
r20682r20683
58855708{
58865709   namcos22_init(machine(), NAMCOS22_TOKYO_WARS);
58875710
5888   m_mcu->space(AS_IO).install_read_handler(M37710_ADC0_L, M37710_ADC7_H, read8_delegate(FUNC(namcos22_state::tokyowar_mcu_adc_r),this));
58895711   install_141_speedup(machine());
58905712
58915713   m_keycus_id = 0x01a8;
r20682r20683
58945716DRIVER_INIT_MEMBER(namcos22_state,aquajet)
58955717{
58965718   namcos22_init(machine(), NAMCOS22_AQUA_JET);
5897   m_mcu->space(AS_IO).install_read_handler(M37710_ADC0_L, M37710_ADC7_H, read8_delegate(FUNC(namcos22_state::aquajet_mcu_adc_r),this));
58985719   install_141_speedup(machine());
58995720}
59005721
59015722DRIVER_INIT_MEMBER(namcos22_state,adillor)
59025723{
59035724   namcos22_init(machine(), NAMCOS22_ARMADILLO_RACING);
5904   m_mcu->space(AS_IO).install_read_handler(M37710_ADC0_L, M37710_ADC7_H, read8_delegate(FUNC(namcos22_state::adillor_mcu_adc_r),this));
59055725   install_141_speedup(machine());
59065726
59075727   m_keycus_id = 0x59b7;
r20682r20683
59115731{
59125732   namcos22_init(machine(), NAMCOS22_DIRT_DASH);
59135733
5914   m_mcu->space(AS_IO).install_read_handler(M37710_ADC0_L, M37710_ADC7_H, read8_delegate(FUNC(namcos22_state::cybrcycc_mcu_adc_r),this));
59155734   install_141_speedup(machine());
59165735
59175736   m_keycus_id = 0x01a2;
trunk/src/mame/includes/namcos22.h
r20682r20683
222222   DECLARE_READ8_MEMBER(mcu_port6_r);
223223   DECLARE_WRITE8_MEMBER(mcu_port7_w);
224224   DECLARE_READ8_MEMBER(mcu_port7_r);
225   DECLARE_READ8_MEMBER(namcos22s_mcu_adc_r);
225226   DECLARE_WRITE8_MEMBER(propcycle_mcu_port5_w);
226   DECLARE_READ8_MEMBER(propcycle_mcu_adc_r);
227227   DECLARE_WRITE8_MEMBER(alpine_mcu_port5_w);
228   DECLARE_READ8_MEMBER(alpineracer_mcu_adc_r);
229   DECLARE_READ8_MEMBER(cybrcycc_mcu_adc_r);
230   DECLARE_READ8_MEMBER(tokyowar_mcu_adc_r);
231   DECLARE_READ8_MEMBER(aquajet_mcu_adc_r);
232   DECLARE_READ8_MEMBER(airco22_mcu_adc_r);
233   DECLARE_READ8_MEMBER(adillor_mcu_adc_r);
234228   DECLARE_READ8_MEMBER(mcu_port4_s22_r);
235229   DECLARE_READ16_MEMBER(mcu141_speedup_r);
236230   DECLARE_WRITE16_MEMBER(mcu_speedup_w);

Previous 199869 Revisions Next


© 1997-2024 The MAME Team