Previous 15994 Revisions Next

r15414 Wednesday 6th June, 2012 at 08:52:46 UTC by Miodrag Milanović
Sync with MAME r16561 (nw)
[src/emu/machine]68681.c
[src/emu/sound]es5506.c es5506.h
[src/mame]mame.lst
[src/mame/audio]taito_en.c taito_en.h
[src/mame/drivers]40love.c clayshoo.c dec0.c eolith.c eolithsp.c galastrm.c groundfx.c gunbustr.c jaguar.c konamigv.c lucky74.c model3.c namcos23.c rabbit.c realbrk.c seta2.c superchs.c taito_f3.c taito_z.c taitojc.c undrfire.c vsnes.c
[src/mame/includes]dec0.h seta2.h superchs.h taito_z.h taitojc.h
[src/mame/layout]superchs.lay
[src/mame/video]dec0.c metro.c ms32.c taito_z.c
[src/osd/windows]windows.mak

src/mame/mame.lst
r15413r15414
10101010crszone         // Crisis Zone - December 1999
10111011crszonea      // Crisis Zone - December 1999
10121012crszoneb      // Crisis Zone - December 1999
1013crszonec      // Crisis Zone - December 1999
10131014
10141015// Namco System 246
10151016sys246
r15413r15414
35513552tokimosh      // GE755, JAA
35523553tokimosp      // GE756, JAB
35533554nagano98      // GX720, EAA
3555naganoj         // GX720, JAA
35543556simpbowl      // GQ829, UAA
35553557
35563558// Konami System 573
r15413r15414
46414643
46424644// Step 2.0
46434645vs2            // 1997.06 Virtua Striker 2
4644harley         // 1997.12 Harley Davidson & L.A.Riders
4645harleyb
4646harley         // 199?.?? Harley Davidson & L.A.Riders (rev B)
4647harleya         // 1997.12 Harley Davidson & L.A.Riders (rev A)
46464648skichamp      // 1998.01 Ski Champ
46474649srally2         // 1998.02 Sega Rally 2 Championship
46484650srally2x
r15413r15414
83438345turkhunt      // (c) 2001 Sammy USA Corporation
83448346wschamp         // (c) 2001 Sammy USA Corporation
83458347wschampa      // (c) 2001 Sammy USA Corporation
8348funcube         // (c) 2000 Namco
83468349funcube2      // (c) 2001 Namco
83478350funcube3      // (c) 2001 Namco
83488351funcube4      // (c) 2001 Namco
r15413r15414
1021710220misncrft      // (c) 2000 Sun
1021810221mrdig         // (c) 2000 Sun
1021910222hidnctch      // (c) 1998 Eolith
10223linkypip      // (c) 1998 Eolith
1022010224ironfort      // (c) 1998 Eolith
1022110225ironfortj      // (c) 1998 Eolith
1022210226puzzlekg      // (c) 1998 Eolith
r15413r15414
1106311067luckylad      // (c) 1985 Wing Co. Ltd
1106411068bingowng      // (c) 1993 Wing Co. Ltd
1106511069bingownga      // (c) 1993 Wing Co. Ltd
11070excitbj         // (c) 1992 Wing Co. Ltd
1106611071
1106711072skill98         // (c) 1998 Amcoe
1106811073match98         // (c) 1998 Amcoe
src/mame/audio/taito_en.c
r15413r15414
1/***************************************************************************
2
3    Taito Ensoniq ES5505-based sound hardware
4
5   TODO:
6
7   * Implement ES5510 ESP
8
9****************************************************************************/
10
111#include "emu.h"
12#include "machine/68681.h"
13#include "machine/mb87078.h"
214#include "sound/es5506.h"
315#include "taito_en.h"
416
5static int counter,vector_reg,imr_status;
17
18/*************************************
19 *
20 *  Statics
21 *
22 *************************************/
23 
624static UINT16   es5510_dsp_ram[0x200];
725static UINT32   es5510_gpr[0xc0];
826static UINT32   es5510_dram[1<<24];
r15413r15414
1129static UINT32   es5510_dadr_latch;
1230static UINT32   es5510_gpr_latch;
1331static UINT8    es5510_ram_sel;
14static int timer_mode,m68681_imr;
15static UINT32   *f3_shared_ram;
32static UINT32   *snd_shared_ram;
1633
17//static int es_tmp=1;
1834
19#define M68000_CLOCK   16000000
20#define M68681_CLOCK   2000000 /* Actually X1, not the main clock */
21
22enum { TIMER_SINGLESHOT, TIMER_PULSE };
23
24
25
26static READ16_HANDLER(f3_68000_share_r)
35/*************************************
36 *
37 *  Handlers
38 *
39 *************************************/
40 
41static READ16_HANDLER( en_68000_share_r )
2742{
2843   switch (offset & 3)
2944   {
30   case 0: return (f3_shared_ram[offset/4]&0xff000000)>>16;
31   case 1: return (f3_shared_ram[offset/4]&0x00ff0000)>>8;
32   case 2: return (f3_shared_ram[offset/4]&0x0000ff00)>>0;
33   case 3: return (f3_shared_ram[offset/4]&0x000000ff)<<8;
45      case 0: return (snd_shared_ram[offset/4]&0xff000000)>>16;
46      case 1: return (snd_shared_ram[offset/4]&0x00ff0000)>>8;
47      case 2: return (snd_shared_ram[offset/4]&0x0000ff00)>>0;
48      case 3: return (snd_shared_ram[offset/4]&0x000000ff)<<8;
3449   }
3550
3651   return 0;
3752}
3853
39static WRITE16_HANDLER(f3_68000_share_w)
54static WRITE16_HANDLER( en_68000_share_w )
4055{
4156   switch (offset & 3)
4257   {
43   case 0: f3_shared_ram[offset/4] = (f3_shared_ram[offset/4]&0x00ffffff)|((data&0xff00)<<16);
44   case 1: f3_shared_ram[offset/4] = (f3_shared_ram[offset/4]&0xff00ffff)|((data&0xff00)<<8);
45   case 2: f3_shared_ram[offset/4] = (f3_shared_ram[offset/4]&0xffff00ff)|((data&0xff00)<<0);
46   case 3: f3_shared_ram[offset/4] = (f3_shared_ram[offset/4]&0xffffff00)|((data&0xff00)>>8);
58      case 0: snd_shared_ram[offset/4] = (snd_shared_ram[offset/4]&0x00ffffff)|((data&0xff00)<<16);
59      case 1: snd_shared_ram[offset/4] = (snd_shared_ram[offset/4]&0xff00ffff)|((data&0xff00)<<8);
60      case 2: snd_shared_ram[offset/4] = (snd_shared_ram[offset/4]&0xffff00ff)|((data&0xff00)<<0);
61      case 3: snd_shared_ram[offset/4] = (snd_shared_ram[offset/4]&0xffffff00)|((data&0xff00)>>8);
4762   }
4863}
4964
50static WRITE16_HANDLER( f3_es5505_bank_w )
65static WRITE16_HANDLER( en_es5505_bank_w )
5166{
52   UINT32 max_banks_this_game=(space->machine().root_device().memregion("ensoniq.0")->bytes()/0x200000)-1;
67   UINT32 max_banks_this_game = (space->machine().root_device().memregion("ensoniq.0")->bytes()/0x200000)-1;
5368
5469#if 0
5570{
r15413r15414
6479   es5505_voice_bank_w(space->machine().device("ensoniq"),offset,data<<20);
6580}
6681
67static WRITE8_HANDLER( f3_volume_w )
82static WRITE16_HANDLER( en_volume_w )
6883{
69   static UINT8 latch,ch[8];
70
71   if(offset == 0)
72      latch = data & 0x7;
73   else
74   {
75      ch[latch] = data;
76      if((latch & 6) == 6)
77      {
78         double ch_vol;
79
80         ch_vol = (double)(ch[latch] & 0x3f);
81         ch_vol/= 63.0;
82         ch_vol*= 100.0;
83         /* Left/Right panning trusted with Arabian Magic Sound Test menu. */
84         es5505_set_channel_volume(space->machine().device("ensoniq"),(latch & 1) ^ 1,ch_vol);
85      }
86   }
87
88   //popmessage("%02x %02x %02x %02x %02x %02x %02x %02x",ch[0],ch[1],ch[2],ch[3],ch[4],ch[5],ch[6],ch[7]);
89
90   /* Channel 5 - Left Aux?  Always set to volume, but never used for panning */
91   /* Channel 4 - Right Aux?  Always set to volume, but never used for panning */
92   /* Channels 0, 1, 2, 3 - Unused */
93
84   if (ACCESSING_BITS_8_15)
85      mb87078_data_w(space->machine().device("mb87078"), data >> 8, offset ^ 1);
9486}
9587
96static TIMER_DEVICE_CALLBACK( taito_en_timer_callback )
97{
98   /* Only cause IRQ if the mask is set to allow it */
99   if (m68681_imr & 0x08)
100   {
101      device_set_input_line_vector(timer.machine().device("audiocpu"), 6, vector_reg);
102      cputag_set_input_line(timer.machine(), "audiocpu", 6, ASSERT_LINE);
103      imr_status |= 0x08;
104   }
105}
10688
107static READ16_HANDLER(f3_68681_r)
108{
109   if (offset == 0x05)
110   {
111      int ret = imr_status;
112      imr_status = 0;
113      return ret;
114   }
89/*************************************
90 *
91 *  ES5510
92 *
93 *************************************/
11594
116   if (offset == 0x0e)
117      return 1;
118
119   /* IRQ ack */
120   if (offset == 0x0f)
121   {
122      cputag_set_input_line(space->machine(), "audiocpu", 6, CLEAR_LINE);
123      return 0;
124   }
125
126   return 0xff;
127}
128
129static WRITE16_HANDLER(f3_68681_w)
95static READ16_HANDLER( es5510_dsp_r )
13096{
131   timer_device *timer;
132   switch (offset) {
133      case 0x04: /* ACR */
134         switch ((data>>4)&7) {
135            case 0:
136               logerror("Counter:  Unimplemented external IP2\n");
137               break;
138            case 1:
139               logerror("Counter:  Unimplemented TxCA - 1X clock of channel A\n");
140               break;
141            case 2:
142               logerror("Counter:  Unimplemented TxCB - 1X clock of channel B\n");
143               break;
144            case 3:
145               logerror("Counter:  X1/Clk - divided by 16, counter is %04x, so interrupt every %d cycles\n",counter,(M68000_CLOCK/M68681_CLOCK)*counter*16);
146               timer_mode=TIMER_SINGLESHOT;
147               timer = space->machine().device<timer_device>("timer_68681");
148               timer->adjust(downcast<cpu_device *>(&space->device())->cycles_to_attotime((M68000_CLOCK/M68681_CLOCK)*counter*16));
149               break;
150            case 4:
151               logerror("Timer:  Unimplemented external IP2\n");
152               break;
153            case 5:
154               logerror("Timer:  Unimplemented external IP2/16\n");
155               break;
156            case 6:
157               logerror("Timer:  X1/Clk, counter is %04x, so interrupt every %d cycles\n",counter,(M68000_CLOCK/M68681_CLOCK)*counter);
158               timer_mode=TIMER_PULSE;
159               timer = space->machine().device<timer_device>("timer_68681");
160               timer->adjust(downcast<cpu_device *>(&space->device())->cycles_to_attotime((M68000_CLOCK/M68681_CLOCK)*counter), 0, downcast<cpu_device *>(&space->device())->cycles_to_attotime((M68000_CLOCK/M68681_CLOCK)*counter));
161               break;
162            case 7:
163               logerror("Timer:  Unimplemented X1/Clk - divided by 16\n");
164               break;
165         }
166         break;
167
168      case 0x05: /* IMR */
169         logerror("68681:  %02x %02x\n",offset,data&0xff);
170         m68681_imr=data&0xff;
171         break;
172
173      case 0x06: /* CTUR */
174         counter=((data&0xff)<<8)|(counter&0xff);
175         break;
176      case 0x07: /* CTLR */
177         counter=(counter&0xff00)|(data&0xff);
178         break;
179      case 0x08: break; /* MR1B (Mode register B) */
180      case 0x09: break; /* CSRB (Clock select register B) */
181      case 0x0a: break; /* CRB (Command register B) */
182      case 0x0b: break; /* TBB (Transmit buffer B) */
183      case 0x0c: /* IVR (Interrupt vector) */
184         vector_reg=data&0xff;
185         break;
186      default:
187         logerror("68681:  %02x %02x\n",offset,data&0xff);
188         break;
189   }
190}
191
192static READ16_HANDLER(es5510_dsp_r)
193{
19497//  logerror("%06x: DSP read offset %04x (data is %04x)\n",cpu_get_pc(&space->device()),offset,es5510_dsp_ram[offset]);
19598//  if (es_tmp) return es5510_dsp_ram[offset];
19699/*
r15413r15414
220123   return es5510_dsp_ram[offset];
221124}
222125
223static WRITE16_HANDLER(es5510_dsp_w)
126static WRITE16_HANDLER( es5510_dsp_w )
224127{
225128   UINT8 *snd_mem = (UINT8 *)space->machine().root_device().memregion("ensoniq.0")->base();
226129
r15413r15414
287190   }
288191}
289192
290static ADDRESS_MAP_START( f3_sound_map, AS_PROGRAM, 16, driver_device )
193
194/*************************************
195 *
196 *  68000 memory map
197 *
198 *************************************/
199
200static ADDRESS_MAP_START( en_sound_map, AS_PROGRAM, 16, driver_device )
291201   AM_RANGE(0x000000, 0x00ffff) AM_RAM AM_MIRROR(0x30000) AM_SHARE("share1")
292   AM_RANGE(0x140000, 0x140fff) AM_READWRITE_LEGACY(f3_68000_share_r, f3_68000_share_w)
202   AM_RANGE(0x140000, 0x140fff) AM_READWRITE_LEGACY(en_68000_share_r, en_68000_share_w)
293203   AM_RANGE(0x200000, 0x20001f) AM_DEVREADWRITE_LEGACY("ensoniq", es5505_r, es5505_w)
294204   AM_RANGE(0x260000, 0x2601ff) AM_READWRITE_LEGACY(es5510_dsp_r, es5510_dsp_w)
295   AM_RANGE(0x280000, 0x28001f) AM_READWRITE_LEGACY(f3_68681_r, f3_68681_w)
296   AM_RANGE(0x300000, 0x30003f) AM_WRITE_LEGACY(f3_es5505_bank_w)
297   AM_RANGE(0x340000, 0x340003) AM_WRITE8_LEGACY(f3_volume_w,0xff00) /* 8 channel volume control */
205   AM_RANGE(0x280000, 0x28001f) AM_DEVREADWRITE8_LEGACY("duart68681", duart68681_r, duart68681_w, 0x00ff)
206   AM_RANGE(0x300000, 0x30003f) AM_WRITE_LEGACY(en_es5505_bank_w)
207   AM_RANGE(0x340000, 0x340003) AM_WRITE_LEGACY(en_volume_w)
298208   AM_RANGE(0xc00000, 0xc1ffff) AM_ROMBANK("bank1")
299209   AM_RANGE(0xc20000, 0xc3ffff) AM_ROMBANK("bank2")
300210   AM_RANGE(0xc40000, 0xc7ffff) AM_ROMBANK("bank3")
301211   AM_RANGE(0xff0000, 0xffffff) AM_RAM AM_SHARE("share1")   // mirror
302212ADDRESS_MAP_END
303213
304SOUND_RESET( taito_f3_soundsystem_reset )
214
215/*************************************
216 *
217 *  Reset
218 *
219 *************************************/
220 
221SOUND_RESET( taito_en_soundsystem_reset )
305222{
306223   /* Sound cpu program loads to 0xc00000 so we use a bank */
307224   UINT16 *ROM = (UINT16 *)machine.root_device().memregion("audiocpu")->base();
r15413r15414
319236   machine.device("audiocpu")->reset();
320237   //cputag_set_input_line(machine, "audiocpu", INPUT_LINE_RESET, ASSERT_LINE);
321238
322   f3_shared_ram = (UINT32 *)machine.root_device().memshare("f3_shared")->ptr();
239   snd_shared_ram = (UINT32 *)machine.root_device().memshare("snd_shared")->ptr();
323240}
324241
325static const es5505_interface es5505_taito_f3_config =
242
243/*************************************
244 *
245 *  MB87078 callback
246 *
247 *************************************/
248
249static void mb87078_gain_changed( running_machine &machine, int channel, int percent )
326250{
251   if (channel < 2)
252   {
253      es5505_device *es5505 = machine.device<es5505_device>("ensoniq");
254   
255      es5505->set_output_gain(channel, percent / 100.0);
256   }
257}
258
259
260/*************************************
261 *
262 *  M68681 callback
263 *
264 *************************************/
265 
266static void taito_en_duart_irq_handler(device_t *device, int state, UINT8 vector)
267{
268   if (state == ASSERT_LINE)
269   {     
270      device_set_input_line_vector(device->machine().device("audiocpu"), M68K_IRQ_6, vector);
271      device_set_input_line(device->machine().device("audiocpu"), M68K_IRQ_6, ASSERT_LINE);     
272   }
273   else
274   {
275      device_set_input_line(device->machine().device("audiocpu"), M68K_IRQ_6, CLEAR_LINE);   
276   }
277}
278
279
280/*************************************
281 *
282 *  Device interfaces
283 *
284 *************************************/
285 
286static const duart68681_config taito_en_duart68681_config =
287{
288   taito_en_duart_irq_handler,
289   NULL,
290   NULL,
291   NULL
292};
293
294static const mb87078_interface taito_en_mb87078_intf =
295{
296   mb87078_gain_changed
297};
298
299static const es5505_interface es5505_taito_en_config =
300{
327301   "ensoniq.0",   /* Bank 0: Unused by F3 games? */
328302   "ensoniq.0",   /* Bank 1: All games seem to use this */
329   NULL /* irq */
303   NULL         /* IRQ */
330304};
331305
332MACHINE_CONFIG_FRAGMENT( taito_f3_sound )
333   MCFG_TIMER_ADD("timer_68681", taito_en_timer_callback)
334306
335   MCFG_SOUND_RESET( taito_f3_soundsystem_reset )
307/*************************************
308 *
309 *  Machine driver
310 *
311 *************************************/
312 
313MACHINE_CONFIG_FRAGMENT( taito_en_sound )
314   MCFG_CPU_ADD("audiocpu", M68000, XTAL_16MHz)
315   MCFG_CPU_PROGRAM_MAP(en_sound_map)
336316
337   MCFG_CPU_ADD("audiocpu",  M68000, 16000000)
338   MCFG_CPU_PROGRAM_MAP(f3_sound_map)
317   MCFG_DUART68681_ADD("duart68681", XTAL_16MHz / 4, taito_en_duart68681_config)
318   MCFG_MB87078_ADD("mb87078", taito_en_mb87078_intf)
339319
320   MCFG_SOUND_RESET(taito_en_soundsystem_reset)
321
340322   MCFG_SPEAKER_STANDARD_STEREO("lspeaker", "rspeaker")
341   MCFG_SOUND_ADD("ensoniq", ES5505, 30476100/2)
342   MCFG_SOUND_CONFIG(es5505_taito_f3_config)
323   MCFG_SOUND_ADD("ensoniq", ES5505, XTAL_30_4761MHz / 2)
324   MCFG_SOUND_CONFIG(es5505_taito_en_config)
343325   MCFG_SOUND_ROUTE(0, "lspeaker", 1.0)
344326   MCFG_SOUND_ROUTE(1, "rspeaker", 1.0)
345327MACHINE_CONFIG_END
src/mame/audio/taito_en.h
r15413r15414
11#include "cpu/m68000/m68000.h"
22#include "sound/es5506.h"
33
4SOUND_RESET( taito_f3_soundsystem_reset );
4SOUND_RESET( taito_en_soundsystem_reset );
55
6MACHINE_CONFIG_EXTERN( taito_f3_sound );
6MACHINE_CONFIG_EXTERN( taito_en_sound );
src/mame/includes/seta2.h
r15413r15414
5757   DECLARE_WRITE8_MEMBER(funcube_leds_w);
5858   DECLARE_READ8_MEMBER(funcube_outputs_r);
5959   DECLARE_WRITE8_MEMBER(funcube_outputs_w);
60   DECLARE_READ8_MEMBER(funcube_battery_r);
6061   DECLARE_READ16_MEMBER(gundamex_eeprom_r);
6162   DECLARE_WRITE16_MEMBER(gundamex_eeprom_w);
6263   DECLARE_READ32_MEMBER(oki_read);
src/mame/includes/taitojc.h
r15413r15414
99      m_dsp(*this,"dsp"),
1010      m_vram(*this, "vram"),
1111      m_objlist(*this, "objlist"),
12      m_f3_shared_ram(*this, "f3_shared"),
12      m_snd_shared_ram(*this, "snd_shared"),
1313      m_main_ram(*this, "main_ram"),
1414      m_dsp_shared_ram(*this, "dsp_shared"),
1515      m_palette_ram(*this, "palette_ram")
r15413r15414
5050   required_device<cpu_device> m_dsp;
5151   required_shared_ptr<UINT32> m_vram;
5252   required_shared_ptr<UINT32> m_objlist;
53   optional_shared_ptr<UINT32> m_f3_shared_ram;
53   optional_shared_ptr<UINT32> m_snd_shared_ram;
5454   required_shared_ptr<UINT32> m_main_ram;
5555   required_shared_ptr<UINT16> m_dsp_shared_ram;
5656   required_shared_ptr<UINT32> m_palette_ram;
r15413r15414
8181   DECLARE_READ8_MEMBER(jc_pcbid_r);
8282   DECLARE_READ32_MEMBER(dsp_shared_r);
8383   DECLARE_WRITE32_MEMBER(dsp_shared_w);
84   DECLARE_READ32_MEMBER(f3_share_r);
85   DECLARE_WRITE32_MEMBER(f3_share_w);
84   DECLARE_READ32_MEMBER(snd_share_r);
85   DECLARE_WRITE32_MEMBER(snd_share_w);
8686   DECLARE_WRITE32_MEMBER(jc_meters_w);
8787   DECLARE_READ32_MEMBER(jc_lan_r);
8888   DECLARE_READ8_MEMBER(hc11_comm_r);
src/mame/includes/dec0.h
r15413r15414
77      m_spriteram(*this, "spriteram"),
88      m_robocop_shared_ram(*this, "robocop_shared"){ }
99
10   UINT8 m_automat_adpcm_byte;
11   int m_automat_msm5205_vclk_toggle;
1210   required_shared_ptr<UINT16> m_ram;
1311   required_shared_ptr<UINT16> m_spriteram;
1412   optional_shared_ptr<UINT8> m_robocop_shared_ram;
r15413r15414
2523   UINT16 *m_buffered_spriteram;
2624   UINT16 m_pri;
2725   DECLARE_WRITE16_MEMBER(dec0_control_w);
28   DECLARE_WRITE16_MEMBER(automat_control_w);
2926   DECLARE_WRITE16_MEMBER(slyspy_control_w);
3027   DECLARE_WRITE16_MEMBER(midres_sound_w);
3128   DECLARE_WRITE16_MEMBER(unmapped_w);
32   DECLARE_WRITE8_MEMBER(automat_adpcm_w);
3329   DECLARE_READ16_MEMBER(slyspy_controls_r);
3430   DECLARE_READ16_MEMBER(slyspy_protection_r);
3531   DECLARE_WRITE16_MEMBER(slyspy_state_w);
r15413r15414
5551};
5652
5753
54class automat_state : public dec0_state
55{
56public:
57   automat_state(const machine_config &mconfig, device_type type, const char *tag)
58      : dec0_state(mconfig, type, tag) {
59
60   }
61
62   UINT8 m_automat_adpcm_byte;
63   int m_automat_msm5205_vclk_toggle;
64   DECLARE_WRITE16_MEMBER(automat_control_w);
65   DECLARE_WRITE8_MEMBER(automat_adpcm_w);
66
67};
68
69
5870/*----------- defined in video/dec0.c -----------*/
5971
6072/* Video emulation definitions */
6173VIDEO_START( dec0 );
6274VIDEO_START( dec0_nodma );
75VIDEO_START( automat );
6376SCREEN_UPDATE_IND16( hbarrel );
6477SCREEN_UPDATE_IND16( baddudes );
6578SCREEN_UPDATE_IND16( birdtry );
6679SCREEN_UPDATE_IND16( robocop );
80SCREEN_UPDATE_IND16( automat );
6781SCREEN_UPDATE_IND16( hippodrm );
6882SCREEN_UPDATE_IND16( slyspy );
6983SCREEN_UPDATE_IND16( midres );
7084
7185
72
73READ8_HANDLER( dec0_pf3_data_8bit_r );
74WRITE8_HANDLER( dec0_pf3_data_8bit_w );
75WRITE8_HANDLER( dec0_pf3_control_8bit_w );
76
7786/*----------- defined in machine/dec0.c -----------*/
7887
7988READ16_HANDLER( slyspy_controls_r );
src/mame/includes/superchs.h
r15413r15414
1515      : driver_device(mconfig, type, tag),
1616      m_ram(*this,"ram"),
1717      m_spriteram(*this,"spriteram"),
18      m_shared_ram(*this,"shared_ram") { }
18      m_shared_ram(*this,"shared_ram")
19   { }
1920
2021   UINT16 m_coin_word;
2122   required_shared_ptr<UINT32> m_ram;
2223   required_shared_ptr<UINT32> m_spriteram;
2324   required_shared_ptr<UINT32> m_shared_ram;
2425
25   int m_steer;
2626   struct tempsprite *m_spritelist;
2727   UINT32 m_mem[2];
2828
src/mame/includes/taito_z.h
r15413r15414
1111{
1212public:
1313   taitoz_state(const machine_config &mconfig, device_type type, const char *tag)
14      : driver_device(mconfig, type, tag) ,
15      m_spriteram(*this, "spriteram"){ }
14      : driver_device(mconfig, type, tag),
15      m_spriteram(*this, "spriteram")
16   { }
1617
1718   /* memory pointers */
1819   required_shared_ptr<UINT16> m_spriteram;
19//  UINT16 *    paletteram;    // currently this uses generic palette handling
2020
2121   /* video-related */
2222   int         m_sci_spriteframe;
2323   int         m_road_palbank;
2424
2525   /* misc */
26   int         m_chasehq_lamps;
2726   INT32       m_banknum;
2827   UINT16      m_cpua_ctrl;
2928   INT32       m_sci_int6;
30   INT32       m_dblaxle_int6;
3129   INT32       m_ioc220_port;
3230   UINT16      m_eep_latch;
3331
34//  UINT8       pandata[4];
35
3632   /* devices */
3733   device_t *m_maincpu;
3834   device_t *m_audiocpu;
r15413r15414
4440   device_t *m_tc0220ioc;
4541   device_t *m_tc0140syt;
4642
47   /* dblaxle motor flag */
48   int       m_dblaxle_vibration;
4943   DECLARE_WRITE16_MEMBER(cpua_ctrl_w);
44   DECLARE_WRITE16_MEMBER(chasehq_cpua_ctrl_w);
45   DECLARE_WRITE16_MEMBER(dblaxle_cpua_ctrl_w);
5046   DECLARE_READ16_MEMBER(eep_latch_r);
5147   DECLARE_WRITE16_MEMBER(spacegun_output_bypass_w);
5248   DECLARE_READ8_MEMBER(contcirc_input_bypass_r);
r15413r15414
7470   DECLARE_READ16_MEMBER(sci_spriteframe_r);
7571   DECLARE_WRITE16_MEMBER(sci_spriteframe_w);
7672   DECLARE_WRITE16_MEMBER(contcirc_out_w);
73   DECLARE_CUSTOM_INPUT_MEMBER(taitoz_pedal_r);
7774};
7875
7976/*----------- defined in video/taito_z.c -----------*/
r15413r15414
8885SCREEN_UPDATE_IND16( aquajack );
8986SCREEN_UPDATE_IND16( spacegun );
9087SCREEN_UPDATE_IND16( dblaxle );
88SCREEN_UPDATE_IND16( racingb );
src/mame/video/ms32.c
r15413r15414
709709
710710            else
711711            {
712               fatalerror("unhandled priority type %02x\n",primask);
712               dstptr_bitmap[xx] = 0;
713               logerror("unhandled priority type %02x\n",primask);
713714            }
714715
715716
src/mame/video/dec0.c
r15413r15414
147147   return 0;
148148}
149149
150
151SCREEN_UPDATE_IND16( automat )
152{
153   return 0;
154}
155
150156/******************************************************************************/
151157
152158SCREEN_UPDATE_IND16( birdtry )
r15413r15414
267273   state->m_buffered_spriteram = auto_alloc_array(machine, UINT16, 0x800/2);
268274}
269275
276VIDEO_START( automat )
277{
278//   dec0_state *state = machine.driver_data<dec0_state>();
279}
280
270281/******************************************************************************/
src/mame/video/metro.c
r15413r15414
448448   UINT8 *base_gfx4 = state->m_expanded_gfx1;
449449   UINT8 *base_gfx8 = state->memregion("gfx1")->base();
450450   UINT32 gfx_size = state->memregion("gfx1")->bytes();
451   const rectangle &visarea = machine.primary_screen->visible_area();
452451
453   int max_x = visarea.max_x + 1;
454   int max_y = visarea.max_y + 1;
452   int max_x = machine.primary_screen->width();
453   int max_y = machine.primary_screen->height();
455454
456455   int max_sprites = state->m_spriteram.bytes() / 8;
457456   int sprites     = state->m_videoregs[0x00/2] % max_sprites;
r15413r15414
729728   metro_state *state = screen.machine().driver_data<metro_state>();
730729   int pri, layers_ctrl = -1;
731730   UINT16 screenctrl = *state->m_screenctrl;
732   const rectangle &visarea = screen.machine().primary_screen->visible_area();
733731
734   state->m_sprite_xoffs = state->m_videoregs[0x06 / 2] - (visarea.max_x + 1)  / 2;
735   state->m_sprite_yoffs = state->m_videoregs[0x04 / 2] - (visarea.max_y + 1) / 2;
732   state->m_sprite_xoffs = state->m_videoregs[0x06 / 2] - screen.width()  / 2;
733   state->m_sprite_yoffs = state->m_videoregs[0x04 / 2] - screen.height() / 2;
736734
737735   /* The background color is selected by a register */
738736   screen.machine().priority_bitmap.fill(0, cliprect);
src/mame/video/taito_z.c
r15413r15414
821821
822822WRITE16_MEMBER(taitoz_state::contcirc_out_w)
823823{
824
825824   if (ACCESSING_BITS_0_7)
826825   {
827826      /* bit 0 = reset sub CPU */
r15413r15414
10301029   tc0480scp_tilemap_draw(state->m_tc0480scp, bitmap, cliprect, layer[4], 0, 0);   /* Text layer */
10311030   return 0;
10321031}
1032
1033
1034SCREEN_UPDATE_IND16( racingb )
1035{
1036   taitoz_state *state = screen.machine().driver_data<taitoz_state>();
1037   UINT8 layer[5];
1038   UINT16 priority;
1039
1040   tc0480scp_tilemap_update(state->m_tc0480scp);
1041
1042   priority = tc0480scp_get_bg_priority(state->m_tc0480scp);
1043
1044   layer[0] = (priority & 0xf000) >> 12;   /* tells us which bg layer is bottom */
1045   layer[1] = (priority & 0x0f00) >>  8;
1046   layer[2] = (priority & 0x00f0) >>  4;
1047   layer[3] = (priority & 0x000f) >>  0;   /* tells us which is top */
1048   layer[4] = 4;   /* text layer always over bg layers */
1049
1050   screen.machine().priority_bitmap.fill(0, cliprect);
1051
1052   /* Ensure screen blanked - this shouldn't be necessary! */
1053   bitmap.fill(0, cliprect);
1054
1055   tc0480scp_tilemap_draw(state->m_tc0480scp, bitmap, cliprect, layer[0], TILEMAP_DRAW_OPAQUE, 0);
1056   tc0480scp_tilemap_draw(state->m_tc0480scp, bitmap, cliprect, layer[1], 0, 0);
1057   tc0480scp_tilemap_draw(state->m_tc0480scp, bitmap, cliprect, layer[2], 0, 2);
1058   tc0480scp_tilemap_draw(state->m_tc0480scp, bitmap, cliprect, layer[3], 0, 2);
1059
1060   tc0150rod_draw(state->m_tc0150rod, bitmap, cliprect, -1, 0xc0, 0, 0, 1, 2);
1061   sci_draw_sprites_16x8(screen.machine(), bitmap, cliprect, 7);
1062
1063   tc0480scp_tilemap_draw(state->m_tc0480scp, bitmap, cliprect, layer[4], 0, 4);
1064   return 0;
1065}
src/mame/layout/superchs.lay
r15413r15414
4848      </disk>
4949   </element>
5050
51   <!-- Super Chase used a widescreen monitor, see http://flyers.arcade-museum.com/?page=thumbs&db=videodb&id=1118 -->
51   <!-- Super Chase (Deluxe/Cockpit cab) used a widescreen monitor, see http://flyers.arcade-museum.com/?page=thumbs&db=videodb&id=1118 -->
5252
53   <view name="Shifter-R">
53   <view name="Deluxe (16:9), Shifter-R">
5454      <screen index="0">
55         <bounds left="0" top="0" right="864" bottom="486" />
55         <bounds left="0" top="0" right="800" bottom="450" />
5656      </screen>
5757      <bezel element="shifter" inputtag="INPUTS" inputmask="0x00002000">
58         <bounds x="830" y="414" width="32" height="64" />
58         <bounds x="766" y="384" width="32" height="64" />
5959         <color alpha="0.6" />
6060      </bezel>
6161   </view>
62   <view name="Shifter-L">
62   <view name="Deluxe (16:9), Shifter-L">
6363      <screen index="0">
64         <bounds left="0" top="0" right="864" bottom="486" />
64         <bounds left="0" top="0" right="800" bottom="450" />
6565      </screen>
6666      <bezel element="shifter" inputtag="INPUTS" inputmask="0x00002000">
67         <bounds x="2" y="384" width="32" height="64" />
68         <color alpha="0.6" />
69      </bezel>
70   </view>
71
72   <view name="Upright (4:3), Shifter-R">
73      <screen index="0">
74         <bounds left="0" top="0" right="640" bottom="480" />
75      </screen>
76      <bezel element="shifter" inputtag="INPUTS" inputmask="0x00002000">
77         <bounds x="606" y="414" width="32" height="64" />
78         <color alpha="0.6" />
79      </bezel>
80   </view>
81   <view name="Upright (4:3), Shifter-L">
82      <screen index="0">
83         <bounds left="0" top="0" right="640" bottom="480" />
84      </screen>
85      <bezel element="shifter" inputtag="INPUTS" inputmask="0x00002000">
6786         <bounds x="2" y="414" width="32" height="64" />
6887         <color alpha="0.6" />
6988      </bezel>
7089   </view>
90
7191</mamelayout>
src/mame/drivers/seta2.c
r15413r15414
66
77
88CPU    :    TMP68301*
9            ColdFire + H8/3007 + PIC12C508 (for FUNCUBE)
9            or ColdFire + H8/3007 + PIC12C508 (for EVA2 & EVA3 PCBs)
1010
1111Video  :    DX-101
1212            DX-102 x3
1313
1414Sound  :    X1-010
15            OKI M9810 for later EVA2 & EVA3 PCBs
15            or OKI M9810 (for EVA2 & EVA3 PCBs)
1616
1717OSC    :    50.00000MHz
1818            32.53047MHz
r15413r15414
2525Ordered by Board        Year    Game                                    By
2626-------------------------------------------------------------------------------------------
2727P-FG01-1                1995    Guardians / Denjin Makai II             Banpresto
28PO-113A                 1994    Mobile Suit Gundam EX Revue             Banpresto
28P0-113A                 1994    Mobile Suit Gundam EX Revue             Banpresto
2929P0-123A                 1996    Wakakusamonogatari Mahjong Yonshimai    Maboroshi Ware
3030P0-125A ; KE (Namco)    1996    Kosodate Quiz My Angel                  Namco
3131P0-136A ; KL (Namco)    1997    Kosodate Quiz My Angel 2                Namco
32P0-140B                 2000    Funcube                                 Namco
3233P0-140B                 2000    Namco Stars                             Namco
3334P0-142A                 1999    Puzzle De Bowling                       Nihon System / Moss
3435P0-142A + extra parts   2000    Penguin Brothers                        Subsino
3536B0-003A (or B0-003B)    2000    Deer Hunting USA                        Sammy
3637B0-003A (or B0-003B)    2001    Turkey Hunting USA                      Sammy
37B0-006B                 2001    Funcube 2                               Namco
38B0-006B?                2001    Funcube 3                               Namco
39B0-006B                 2001    Funcube 4                               Namco
38B0-006B                 2001-2  Funcube 2 - 5                           Namco
4039B0-010A                 2001    Wing Shooting Championship              Sammy
4140B0-010A                 2002    Trophy Hunting - Bear & Moose           Sammy
4241P-FG-02                 ????    Reel'N Quake                            <unknown>
r15413r15414
8887  This is probably due to a couple of frames with an odd or corrupt sprites list,
8988  taking a long time to render.
9089
91funcube:
90funcube series:
9291- Hacked to run, as they use a ColdFire CPU.
93- Pay-out key causes "unknown error".
92- Pay-out key causes "unknown error" after coin count reaches 0.
9493
9594reelquak:
9695- Needs an x offset for tilemap sprites.
r15413r15414
508507
509508
510509/***************************************************************************
511                                  Funcube
510                               Funcube series
512511***************************************************************************/
513512
514513// Bus conversion functions:
r15413r15414
534533
535534WRITE16_MEMBER(seta2_state::spriteram16_word_w)
536535{
537
538536   COMBINE_DATA( &m_spriteram[offset] );
539537}
540538
541539READ16_MEMBER(seta2_state::spriteram16_word_r)
542540{
543
544541   return m_spriteram[offset];
545542}
546543
r15413r15414
605602    }
606603}
607604
608
609605static ADDRESS_MAP_START( funcube_map, AS_PROGRAM, 32, seta2_state )
610606   AM_RANGE( 0x00000000, 0x0007ffff ) AM_ROM
611607   AM_RANGE( 0x00200000, 0x0020ffff ) AM_RAM
612608
609   AM_RANGE( 0x00400000, 0x00400003 ) AM_READ(funcube_debug_r)
610   AM_RANGE( 0x00400004, 0x00400007 ) AM_READ(watchdog_reset32_r ) AM_WRITENOP
611
612   AM_RANGE( 0x00500000, 0x00500003 ) AM_READWRITE(oki_read, oki_write)
613
614   AM_RANGE( 0x00800000, 0x0083ffff ) AM_READWRITE16(spriteram16_word_r,  spriteram16_word_w, 0xffffffff ) AM_SHARE("spriteram")
615   AM_RANGE( 0x00840000, 0x0084ffff ) AM_RAM_WRITE(paletteram_xRRRRRGGGGGBBBBB_dword_be_w) AM_SHARE("paletteram")   // Palette
616   AM_RANGE( 0x00860000, 0x0086003f ) AM_WRITE16(seta2_vregs_w, 0xffffffff ) AM_SHARE("vregs")
617
618   AM_RANGE( 0x00c00000, 0x00c002ff ) AM_READWRITE(funcube_nvram_dword_r, funcube_nvram_dword_w )
619
620   AM_RANGE(0xf0000000, 0xf00001ff ) AM_READWRITE(coldfire_regs_r, coldfire_regs_w ) AM_SHARE("coldfire_regs")   // Module
621   AM_RANGE(0xffffe000, 0xffffffff ) AM_RAM   // SRAM
622ADDRESS_MAP_END
623
624static ADDRESS_MAP_START( funcube2_map, AS_PROGRAM, 32, seta2_state )
625   AM_RANGE( 0x00000000, 0x0007ffff ) AM_ROM
626   AM_RANGE( 0x00200000, 0x0020ffff ) AM_RAM
627
613628   AM_RANGE( 0x00500000, 0x00500003 ) AM_READ(funcube_debug_r )
614629   AM_RANGE( 0x00500004, 0x00500007 ) AM_READ(watchdog_reset32_r ) AM_WRITENOP
615630
r15413r15414
737752   funcube_debug_outputs(space.machine());
738753}
739754
755READ8_MEMBER(seta2_state::funcube_battery_r)
756{
757   return ioport("BATTERY")->read() ? 0x40 : 0x00;
758}
740759
741760static ADDRESS_MAP_START( funcube_sub_io, AS_IO, 8, seta2_state )
742761   AM_RANGE( H8_PORT_7,   H8_PORT_7   )   AM_READ(funcube_coins_r )
762   AM_RANGE( H8_PORT_4,   H8_PORT_4   )   AM_READ(funcube_battery_r )
763   AM_RANGE( H8_PORT_A,   H8_PORT_A   )   AM_READWRITE(funcube_outputs_r, funcube_outputs_w ) AM_SHARE("funcube_outputs")
764   AM_RANGE( H8_PORT_B,   H8_PORT_B   )   AM_WRITE(funcube_leds_w )                           AM_SHARE("funcube_leds")
765//  AM_RANGE( H8_SERIAL_0, H8_SERIAL_0 )    // cabinets linking (jpunit)
766   AM_RANGE( H8_SERIAL_1, H8_SERIAL_1 )   AM_READ(funcube_serial_r )
767ADDRESS_MAP_END
768
769static ADDRESS_MAP_START( funcube2_sub_io, AS_IO, 8, seta2_state )
770   AM_RANGE( H8_PORT_7,   H8_PORT_7   )   AM_READ(funcube_coins_r )
743771   AM_RANGE( H8_PORT_4,   H8_PORT_4   )   AM_NOP   // unused
744772   AM_RANGE( H8_PORT_A,   H8_PORT_A   )   AM_READWRITE(funcube_outputs_r, funcube_outputs_w ) AM_SHARE("funcube_outputs")
745773   AM_RANGE( H8_PORT_B,   H8_PORT_B   )   AM_WRITE(funcube_leds_w )                           AM_SHARE("funcube_leds")
r15413r15414
17301758
17311759
17321760/***************************************************************************
1733                                  Funcube
1761                               Funcube series
17341762***************************************************************************/
17351763
17361764static INPUT_PORTS_START( funcube )
r15413r15414
17461774   PORT_START("SWITCH")   // c00030.l
17471775   PORT_BIT(     0x01, IP_ACTIVE_LOW,  IPT_COIN1    ) PORT_IMPULSE(1)   // coin solenoid 1
17481776   PORT_BIT(     0x02, IP_ACTIVE_HIGH, IPT_SPECIAL  )               // coin solenoid 2
1749   PORT_BIT(     0x04, IP_ACTIVE_HIGH, IPT_SPECIAL  )   // hopper sensor
1750   PORT_BIT(     0x08, IP_ACTIVE_LOW,  IPT_BUTTON2  )   // game select
1751   PORT_BIT(     0x10, IP_ACTIVE_LOW,  IPT_SPECIAL  ) PORT_CODE(KEYCODE_O) PORT_NAME( "Pay Out" )
1777   PORT_BIT(     0x04, IP_ACTIVE_HIGH, IPT_SPECIAL  )               // hopper sensor
1778   PORT_BIT(     0x08, IP_ACTIVE_LOW,  IPT_BUTTON2  )               // game select
1779   PORT_BIT(     0x10, IP_ACTIVE_LOW,  IPT_GAMBLE_PAYOUT )
17521780   PORT_BIT(     0x20, IP_ACTIVE_LOW,  IPT_SERVICE1 ) PORT_NAME( "Reset Key" )
17531781   PORT_SERVICE( 0x40, IP_ACTIVE_LOW   )
1754   PORT_BIT(     0x80, IP_ACTIVE_LOW, IPT_UNKNOWN  )
1782   PORT_SERVICE( 0x80, IP_ACTIVE_LOW   )
17551783
17561784   PORT_START("BATTERY")
17571785   PORT_DIPNAME( 0x10, 0x10, "Battery" )
r15413r15414
18901918GFXDECODE_END
18911919
18921920/***************************************************************************
1893                                  Funcube
1921                               Funcube series
18941922***************************************************************************/
18951923
18961924static const gfx_layout funcube_layout_4bpp_lo =
r15413r15414
21312159
21322160
21332161/***************************************************************************
2134                                  Funcube
2162                               Funcube series
21352163***************************************************************************/
21362164
21372165static TIMER_DEVICE_CALLBACK( funcube_interrupt )
r15413r15414
22032231   MCFG_SCREEN_REFRESH_RATE(60)
22042232   MCFG_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(2500))   // not accurate
22052233   MCFG_SCREEN_SIZE(0x200, 0x200)
2206   MCFG_SCREEN_VISIBLE_AREA(0x0, 0x140-1, 0x80, 0x170-1)
2234   MCFG_SCREEN_VISIBLE_AREA(0x0+1, 0x140-1+1, 0x80, 0x170-1)
22072235   MCFG_SCREEN_UPDATE_STATIC(seta2)
22082236   MCFG_SCREEN_VBLANK_STATIC(seta2)
22092237
r15413r15414
22202248   MCFG_SOUND_ROUTE(1, "rspeaker", 0.80)
22212249MACHINE_CONFIG_END
22222250
2223static MACHINE_CONFIG_DERIVED( funcube3, funcube )
2251
2252static MACHINE_CONFIG_DERIVED( funcube2, funcube )
2253   MCFG_CPU_MODIFY("maincpu")
2254   MCFG_CPU_PROGRAM_MAP(funcube2_map)
2255
2256   MCFG_CPU_MODIFY("sub")
2257   MCFG_CPU_IO_MAP(funcube2_sub_io)
2258
22242259   // video hardware
22252260   MCFG_SCREEN_MODIFY("screen")
2261   MCFG_SCREEN_VISIBLE_AREA(0x0, 0x140-1, 0x80, 0x170-1)
2262MACHINE_CONFIG_END
2263
2264
2265static MACHINE_CONFIG_DERIVED( funcube3, funcube2 )
2266   // video hardware
2267   MCFG_SCREEN_MODIFY("screen")
22262268   MCFG_SCREEN_VISIBLE_AREA(0x0, 0x140-1, 0x80-0x40, 0x170-1-0x40)
22272269MACHINE_CONFIG_END
22282270
2271
22292272static MACHINE_CONFIG_START( namcostr, seta2_state )
22302273   MCFG_CPU_ADD("maincpu", M68301, XTAL_50MHz/3)   // !! TMP68301 !!
22312274   MCFG_CPU_PROGRAM_MAP(namcostr_map)
r15413r15414
22652308
22662309/***************************************************************************
22672310
2268               FUNCUBE (BET) Series, includes 2 through 5?
2311FUNCUBE
2312EVA2E PCB
22692313
2314It's the same PCB as Namco Stars (P0-140B). It's a lot more complicated to dump
2315than the others because there are several surface mounted flash ROMs spread across
2316multiple daughterboards instead of simple socketed 32M DIP42 mask roms all on one PCB.
2317
2318***************************************************************************/
2319
2320ROM_START( funcube )
2321   ROM_REGION( 0x80000, "maincpu", 0 ) // XCF5206 Code
2322   ROM_LOAD( "fcu1_prg0-f.u08", 0x00000, 0x80000, CRC(57f4f340) SHA1(436fc66409b254aba68ae33fc994bc270ce803a6) )
2323
2324   ROM_REGION( 0x20000, "sub", 0 )      // H8/3007 Code
2325   ROM_LOAD( "fcu_0_iopr-0b.1b", 0x00000, 0x20000, CRC(87e3690f) SHA1(1b9dc573de31543884678df2dba2d6a74d6a2496) )
2326
2327   ROM_REGION( 0x800000, "sprites", 0 )
2328   ROM_LOAD32_BYTE( "fcu1_obj-0a.u12", 0x000000, 0x200000, CRC(908b6baf) SHA1(cb5aa8c9b16abb17d8cc16d0d3b2f690a48ee503) )
2329   ROM_LOAD32_BYTE( "fcu1_obj-0a.u13", 0x000001, 0x200000, CRC(8c31ca21) SHA1(e497ab1d7d30b41928a0c3db1ea7c3420376ad8c) )
2330   ROM_LOAD32_BYTE( "fcu1_obj-0a.u14", 0x000002, 0x200000, CRC(4298d599) SHA1(d245206bc78de5f17da85ae6063b662cf9cf67aa) )
2331   ROM_LOAD32_BYTE( "fcu1_obj-0a.u15", 0x000003, 0x200000, CRC(0669c78e) SHA1(0158fc4f90efa12d795b97873b8646c352864c69) )
2332
2333   ROM_REGION( 0x1000000, "oki", ROMREGION_ERASE00 )
2334   ROM_LOAD( "fcu1_snd-0a.u40", 0x000000, 0x200000, CRC(448539bc) SHA1(9e53bd5e29d1a88bf634e58bfeebccd3a1c2d866) )
2335ROM_END
2336
2337/***************************************************************************
2338
2339              FUNCUBE (BET) Series PCB for chapters 2 through 5
2340
22702341PCB Number: B0-006B (also known as EVA3_A system and is non-JAMMA)
22712342+------------------------------------------------+
22722343|+--+ S +---+ +---+                CN5           |
r15413r15414
24282499   ROM_LOAD( "fc51_snd-0.u47", 0x000000, 0x200000, CRC(2a504fe1) SHA1(911ad650bf48aa78d9cb3c64284aa526ceb519ba) )
24292500ROM_END
24302501
2502static DRIVER_INIT( funcube )
2503{
2504   UINT32 *main_cpu = (UINT32 *) machine.root_device().memregion("maincpu")->base();
2505   UINT16 *sub_cpu  = (UINT16 *) machine.root_device().memregion("sub")->base();
2506
2507   main_cpu[0x064/4] = 0x0000042a;   // PIC protection?
2508
2509   // Sub CPU
2510   sub_cpu[0x506/2] = 0x5470;   // rte -> rts
2511}
2512
24312513static DRIVER_INIT( funcube2 )
24322514{
24332515   UINT32 *main_cpu = (UINT32 *) machine.root_device().memregion("maincpu")->base();
r15413r15414
25342616PCB Layout
25352617----------
25362618
2537PO-113A   BP949KA
2619P0-113A   BP949KA
25382620|----------------------------------|
25392621|  X1-010  6264  U28               |
25402622|                     581001   U19 |
r15413r15414
32903372GAME( 2001, wschamp,  0,        samshoot, wschamp,  0,        ROT0, "Sammy USA Corporation", "Wing Shooting Championship V2.00",             GAME_NO_COCKTAIL | GAME_IMPERFECT_GRAPHICS )
32913373GAME( 2001, wschampa, wschamp,  samshoot, wschamp,  0,        ROT0, "Sammy USA Corporation", "Wing Shooting Championship V1.01",             GAME_NO_COCKTAIL | GAME_IMPERFECT_GRAPHICS )
32923374GAME( 2002, trophyh,  0,        samshoot, trophyh,  0,        ROT0, "Sammy USA Corporation", "Trophy Hunting - Bear & Moose V1.0",           GAME_NO_COCKTAIL | GAME_IMPERFECT_GRAPHICS )
3293GAME( 2001, funcube2, 0,        funcube,  funcube,  funcube2, ROT0, "Namco",                 "Funcube 2 (v1.1)",                             GAME_NO_COCKTAIL )
3375GAME( 2000, funcube,  0,        funcube,  funcube,  funcube,  ROT0, "Namco",                 "Funcube (v1.5)",                               GAME_NO_COCKTAIL )
3376GAME( 2001, funcube2, 0,        funcube2, funcube,  funcube2, ROT0, "Namco",                 "Funcube 2 (v1.1)",                             GAME_NO_COCKTAIL )
32943377GAME( 2001, funcube3, 0,        funcube3, funcube,  funcube3, ROT0, "Namco",                 "Funcube 3 (v1.1)",                             GAME_NO_COCKTAIL )
3295GAME( 2001, funcube4, 0,        funcube,  funcube,  funcube2, ROT0, "Namco",                 "Funcube 4 (v1.0)",                             GAME_NO_COCKTAIL )
3296GAME( 2002, funcube5, 0,        funcube,  funcube,  funcube2, ROT0, "Namco",                 "Funcube 5 (v1.0)",                             GAME_NO_COCKTAIL )
3378GAME( 2001, funcube4, 0,        funcube2, funcube,  funcube2, ROT0, "Namco",                 "Funcube 4 (v1.0)",                             GAME_NO_COCKTAIL )
3379GAME( 2002, funcube5, 0,        funcube2, funcube,  funcube2, ROT0, "Namco",                 "Funcube 5 (v1.0)",                             GAME_NO_COCKTAIL )
32973380GAME( ????, reelquak, 0,        reelquak, reelquak, 0,        ROT0, "<unknown>",             "Reel'N Quake! (Ver. 1.05)",                    GAME_NO_COCKTAIL | GAME_IMPERFECT_GRAPHICS )
src/mame/drivers/eolith.c
r15413r15414
7878
7979      Game animation seems too fast?
8080
81-----------------------------------------------------------------------------
82 Game Issues (unknown):
83
84  - linkypip (Linky Pipe)
85
86      Game seems to randomly hang for unknown reasons at the "Round 1" screen
87      just before you can actually start playing.  Gets cought up here:
88
89      40008176: MOV L10, L11
90      40008178: LDW.P L5, L8
91      4000817A: ADDI L10, $ffffffe
92      4000817C: DBNE $40008178
93      4000817E: STW.P L13, L8
94      40008180: ADDI L12, $ffffffff
95      40008182: DBNE $40008176
96      40008184: ADD L13, L14
97      40008186: RET PC, L3
98
8199 *********************************************************************/
82100
83101#include "emu.h"
r15413r15414
189207   PORT_BIT( 0x80000000, IP_ACTIVE_LOW, IPT_UNUSED )
190208
191209   PORT_START("DSW1")
192   PORT_BIT( 0xffffffff, IP_ACTIVE_LOW, IPT_UNUSED   )
210   PORT_DIPUNUSED_DIPLOC( 0x00000001, IP_ACTIVE_LOW, "SW4:1" )
211   PORT_DIPUNUSED_DIPLOC( 0x00000002, IP_ACTIVE_LOW, "SW4:2" )
212   PORT_DIPUNUSED_DIPLOC( 0x00000004, IP_ACTIVE_LOW, "SW4:3" )
213   PORT_DIPUNUSED_DIPLOC( 0x00000008, IP_ACTIVE_LOW, "SW4:4" )
214   PORT_DIPUNUSED_DIPLOC( 0x00000010, IP_ACTIVE_LOW, "SW3:1" )
215   PORT_DIPUNUSED_DIPLOC( 0x00000020, IP_ACTIVE_LOW, "SW3:2" )
216   PORT_DIPUNUSED_DIPLOC( 0x00000040, IP_ACTIVE_LOW, "SW3:3" )
217   PORT_DIPUNUSED_DIPLOC( 0x00000080, IP_ACTIVE_LOW, "SW3:4" )
218   PORT_BIT( 0xffffff00, IP_ACTIVE_LOW, IPT_UNUSED   )
193219
194220   PORT_START( "EEPROMOUT" )
195221   PORT_BIT( 0x00000002, IP_ACTIVE_LOW, IPT_OUTPUT ) PORT_WRITE_LINE_DEVICE_MEMBER("eeprom", eeprom_device, set_cs_line)
r15413r15414
197223   PORT_BIT( 0x00000008, IP_ACTIVE_HIGH, IPT_OUTPUT ) PORT_WRITE_LINE_DEVICE_MEMBER("eeprom", eeprom_device, write_bit)
198224INPUT_PORTS_END
199225
226static INPUT_PORTS_START( linkypip )
227   PORT_INCLUDE(common)
228
229   PORT_MODIFY("IN0")
230   PORT_BIT( 0x00004000, IP_ACTIVE_LOW, IPT_UNUSED ) /* No Service1 */
231   PORT_BIT( 0x00008000, IP_ACTIVE_LOW, IPT_UNUSED ) /* No Service */
232   PORT_BIT( 0x00400000, IP_ACTIVE_LOW, IPT_BUTTON3 ) PORT_PLAYER(1)
233   PORT_BIT( 0x40000000, IP_ACTIVE_LOW, IPT_BUTTON3 ) PORT_PLAYER(2)
234
235   PORT_MODIFY("DSW1")
236   PORT_DIPNAME( 0x00000001, 0x00000001, DEF_STR( Unknown ) ) PORT_DIPLOCATION("SW4:1")
237   PORT_DIPSETTING(          0x00000001, DEF_STR( Off ) )
238   PORT_DIPSETTING(          0x00000000, DEF_STR( On ) )
239   PORT_DIPNAME( 0x00000002, 0x00000002, DEF_STR( Unknown ) ) PORT_DIPLOCATION("SW4:2")
240   PORT_DIPSETTING(          0x00000002, DEF_STR( Off ) )
241   PORT_DIPSETTING(          0x00000000, DEF_STR( On ) )
242   PORT_DIPNAME( 0x0000000c, 0x0000000c, DEF_STR( Coinage ) ) PORT_DIPLOCATION("SW4:3,4")
243   PORT_DIPSETTING(          0x00000000, DEF_STR( 4C_1C ) )
244   PORT_DIPSETTING(          0x00000004, DEF_STR( 3C_1C ) )
245   PORT_DIPSETTING(          0x00000008, DEF_STR( 2C_1C ) )
246   PORT_DIPSETTING(          0x0000000c, DEF_STR( 1C_1C ) )
247   PORT_DIPNAME( 0x00000010, 0x00000010, DEF_STR( Unknown ) ) PORT_DIPLOCATION("SW3:1")
248   PORT_DIPSETTING(          0x00000010, DEF_STR( Off ) )
249   PORT_DIPSETTING(          0x00000000, DEF_STR( On ) )
250   PORT_DIPNAME( 0x00000020, 0x00000020, DEF_STR( Unknown ) ) PORT_DIPLOCATION("SW3:2")
251   PORT_DIPSETTING(          0x00000020, DEF_STR( Off ) )
252   PORT_DIPSETTING(          0x00000000, DEF_STR( On ) )
253   PORT_DIPNAME( 0x00000040, 0x00000040, DEF_STR( Unknown ) ) PORT_DIPLOCATION("SW3:3")
254   PORT_DIPSETTING(          0x00000040, DEF_STR( Off ) )
255   PORT_DIPSETTING(          0x00000000, DEF_STR( On ) )
256   PORT_DIPNAME( 0x00000080, 0x00000080, DEF_STR( Unknown ) ) PORT_DIPLOCATION("SW3:4")
257   PORT_DIPSETTING(          0x00000080, DEF_STR( Off ) )
258   PORT_DIPSETTING(          0x00000000, DEF_STR( On ) )
259
260INPUT_PORTS_END
261
200262static INPUT_PORTS_START( ironfort )
201   PORT_START("IN0")
202   PORT_BIT( 0x00000001, IP_ACTIVE_LOW, IPT_START1 )
203   PORT_BIT( 0x00000002, IP_ACTIVE_LOW, IPT_START2 )
204   PORT_BIT( 0x00000004, IP_ACTIVE_LOW, IPT_UNUSED )
205   PORT_BIT( 0x00000008, IP_ACTIVE_HIGH, IPT_SPECIAL ) PORT_READ_LINE_DEVICE_MEMBER("eeprom", eeprom_device, read_bit)
206   PORT_BIT( 0x00000010, IP_ACTIVE_LOW, IPT_COIN1 )
207   PORT_BIT( 0x00000020, IP_ACTIVE_LOW, IPT_UNUSED )
208   PORT_BIT( 0x00000040, IP_ACTIVE_LOW, IPT_SPECIAL ) PORT_CUSTOM_MEMBER(DEVICE_SELF, eolith_state, eolith_speedup_getvblank, NULL)
209   PORT_BIT( 0x00003f80, IP_ACTIVE_LOW, IPT_UNUSED )
210   PORT_BIT( 0x00004000, IP_ACTIVE_LOW, IPT_UNUSED )
211   PORT_BIT( 0x00008000, IP_ACTIVE_LOW, IPT_UNUSED )
212   PORT_BIT( 0x00010000, IP_ACTIVE_LOW, IPT_JOYSTICK_UP   ) PORT_8WAY PORT_PLAYER(1)
213   PORT_BIT( 0x00020000, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN   ) PORT_8WAY PORT_PLAYER(1)
214   PORT_BIT( 0x00040000, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT   ) PORT_8WAY PORT_PLAYER(1)
215   PORT_BIT( 0x00080000, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT   ) PORT_8WAY PORT_PLAYER(1)
216   PORT_BIT( 0x00100000, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_PLAYER(1)
217   PORT_BIT( 0x00200000, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_PLAYER(1)
218   PORT_BIT( 0x00400000, IP_ACTIVE_LOW, IPT_UNUSED )
219   PORT_BIT( 0x00800000, IP_ACTIVE_LOW, IPT_UNUSED )
220   PORT_BIT( 0x01000000, IP_ACTIVE_LOW, IPT_JOYSTICK_UP   ) PORT_8WAY PORT_PLAYER(2)
221   PORT_BIT( 0x02000000, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN   ) PORT_8WAY PORT_PLAYER(2)
222   PORT_BIT( 0x04000000, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT   ) PORT_8WAY PORT_PLAYER(2)
223   PORT_BIT( 0x08000000, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT   ) PORT_8WAY PORT_PLAYER(2)
224   PORT_BIT( 0x10000000, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_PLAYER(2)
225   PORT_BIT( 0x20000000, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_PLAYER(2)
226   PORT_BIT( 0x40000000, IP_ACTIVE_LOW, IPT_UNUSED )
227   PORT_BIT( 0x80000000, IP_ACTIVE_LOW, IPT_UNUSED )
263   PORT_INCLUDE(common)
228264
229   PORT_START("DSW1")
265   PORT_MODIFY("IN0")
266   PORT_BIT( 0x00004000, IP_ACTIVE_LOW, IPT_UNUSED ) /* No Service1 */
267   PORT_BIT( 0x00008000, IP_ACTIVE_LOW, IPT_UNUSED ) /* No Service */
268
269   PORT_MODIFY("DSW1")
230270   PORT_DIPNAME( 0x00000001, 0x00000001, "Show Dip-switch Information" ) PORT_DIPLOCATION("SW4:1")
231271   PORT_DIPSETTING(          0x00000001, DEF_STR( Off ) )
232272   PORT_DIPSETTING(          0x00000000, DEF_STR( On ) )
r15413r15414
248288   PORT_DIPSETTING(          0x00000040, DEF_STR( Hard ) )
249289   PORT_DIPSETTING(          0x000000c0, DEF_STR( Normal ) )
250290   PORT_DIPSETTING(          0x00000080, DEF_STR( Easy ) )
251   PORT_BIT( 0xffffff00, IP_ACTIVE_LOW, IPT_UNUSED   )
252
253   PORT_START( "EEPROMOUT" )
254   PORT_BIT( 0x00000002, IP_ACTIVE_LOW, IPT_OUTPUT ) PORT_WRITE_LINE_DEVICE_MEMBER("eeprom", eeprom_device, set_cs_line)
255   PORT_BIT( 0x00000004, IP_ACTIVE_HIGH, IPT_OUTPUT ) PORT_WRITE_LINE_DEVICE_MEMBER("eeprom", eeprom_device, set_clock_line)
256   PORT_BIT( 0x00000008, IP_ACTIVE_HIGH, IPT_OUTPUT ) PORT_WRITE_LINE_DEVICE_MEMBER("eeprom", eeprom_device, write_bit)
257291INPUT_PORTS_END
258292
259293static INPUT_PORTS_START( ironfortj )
r15413r15414
272306
273307static INPUT_PORTS_START( hidnctch )
274308   PORT_INCLUDE(common)
309
275310   PORT_MODIFY("IN0")
276311   PORT_BIT( 0x00000020, IP_ACTIVE_LOW, IPT_COIN2 )
277312
278313   PORT_MODIFY("DSW1")
279   PORT_DIPNAME( 0x00000001, 0x00000001, "Show Settings" )
280   PORT_DIPSETTING(          0x00000001, DEF_STR( Off ) )
281   PORT_DIPSETTING(          0x00000000, DEF_STR( On ) )
282   PORT_DIPNAME( 0x00000002, 0x00000002, "Show Counters" )
314   PORT_SERVICE_DIPLOC( 0x00000001, IP_ACTIVE_LOW, "SW4:1" )
315   PORT_DIPNAME( 0x00000002, 0x00000002, "Show Counters" ) PORT_DIPLOCATION("SW4:2")
283316   PORT_DIPSETTING(          0x00000002, DEF_STR( Off ) )
284317   PORT_DIPSETTING(          0x00000000, DEF_STR( On ) )
285   PORT_BIT( 0xfffffffc, IP_ACTIVE_LOW, IPT_UNUSED   )
286318INPUT_PORTS_END
287319
288320static INPUT_PORTS_START( candy )
289321   PORT_INCLUDE(common)
322
290323   PORT_MODIFY("IN0")
291324   PORT_BIT( 0x00000020, IP_ACTIVE_LOW, IPT_COIN2 )
292325
293326   PORT_MODIFY("DSW1")
294   PORT_DIPNAME( 0x00000001, 0x00000001, DEF_STR( Free_Play ) ) // always has 1 credit
327   PORT_DIPNAME( 0x00000001, 0x00000001, DEF_STR( Free_Play ) ) PORT_DIPLOCATION("SW4:1") // always has 1 credit
295328   PORT_DIPSETTING(          0x00000001, DEF_STR( Off ) )
296329   PORT_DIPSETTING(          0x00000000, DEF_STR( On ) )
297   PORT_DIPNAME( 0x00000002, 0x00000002, DEF_STR( Unknown ) )
330   PORT_DIPNAME( 0x00000002, 0x00000002, DEF_STR( Unknown ) ) PORT_DIPLOCATION("SW4:2")
298331   PORT_DIPSETTING(          0x00000002, DEF_STR( Off ) )
299332   PORT_DIPSETTING(          0x00000000, DEF_STR( On ) )
300   PORT_DIPNAME( 0x00000004, 0x00000004, DEF_STR( Unknown ) )
333   PORT_DIPNAME( 0x00000004, 0x00000004, DEF_STR( Unknown ) ) PORT_DIPLOCATION("SW4:3")
301334   PORT_DIPSETTING(          0x00000004, DEF_STR( Off ) )
302335   PORT_DIPSETTING(          0x00000000, DEF_STR( On ) )
303   PORT_DIPNAME( 0x00000008, 0x00000008, DEF_STR( Unknown ) )
336   PORT_DIPNAME( 0x00000008, 0x00000008, DEF_STR( Unknown ) ) PORT_DIPLOCATION("SW4:4")
304337   PORT_DIPSETTING(          0x00000008, DEF_STR( Off ) )
305338   PORT_DIPSETTING(          0x00000000, DEF_STR( On ) )
306   PORT_DIPNAME( 0x00000010, 0x00000010, DEF_STR( Unknown ) )
339   PORT_DIPNAME( 0x00000010, 0x00000010, DEF_STR( Unknown ) ) PORT_DIPLOCATION("SW3:1")
307340   PORT_DIPSETTING(          0x00000010, DEF_STR( Off ) )
308341   PORT_DIPSETTING(          0x00000000, DEF_STR( On ) )
309   PORT_DIPNAME( 0x00000020, 0x00000020, DEF_STR( Unknown ) )
342   PORT_DIPNAME( 0x00000020, 0x00000020, DEF_STR( Unknown ) ) PORT_DIPLOCATION("SW3:2")
310343   PORT_DIPSETTING(          0x00000020, DEF_STR( Off ) )
311344   PORT_DIPSETTING(          0x00000000, DEF_STR( On ) )
312   PORT_DIPNAME( 0x00000040, 0x00000040, DEF_STR( Unknown ) )
345   PORT_DIPNAME( 0x00000040, 0x00000040, DEF_STR( Unknown ) ) PORT_DIPLOCATION("SW3:3")
313346   PORT_DIPSETTING(          0x00000040, DEF_STR( Off ) )
314347   PORT_DIPSETTING(          0x00000000, DEF_STR( On ) )
315   PORT_DIPNAME( 0x00000080, 0x00000080, DEF_STR( Unknown ) )
348   PORT_DIPNAME( 0x00000080, 0x00000080, DEF_STR( Unknown ) ) PORT_DIPLOCATION("SW3:4")
316349   PORT_DIPSETTING(          0x00000080, DEF_STR( Off ) )
317350   PORT_DIPSETTING(          0x00000000, DEF_STR( On ) )
318351
r15413r15414
326359   PORT_BIT( 0xff000000, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_PLAYER(2)
327360
328361   PORT_MODIFY("DSW1")
329   PORT_DIPNAME( 0x00000001, 0x00000001, "Show Settings" )
330   PORT_DIPSETTING(          0x00000001, DEF_STR( Off ) )
331   PORT_DIPSETTING(          0x00000000, DEF_STR( On ) )
332   PORT_BIT( 0xfffffffe, IP_ACTIVE_LOW, IPT_UNUSED   )
362   PORT_SERVICE_DIPLOC( 0x00000001, IP_ACTIVE_LOW, "SW4:1" ) /* Use Service ("F2") to navigate & Service1 ("9") to select */
333363
334364   PORT_START("PEN_X_P1")
335365   PORT_BIT( 0xffff, 0, IPT_LIGHTGUN_X ) PORT_CROSSHAIR(X, 1.0, 0.0, 0) PORT_MINMAX(0,159) PORT_SENSITIVITY(25) PORT_KEYDELTA(1) PORT_PLAYER(1)
r15413r15414
346376
347377static INPUT_PORTS_START( raccoon )
348378   PORT_INCLUDE(common)
379
349380   PORT_MODIFY("IN0")
350   PORT_BIT( 0x00008000, IP_ACTIVE_LOW, IPT_UNUSED )
381   PORT_BIT( 0x00008000, IP_ACTIVE_LOW, IPT_UNUSED ) /* No Service */
351382
352383   PORT_MODIFY("DSW1")
353   PORT_DIPNAME( 0x0000000f, 0x0000000f, DEF_STR( Coinage ) )
384   PORT_DIPNAME( 0x0000000f, 0x0000000f, DEF_STR( Coinage ) ) PORT_DIPLOCATION("SW4:1,2,3,4")
354385   PORT_DIPSETTING(          0x0000000d, DEF_STR( 4C_1C ) )
355386   PORT_DIPSETTING(          0x0000000e, DEF_STR( 3C_1C ) )
356387   PORT_DIPSETTING(          0x0000000c, DEF_STR( 2C_1C ) )
357388   PORT_DIPSETTING(          0x0000000f, DEF_STR( 1C_1C ) )
358389   // other values are just mirrors
359   PORT_BIT( 0xfffffff0, IP_ACTIVE_LOW, IPT_UNUSED   )
360390INPUT_PORTS_END
361391
362392static INPUT_PORTS_START( landbrk )
363393   PORT_INCLUDE(common)
394
364395   PORT_MODIFY("DSW1")
365   PORT_DIPNAME( 0x00000001, 0x00000001, "Show Settings" )
366   PORT_DIPSETTING(          0x00000001, DEF_STR( Off ) )
367   PORT_DIPSETTING(          0x00000000, DEF_STR( On ) )
368   PORT_DIPNAME( 0x00000002, 0x00000002, "Show Counters" )
396   PORT_SERVICE_DIPLOC( 0x00000001, IP_ACTIVE_LOW, "SW4:1" )
397   PORT_DIPNAME( 0x00000002, 0x00000002, "Show Counters" ) PORT_DIPLOCATION("SW4:2")
369398   PORT_DIPSETTING(          0x00000002, DEF_STR( Off ) )
370399   PORT_DIPSETTING(          0x00000000, DEF_STR( On ) )
371   PORT_DIPNAME( 0x00000004, 0x00000004, DEF_STR( Unknown ) )
372   PORT_DIPSETTING(          0x00000004, DEF_STR( Off ) )
373   PORT_DIPSETTING(          0x00000000, DEF_STR( On ) )
374   PORT_DIPNAME( 0x00000008, 0x00000008, DEF_STR( Unknown ) )
375   PORT_DIPSETTING(          0x00000008, DEF_STR( Off ) )
376   PORT_DIPSETTING(          0x00000000, DEF_STR( On ) )
377   PORT_BIT( 0xfffffff0, IP_ACTIVE_LOW, IPT_UNUSED   )
378400INPUT_PORTS_END
379401
380402
381403static INPUT_PORTS_START( stealsee )
382   PORT_INCLUDE(landbrk)
404   PORT_INCLUDE(common)
383405
384406   PORT_MODIFY("IN0")
385   PORT_BIT( 0x00000001, IP_ACTIVE_LOW, IPT_START1 )
386   PORT_BIT( 0x00000002, IP_ACTIVE_LOW, IPT_START2 )
387   PORT_BIT( 0x00000004, IP_ACTIVE_LOW, IPT_UNUSED )
388   PORT_BIT( 0x00000008, IP_ACTIVE_HIGH, IPT_SPECIAL ) PORT_READ_LINE_DEVICE_MEMBER("eeprom", eeprom_device, read_bit)
389   PORT_BIT( 0x00000010, IP_ACTIVE_LOW, IPT_COIN1 )
390   PORT_BIT( 0x00000020, IP_ACTIVE_LOW, IPT_UNUSED )
391407   PORT_BIT( 0x00000040, IP_ACTIVE_LOW, IPT_SPECIAL ) PORT_CUSTOM_MEMBER(DEVICE_SELF, eolith_state, stealsee_speedup_getvblank, NULL)
392   PORT_BIT( 0x00003f80, IP_ACTIVE_LOW, IPT_UNUSED )
393   PORT_BIT( 0x00004000, IP_ACTIVE_LOW, IPT_SERVICE1 )
394   PORT_SERVICE_NO_TOGGLE( 0x00008000, IP_ACTIVE_LOW )
395   PORT_BIT( 0x00010000, IP_ACTIVE_LOW, IPT_JOYSTICK_UP   ) PORT_8WAY PORT_PLAYER(1)
396   PORT_BIT( 0x00020000, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN   ) PORT_8WAY PORT_PLAYER(1)
397   PORT_BIT( 0x00040000, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT   ) PORT_8WAY PORT_PLAYER(1)
398   PORT_BIT( 0x00080000, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT   ) PORT_8WAY PORT_PLAYER(1)
399   PORT_BIT( 0x00100000, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_PLAYER(1)
400   PORT_BIT( 0x00200000, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_PLAYER(1)
401   PORT_BIT( 0x00400000, IP_ACTIVE_LOW, IPT_UNUSED )
402   PORT_BIT( 0x00800000, IP_ACTIVE_LOW, IPT_UNUSED )
403   PORT_BIT( 0x01000000, IP_ACTIVE_LOW, IPT_JOYSTICK_UP   ) PORT_8WAY PORT_PLAYER(2)
404   PORT_BIT( 0x02000000, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN   ) PORT_8WAY PORT_PLAYER(2)
405   PORT_BIT( 0x04000000, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT   ) PORT_8WAY PORT_PLAYER(2)
406   PORT_BIT( 0x08000000, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT   ) PORT_8WAY PORT_PLAYER(2)
407   PORT_BIT( 0x10000000, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_PLAYER(2)
408   PORT_BIT( 0x20000000, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_PLAYER(2)
409   PORT_BIT( 0x40000000, IP_ACTIVE_LOW, IPT_UNUSED )
410   PORT_BIT( 0x80000000, IP_ACTIVE_LOW, IPT_UNUSED )
411
412   PORT_MODIFY("DSW1")
413   PORT_DIPNAME( 0x00000001, 0x00000001, "Show Settings" )
414   PORT_DIPSETTING(          0x00000001, DEF_STR( Off ) )
415   PORT_DIPSETTING(          0x00000000, DEF_STR( On ) )
416   PORT_DIPNAME( 0x00000002, 0x00000002, "Show Counters" )
417   PORT_DIPSETTING(          0x00000002, DEF_STR( Off ) )
418   PORT_DIPSETTING(          0x00000000, DEF_STR( On ) )
419   PORT_DIPNAME( 0x00000004, 0x00000004, DEF_STR( Unknown ) )
420   PORT_DIPSETTING(          0x00000004, DEF_STR( Off ) )
421   PORT_DIPSETTING(          0x00000000, DEF_STR( On ) )
422   PORT_DIPNAME( 0x00000008, 0x00000008, DEF_STR( Unknown ) )
423   PORT_DIPSETTING(          0x00000008, DEF_STR( Off ) )
424   PORT_DIPSETTING(          0x00000000, DEF_STR( On ) )
425   PORT_BIT( 0xfffffff0, IP_ACTIVE_LOW, IPT_UNUSED   )
426408INPUT_PORTS_END
427409
428410
429411static INPUT_PORTS_START( puzzlekg )
430412   PORT_INCLUDE(common)
413
431414   PORT_MODIFY("IN0")
432   PORT_BIT( 0x00004000, IP_ACTIVE_LOW, IPT_UNUSED )
433   PORT_BIT( 0x00008000, IP_ACTIVE_LOW, IPT_UNUSED )
415   PORT_BIT( 0x00004000, IP_ACTIVE_LOW, IPT_UNUSED ) /* No Service1 */
416   PORT_BIT( 0x00008000, IP_ACTIVE_LOW, IPT_UNUSED ) /* No Service */
434417
435418   PORT_MODIFY("DSW1")
436   PORT_SERVICE( 0x0000000f, IP_ACTIVE_LOW ) // every bit enables it
437   PORT_BIT( 0xfffffff0, IP_ACTIVE_LOW, IPT_UNUSED   )
419   PORT_SERVICE_DIPLOC( 0x0000000f, IP_ACTIVE_LOW, "SW4:1,2,3,4" ) // every bit enables it
438420INPUT_PORTS_END
439421
440422
r15413r15414
583565   ROM_LOAD( "qs1001a.u96",  0x000000, 0x80000, CRC(d13c6407) SHA1(57b14f97c7d4f9b5d9745d3571a0b7115fbe3176) )
584566ROM_END
585567
568/* Linky Pipe */
569
570ROM_START( linkypip )
571   ROM_REGION( 0x80000, "maincpu", 0 ) /* Hyperstone CPU Code */
572   ROM_LOAD( "u43.bin", 0x00000, 0x80000, CRC(9ef937de) SHA1(b121d683898311baaa1e2aba199dec0c1d59f55a) )
573
574   ROM_REGION32_BE( 0x2000000, "user1", ROMREGION_ERASE00 ) /* Game Data - banked ROM, swapping necessary */
575   ROM_LOAD32_WORD_SWAP( "lp00.u39", 0x0000000, 0x400000, CRC(c1e71bbc) SHA1(f54b374b05ce6044944ba10ba8a634eb661b092d) )
576   ROM_LOAD32_WORD_SWAP( "lp01.u34", 0x0000002, 0x400000, CRC(30780c08) SHA1(15d7bf1397c25eb813c79fc9cea88ac427b1d9c7) )
577   ROM_LOAD32_WORD_SWAP( "lp02.u40", 0x0800000, 0x400000, CRC(3381bd2c) SHA1(78b30f3940e5c9887ab4ad398bde356671deabb5) )
578   ROM_LOAD32_WORD_SWAP( "lp03.u35", 0x0800002, 0x400000, CRC(459008f3) SHA1(c59e58c3afc1b7466df306c1b57110a6b644cdf4) )
579
580   ROM_REGION( 0x008000, "cpu1", 0 ) /* QDSP ('51) Code */
581   ROM_LOAD( "u107.bin", 0x0000, 0x8000, CRC(afd5263d) SHA1(71ace1b749d8a6b84d08b97185e7e512d04e4b8d) )
582
583   ROM_REGION( 0x08000, "cpu2", 0 ) /* Sound (80c301) CPU Code */
584   ROM_LOAD( "u111.bin", 0x0000, 0x8000, CRC(52f419ea) SHA1(79c9f135b0cf8b1928411faed9b447cd98a83287) )
585
586   ROM_REGION( 0x080000, "music", 0 ) /* Music data */
587   ROM_LOAD( "u108.bin", 0x00000, 0x80000, CRC(ca65856f) SHA1(f45868552389ccd637b5ccb1067b94e1226001ce) )
588
589   ROM_REGION( 0x080000, "sfx", 0 ) /* QDSP samples (SFX) */
590   ROM_LOAD( "u97.bin", 0x00000, 0x80000, CRC(4465fe8d) SHA1(4d77169fff2fee5424e8da833088a544318b2981) )
591
592   ROM_REGION( 0x080000, "wavetable", 0 ) /* QDSP wavetable rom */
593   ROM_LOAD( "qs1001a.u96",  0x000000, 0x80000, CRC(d13c6407) SHA1(57b14f97c7d4f9b5d9745d3571a0b7115fbe3176) )
594ROM_END
595
586596/* Hidden Catch */
587597
588598ROM_START( hidnctch )
r15413r15414
13401350   init_eolith_speedup(machine);
13411351}
13421352
1353GAME( 1998, linkypip,  0,        eolith45, linkypip,  eolith,   ROT0, "Eolith", "Linky Pipe", GAME_NO_SOUND | GAME_NOT_WORKING )
13431354GAME( 1998, ironfort,  0,        ironfort, ironfort,  eolith,   ROT0, "Eolith", "Iron Fortress", GAME_NO_SOUND )
13441355GAME( 1998, ironfortj, ironfort, ironfort, ironfortj, eolith,   ROT0, "Eolith", "Iron Fortress (Japan)", GAME_NO_SOUND )
13451356GAME( 1998, hidnctch,  0,        eolith45, hidnctch,  eolith,   ROT0, "Eolith", "Hidden Catch (World) / Tul Lin Gu Lim Chat Ki '98 (Korea) (pcb ver 3.03)",  GAME_NO_SOUND ) // or Teurrin Geurim Chajgi '98
13461357GAME( 1998, raccoon,   0,        eolith45, raccoon,   eolith,   ROT0, "Eolith", "Raccoon World", GAME_NO_SOUND )
13471358GAME( 1998, puzzlekg,  0,        eolith45, puzzlekg,  eolith,   ROT0, "Eolith", "Puzzle King (Dance & Puzzle)",  GAME_NO_SOUND )
1348GAME( 1999, candy,     0,        eolith50, candy,     eolith,   ROT0, "Eolith", "Candy Candy",  GAME_IMPERFECT_GRAPHICS | GAME_NO_SOUND )
1359GAME( 1999, candy,     0,        eolith50, candy,     eolith,   ROT0, "Eolith", "Candy Candy",  GAME_IMPERFECT_GRAPHICS | GAME_NO_SOUND )
13491360GAME( 1999, hidctch2,  0,        eolith50, hidnctch,  hidctch2, ROT0, "Eolith", "Hidden Catch 2 (pcb ver 3.03) (Kor/Eng) (AT89c52 protected)", GAME_NO_SOUND )
13501361GAME( 1999, hidctch2a, hidctch2, eolith50, hidnctch,  eolith,   ROT0, "Eolith", "Hidden Catch 2 (pcb ver 1.00) (Kor/Eng/Jpn/Chi)", GAME_NO_SOUND )
13511362GAME( 1999, landbrk,   0,        eolith45, landbrk,   landbrk,  ROT0, "Eolith", "Land Breaker (World) / Miss Tang Ja Ru Gi (Korea) (pcb ver 3.02)",  GAME_NO_SOUND ) // or Miss Ttang Jjareugi
src/mame/drivers/namcos23.c
r15413r15414
31053105       (!strcmp(machine.system().name, "crszone")) ||
31063106       (!strcmp(machine.system().name, "crszonea")) ||
31073107       (!strcmp(machine.system().name, "crszoneb")) ||
3108       (!strcmp(machine.system().name, "crszonec")) ||
31083109       (!strcmp(machine.system().name, "timecrs2b")) ||
31093110       (!strcmp(machine.system().name, "timecrs2")))
31103111   {
r15413r15414
40354036// bfe4b800
40364037ROM_START( crszone )
40374038   ROM_REGION32_BE( 0x800000, "user1", 0 ) /* 4 megs for main R4650 code */
4038   ROM_LOAD16_WORD_SWAP( "cszo3verb.ic4", 0x400000, 0x400000, CRC(4cb26465) SHA1(078dfd0d8c920707df14e9a26658fa63421fcb0b))
4039   ROM_LOAD16_WORD_SWAP( "cszo4verb.ic4", 0x400000, 0x400000, CRC(6192533d) SHA1(d102b91fe193bf255ea4e57a2bd964aa1cdfd21d) )
40394040   ROM_CONTINUE( 0x000000, 0x400000 )
40404041
40414042   ROM_REGION( 0x80000, "audiocpu", 0 )   /* Hitachi H8/3002 MCU code */
r15413r15414
40854086   ROM_LOAD( "csz1ccrh.7k",  0x000000, 0x200000, CRC(bc2fa03c) SHA1(e63d8e75494a383bf9a213edfa9c472a010f8efe) )
40864087ROM_END
40874088
4088ROM_START( crszoneb )
4089ROM_START( crszonea )
40894090   ROM_REGION32_BE( 0x800000, "user1", 0 ) /* 4 megs for main R4650 code */
4090   ROM_LOAD16_WORD_SWAP( "cszo4verb.ic4", 0x400000, 0x400000, CRC(6192533d) SHA1(d102b91fe193bf255ea4e57a2bd964aa1cdfd21d) )
4091   ROM_LOAD16_WORD_SWAP( "cszo3verb.ic4", 0x400000, 0x400000, CRC(4cb26465) SHA1(078dfd0d8c920707df14e9a26658fa63421fcb0b) )
40914092   ROM_CONTINUE( 0x000000, 0x400000 )
40924093
40934094   ROM_REGION( 0x80000, "audiocpu", 0 )   /* Hitachi H8/3002 MCU code */
r15413r15414
41374138   ROM_LOAD( "csz1ccrh.7k",  0x000000, 0x200000, CRC(bc2fa03c) SHA1(e63d8e75494a383bf9a213edfa9c472a010f8efe) )
41384139ROM_END
41394140
4140ROM_START( crszonea )
4141ROM_START( crszoneb )
4142   ROM_REGION32_BE( 0x80000f, "user1", 0 ) /* 4 megs for main R4650 code */
4143   ROM_LOAD16_WORD_SWAP( "cszo3vera.ic4", 0x400000, 0x400000, CRC(09b0c91e) SHA1(226c3788d6a50272e2544d04d9ca20df81014fb6) )
4144   ROM_CONTINUE( 0x000000, 0x400000 )
4145
4146   ROM_REGION( 0x80000, "audiocpu", 0 )   /* Hitachi H8/3002 MCU code */
4147   ROM_LOAD16_WORD_SWAP( "cszo3verb.ic1", 0x000000, 0x080000, CRC(c790743b) SHA1(5fa7b83a7a1b1105a3aa0870b782cf2741b7d11c) )
4148
4149   ROM_REGION( 0x40000, "ioboard", 0 )   /* I/O board HD643334 H8/3334 MCU code. "MIU-I/O;Ver2.05;JPN,GUN-EXTENTION" */
4150   ROM_LOAD( "csz1prg0a.8f", 0x000000, 0x020000, CRC(8edc36b3) SHA1(b5df211988d856572fcc313480e693c8561784e4) )
4151
4152   ROM_REGION32_BE( 0x2000000, "data", 0 )   /* data roms */
4153   ROM_LOAD16_BYTE( "csz1mtah.2j",  0x0000000, 0x800000, CRC(66b076ad) SHA1(edd32e0b380f01a9626d32f5eec860f841c8be8a) )
4154   ROM_LOAD16_BYTE( "csz1mtal.2h",  0x0000001, 0x800000, CRC(38dc639a) SHA1(aa9b5b35174c1b007a57a4bd7a53bc3f479b5b71) )
4155   ROM_LOAD16_BYTE( "csz1mtbh.2m",  0x1000000, 0x800000, CRC(bdec4188) SHA1(a098651fbd8a69a0afc17f4b6c93350926cacd6b) )
4156   ROM_LOAD16_BYTE( "csz1mtbl.2f",  0x1000001, 0x800000, CRC(9c8f8d7a) SHA1(f61bcc9763df15428c82931a605ee40334d5ad98) )
4157
4158   ROM_REGION( 0x2000000, "textile", 0 )   /* texture tiles */
4159   ROM_LOAD( "csz1cgll.4m",  0x0000000, 0x800000, CRC(0bcd41f2) SHA1(80b74f9398e8bd074f79a14490d06cfeb875c874) )
4160   ROM_LOAD( "csz1cglm.4k",  0x0800000, 0x800000, CRC(d4af93d1) SHA1(0df37b793ce8da02d14f714722382786ae5d3ce2) )
4161   ROM_LOAD( "csz1cgum.4j",  0x1000000, 0x800000, CRC(913c98b5) SHA1(b952dbc19053796077d4f33e8da836893e933b12) )
4162   ROM_LOAD( "csz1cguu.5f",  0x1800000, 0x800000, CRC(e1d1bf24) SHA1(daf2c68e2d9a8f313d262d221cc990c93dfdf22f) )
4163
4164   ROM_REGION16_LE( 0x400000, "textilemapl", 0 )   /* texture tilemap 0-15 */
4165   ROM_LOAD( "csz1ccrl.7f",  0x000000, 0x400000, CRC(1c20768d) SHA1(6cf4280e26f3625d6f750837bf344163e7e93c3d) )
4166
4167   ROM_REGION( 0x200000, "textilemaph", 0 )      /* texture tilemap 16-17 + attr */
4168   ROM_LOAD( "csz1ccrh.7e",  0x000000, 0x200000, CRC(bc2fa03c) SHA1(e63d8e75494a383bf9a213edfa9c472a010f8efe) )
4169
4170   ROM_REGION32_BE( 0x2000000, "pointrom", 0 )   /* 3D model data */
4171   ROM_LOAD32_WORD_SWAP( "csz1pt0h.7a",  0x0000000, 0x400000, CRC(e82f1abb) SHA1(b1c57152cc27835e06e429fd1659fe0973638142) )
4172   ROM_LOAD32_WORD_SWAP( "csz1pt0l.7c",  0x0000002, 0x400000, CRC(b0d66afe) SHA1(7cda4eebf1bb1191d17e4b5e616be2fbe4ae9328) )
4173   ROM_LOAD32_WORD_SWAP( "csz1pt1h.5a",  0x0800000, 0x400000, CRC(e54f80ad) SHA1(3b3fbb3001e630d800b02ec8e653d74878ac5116) )
4174   ROM_LOAD32_WORD_SWAP( "csz1pt1l.5c",  0x0800002, 0x400000, CRC(527171c8) SHA1(0b2ce3858f40bdedf1543309a6bc28d780415250) )
4175   ROM_LOAD32_WORD_SWAP( "csz1pt2h.4a",  0x1000000, 0x400000, CRC(e295137a) SHA1(37b18af1b3d9f0e69b45135f89b49a1ceec79127) )
4176   ROM_LOAD32_WORD_SWAP( "csz1pt2l.4c",  0x1000002, 0x400000, CRC(c87d6dbd) SHA1(686f39073c521d6b21ef8bc1161b41b680697c63) )
4177   ROM_LOAD32_WORD_SWAP( "csz1pt3h.3a",  0x1800000, 0x400000, CRC(05f65bdf) SHA1(0c349fe5381fe7aeb81f9365a2b44a212f6bd33e) )
4178   ROM_LOAD32_WORD_SWAP( "csz1pt3l.3c",  0x1800002, 0x400000, CRC(5d077c0f) SHA1(a4fd0167d89bf9417766405726e0334e7c7eaec3) )
4179
4180   ROM_REGION( 0x1000000, "c352", 0 ) /* C352 PCM samples */
4181   ROM_LOAD( "csz1wavel.2c", 0x000000, 0x800000, CRC(d0d74132) SHA1(a293d93bca8e12e388a088a592cfa7bcb9a976f7) )
4182   ROM_LOAD( "csz1waveh.2a", 0x800000, 0x800000, CRC(de9d14a8) SHA1(e5006861928bb1d29bf80c7304f1a6d044b094fd) )
4183
4184   ROM_REGION( 0x800000, "dups", 0 )   /* duplicate roms */
4185   ROM_LOAD( "csz1cguu.4f",  0x000000, 0x800000, CRC(e1d1bf24) SHA1(daf2c68e2d9a8f313d262d221cc990c93dfdf22f) )
4186   ROM_LOAD( "csz1cgum.5j",  0x000000, 0x800000, CRC(913c98b5) SHA1(b952dbc19053796077d4f33e8da836893e933b12) )
4187   ROM_LOAD( "csz1cgll.5m",  0x000000, 0x800000, CRC(0bcd41f2) SHA1(80b74f9398e8bd074f79a14490d06cfeb875c874) )
4188   ROM_LOAD( "csz1cglm.5k",  0x000000, 0x800000, CRC(d4af93d1) SHA1(0df37b793ce8da02d14f714722382786ae5d3ce2) )
4189   ROM_LOAD( "csz1ccrl.7m",  0x000000, 0x400000, CRC(1c20768d) SHA1(6cf4280e26f3625d6f750837bf344163e7e93c3d) )
4190   ROM_LOAD( "csz1ccrh.7k",  0x000000, 0x200000, CRC(bc2fa03c) SHA1(e63d8e75494a383bf9a213edfa9c472a010f8efe) )
4191ROM_END
4192
4193ROM_START( crszonec )
41414194   ROM_REGION32_BE( 0x800000, "user1", 0 ) /* 4 megs for main R4650 code */
41424195   ROM_LOAD16_WORD_SWAP( "cszo2vera.ic4", 0x400000, 0x400000, CRC(1426d8d0) SHA1(e8049df1b2db1180f9edf6e5fa9fe8692ae81086) )
41434196   ROM_CONTINUE( 0x000000, 0x400000 )
r15413r15414
41924245/* Games */
41934246#define GAME_FLAGS (GAME_NOT_WORKING | GAME_UNEMULATED_PROTECTION | GAME_IMPERFECT_GRAPHICS | GAME_IMPERFECT_SOUND)
41944247//    YEAR, NAME,     PARENT,   MACHINE,  INPUT,    INIT, MNTR,  COMPANY, FULLNAME,                         FLAGS
4195GAME( 1997, rapidrvr, 0,        gorgon,   gorgon,   ss23, ROT0, "Namco", "Rapid River (RD3 Ver. C)",      GAME_FLAGS )
4196GAME( 1997, rapidrvr2,rapidrvr, gorgon,   gorgon,   ss23, ROT0, "Namco", "Rapid River (RD2 Ver. C)",      GAME_FLAGS )
4197GAME( 1997, finlflng, 0,        gorgon,   gorgon,   ss23, ROT0, "Namco", "Final Furlong (FF2 Ver. A)",      GAME_FLAGS )
4198GAME( 1997, downhill, 0,        s23,      s23,      ss23, ROT0, "Namco", "Downhill Bikers (DH3 Ver. A)",   GAME_FLAGS )
4199GAME( 1997, motoxgo,  0,        s23,      s23,      ss23, ROT0, "Namco", "Motocross Go! (MG3 Ver. A)",      GAME_FLAGS )
4200GAME( 1997, motoxgoa, motoxgo,  s23,      s23,      ss23, ROT0, "Namco", "Motocross Go! (MG2 Ver. A)",      GAME_FLAGS )
4201GAME( 1997, timecrs2, 0,        timecrs2, timecrs2, ss23, ROT0, "Namco", "Time Crisis II (TSS3 Ver. B)",   GAME_FLAGS )
4202GAME( 1997, timecrs2b,timecrs2, timecrs2, timecrs2, ss23, ROT0, "Namco", "Time Crisis II (TSS2 Ver. B)",   GAME_FLAGS )
4203GAME( 1997, timecrs2c,timecrs2, timecrs2c,timecrs2, ss23, ROT0, "Namco", "Time Crisis II (TSS4 Ver. A)",   GAME_FLAGS )
4204GAME( 1998, panicprk, 0,        s23,      s23,      ss23, ROT0, "Namco", "Panic Park (PNP2 Ver. A)",      GAME_FLAGS )
4205GAME( 1998, gunwars,  0,        gmen,     ss23,     ss23, ROT0, "Namco", "Gunmen Wars (GM1 Ver. A)",      GAME_FLAGS )
4206GAME( 1998, raceon,   0,        gmen,     ss23,     ss23, ROT0, "Namco", "Race On! (RO2 Ver. A)",         GAME_FLAGS )
4207GAME( 1998, 500gp,    0,        ss23,     ss23,     ss23, ROT0, "Namco", "500 GP (5GP3 Ver. C)",         GAME_FLAGS )
4208GAME( 1999, finfurl2, 0,        gmen,     ss23,     ss23, ROT0, "Namco", "Final Furlong 2 (World)",         GAME_FLAGS )
4209GAME( 1999, finfurl2j,finfurl2, gmen,     ss23,     ss23, ROT0, "Namco", "Final Furlong 2 (Japan)",         GAME_FLAGS )
4210GAME( 2000, crszone,  0,        ss23e2,   ss23,     ss23, ROT0, "Namco", "Crisis Zone (CSZO3 Ver. B)",      GAME_FLAGS )
4211GAME( 2000, crszonea, crszone,  ss23e2,   ss23,     ss23, ROT0, "Namco", "Crisis Zone (CSZO2 Ver. A)",      GAME_FLAGS )
4212GAME( 2000, crszoneb, crszone,  ss23e2,   ss23,     ss23, ROT0, "Namco", "Crisis Zone (CSZO4 Ver. B)",      GAME_FLAGS )
4248GAME( 1997, rapidrvr, 0,        gorgon,   gorgon,   ss23, ROT0, "Namco", "Rapid River (RD3 Ver. C)",     GAME_FLAGS )
4249GAME( 1997, rapidrvr2,rapidrvr, gorgon,   gorgon,   ss23, ROT0, "Namco", "Rapid River (RD2 Ver. C)",     GAME_FLAGS )
4250GAME( 1997, finlflng, 0,        gorgon,   gorgon,   ss23, ROT0, "Namco", "Final Furlong (FF2 Ver. A)",   GAME_FLAGS )
4251GAME( 1997, downhill, 0,        s23,      s23,      ss23, ROT0, "Namco", "Downhill Bikers (DH3 Ver. A)", GAME_FLAGS )
4252GAME( 1997, motoxgo,  0,        s23,      s23,      ss23, ROT0, "Namco", "Motocross Go! (MG3 Ver. A)",   GAME_FLAGS )
4253GAME( 1997, motoxgoa, motoxgo,  s23,      s23,      ss23, ROT0, "Namco", "Motocross Go! (MG2 Ver. A)",   GAME_FLAGS )
4254GAME( 1997, timecrs2, 0,        timecrs2, timecrs2, ss23, ROT0, "Namco", "Time Crisis II (TSS3 Ver. B)", GAME_FLAGS )
4255GAME( 1997, timecrs2b,timecrs2, timecrs2, timecrs2, ss23, ROT0, "Namco", "Time Crisis II (TSS2 Ver. B)", GAME_FLAGS )
4256GAME( 1997, timecrs2c,timecrs2, timecrs2c,timecrs2, ss23, ROT0, "Namco", "Time Crisis II (TSS4 Ver. A)", GAME_FLAGS )
4257GAME( 1998, panicprk, 0,        s23,      s23,      ss23, ROT0, "Namco", "Panic Park (PNP2 Ver. A)",     GAME_FLAGS )
4258GAME( 1998, gunwars,  0,        gmen,     ss23,     ss23, ROT0, "Namco", "Gunmen Wars (GM1 Ver. A)",     GAME_FLAGS )
4259GAME( 1998, raceon,   0,        gmen,     ss23,     ss23, ROT0, "Namco", "Race On! (RO2 Ver. A)",        GAME_FLAGS )
4260GAME( 1998, 500gp,    0,        ss23,     ss23,     ss23, ROT0, "Namco", "500 GP (5GP3 Ver. C)",         GAME_FLAGS )
4261GAME( 1999, finfurl2, 0,        gmen,     ss23,     ss23, ROT0, "Namco", "Final Furlong 2 (World)",      GAME_FLAGS )
4262GAME( 1999, finfurl2j,finfurl2, gmen,     ss23,     ss23, ROT0, "Namco", "Final Furlong 2 (Japan)",      GAME_FLAGS )
4263GAME( 2000, crszone,  0,        ss23e2,   ss23,     ss23, ROT0, "Namco", "Crisis Zone (CSZO4 Ver. B)",   GAME_FLAGS )
4264GAME( 2000, crszonea, crszone,  ss23e2,   ss23,     ss23, ROT0, "Namco", "Crisis Zone (CSZO3 Ver. B)",   GAME_FLAGS )
4265GAME( 2000, crszoneb, crszone,  ss23e2,   ss23,     ss23, ROT0, "Namco", "Crisis Zone (CSZO3 Ver. A)",   GAME_FLAGS )
4266GAME( 2000, crszonec, crszone,  ss23e2,   ss23,     ss23, ROT0, "Namco", "Crisis Zone (CSZO2 Ver. A)",   GAME_FLAGS )
42134267
src/mame/drivers/jaguar.c
r15413r15414
20132013
20142014****************************************/
20152015
2016/* There is known to exist an Area 51 set with "136105-000x Q" labels - currently not dumped */
2017
20162018ROM_START( area51t ) /* 68020 based, Area51 Time Warner License  Date: Nov 15, 1995 */
20172019   ROM_REGION32_BE( 0x200000, "user1", 0 )   /* 2MB for 68020 code */
2018   ROM_LOAD32_BYTE( "136105-0003c.3h", 0x00000, 0x80000, CRC(e70a97c4) SHA1(39dabf6bf3dc6f717a587f362d040bfb332be9e1) )
2020   ROM_LOAD32_BYTE( "136105-0003c.3h", 0x00000, 0x80000, CRC(e70a97c4) SHA1(39dabf6bf3dc6f717a587f362d040bfb332be9e1) ) /* Usually found with "green" labels */
20192021   ROM_LOAD32_BYTE( "136105-0002c.3p", 0x00001, 0x80000, CRC(e9c9f4bd) SHA1(7c6c50372d45dca8929767241b092339f3bab4d2) )
20202022   ROM_LOAD32_BYTE( "136105-0001c.3m", 0x00002, 0x80000, CRC(6f135a81) SHA1(2d9660f240b14481e8c46bc98713e9dc12035063) )
20212023   ROM_LOAD32_BYTE( "136105-0000c.3k", 0x00003, 0x80000, CRC(94f50c14) SHA1(a54552e3ac5c4f481ba4f2fc7d724534576fe76c) )
r15413r15414
20262028
20272029ROM_START( area51a ) /* 68020 based, Area51 Atari Games License  Date: Oct 25, 1995 */
20282030   ROM_REGION32_BE( 0x200000, "user1", 0 )   /* 2MB for 68020 code */
2029   ROM_LOAD32_BYTE( "136105-0003a.3h", 0x00000, 0x80000, CRC(116d37e6) SHA1(5d36cae792dd349faa77cd2d8018722a28ee55c1) )
2031   ROM_LOAD32_BYTE( "136105-0003a.3h", 0x00000, 0x80000, CRC(116d37e6) SHA1(5d36cae792dd349faa77cd2d8018722a28ee55c1) ) /* Usually found with "orange" labels */
20302032   ROM_LOAD32_BYTE( "136105-0002a.3p", 0x00001, 0x80000, CRC(eb10f539) SHA1(dadc4be5a442dd4bd17385033056555e528ed994) )
20312033   ROM_LOAD32_BYTE( "136105-0001a.3m", 0x00002, 0x80000, CRC(c6d8322b) SHA1(90cf848a4195c51b505653cc2c74a3b9e3c851b8) )
20322034   ROM_LOAD32_BYTE( "136105-0000a.3k", 0x00003, 0x80000, CRC(729eb1b7) SHA1(21864b4281b1ad17b2903e3aa294e4be74161e80) )
r15413r15414
20372039
20382040ROM_START( area51 ) /* R3000 based, labeled as "Area51 2-C"  Date: Nov 11 1996 */
20392041   ROM_REGION32_BE( 0x200000, "user1", 0 )   /* 2MB for IDT 79R3041 code */
2040   ROM_LOAD32_BYTE( "a51_2-c.hh", 0x00000, 0x80000, CRC(13af6a1e) SHA1(69da54ed6886e825156bbcc256e8d7abd4dc1ff8) )
2042   ROM_LOAD32_BYTE( "a51_2-c.hh", 0x00000, 0x80000, CRC(13af6a1e) SHA1(69da54ed6886e825156bbcc256e8d7abd4dc1ff8) ) /* Usually found with "green" labels */
20412043   ROM_LOAD32_BYTE( "a51_2-c.hl", 0x00001, 0x80000, CRC(8ab6649b) SHA1(9b4945bc04f8a73161638a2c5fa2fd84c6fd31b4) )
20422044   ROM_LOAD32_BYTE( "a51_2-c.lh", 0x00002, 0x80000, CRC(a6524f73) SHA1(ae377a6803a4f7d1bbcc111725af121a3e82317d) )
20432045   ROM_LOAD32_BYTE( "a51_2-c.ll", 0x00003, 0x80000, CRC(471b15d2) SHA1(4b5f45ee140b03a6be61475cae1c2dbef0f07457) )
r15413r15414
20482050
20492051ROM_START( maxforce ) /* R3000 based, labeled as "Maximum Force 5-23-97 v1.05" */
20502052   ROM_REGION32_BE( 0x200000, "user1", 0 )   /* 2MB for IDT 79R3041 code */
2051   ROM_LOAD32_BYTE( "maxf_105.hh", 0x00000, 0x80000, CRC(ec7f8167) SHA1(0cf057bfb1f30c2c9621d3ed25021e7ba7bdd46e) )
2053   ROM_LOAD32_BYTE( "maxf_105.hh", 0x00000, 0x80000, CRC(ec7f8167) SHA1(0cf057bfb1f30c2c9621d3ed25021e7ba7bdd46e) ) /* Usually found with "light grey" labels */
20522054   ROM_LOAD32_BYTE( "maxf_105.hl", 0x00001, 0x80000, CRC(3172611c) SHA1(00f14f871b737c66c20f95743740d964d0be3f24) )
20532055   ROM_LOAD32_BYTE( "maxf_105.lh", 0x00002, 0x80000, CRC(84d49423) SHA1(88d9a6724f1118f2bbef5dfa27accc2b65c5ba1d) )
20542056   ROM_LOAD32_BYTE( "maxf_105.ll", 0x00003, 0x80000, CRC(16d0768d) SHA1(665a6d7602a7f2f5b1f332b0220b1533143d56b1) )
r15413r15414
20602062
20612063ROM_START( maxf_102 ) /* R3000 based, labeled as "Maximum Force 2-27-97 v1.02" */
20622064   ROM_REGION32_BE( 0x200000, "user1", 0 )   /* 2MB for IDT 79R3041 code */
2063   ROM_LOAD32_BYTE( "maxf_102.hh", 0x00000, 0x80000, CRC(8ff7009d) SHA1(da22eae298a6e0e36f503fa091ac3913423dcd0f) )
2065   ROM_LOAD32_BYTE( "maxf_102.hh", 0x00000, 0x80000, CRC(8ff7009d) SHA1(da22eae298a6e0e36f503fa091ac3913423dcd0f) ) /* Usually found with "yellow" labels */
20642066   ROM_LOAD32_BYTE( "maxf_102.hl", 0x00001, 0x80000, CRC(96c2cc1d) SHA1(b332b8c042b92c736131c478cefac1c3c2d2673b) )
20652067   ROM_LOAD32_BYTE( "maxf_102.lh", 0x00002, 0x80000, CRC(459ffba5) SHA1(adb40db6904e84c17f32ac6518fd2e994da7883f) )
20662068   ROM_LOAD32_BYTE( "maxf_102.ll", 0x00003, 0x80000, CRC(e491be7f) SHA1(cbe281c099a4aa87067752d68cf2bb0ab3900531) )
src/mame/drivers/realbrk.c
r15413r15414
596596   PORT_BIT( 0xff00, 0x0000, IPT_PADDLE ) PORT_PLAYER(2) PORT_MINMAX(0,0x6400) PORT_SENSITIVITY(15) PORT_KEYDELTA(15) PORT_CENTERDELTA(0) PORT_CODE_DEC(KEYCODE_N) PORT_CODE_INC(KEYCODE_M)
597597INPUT_PORTS_END
598598
599static INPUT_PORTS_START( dai2kaku )
600   PORT_START("IN0")   // IN0 - $c00000.w
601   PORT_BIT( 0x00ff, IP_ACTIVE_LOW, IPT_UNKNOWN )
602   PORT_BIT( 0x0100, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_PLAYER(1)
603   PORT_BIT( 0x0200, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_PLAYER(1)
604   PORT_BIT( 0x0400, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_PLAYER(1)
605   PORT_BIT( 0x0800, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_PLAYER(1)
606   PORT_BIT( 0x1000, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_PLAYER(1)
607   PORT_BIT( 0x2000, IP_ACTIVE_LOW, IPT_UNKNOWN )
608   PORT_BIT( 0x4000, IP_ACTIVE_LOW, IPT_UNKNOWN )
609   PORT_BIT( 0x8000, IP_ACTIVE_LOW, IPT_START1 )
610
611   PORT_START("IN1")   // IN1 - $c00002.w
612   PORT_BIT( 0x00ff, IP_ACTIVE_LOW, IPT_UNKNOWN )
613   PORT_BIT( 0x0100, IP_ACTIVE_LOW,  IPT_COIN1 )
614   PORT_BIT( 0x0200, IP_ACTIVE_LOW,  IPT_COIN2 )
615   PORT_BIT( 0x0400, IP_ACTIVE_LOW,  IPT_SERVICE1 )
616   PORT_BIT( 0x0800, IP_ACTIVE_LOW,  IPT_SERVICE ) PORT_NAME(DEF_STR( Test )) PORT_CODE(KEYCODE_F1)
617   PORT_BIT( 0x1000, IP_ACTIVE_LOW,  IPT_UNKNOWN )
618   PORT_BIT( 0x2000, IP_ACTIVE_LOW,  IPT_UNKNOWN )
619   PORT_BIT( 0x4000, IP_ACTIVE_HIGH, IPT_UNKNOWN )   // the vblank routine wants these 2 bits high
620   PORT_BIT( 0x8000, IP_ACTIVE_HIGH, IPT_UNKNOWN )
621
622   PORT_START("SW1")   // IN2 - $c00004.w (DSW1)
623   PORT_DIPNAME( 0x000f, 0x000f, DEF_STR( Coin_A ) ) PORT_DIPLOCATION("SW1:1,2,3,4")
624   PORT_DIPSETTING(      0x0009, DEF_STR( 1C_7C ) )
625   PORT_DIPSETTING(      0x000a, DEF_STR( 1C_6C ) )
626   PORT_DIPSETTING(      0x000b, DEF_STR( 1C_5C ) )
627   PORT_DIPSETTING(      0x000c, DEF_STR( 1C_4C ) )
628   PORT_DIPSETTING(      0x000d, DEF_STR( 1C_3C ) )
629   PORT_DIPSETTING(      0x0006, DEF_STR( 2C_5C ) )
630   PORT_DIPSETTING(      0x000e, DEF_STR( 1C_2C ) )
631   PORT_DIPSETTING(      0x0007, DEF_STR( 2C_3C ) )
632   PORT_DIPSETTING(      0x0003, DEF_STR( 3C_4C ) )
633   PORT_DIPSETTING(      0x0000, DEF_STR( 4C_5C ) )
634   PORT_DIPSETTING(      0x000f, DEF_STR( 1C_1C ) )
635   PORT_DIPSETTING(      0x0001, DEF_STR( 4C_3C ) )
636   PORT_DIPSETTING(      0x0004, DEF_STR( 3C_2C ) )
637   PORT_DIPSETTING(      0x0008, DEF_STR( 2C_1C ) )
638   PORT_DIPSETTING(      0x0005, DEF_STR( 3C_1C ) )
639   PORT_DIPSETTING(      0x0002, DEF_STR( 4C_1C ) )
640        PORT_DIPNAME( 0x00f0, 0x00f0, DEF_STR( Coin_B ) ) PORT_DIPLOCATION("SW1:5,6,7,8")
641   PORT_DIPSETTING(      0x0090, DEF_STR( 1C_7C ) )
642   PORT_DIPSETTING(      0x00a0, DEF_STR( 1C_6C ) )
643   PORT_DIPSETTING(      0x00b0, DEF_STR( 1C_5C ) )
644   PORT_DIPSETTING(      0x00c0, DEF_STR( 1C_4C ) )
645   PORT_DIPSETTING(      0x00d0, DEF_STR( 1C_3C ) )
646   PORT_DIPSETTING(      0x0060, DEF_STR( 2C_5C ) )
647   PORT_DIPSETTING(      0x00e0, DEF_STR( 1C_2C ) )
648   PORT_DIPSETTING(      0x0070, DEF_STR( 2C_3C ) )
649   PORT_DIPSETTING(      0x0030, DEF_STR( 3C_4C ) )
650   PORT_DIPSETTING(      0x0000, DEF_STR( 4C_5C ) )
651   PORT_DIPSETTING(      0x00f0, DEF_STR( 1C_1C ) )
652   PORT_DIPSETTING(      0x0010, DEF_STR( 4C_3C ) )
653   PORT_DIPSETTING(      0x0040, DEF_STR( 3C_2C ) )
654   PORT_DIPSETTING(      0x0080, DEF_STR( 2C_1C ) )
655   PORT_DIPSETTING(      0x0050, DEF_STR( 3C_1C ) )
656   PORT_DIPSETTING(      0x0020, DEF_STR( 4C_1C ) )
657   PORT_DIPNAME( 0x0100, 0x0100, DEF_STR( Free_Play ) ) PORT_DIPLOCATION("SW1:9")
658   PORT_DIPSETTING(      0x0100, DEF_STR( Off ) )
659   PORT_DIPSETTING(      0x0000, DEF_STR( On ) )
660   PORT_DIPUNKNOWN_DIPLOC( 0x0200, 0x0200, "SW1:10" )
661
662   PORT_START("SW2")   // IN3 - $c00004.w (DSW2)
663   PORT_DIPUNKNOWN_DIPLOC( 0x0001, 0x0001, "SW2:1" )
664   PORT_DIPUNKNOWN_DIPLOC( 0x0002, 0x0002, "SW2:2" )
665   PORT_DIPNAME( 0x000c, 0x000c, "Starting Points" ) PORT_DIPLOCATION("SW2:3,4")
666   PORT_DIPSETTING(      0x0008, "350" )
667   PORT_DIPSETTING(      0x0004, "650" )
668   PORT_DIPSETTING(      0x000c, "1000" )
669   PORT_DIPSETTING(      0x0000, "1500" )
670   PORT_DIPUNKNOWN_DIPLOC( 0x0010, 0x0010, "SW2:5" )
671   PORT_DIPNAME( 0x0020, 0x0020, DEF_STR( Demo_Sounds ) ) PORT_DIPLOCATION("SW2:6")
672   PORT_DIPSETTING(      0x0000, DEF_STR( Off ) )
673   PORT_DIPSETTING(      0x0020, DEF_STR( On ) )
674   PORT_DIPUNKNOWN_DIPLOC( 0x0040, 0x0040, "SW2:7" )
675   PORT_DIPUNKNOWN_DIPLOC( 0x0080, 0x0080, "SW2:8" )
676   PORT_DIPUNKNOWN_DIPLOC( 0x0100, 0x0100, "SW2:9" )
677   PORT_DIPUNKNOWN_DIPLOC( 0x0200, 0x0200, "SW2:10" )
678
679   PORT_START("SW3")   // IN4 - $c00004.w (DSW3) - Unused
680   PORT_BIT( 0xffff, IP_ACTIVE_LOW,  IPT_UNKNOWN )
681
682   PORT_START("SW4")   // IN5 - $c00004.w (DSW4) - Unused
683   PORT_BIT( 0xffff, IP_ACTIVE_LOW,  IPT_UNKNOWN )
684INPUT_PORTS_END
685
599686/***************************************************************************
600687
601688                            Graphics Layouts
r15413r15414
11591246GAME( 1998, realbrk,  0,       realbrk,  realbrk,  0, ROT0, "Nakanihon",         "Billiard Academy Real Break (Europe)", GAME_IMPERFECT_GRAPHICS )
11601247GAME( 1998, realbrkj, realbrk, realbrk,  realbrk,  0, ROT0, "Nakanihon",         "Billiard Academy Real Break (Japan)",  GAME_IMPERFECT_GRAPHICS )
11611248GAME( 1998, realbrkk, realbrk, realbrk,  realbrk,  0, ROT0, "Nakanihon",         "Billiard Academy Real Break (Korea)",  GAME_IMPERFECT_GRAPHICS )
1162GAME( 2004, dai2kaku, 0,       dai2kaku, realbrk, 0, ROT0, "SystemBit",         "Dai-Dai-Kakumei (Japan)",              GAME_IMPERFECT_GRAPHICS | GAME_IMPERFECT_SOUND )
1249GAME( 2004, dai2kaku, 0,       dai2kaku, dai2kaku, 0, ROT0, "SystemBit",         "Dai-Dai-Kakumei (Japan)",              GAME_IMPERFECT_GRAPHICS | GAME_IMPERFECT_SOUND )
src/mame/drivers/superchs.c
r15413r15414
4444#include "includes/superchs.h"
4545
4646
47
4847/*********************************************************************/
4948
5049READ16_MEMBER(superchs_state::shared_ram_r)
r15413r15414
169168
170169READ32_MEMBER(superchs_state::superchs_stick_r)
171170{
172   int fake = ioport("FAKE")->read();
173   int accel;
174
175   if (!(fake &0x10))   /* Analogue steer (the real control method) */
176   {
177      m_steer = ioport("WHEEL")->read();
178   }
179   else   /* Digital steer, with smoothing - speed depends on how often stick_r is called */
180   {
181      int delta;
182      int goal = 0x80;
183      if (fake &0x04) goal = 0xff;      /* pressing left */
184      if (fake &0x08) goal = 0x0;      /* pressing right */
185
186      if (m_steer!=goal)
187      {
188         delta = goal - m_steer;
189         if (m_steer < goal)
190         {
191            if (delta >2) delta = 2;
192         }
193         else
194         {
195            if (delta < (-2)) delta = -2;
196         }
197         m_steer += delta;
198      }
199   }
200
201   /* Accelerator is an analogue input but the game treats it as digital (on/off) */
202   if (ioport("FAKE")->read() & 0x1)   /* pressing B1 */
203      accel = 0x0;
204   else
205      accel = 0xff;
206
207171   /* Todo: Verify brake - and figure out other input */
208   return (m_steer << 24) | (accel << 16) | (ioport("SOUND")->read() << 8) | ioport("UNKNOWN")->read();
172   return (ioport("WHEEL")->read() << 24) | (ioport("ACCEL")->read() << 16) | (ioport("SOUND")->read() << 8) | ioport("UNKNOWN")->read();
209173}
210174
211175WRITE32_MEMBER(superchs_state::superchs_stick_w)
r15413r15414
230194   AM_RANGE(0x200000, 0x20ffff) AM_RAM AM_SHARE("shared_ram")
231195   AM_RANGE(0x240000, 0x240003) AM_WRITE(cpua_ctrl_w)
232196   AM_RANGE(0x280000, 0x287fff) AM_RAM_WRITE(superchs_palette_w) AM_SHARE("paletteram")
233   AM_RANGE(0x2c0000, 0x2c07ff) AM_RAM AM_SHARE("f3_shared")
197   AM_RANGE(0x2c0000, 0x2c07ff) AM_RAM AM_SHARE("snd_shared")
234198   AM_RANGE(0x300000, 0x300007) AM_READWRITE(superchs_input_r, superchs_input_w)   /* eerom etc. */
235199   AM_RANGE(0x340000, 0x340003) AM_READWRITE(superchs_stick_r, superchs_stick_w)   /* stick int request */
236200ADDRESS_MAP_END
r15413r15414
255219   PORT_BIT( 0x00000020, IP_ACTIVE_LOW,  IPT_UNKNOWN )
256220   PORT_BIT( 0x00000040, IP_ACTIVE_LOW,  IPT_UNKNOWN )
257221   PORT_BIT( 0x00000080, IP_ACTIVE_HIGH, IPT_SPECIAL )   PORT_READ_LINE_DEVICE_MEMBER("eeprom", eeprom_device, read_bit)   /* reserved for EEROM */
258   PORT_BIT( 0x00000100, IP_ACTIVE_LOW,  IPT_BUTTON5 ) PORT_PLAYER(1) PORT_NAME("Seat Center")   /* seat center (cockpit only) */
222   PORT_BIT( 0x00000100, IP_ACTIVE_LOW,  IPT_SERVICE2 ) PORT_NAME("Seat Center")   /* seat center (cockpit only) */
259223   PORT_BIT( 0x00000200, IP_ACTIVE_LOW,  IPT_UNKNOWN )
260224   PORT_BIT( 0x00000400, IP_ACTIVE_LOW,  IPT_UNKNOWN )
261225   PORT_BIT( 0x00000800, IP_ACTIVE_LOW,  IPT_UNKNOWN )
262226   PORT_BIT( 0x00001000, IP_ACTIVE_LOW,  IPT_BUTTON3 ) PORT_NAME("Nitro")
263   PORT_BIT( 0x00002000, IP_ACTIVE_LOW,  IPT_BUTTON4 ) PORT_NAME("Gear Shift")
264   PORT_BIT( 0x00004000, IP_ACTIVE_LOW,  IPT_BUTTON2 ) PORT_NAME("Brake")
227   PORT_BIT( 0x00002000, IP_ACTIVE_LOW,  IPT_BUTTON4 ) PORT_NAME("Shifter") PORT_TOGGLE
228   PORT_BIT( 0x00004000, IP_ACTIVE_LOW,  IPT_BUTTON2 ) PORT_NAME("Brake Switch")   /* upright doesn't have brake? */
265229   PORT_BIT( 0x00008000, IP_ACTIVE_LOW,  IPT_START1 )
266230
267231   PORT_BIT( 0x00010000, IP_ACTIVE_LOW,  IPT_UNKNOWN )
r15413r15414
284248   PORT_BIT( 0x80000000, IP_ACTIVE_LOW,  IPT_UNKNOWN )
285249
286250   PORT_START("WHEEL")      /* steering wheel */
287   PORT_BIT( 0xff, 0x7f, IPT_AD_STICK_X ) PORT_SENSITIVITY(25) PORT_KEYDELTA(15) PORT_REVERSE PORT_PLAYER(1)
251   PORT_BIT( 0xff, 0x80, IPT_PADDLE ) PORT_SENSITIVITY(100) PORT_KEYDELTA(4) PORT_REVERSE PORT_NAME("Steering Wheel")
288252
289   PORT_START("ACCEL")      /* accel [effectively also brake for the upright] */
290   PORT_BIT( 0xff, 0x00, IPT_AD_STICK_Y ) PORT_SENSITIVITY(20) PORT_KEYDELTA(10) PORT_PLAYER(1)
253   PORT_START("ACCEL")      /* accel */
254   PORT_BIT( 0xff, 0x00, IPT_PEDAL )  PORT_SENSITIVITY(100) PORT_KEYDELTA(30) PORT_REVERSE PORT_NAME("Gas Pedal")
291255
292256   PORT_START("SOUND")      /* sound volume */
293257   PORT_BIT( 0xff, 0x00, IPT_AD_STICK_X ) PORT_SENSITIVITY(20) PORT_KEYDELTA(10) PORT_REVERSE PORT_PLAYER(2)
294258
295259   PORT_START("UNKNOWN")   /* unknown */
296260   PORT_BIT( 0xff, 0x00, IPT_AD_STICK_Y ) PORT_SENSITIVITY(20) PORT_KEYDELTA(10) PORT_PLAYER(2)
297
298   PORT_START("FAKE")      /* inputs and DSW all fake */
299   PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_BUTTON1 ) PORT_PLAYER(1) PORT_NAME("Accelerator")
300   PORT_BIT( 0x04, IP_ACTIVE_HIGH, IPT_JOYSTICK_LEFT ) PORT_2WAY PORT_PLAYER(1)
301   PORT_BIT( 0x08, IP_ACTIVE_HIGH, IPT_JOYSTICK_RIGHT ) PORT_2WAY PORT_PLAYER(1)
302   PORT_DIPNAME( 0x10, 0x00, "Steering type" )
303   PORT_DIPSETTING(    0x10, "Digital" )
304   PORT_DIPSETTING(    0x00, "Analogue" )
305261INPUT_PORTS_END
306262
307263/***********************************************************
r15413r15414
355311static const tc0480scp_interface superchs_tc0480scp_intf =
356312{
357313   1, 2,      /* gfxnum, txnum */
358   0,      /* pixels */
359   0x20, 0x08,      /* x_offset, y_offset */
314   0,         /* pixels */
315   0x20, 0x08,   /* x_offset, y_offset */
360316   -1, 0,      /* text_xoff, text_yoff */
361317   0, 0,      /* flip_xoff, flip_yoff */
362   0      /* col_base */
318   0         /* col_base */
363319};
364320
365321static MACHINE_CONFIG_START( superchs, superchs_state )
366322
367323   /* basic machine hardware */
368   MCFG_CPU_ADD("maincpu", M68EC020, 16000000)   /* 16 MHz */
324   MCFG_CPU_ADD("maincpu", M68EC020, XTAL_32MHz/2)
369325   MCFG_CPU_PROGRAM_MAP(superchs_map)
370   MCFG_CPU_VBLANK_INT("screen", irq2_line_hold)/* VBL */
326   MCFG_CPU_VBLANK_INT("screen", irq2_line_hold)
371327
372   MCFG_CPU_ADD("sub", M68000, 16000000)   /* 16 MHz */
328   MCFG_CPU_ADD("sub", M68000, XTAL_32MHz/2)
373329   MCFG_CPU_PROGRAM_MAP(superchs_cpub_map)
374   MCFG_CPU_VBLANK_INT("screen", irq4_line_hold)/* VBL */
330   MCFG_CPU_VBLANK_INT("screen", irq4_line_hold)
375331
376   MCFG_QUANTUM_TIME(attotime::from_hz(480))   /* CPU slices - Need to interleave Cpu's 1 & 3 */
332   MCFG_QUANTUM_TIME(attotime::from_hz(480)) /* Need to interleave CPU 1 & 3 */
377333
378334   MCFG_EEPROM_ADD("eeprom", superchs_eeprom_interface)
379335
r15413r15414
393349   MCFG_TC0480SCP_ADD("tc0480scp", superchs_tc0480scp_intf)
394350
395351   /* sound hardware */
396   MCFG_FRAGMENT_ADD(taito_f3_sound)
352   MCFG_FRAGMENT_ADD(taito_en_sound)
397353MACHINE_CONFIG_END
398354
399355/***************************************************************************/
src/mame/drivers/vsnes.c
r15413r15414
26682668GAME( 1984, excitebk, 0,        vsnes,   excitebk, vsnormal, ROT0, "Nintendo",               "Vs. Excitebike (set EB4-4 A)", 0 )
26692669GAME( 1984, excitebka,excitebk, vsnes,   excitebk, vsnormal, ROT0, "Nintendo",               "Vs. Excitebike (set EB4-3 ?)", 0 )
26702670GAME( 1986, goonies,  0,        vsnes,   goonies,  vskonami, ROT0, "Konami",                 "Vs. The Goonies (set E)", 0 )
2671GAME( 1984, iceclimb, 0,        vsnes,   iceclmbj, vsnormal, ROT0, "Nintendo",               "Vs. Ice Climber (set IC4-4 B-1", 0 )
2671GAME( 1984, iceclimb, 0,        vsnes,   iceclmbj, vsnormal, ROT0, "Nintendo",               "Vs. Ice Climber (set IC4-4 B-1)", 0 )
26722672GAME( 1984, iceclimba,iceclimb, vsnes,   iceclimb, vsnormal, ROT0, "Nintendo",               "Vs. Ice Climber (set IC4-4 ?)", 0 )
26732673GAME( 1985, machridr, 0,        vsnes,   machridr, vsnormal, ROT0, "Nintendo",               "Vs. Mach Rider (Endurance Course Version)", GAME_IMPERFECT_GRAPHICS )
26742674GAME( 1985, machridra,machridr, vsnes,   machridj, vsnormal, ROT0, "Nintendo",               "Vs. Mach Rider (Fighting Course Version, set MR4-1 A)", GAME_IMPERFECT_GRAPHICS )
src/mame/drivers/lucky74.c
r15413r15414
1010
1111    * Lucky 74 (bootleg, set 1), 1988, Wing Co.,Ltd.
1212    * Lucky 74 (bootleg, set 2), 1988, Wing Co.,Ltd.
13    * Exciting Black Jack,       198?, Sega.
1314
1415
1516    Special thanks to Grull Osgo that helped a lot with the whole audio system and custom IC's
r15413r15414
5859
5960    Silkscreened: 'B 0L2'
6061
61    Sticker:      'WE8703 1992.10'
62                    'LUCKY 74-7'
62    Sticker:      '7' 'WE8703 1992.10'
63                      'LUCKY 74-7'
6364
6465
6566    PCB is original from WING Co.,Ltd.
r15413r15414
7677**********************************************************************************************
7778
7879
80    PCB Layout...
81
82
83    .----.      .---------.       .-------------------------------------------------------------------------------------------------------------.
84    |    |      |||||||||||       |          7             6             5            4            3              2                 1           |
85    |    '------'         '-------'    .----------.  .-----------. .----------. .----------. .-----------. .-------------.   .-------------.    |
86    |           01       10    8       |6 oooooo 1|  | HD74LS02P | |HD74LS157P| |HD74LS157P| |HD74LS245P | | 6116ALSP-12 |   | 6116ALSP-12 |  A |
87    |                                  '----------'  '-----------' '----------' '----------' '-----------' '-------------'   '-------------'    |
88    '--.                 .------.      .-----. conn  .-----------. .----------. .----------. .-----------. .-------------.   .-------------.    |
89       |                 |S12MD3|      | ??? |       |HD74LS161AP| |HD74LS86P | |HD74LS157P| |HD74LS245P | | 6116ALSP-12 |   | 6116ALSP-12 |  B |
90       |                 '------'      '-----'       '-----------' '----------' '----------' '-----------' '-------------'   '-------------'    |
91    .--' 36              .-----------. .-----------. .-----------. .----------. .----------. .-----------. .--------------.  .--------------.   |
92    |--                  |HD74LS174P | | TBP24S10N | | TBP24S10N | |HD74LS86P | |HD74LS86P | |HD74LS273P | |              |  |              | C |
93    |--                  '-----------' '-----------' '-----------' '----------' '----------' '-----------' |    06B49P    |  | M5L8251AP-5  |   |
94    |--                  .-----------. .-----------. .-----------. .----------. .----------. .-----------. |              |  |              |   |
95    |--                  |HD74LS174P | | TBP24S10N | | TBP24S10N | |HD74LS08P | |HD74LS86P | |HD74LS273P | >--------------<  >--------------< D |
96    |--                  '-----------' '-----------' '-----------' '----------' '----------' '-----------' |              |  |              |   | 
97    |--                  .-----------. .-----------. .-----------. .----------. .----------. .-----------. |    06B53P    |  |    06B53P    |   |
98    |--                  |HD74LS174P | | TBP24S10N | | TBP24S10N | |HD74LS21P | |HD74LS08P | |HD74LS240P | |              |  |              | E |
99    |--                  '-----------' '-----------' '-----------' '----------' '----------' '-----------' '--------------'  '--------------'   |
100    |--                  .-----------. .-----------. .-----------. .----------. .----------. .-----------. .--------------.  .--------------.   |
101    |--                  |HD74LS367AP| | HD74LS08P | |  HD7425P  | |HD74LS138P| |HD74LS138P| |HD74LS245P | |11            |  |16            | F |
102    |--                  '-----------' '-----------' '-----------' '----------' '----------' '-----------' |    M27512    |  |    M27512    |   |
103    |--                  .-----------. .-----------. .-----------. .----------. .----------. .-----------. |              |  |              |   |
104    |--                  |HD74LS174AP| | HD74LS10P | | HD74LS04P | |HD74LS138P| |HD74LS138P| |HD74LS245P | >--------------<  >--------------< H |
105    |--                  '-----------' '-----------' '-----------' '----------' '----------' '-----------' |12            |  |17            |   |
106    |--                  .-----------. .-----------. .-----------. .----------. .----------. .-----------. |    M27512    |  |    M27512    |   |
107    |--                  |HD74LS174AP| | HD74LS10P | |HD74LS139P | |HD74LS32P | |HD74LS08P | |HD74LS273P | |              |  |              | J |
108    |--                  '-----------' '-----------' '-----------' '----------' '----------' '-----------' >--------------<  >--------------<   |
109    |--                      .-------------------------------.     .----------. .----------. .-----------. |13            |  |18            |   |
110    |--                      |                               |     | SW1 (x8) | |HD74LS157P| |HD74LS240P | |    M27512    |  |    M27512    | K |
111    |--                      |          MITSUBISHI           |     '----------' '----------' '-----------' |              |  |              |   |
112    |--                      |         M5M82C255ASP          |     .----------. .----------. .-----------. >--------------<  >--------------<   |
113    |--                      |                               |     | SW2 (x8) | |HD74LS32P | |HD74LS240P | |14            |  |19            | L |
114    |--                      '-------------------------------'     '----------' '----------' '-----------' |    M27512    |  |    M27512    |   |
115    |--                      .-------------------------------.     .----------. .----------. .-----------. |              |  |              |   |
116    |--                      |                               |     | SW3 (x8) | |HD74LS32P | |HD74LS244P | >--------------<  >--------------< M |
117    |--                      |          MITSUBISHI           |     '----------' '----------' '-----------' |15            |  |EMPTY         |   |
118    |--                      |         M5M82C255ASP          |     .----------. .----------. .-----------. |    M27512    |  |     (M27512) |   |
119    |--                      |                               |     | SW4 (x8) | | TC4019BP | |HD74LS240P | |              |  |              | N |
120    |--                      '-------------------------------'     '----------' '----------' '-----------' '--------------'  '--------------'   |
121    |--                  .-----------. .-----------. .-----------. .----------. .------------------------. .--------------------------------.   |
122    |--                  |HD74LS244P | |HD74LS368? | |HD74LS32P? | |HD74LS32P | |        YAMAHA          | |   B 0L2                        | P |
123    |--                  '-----------' '-----------' '-----------' '----------' |        YM2149F         | |   .-------+--------------+-.   |   |
124    |--                  .-----------. .-----------. .-----------. .----------. '------------------------' |\  | WING  |              | |  /|   |
125    |--                  |HD74LS244P | |   ?????   | |HD74LS08P? | |HD74LS00P | .------------------------. | | | CPU   +--+--+--+--+--+ | | | R |
126    |--                  '-----------' '-----------' '-----------' '----------' |         09R81P         | |o| | A001  |  |  |  |  |  | | |o|   |
127    '--. 01  .---------. .---------.   .-----------. .-----------. .----------. |                        | |o| '-------+--+--+--+--+--+-' |o|   |
128       |     |   NEC   | |OKI M5205|   |   ?????   | | SN76489AN | |SN76489AN | '------------------------' | | .---+--------------------. | | S |
129       |     |UPC 1241H| '---------'   '-----------' '-----------' '----------' .------------.  .--------. |/  | 7 |  WE8703  1992.10   |  \|   |
130    .--'     '---------' .-----------.                             .----------. |    NPC     |  |  XTAL  | |   |   |  LUCKY 74-7        |   |   |
131    |  .---. .---------. |   ?????   |                             |SN76489AN | |   SM7831   |  | 12 MHZ | |   '---+--------------------'   | T |
132    | =|RES| | BATTERY | '-----------'                             '----------' '------------'  '--------' '--------------------------------'   |
133    |  '---' '---------'       8             7             6             5            4            3              2                  1          |
134    '-------------------------------------------------------------------------------------------------------------------------------------------'
135
136    To confirm:
137
138    - 8T
139    - 7B - 7P - 7R - 7S
140    - 6P - 6R
141
142
143    Exciting Black Jack CPU box:
144
145    .--------------------------------.
146    |   B 0J2                        |
147    |   .-------+--------------+-.   |
148    |\  | WING  |              | |  /|
149    | | | CPU   +--+--+--+--+--+ | | |
150    |o| | A001  |  |  |  |  |  | | |o|
151    |o| '-------+--+--+--+--+--+-' |o|
152    | | .---+--------------------. | |
153    |/  | 3 |  8703  1992.1      |  \|
154    |   |   |  EBJ.  STLITE      |   |
155    |   '---+--------------------'   |
156    '--------------------------------'
157
158    Lucky 74 CPU box:
159
160    .--------------------------------.
161    |   B 0L2                        |
162    |   .-------+--------------+-.   |
163    |\  | WING  |              | |  /|
164    | | | CPU   +--+--+--+--+--+ | | |
165    |o| | A001  |  |  |  |  |  | | |o|
166    |o| '-------+--+--+--+--+--+-' |o|
167    | | .---+--------------------. | |
168    |/  | 7 |  WE8703  1992.10   |  \|
169    |   |   |  LUCKY 74-7        |   |
170    |   '---+--------------------'   |
171    '--------------------------------'
172
173
174    There are 2 video layers...
175
176   ROMS 1F, 1J, 1K & 1L have the background graphics, and are driven by the 06B53P at 1E.
177   ROMS 2F, 2J, 2K & 2L have the foreground graphics, and are driven by the 06B53P at 2E.
178
179    ROMS 2N & 1N have the 4-bits ADPCM samples.
180
181
182**********************************************************************************************
183
184
79185    Color Circuitry
80186    ---------------
81187
r15413r15414
557663    DRIVER UPDATES:
558664
559665
666    [2012-06-05]
667
668    - Added Exciting Black Jack. The first SEGA satellite system supported.
669      (the CPU box binary still need to be extracted)
670    - Added an anal ASCII PCB layout.
671    - Added more findings and technical notes.
672
673
560674    [2008-10-07]
561675
562676    - Improved the button-lamps layout to be more realistic.
r15413r15414
10611175INPUT_PORTS_END
10621176
10631177
1178static INPUT_PORTS_START( excitbj )
1179
1180INPUT_PORTS_END
1181
1182
10641183/*************************
10651184*    Graphics Layouts    *
10661185*************************/
r15413r15414
13151434   ROM_LOAD( "luckychi.18",   0x10000, 0x8000, CRC(f2d45e76) SHA1(46df7bf98434c836fd38539575a35bf67c9ec2c6) )
13161435   ROM_LOAD( "luckychi.19",   0x18000, 0x8000, CRC(6b0196f3) SHA1(277049279dcfcf07189dbdb20935c2a71b2f6061) )
13171436
1318   ROM_REGION( 0x10000, "adpcm", 0 )   /* 4-bit ADPCM samples @ 8kHz */
1319   ROM_LOAD( "luckyson.15",   0x00000, 0x10000, CRC(b896c87f) SHA1(985e625a937abd6353218f0cace14d3adec4c1bf) )
1437   ROM_REGION( 0x20000, "adpcm", 0 )   /* 4-bits ADPCM samples @ 8kHz */
1438   ROM_LOAD( "luckyson.15",   0x00000, 0x10000, CRC(b896c87f) SHA1(985e625a937abd6353218f0cace14d3adec4c1bf) )   /* location 2n */
1439   ROM_FILL(               0x10000, 0x10000, 0xff )                                             /* empty socket @ 1n */
13201440
13211441   ROM_REGION( 0x0600, "proms", 0 )
13221442   ROM_LOAD( "luckyprom.e6",   0x0000, 0x0100, CRC(ae793fef) SHA1(e4e2d2dccabad7d756811fb2d5e123bf30f106f3) )
r15413r15414
13331453    - All the co-processor routines were erased.
13341454
13351455    - The program ROM seems incomplete or encrypted in some smart way.
1336      At start, just pop some registers and make a RTI. Maybe protection...
1456      At start, just pop some registers and make a RTI. Maybe the 1st
1457      part of the program is inside the original CPU box...
13371458
13381459*/
13391460ROM_START( lucky74a )
r15413r15414
13521473   ROM_LOAD( "luckygde.18",   0x10000, 0x8000, CRC(717e5f4e) SHA1(0f14c9525bf77bbc4de0d9695648acb40870a176) )
13531474   ROM_LOAD( "luckygde.19",   0x18000, 0x8000, CRC(bb4608ae) SHA1(cc8ec596f445fe0364f254241227de368f309ebb) )
13541475
1355   ROM_REGION( 0x10000, "adpcm", 0 )   /* 4-bit ADPCM samples @ 8kHz */
1356   ROM_LOAD( "luckyson.15",   0x00000, 0x10000, CRC(b896c87f) SHA1(985e625a937abd6353218f0cace14d3adec4c1bf) )
1476   ROM_REGION( 0x20000, "adpcm", 0 )   /* 4-bits ADPCM samples @ 8kHz */
1477   ROM_LOAD( "luckyson.15",   0x00000, 0x10000, CRC(b896c87f) SHA1(985e625a937abd6353218f0cace14d3adec4c1bf) )   /* location 2n */
1478   ROM_FILL(               0x10000, 0x10000, 0xff )                                             /* empty socket @ 1n */
13571479
13581480   ROM_REGION( 0x0600, "proms", 0 )
13591481   ROM_LOAD( "luckyprom.e6",   0x0000, 0x0100, CRC(ae793fef) SHA1(e4e2d2dccabad7d756811fb2d5e123bf30f106f3) )
r15413r15414
13641486   ROM_LOAD( "luckyprom.c7",   0x0500, 0x0100, CRC(e62fd192) SHA1(86a189df2e2ccef6bd2a4e6d969e777fbba8cdf7) )
13651487ROM_END
13661488
1489/*
1490   
1491    Exciting Black Jack.
1492    Sega (Wing?), 1992. (game say 198?).
13671493
1494    Program is inside a CPU box, and is not dumped.
1495    S5 and S10 are banked 4 bits ADPCM samples.
1496
1497    ebj_s1.2f           1ST AND 2ND HALF IDENTICAL
1498    ebj_s2.2j           1ST AND 2ND HALF IDENTICAL
1499    ebj_s3.2k           1ST AND 2ND HALF IDENTICAL
1500    ebj_s4.2l           1ST AND 2ND HALF IDENTICAL
1501    ebj_s6.1f           1ST AND 2ND HALF IDENTICAL
1502    ebj_s7.1j           1ST AND 2ND HALF IDENTICAL
1503    ebj_s8.1k           1ST AND 2ND HALF IDENTICAL
1504    ebj_s9.1l           1ST AND 2ND HALF IDENTICAL
1505
1506*/
1507ROM_START( excitbj )
1508   ROM_REGION( 0x10000, "maincpu", 0 )
1509   ROM_LOAD( "ebj_prg.box",   0x0000, 0x10000, NO_DUMP )   /* someone will try to do some magic to extract this one */
1510
1511   ROM_REGION( 0x40000, "fgtiles", 0 )
1512   ROM_LOAD( "ebj_s2.2j",   0x00000, 0x10000, CRC(a9d432f1) SHA1(25ff00a1fecc9bc767c4c417ab7dac0a32378884) )
1513   ROM_LOAD( "ebj_s1.2f",   0x10000, 0x10000, CRC(955e9631) SHA1(68ae0d6502fabc5746d16043f9699315465acffb) )
1514   ROM_LOAD( "ebj_s3.2k",   0x20000, 0x10000, CRC(2f887c83) SHA1(ca9407e9967c673c35f649320d3c3ae18c61b379) )
1515   ROM_LOAD( "ebj_s4.2l",   0x30000, 0x10000, CRC(7e14a279) SHA1(bddbaa6cfbe86c59a7da6999ab88da878666cc1d) )
1516
1517   ROM_REGION( 0x40000, "bgtiles", 0 )
1518   ROM_LOAD( "ebj_s7.1j",   0x00000, 0x10000, CRC(7dba6ae2) SHA1(d995482cb8d8bcdfe0f77aae99f23f1c55b7c339) )
1519   ROM_LOAD( "ebj_s6.1f",   0x10000, 0x10000, CRC(aad2eb77) SHA1(9c4d82bd81d10cdd32af2f4ec376cead9a5a4e78) )
1520   ROM_LOAD( "ebj_s8.1k",   0x20000, 0x10000, CRC(297443a7) SHA1(3a20498dcf69412f5bd3156391a55d3b1273c0b4) )
1521   ROM_LOAD( "ebj_s9.1l",   0x30000, 0x10000, CRC(79ba7d75) SHA1(7301143a019d5e79eff7941a1a34fe96036acffa) )
1522
1523   ROM_REGION( 0x20000, "adpcm", 0 )   /* 4-bits ADPCM samples @ 8kHz */
1524   ROM_LOAD( "ebj_s5.2n",   0x00000, 0x10000, CRC(9b4a10a2) SHA1(843ab5955ba96bb1b1a5367652d0f6424ba23bdf) )   /* location 2n */
1525   ROM_LOAD( "ebj_s10.1n",   0x10000, 0x10000, CRC(2fa7401d) SHA1(80a5dfd2b7c183acd2fc124d220de4a4921178b2) )   /* location 1n */
1526
1527   ROM_REGION( 0x0600, "proms", 0 )
1528   ROM_LOAD( "6e-a.6e",   0x0000, 0x0100, CRC(bcaa7a0d) SHA1(75554d539bf67effb862234cdf89e4df4e2193ed) )
1529   ROM_LOAD( "7e.7e",      0x0100, 0x0100, CRC(09c3f397) SHA1(d8fd8faf3d9534e44e65efcef82a6d691c0e8c3f) )
1530   ROM_LOAD( "6d-a.6d",   0x0200, 0x0100, CRC(5290798a) SHA1(90f0af6d9fe362d8fac672b56e443e1edcf59e13) )
1531   ROM_LOAD( "7d.7d",      0x0300, 0x0100, CRC(ddef8e23) SHA1(27c975174dc9a7a9deaf34322083183033d3aba3) )
1532   ROM_LOAD( "6c-a.6c",   0x0400, 0x0100, CRC(e74c63a0) SHA1(0abd56296baeef7dae5f8cff04f23de2d26ffac1) )
1533   ROM_LOAD( "7c.7c",      0x0500, 0x0100, CRC(d8f90e92) SHA1(b1fa72bb6d32db3bfd95f5f1c502758f302f3053) )
1534ROM_END
1535
1536
13681537/*********************************************
13691538*                Game Drivers                *
13701539**********************************************
13711540
1372       YEAR  NAME      PARENT   MACHINE  INPUT     INIT  ROT    COMPANY          FULLNAME                     FLAGS             LAYOUT  */
1541       YEAR  NAME      PARENT   MACHINE  INPUT     INIT  ROT    COMPANY          FULLNAME                    FLAGS             LAYOUT  */
13731542GAMEL( 1988, lucky74,  0,       lucky74, lucky74,  0,    ROT0, "Wing Co., Ltd.", "Lucky 74 (bootleg, set 1)", 0,                layout_lucky74 )
13741543GAMEL( 1988, lucky74a, lucky74, lucky74, lucky74,  0,    ROT0, "Wing Co., Ltd.", "Lucky 74 (bootleg, set 2)", GAME_NOT_WORKING, layout_lucky74 )
1544GAME(  198?, excitbj,  0,       lucky74, excitbj,  0,    ROT0, "Sega",           "Exciting Black Jack",       GAME_NOT_WORKING )
src/mame/drivers/eolithsp.c
r15413r15414
3939} eolith_speedup_table[] =
4040{
4141   /* eolith.c */
42   { "linkypip", 0x4000825c, 240 },
4243   { "ironfort", 0x40020854, 240 },
4344   { "hidnctch", 0x4000bba0, 240 },
4445   { "raccoon",  0x40008204, 240 },
r15413r15414
5253   { "fort2b",   0x000081e0, 240 },
5354   { "fort2ba",  0x000081e0, 240 },
5455   { "penfan",   0x4001FA66, 240 },
55   { "candy",     0x4001990C, 240 },
56   { "candy",    0x4001990C, 240 },
5657   /* eolith16.c */
5758   { "klondkp",  0x0001a046, 240 },
5859   /* vegaeo.c */
59   { "crazywar", 0x00008cf8, 240 },
60   { "crazywar", 0x00008cf8, 240 },
6061   { NULL, 0, 0 }
6162};
6263
src/mame/drivers/groundfx.c
r15413r15414
220220   AM_RANGE(0x500004, 0x500007) AM_READ_PORT("SYSTEM")
221221   AM_RANGE(0x500000, 0x500007) AM_WRITE(groundfx_input_w)   /* eeprom etc. */
222222   AM_RANGE(0x600000, 0x600003) AM_READWRITE(groundfx_adc_r,groundfx_adc_w)
223   AM_RANGE(0x700000, 0x7007ff) AM_RAM AM_SHARE("f3_shared")
223   AM_RANGE(0x700000, 0x7007ff) AM_RAM AM_SHARE("snd_shared")
224224   AM_RANGE(0x800000, 0x80ffff) AM_DEVREADWRITE_LEGACY("tc0480scp", tc0480scp_long_r, tc0480scp_long_w)     /* tilemaps */
225225   AM_RANGE(0x830000, 0x83002f) AM_DEVREADWRITE_LEGACY("tc0480scp", tc0480scp_ctrl_long_r, tc0480scp_ctrl_long_w)   // debugging
226226   AM_RANGE(0x900000, 0x90ffff) AM_DEVREADWRITE_LEGACY("tc0100scn", tc0100scn_long_r, tc0100scn_long_w)   /* piv tilemaps */
r15413r15414
387387   MCFG_TC0480SCP_ADD("tc0480scp", groundfx_tc0480scp_intf)
388388
389389   /* sound hardware */
390   MCFG_FRAGMENT_ADD(taito_f3_sound)
390   MCFG_FRAGMENT_ADD(taito_en_sound)
391391MACHINE_CONFIG_END
392392
393393/***************************************************************************
src/mame/drivers/undrfire.c
r15413r15414
480480   AM_RANGE(0x400000, 0x400003) AM_WRITE(motor_control_w)      /* gun vibration */
481481   AM_RANGE(0x500000, 0x500007) AM_READWRITE(undrfire_input_r, undrfire_input_w)      /* eerom etc. */
482482   AM_RANGE(0x600000, 0x600007) AM_READWRITE(unknown_hardware_r, unknown_int_req_w)   /* int request for unknown hardware */
483   AM_RANGE(0x700000, 0x7007ff) AM_RAM AM_SHARE("f3_shared")
483   AM_RANGE(0x700000, 0x7007ff) AM_RAM AM_SHARE("snd_shared")
484484   AM_RANGE(0x800000, 0x80ffff) AM_DEVREADWRITE_LEGACY("tc0480scp", tc0480scp_long_r, tc0480scp_long_w)      /* tilemaps */
485485   AM_RANGE(0x830000, 0x83002f) AM_DEVREADWRITE_LEGACY("tc0480scp", tc0480scp_ctrl_long_r, tc0480scp_ctrl_long_w)
486486   AM_RANGE(0x900000, 0x90ffff) AM_DEVREADWRITE_LEGACY("tc0100scn", tc0100scn_long_r, tc0100scn_long_w)      /* piv tilemaps */
r15413r15414
499499   AM_RANGE(0x400000, 0x400003) AM_WRITE(cbombers_cpua_ctrl_w)
500500   AM_RANGE(0x500000, 0x500007) AM_READWRITE(undrfire_input_r, undrfire_input_w)
501501   AM_RANGE(0x600000, 0x600007) AM_READWRITE(cbombers_adc_r, cbombers_adc_w)
502   AM_RANGE(0x700000, 0x7007ff) AM_RAM AM_SHARE("f3_shared")
502   AM_RANGE(0x700000, 0x7007ff) AM_RAM AM_SHARE("snd_shared")
503503   AM_RANGE(0x800000, 0x80ffff) AM_DEVREADWRITE_LEGACY("tc0480scp", tc0480scp_long_r, tc0480scp_long_w)      /* tilemaps */
504504   AM_RANGE(0x830000, 0x83002f) AM_DEVREADWRITE_LEGACY("tc0480scp", tc0480scp_ctrl_long_r, tc0480scp_ctrl_long_w)
505505   AM_RANGE(0x900000, 0x90ffff) AM_DEVREADWRITE_LEGACY("tc0100scn", tc0100scn_long_r, tc0100scn_long_w)      /* piv tilemaps */
r15413r15414
750750   MCFG_TC0480SCP_ADD("tc0480scp", undrfire_tc0480scp_intf)
751751
752752   /* sound hardware */
753   MCFG_FRAGMENT_ADD(taito_f3_sound)
753   MCFG_FRAGMENT_ADD(taito_en_sound)
754754MACHINE_CONFIG_END
755755
756756
r15413r15414
786786   MCFG_TC0480SCP_ADD("tc0480scp", undrfire_tc0480scp_intf)
787787
788788   /* sound hardware */
789   MCFG_FRAGMENT_ADD(taito_f3_sound)
789   MCFG_FRAGMENT_ADD(taito_en_sound)
790790MACHINE_CONFIG_END
791791
792792
src/mame/drivers/taitojc.c
r15413r15414
790790   }
791791}
792792
793READ32_MEMBER(taitojc_state::f3_share_r)
793READ32_MEMBER(taitojc_state::snd_share_r)
794794{
795795   switch (offset & 3)
796796   {
797      case 0: return (m_f3_shared_ram[(offset/4)] <<  0) & 0xff000000;
798      case 1: return (m_f3_shared_ram[(offset/4)] <<  8) & 0xff000000;
799      case 2: return (m_f3_shared_ram[(offset/4)] << 16) & 0xff000000;
800      case 3: return (m_f3_shared_ram[(offset/4)] << 24) & 0xff000000;
797      case 0: return (m_snd_shared_ram[(offset/4)] <<  0) & 0xff000000;
798      case 1: return (m_snd_shared_ram[(offset/4)] <<  8) & 0xff000000;
799      case 2: return (m_snd_shared_ram[(offset/4)] << 16) & 0xff000000;
800      case 3: return (m_snd_shared_ram[(offset/4)] << 24) & 0xff000000;
801801   }
802802
803803   return 0;
804804}
805805
806WRITE32_MEMBER(taitojc_state::f3_share_w)
806WRITE32_MEMBER(taitojc_state::snd_share_w)
807807{
808808   UINT32 d = (data >> 24) & 0xff;
809809
810810   switch (offset & 3)
811811   {
812      case 0: m_f3_shared_ram[(offset/4)] &= ~0xff000000; m_f3_shared_ram[(offset/4)] |= d << 24; break;
813      case 1: m_f3_shared_ram[(offset/4)] &= ~0x00ff0000; m_f3_shared_ram[(offset/4)] |= d << 16; break;
814      case 2: m_f3_shared_ram[(offset/4)] &= ~0x0000ff00; m_f3_shared_ram[(offset/4)] |= d <<  8; break;
815      case 3: m_f3_shared_ram[(offset/4)] &= ~0x000000ff; m_f3_shared_ram[(offset/4)] |= d <<  0; break;
812      case 0: m_snd_shared_ram[(offset/4)] &= ~0xff000000; m_snd_shared_ram[(offset/4)] |= d << 24; break;
813      case 1: m_snd_shared_ram[(offset/4)] &= ~0x00ff0000; m_snd_shared_ram[(offset/4)] |= d << 16; break;
814      case 2: m_snd_shared_ram[(offset/4)] &= ~0x0000ff00; m_snd_shared_ram[(offset/4)] |= d <<  8; break;
815      case 3: m_snd_shared_ram[(offset/4)] &= ~0x000000ff; m_snd_shared_ram[(offset/4)] |= d <<  0; break;
816816   }
817817}
818818
r15413r15414
854854   AM_RANGE(0x06600010, 0x06600013) AM_WRITE(jc_coin_counters_w)
855855   AM_RANGE(0x06600040, 0x0660004f) AM_WRITE(jc_control_w)
856856   //AM_RANGE(0x06800000, 0x06801fff) AM_NOP       // unknown
857   AM_RANGE(0x06a00000, 0x06a01fff) AM_READWRITE(f3_share_r, f3_share_w) AM_SHARE("f3_shared")
857   AM_RANGE(0x06a00000, 0x06a01fff) AM_READWRITE(snd_share_r, snd_share_w) AM_SHARE("snd_shared")
858858   AM_RANGE(0x06c00000, 0x06c0001f) AM_READ(jc_lan_r) AM_WRITENOP // Dangerous Curves
859859   AM_RANGE(0x06e00000, 0x06e00007) AM_WRITE(jc_meters_w)
860860   AM_RANGE(0x08000000, 0x080fffff) AM_RAM AM_SHARE("main_ram")
r15413r15414
13951395   MCFG_VIDEO_START(taitojc)
13961396
13971397   /* sound hardware */
1398   MCFG_FRAGMENT_ADD(taito_f3_sound)
1398   MCFG_FRAGMENT_ADD(taito_en_sound)
13991399MACHINE_CONFIG_END
14001400
14011401static MACHINE_CONFIG_DERIVED( dendego, taitojc )
src/mame/drivers/model3.c
r15413r15414
9797is no mention of 'Step 1.5' or even 'Step 1.0' on any of the PCBs and there is no 50MHz or
9898100MHz OSC on the CPU board that would allow the CPU to run at 100MHz like the current
9999documention lists.
100The CPU on Scud Race runs at 66MHz. I suspect the 100MHz clock and STEP 1 and STEP 1.5 is yet
101another system16.com wild guess. Therefore, until proven, STEP 1.0 and STEP 1.5 DO NOT EXIST!
102100
101The CPU on Scud Race runs at 66MHz.
102
103103Existing Model 3 hardware revisions as noted on the PCBs are ....
104104MODEL3 (verified seen)
105105MODEL3 STEP2 (verified seen)
r15413r15414
107107written on the PCBs. If you have evidence that they do exist (i.e. you have a PCB), or you
108108have a Model 3 game on a different version PCB to what is documented here, please let us know!
109109
110Sega ID# for Model 3 PCBs:
111837-11858 MODEL3 CPU BOARD
112837-11859 MODEL3 VIDEO BOARD
113837-12874 MODEL3 STEP 1.5 CPU BOARD
114837-12875 MODEL3 STEP 1.5 VIDEO BOARD
115837-12715-91 MODEL3 STEP2 CPU BOARD
116837-12716-91 MODEL3 STEP2 VIDEO BOARD (has been listed with and without the "-91")
117837-13368 MODEL3 STEP2.1 VIDEO BD (most manuals show this is interchangable with 837-12716 STEP2 video board)
118
110119This document is for MODEL3 (the first version).
111120The games that exist on this hardware include....
112121Boat Race GP
r15413r15414
22082217   ROM_FILL( 0x000000, 0x80000, 0 )
22092218ROM_END
22102219
2211ROM_START( scud )   /* step 1.5 */
2220ROM_START( scud )   /* step 1.5, Sega game ID# is 833-13041, ROM board ID# 834-13072 SPG COMM AUS */
2221   /* There is known to be a ROM board ID# 834-13034 SPG DX AUS with program roms EPR-19634 to EPR-19637 */
22122222   ROM_REGION64_BE( 0x4800000, "user1", 0 ) /* program + data ROMs */
22132223   // CROM
22142224   ROM_LOAD64_WORD_SWAP( "epr-19731.17",  0x0600006,  0x80000,  CRC(3EE6447E) SHA1(124697791d90c1b352dd6e33bd3b45535aa92bb5) )
r15413r15414
22832293   ROM_LOAD( "epr-19338a.bin", 0x000000, 0x010000, CRC(c9fac464) SHA1(47b9ab7921a685c01629afb592d597faa11d2bd6) )
22842294ROM_END
22852295
2286ROM_START( scudj )   /* step 1.5 */
2296ROM_START( scudj )   /* step 1.5, Sega game ID# is 833-13041, ROM board ID# 12934 SPG DX */
22872297   ROM_REGION64_BE( 0x4800000, "user1", 0 ) /* program + data ROMs */
22882298   // CROM
22892299   ROM_LOAD64_WORD_SWAP( "epr-19610.17a",  0x0600006,  0x80000,  CRC(53f5cd94) SHA1(e27609165087ef7000b61ce628883561ffe64b22) )
r15413r15414
23582368   ROM_LOAD( "epr-19338a.bin", 0x000000, 0x010000, CRC(c9fac464) SHA1(47b9ab7921a685c01629afb592d597faa11d2bd6) )
23592369ROM_END
23602370
2361ROM_START( scuda )   /* step 1.5, Sega game ID# is 833-13041, ROM board ID# 834-13042 */
2371ROM_START( scuda )   /* step 1.5, Sega game ID# is 833-13041, ROM board ID# 834-13042 SPG FOR COMMUNICATION */
23622372   ROM_REGION64_BE( 0x4800000, "user1", 0 ) /* program + data ROMs */
23632373   // CROM
23642374   ROM_LOAD64_WORD_SWAP( "epr-19688.17",  0x0600006,  0x80000,  CRC(a4c85103) SHA1(b2e57f86d0a49e3e88fa7d6a77bbd99039c034bb) )
r15413r15414
27392749   ROM_FILL( 0x000000, 0x80000, 0 )
27402750ROM_END
27412751
2742ROM_START( bass )   /* step 1.0 */
2752ROM_START( bass )   /* step 1.0, Sega game ID# is 833-13317, ROM board ID# 834-13318 BSS */
27432753   ROM_REGION64_BE( 0x4800000, "user1", 0 ) /* program + data ROMs */
27442754   // CROM
27452755   ROM_LOAD64_WORD_SWAP( "epr-20643.17",  0x600006, 0x080000, CRC(daf02716) SHA1(b968f8ca602c78b9ca49969ff01f9440f175049a) )
r15413r15414
38513861   ROM_FILL( 0x000000, 0x80000, 0 )
38523862ROM_END
38533863
3854ROM_START( swtrilgy )   /* Step 2.1 */
3864ROM_START( swtrilgy )   /* Step 2.1, Sega game ID# is 833-13586, ROM board ID# 834-13587 STAR WARS TRILOGY, Security board ID# 837-13588-COM */
38553865   ROM_REGION64_BE( 0x4800000, "user1", 0 ) /* program + data ROMs */
38563866   // CROM
38573867   ROM_LOAD64_WORD_SWAP( "epr-21379a.17",  0x000006, 0x200000, CRC(24dc1555) SHA1(0a4b458bb09238de0f38ba2805512b5dbee7d58e) )
r15413r15414
39203930   ROM_FILL( 0x000000, 0x80000, 0 )
39213931ROM_END
39223932
3923ROM_START( swtrilgya )   /* Step 2.1 */
3933ROM_START( swtrilgya )   /* Step 2.1, Sega game ID# is 833-13586, ROM board ID# 834-13587 STAR WARS TRILOGY, Security board ID# 837-13588-COM */
39243934   ROM_REGION64_BE( 0x4800000, "user1", 0 ) /* program + data ROMs */
39253935   // CROM
39263936   ROM_LOAD64_WORD_SWAP( "epr-21379.17",  0x000006, 0x200000, CRC(61ad51d9) SHA1(b27ea929702bb94c86d03d6c1f479af32230b4d0) )
r15413r15414
39893999   ROM_FILL( 0x000000, 0x80000, 0 )
39904000ROM_END
39914001
3992ROM_START( dirtdvls )   /* Step 2.1 */
4002ROM_START( dirtdvls )   /* Step 2.1, Sega game ID# is 833-13427, ROM board ID# 834-13528 DRT */
39934003   ROM_REGION64_BE( 0x4800000, "user1", 0 ) /* program + data ROMs */
39944004   // CROM
39954005   ROM_LOAD64_WORD_SWAP( "epr-21062a.17", 0x000006, 0x200000, CRC(64b55254) SHA1(0e5de3786edad77dde08652ac837dc9125e7851c) )
r15413r15414
41114121   ROM_FILL( 0x000000, 0x80000, 0 )
41124122ROM_END
41134123
4114ROM_START( daytona2 )   /* Step 2.1 */
4124ROM_START( daytona2 )   /* Step 2.1, ROM board ID# 834-13428 DAYTONA USA2, Security board ID# 837-13507-COM */
41154125   ROM_REGION64_BE( 0x8800000, "user1", 0 ) /* program + data ROMs */
41164126   // CROM
41174127   ROM_LOAD64_WORD_SWAP( "epr-20861a.17", 0x000006, 0x200000, CRC(89ba8e78) SHA1(7d27124b976a63fdadd16551a664b2cc8cc08e79) )
r15413r15414
41914201   ROM_LOAD( "epr-20985.bin", 0x000000, 0x010000, CRC(b139481d) SHA1(05fca7db7c8b084c53bd157ba3e8296f1a961a99) )
41924202ROM_END
41934203
4194ROM_START( dayto2pe )   /* Step 2.1 */
4204ROM_START( dayto2pe )   /* Step 2.1, ROM board ID# 834-13609, Security board ID# 837-13507-COM */
41954205   ROM_REGION64_BE( 0x8800000, "user1", 0 ) /* program + data ROMs */
41964206   // CROM
41974207   ROM_LOAD64_WORD_SWAP( "epr-21178.17", 0x000006, 0x200000, CRC(230bf8ac) SHA1(bc64c4f8a794ca59b5c488a34d1b5a2b67af8fec) )
r15413r15414
42714281   ROM_LOAD( "epr-20985.bin", 0x000000, 0x010000, CRC(b139481d) SHA1(05fca7db7c8b084c53bd157ba3e8296f1a961a99) )
42724282ROM_END
42734283
4274ROM_START( srally2 )   /* Step 2.0 */
4284ROM_START( srally2 )   /* Step 2.0, Sega game ID# is 833-13373, ROM board ID# 834-13374 SRT TWIN */
42754285   ROM_REGION64_BE( 0x4800000, "user1", 0 ) /* program + data ROMs */
42764286   // CROM
42774287   ROM_LOAD64_WORD_SWAP( "epr-20632.17",  0x000006, 0x200000, CRC(6829a801) SHA1(2aa3834f6a8c53f5db57ab52994b8ab3fde2d7c2) )
r15413r15414
44124422   ROM_LOAD( "epr-20512.bin", 0x000000, 0x010000, CRC(cf64350d) SHA1(f30c8c7b65fb38f7dd63845f12b81388ff3b946d) )
44134423ROM_END
44144424
4415ROM_START( harley )   /* Step 2.0 */
4425ROM_START( harley )   /* Step 2.0, Sega game ID# is 833-13325, ROM board ID# 834-13326 HARLEY DAVIDSON */
44164426   ROM_REGION64_BE( 0x4800000, "user1", 0 ) /* program + data ROMs */
44174427   // CROM
4418   ROM_LOAD64_WORD_SWAP( "epr-20393a.17", 0x000006, 0x200000, CRC(b5646556) SHA1(4bff0e140e1d1df7459f7194aa4a335bc4592203) )
4419   ROM_LOAD64_WORD_SWAP( "epr-20394a.18", 0x000004, 0x200000, CRC(ce29e2b6) SHA1(482aaf5480b219b8ac6e4e36a6d64359e1834f44) )
4420   ROM_LOAD64_WORD_SWAP( "epr-20395a.19", 0x000002, 0x200000, CRC(761f4976) SHA1(3e451a99b87f05d6fa35efdd944cd4c2033dd5fd) )
4421   ROM_LOAD64_WORD_SWAP( "epr-20396a.20", 0x000000, 0x200000, CRC(16b0106b) SHA1(3b8449805b73ff6ff1a1c8b134cd861b77b7f8d8) )
4428   ROM_LOAD64_WORD_SWAP( "epr-20393b.17", 0x000006, 0x200000, CRC(7d712105) SHA1(35e0849f498de48fcb357495b6e8039740b8e881) )
4429   ROM_LOAD64_WORD_SWAP( "epr-20394b.18", 0x000004, 0x200000, CRC(b4312135) SHA1(79c4306acd8c20f86d16a18de696783f7da9df84) )
4430   ROM_LOAD64_WORD_SWAP( "epr-20395b.19", 0x000002, 0x200000, CRC(88f71d76) SHA1(2ef28f6b10030c60fae17efdbe5707ade2d8cc76) )
4431   ROM_LOAD64_WORD_SWAP( "epr-20396b.20", 0x000000, 0x200000, CRC(9623dea7) SHA1(232f3fdeb932b332952542fa06d0539bcf513f68) )
44224432
44234433   // CROM0
44244434   ROM_LOAD64_WORD_SWAP( "mpr-20361.1",   0x800006, 0x400000, CRC(ddb66c2f) SHA1(e47450cc38af99e2870aac1f598e057a0c6efe47) )
r15413r15414
44804490   ROM_FILL( 0x000000, 0x80000, 0 )
44814491ROM_END
44824492
4483ROM_START( harleyb )   /* Step 2.0 */
4493ROM_START( harleya )   /* Step 2.0, Sega game ID# is 833-13325, ROM board ID# 834-13326 HARLEY DAVIDSON */
44844494   ROM_REGION64_BE( 0x4800000, "user1", 0 ) /* program + data ROMs */
44854495   // CROM
4486   ROM_LOAD64_WORD_SWAP( "epr-20393b.17", 0x000006, 0x200000, CRC(7d712105) SHA1(35e0849f498de48fcb357495b6e8039740b8e881) )
4487   ROM_LOAD64_WORD_SWAP( "epr-20394b.18", 0x000004, 0x200000, CRC(b4312135) SHA1(79c4306acd8c20f86d16a18de696783f7da9df84) )
4488   ROM_LOAD64_WORD_SWAP( "epr-20395b.19", 0x000002, 0x200000, CRC(88f71d76) SHA1(2ef28f6b10030c60fae17efdbe5707ade2d8cc76) )
4489   ROM_LOAD64_WORD_SWAP( "epr-20396b.20", 0x000000, 0x200000, CRC(9623dea7) SHA1(232f3fdeb932b332952542fa06d0539bcf513f68) )
4496   ROM_LOAD64_WORD_SWAP( "epr-20393a.17", 0x000006, 0x200000, CRC(b5646556) SHA1(4bff0e140e1d1df7459f7194aa4a335bc4592203) )
4497   ROM_LOAD64_WORD_SWAP( "epr-20394a.18", 0x000004, 0x200000, CRC(ce29e2b6) SHA1(482aaf5480b219b8ac6e4e36a6d64359e1834f44) )
4498   ROM_LOAD64_WORD_SWAP( "epr-20395a.19", 0x000002, 0x200000, CRC(761f4976) SHA1(3e451a99b87f05d6fa35efdd944cd4c2033dd5fd) )
4499   ROM_LOAD64_WORD_SWAP( "epr-20396a.20", 0x000000, 0x200000, CRC(16b0106b) SHA1(3b8449805b73ff6ff1a1c8b134cd861b77b7f8d8) )
44904500
44914501   // CROM0
44924502   ROM_LOAD64_WORD_SWAP( "mpr-20361.1",   0x800006, 0x400000, CRC(ddb66c2f) SHA1(e47450cc38af99e2870aac1f598e057a0c6efe47) )
r15413r15414
47774787   ROM_FILL( 0x000000, 0x80000, 0 )
47784788ROM_END
47794789
4780ROM_START( eca )   /* Step 2.1, Sega game ID# is 833-13427, ROM board ID# 834-13428, MAIN board ID# 837-13022-1, Security board ID# 837-13947-COM */
4790ROM_START( eca )   /* Step 2.1, ROM board ID# 834-13946-01 ECA */
47814791   ROM_REGION64_BE( 0x4800000, "user1", 0 ) /* program + data ROMs */
47824792   // CROM
47834793   ROM_LOAD64_WORD_SWAP( "epr-22895.17", 0x000006, 0x200000, CRC(07df16a0) SHA1(a9ad2b229854a5f4f761565141db738adde28720) )
r15413r15414
49134923   ROM_FILL( 0x000000, 0x80000, 0 )
49144924ROM_END
49154925
4916ROM_START( magtruck )   /* Step 2.1 */
4926ROM_START( magtruck )   /* Step 2.1, Sega game ID# is 833-13601-01 (Export), ROM board ID# 834-13600-01 RCS EXP (Export), Security board ID# 837-13599-COM */
49174927   ROM_REGION64_BE( 0x4800000, "user1", 0 ) /* program + data ROMs */
49184928   // CROM
49194929        ROM_LOAD64_WORD_SWAP( "epr-21435.17",  0x000006, 0x200000, CRC(9b169446) SHA1(285cbe5afd439d83c50f0499a878f71b8e5b94e5) )
r15413r15414
49694979   ROM_FILL( 0x000000, 0x80000, 0 )
49704980ROM_END
49714981
4972ROM_START( oceanhun )   /* Step 2.0 317-0244-COM security chip (837-13666-com security board) */
4982ROM_START( oceanhun )   /* Step 2.0, Sega game ID# is 833-13571, ROM board ID# 834-13572 THE OCEAN HUNTER, 317-0242-COM security chip (837-13576-COM security board) */
49734983   ROM_REGION64_BE( 0x8800000, "user1", 0 ) /* program + data ROMs */
49744984   // CROM
49754985   ROM_LOAD64_WORD_SWAP( "epr-21114.17", 0x000006, 0x200000, CRC(3adfcb9d) SHA1(22307e36a48e59ab881d6df2fbf2864f6a8b239c) )
r15413r15414
50375047   ROM_FILL( 0x000000, 0x80000, 0 )
50385048ROM_END
50395049
5040ROM_START( lamachin )   /* Step 2.0 317-0242-COM security chip (837-13576-com security board) */
5050ROM_START( lamachin )   /* Step 2.0, Sega game ID# is 833-13664, ROM board ID# 834-13665 L.A.MACHINEGUNS, 317-0244-COM security chip (837-13666-COM security board) */
50415051   ROM_REGION64_BE( 0x4800000, "user1", 0 ) /* program + data ROMs */
50425052   // CROM
50435053   ROM_LOAD64_WORD_SWAP( "epr-21483.17", 0x000006, 0x200000, CRC(940637c2) SHA1(89894b603c17d27f57500ec8030eaa7e0e991479) )
r15413r15414
58195829GAME( 1997, getbass,     bass, model3_10, bass,      getbass, ROT0, "Sega", "Get Bass", GAME_NOT_WORKING | GAME_IMPERFECT_GRAPHICS | GAME_IMPERFECT_SOUND )
58205830
58215831/* Model 3 Step 1.5 */
5822GAME( 1996, scud,           0, model3_15, scud,         scud, ROT0, "Sega", "Scud Race (Australia)", GAME_NOT_WORKING | GAME_IMPERFECT_GRAPHICS | GAME_IMPERFECT_SOUND )
5823GAME( 1996, scudj,       scud, model3_15, scud,         scud, ROT0, "Sega", "Scud Race (Japan)", GAME_NOT_WORKING | GAME_IMPERFECT_GRAPHICS | GAME_IMPERFECT_SOUND )
5824GAME( 1996, scuda,       scud, model3_15, scud,         scud, ROT0, "Sega", "Scud Race (Export)", GAME_NOT_WORKING | GAME_IMPERFECT_GRAPHICS | GAME_IMPERFECT_SOUND )
5832GAME( 1996, scud,           0, model3_15, scud,         scud, ROT0, "Sega", "Scud Race Twin (Australia)", GAME_NOT_WORKING | GAME_IMPERFECT_GRAPHICS | GAME_IMPERFECT_SOUND )
5833GAME( 1996, scudj,       scud, model3_15, scud,         scud, ROT0, "Sega", "Scud Race Deluxe (Japan)", GAME_NOT_WORKING | GAME_IMPERFECT_GRAPHICS | GAME_IMPERFECT_SOUND )
5834GAME( 1996, scuda,       scud, model3_15, scud,         scud, ROT0, "Sega", "Scud Race Twin (Export)", GAME_NOT_WORKING | GAME_IMPERFECT_GRAPHICS | GAME_IMPERFECT_SOUND )
58255835GAME( 1997, scudp,       scud, model3_15, scud,        scudp, ROT0, "Sega", "Scud Race Plus (Revision A)", GAME_NOT_WORKING | GAME_IMPERFECT_GRAPHICS | GAME_IMPERFECT_SOUND )
58265836GAME( 1997, lostwsga,       0, model3_15, lostwsga, lostwsga, ROT0, "Sega", "The Lost World", GAME_NOT_WORKING | GAME_IMPERFECT_GRAPHICS | GAME_IMPERFECT_SOUND )
58275837GAME( 1997, vs215,        vs2, model3_15, model3,      vs215, ROT0, "Sega", "Virtua Striker 2 (Step 1.5)", GAME_NOT_WORKING | GAME_IMPERFECT_GRAPHICS | GAME_IMPERFECT_SOUND )
r15413r15414
58315841
58325842/* Model 3 Step 2.0 */
58335843GAME( 1997, vs2,            0, model3_20, model3,        vs2, ROT0, "Sega", "Virtua Striker 2 (Step 2.0)", GAME_NOT_WORKING | GAME_IMPERFECT_GRAPHICS | GAME_IMPERFECT_SOUND )
5834GAME( 1997, harley,         0, model3_20, harley,     harley, ROT0, "Sega", "Harley-Davidson and L.A. Riders (Revision A)", GAME_NOT_WORKING | GAME_IMPERFECT_GRAPHICS | GAME_IMPERFECT_SOUND )
5835GAME( 1997, harleyb,   harley, model3_20, harley,    harleyb, ROT0, "Sega", "Harley-Davidson and L.A. Riders (Revision B)", GAME_NOT_WORKING | GAME_IMPERFECT_GRAPHICS | GAME_IMPERFECT_SOUND )
5844GAME( 1997, harley,         0, model3_20, harley,     harley, ROT0, "Sega", "Harley-Davidson and L.A. Riders (Revision B)", GAME_NOT_WORKING | GAME_IMPERFECT_GRAPHICS | GAME_IMPERFECT_SOUND )
5845GAME( 1997, harleya,   harley, model3_20, harley,    harleyb, ROT0, "Sega", "Harley-Davidson and L.A. Riders (Revision A)", GAME_NOT_WORKING | GAME_IMPERFECT_GRAPHICS | GAME_IMPERFECT_SOUND )
58365846GAME( 1998, lamachin,       0, model3_20, model3,  model3_20, ROT0, "Sega", "L.A. Machineguns", GAME_NOT_WORKING | GAME_IMPERFECT_GRAPHICS | GAME_IMPERFECT_SOUND )
58375847GAME( 1998, oceanhun,       0, model3_20, model3,   oceanhun, ROT0, "Sega", "The Ocean Hunter", GAME_NOT_WORKING | GAME_IMPERFECT_GRAPHICS | GAME_IMPERFECT_SOUND )
58385848GAME( 1998, skichamp,       0, model3_20, skichamp, skichamp, ROT0, "Sega", "Ski Champ", GAME_NOT_WORKING | GAME_IMPERFECT_GRAPHICS | GAME_IMPERFECT_SOUND )
src/mame/drivers/galastrm.c
r15413r15414
175175   AM_RANGE(0x400000, 0x400007) AM_WRITE(galastrm_input_w)                           /* eerom etc. */
176176   AM_RANGE(0x40fff0, 0x40fff3) AM_WRITENOP
177177   AM_RANGE(0x500000, 0x500007) AM_READWRITE(galastrm_adstick_ctrl_r, galastrm_adstick_ctrl_w)
178   AM_RANGE(0x600000, 0x6007ff) AM_RAM AM_SHARE("f3_shared")                        /* Sound shared ram */
178   AM_RANGE(0x600000, 0x6007ff) AM_RAM AM_SHARE("snd_shared")                        /* Sound shared ram */
179179   AM_RANGE(0x800000, 0x80ffff) AM_DEVREADWRITE_LEGACY("tc0480scp", tc0480scp_long_r, tc0480scp_long_w)      /* tilemaps */
180180   AM_RANGE(0x830000, 0x83002f) AM_DEVREADWRITE_LEGACY("tc0480scp", tc0480scp_ctrl_long_r, tc0480scp_ctrl_long_w)
181181   AM_RANGE(0x900000, 0x900003) AM_WRITE(galastrm_palette_w)                        /* TC0110PCR */
r15413r15414
331331   MCFG_TC0480SCP_ADD("tc0480scp", galastrm_tc0480scp_intf)
332332
333333   /* sound hardware */
334   MCFG_FRAGMENT_ADD(taito_f3_sound)
334   MCFG_FRAGMENT_ADD(taito_en_sound)
335335MACHINE_CONFIG_END
336336
337337/***************************************************************************/
src/mame/drivers/dec0.c
r15413r15414
220220}
221221
222222
223WRITE16_MEMBER(dec0_state::automat_control_w)
223WRITE16_MEMBER(automat_state::automat_control_w)
224224{
225225   switch (offset << 1)
226226   {
227      case 0xe: /* 6502 sound cpu */
227      case 0xe: /* z80 sound cpu */
228228         if (ACCESSING_BITS_0_7)
229229         {
230230            soundlatch_byte_w(space, 0, data & 0xff);
r15413r15414
233233         break;
234234
235235      case 12: /* DMA flag */
236         dec0_update_sprites_w(space, 0, 0, mem_mask);
236         //dec0_update_sprites_w(space, 0, 0, mem_mask);
237237         break;
238238#if 0
239239      case 8: /* Interrupt ack (VBL - IRQ 6) */
r15413r15414
611611ADDRESS_MAP_END
612612
613613
614static ADDRESS_MAP_START( automat_map, AS_PROGRAM, 16, dec0_state )
614static ADDRESS_MAP_START( automat_map, AS_PROGRAM, 16, automat_state )
615615   AM_RANGE(0x000000, 0x05ffff) AM_ROM
616616
617   AM_RANGE(0x240000, 0x240007) AM_DEVWRITE_LEGACY("tilegen1", deco_bac06_pf_control_0_w)         /* text layer */
618   AM_RANGE(0x240010, 0x240017) AM_DEVWRITE_LEGACY("tilegen1", deco_bac06_pf_control_1_w)
619   AM_RANGE(0x242000, 0x24207f) AM_DEVREADWRITE_LEGACY("tilegen1", deco_bac06_pf_colscroll_r, deco_bac06_pf_colscroll_w)
620   AM_RANGE(0x242400, 0x2427ff) AM_DEVREADWRITE_LEGACY("tilegen1", deco_bac06_pf_rowscroll_r, deco_bac06_pf_rowscroll_w)
621   AM_RANGE(0x242800, 0x243fff) AM_RAM                         /* Robocop only */
622   AM_RANGE(0x244000, 0x245fff) AM_DEVREADWRITE_LEGACY("tilegen1", deco_bac06_pf_data_r, deco_bac06_pf_data_w)
617   AM_RANGE(0x240000, 0x240007) AM_RAM         /* text layer */
618   AM_RANGE(0x240010, 0x240017) AM_RAM
619   AM_RANGE(0x242000, 0x24207f) AM_RAM
620   AM_RANGE(0x242400, 0x2427ff) AM_RAM
621   AM_RANGE(0x242800, 0x243fff) AM_RAM
622   AM_RANGE(0x244000, 0x245fff) AM_RAM
623623
624   AM_RANGE(0x246000, 0x246007) AM_DEVWRITE_LEGACY("tilegen2", deco_bac06_pf_control_0_w)         /* first tile layer */
625   AM_RANGE(0x246010, 0x246017) AM_DEVWRITE_LEGACY("tilegen2", deco_bac06_pf_control_1_w)
626   AM_RANGE(0x248000, 0x24807f) AM_DEVREADWRITE_LEGACY("tilegen2", deco_bac06_pf_colscroll_r, deco_bac06_pf_colscroll_w)
627   AM_RANGE(0x248400, 0x2487ff) AM_DEVREADWRITE_LEGACY("tilegen2", deco_bac06_pf_rowscroll_r, deco_bac06_pf_rowscroll_w)
628   AM_RANGE(0x24a000, 0x24a7ff)  AM_DEVREADWRITE_LEGACY("tilegen2", deco_bac06_pf_data_r, deco_bac06_pf_data_w)
624   AM_RANGE(0x246000, 0x246007) AM_RAM         /* first tile layer */
625   AM_RANGE(0x246010, 0x246017) AM_RAM
626   AM_RANGE(0x248000, 0x24807f) AM_RAM
627   AM_RANGE(0x248400, 0x2487ff) AM_RAM
628   AM_RANGE(0x24a000, 0x24a7ff) AM_RAM
629629
630   AM_RANGE(0x24c000, 0x24c007) AM_DEVWRITE_LEGACY("tilegen3", deco_bac06_pf_control_0_w)         /* second tile layer */
631   AM_RANGE(0x24c010, 0x24c017) AM_DEVWRITE_LEGACY("tilegen3", deco_bac06_pf_control_1_w)
632   AM_RANGE(0x24c800, 0x24c87f) AM_DEVREADWRITE_LEGACY("tilegen3", deco_bac06_pf_colscroll_r, deco_bac06_pf_colscroll_w)
633   AM_RANGE(0x24cc00, 0x24cfff) AM_DEVREADWRITE_LEGACY("tilegen3", deco_bac06_pf_rowscroll_r, deco_bac06_pf_rowscroll_w)
634   AM_RANGE(0x24d000, 0x24d7ff) AM_DEVREADWRITE_LEGACY("tilegen3", deco_bac06_pf_data_r, deco_bac06_pf_data_w)
630   AM_RANGE(0x24c000, 0x24c007) AM_RAM         /* second tile layer */
631   AM_RANGE(0x24c010, 0x24c017) AM_RAM
632   AM_RANGE(0x24c800, 0x24c87f) AM_RAM
633   AM_RANGE(0x24cc00, 0x24cfff) AM_RAM
634   AM_RANGE(0x24d000, 0x24d7ff) AM_RAM
635635
636636   AM_RANGE(0x300000, 0x30001f) AM_READ(dec0_rotary_r)
637637   AM_RANGE(0x30c000, 0x30c00b) AM_READ(dec0_controls_r)
r15413r15414
643643   AM_RANGE(0xffc000, 0xffc7ff) AM_RAM AM_SHARE("spriteram")         /* Sprites */
644644ADDRESS_MAP_END
645645
646WRITE8_MEMBER(dec0_state::automat_adpcm_w)
646WRITE8_MEMBER(automat_state::automat_adpcm_w)
647647{
648648   m_automat_adpcm_byte = data;
649649}
650650
651static ADDRESS_MAP_START( automat_s_map, AS_PROGRAM, 8, dec0_state )
651static ADDRESS_MAP_START( automat_s_map, AS_PROGRAM, 8, automat_state )
652652   AM_RANGE(0xc000, 0xc7ff) AM_RAM
653653//  AM_RANGE(0xc800, 0xc800) AM_WRITE_LEGACY(ym2203_control_port_0_w)
654654//  AM_RANGE(0xc801, 0xc801) AM_WRITE_LEGACY(ym2203_write_port_0_w)
r15413r15414
13321332/******************************************************************************/
13331333
13341334
1335static void automat_vclk_cb(device_t *device)
1336{
1337   dec0_state *state = device->machine().driver_data<dec0_state>();
1338   if (state->m_automat_msm5205_vclk_toggle == 0)
1339   {
1340      msm5205_data_w(device, state->m_automat_adpcm_byte & 0xf);
1341   }
1342   else
1343   {
1344      msm5205_data_w(device, state->m_automat_adpcm_byte >> 4);
1345      cputag_set_input_line(device->machine(), "maincpu", INPUT_LINE_NMI, PULSE_LINE);
1346   }
13471335
1348   state->m_automat_msm5205_vclk_toggle ^= 1;
1349}
13501336
1351static const msm5205_interface msm5205_config =
1352{
1353   automat_vclk_cb,
1354   MSM5205_S48_4B
1355};
1356
1357
13581337static MACHINE_CONFIG_START( dec0_base, dec0_state )
13591338   MCFG_GFXDECODE(dec0)
13601339   MCFG_PALETTE_LENGTH(1024)
r15413r15414
14201399#define DEC0_VBSTART 256-8
14211400
14221401
1423static MACHINE_CONFIG_DERIVED( automat, dec0_base )
1402static void automat_vclk_cb(device_t *device)
1403{
1404   automat_state *state = device->machine().driver_data<automat_state>();
1405   if (state->m_automat_msm5205_vclk_toggle == 0)
1406   {
1407      msm5205_data_w(device, state->m_automat_adpcm_byte & 0xf);
1408   }
1409   else
1410   {
1411      msm5205_data_w(device, state->m_automat_adpcm_byte >> 4);
1412   //   cputag_set_input_line(device->machine(), "maincpu", INPUT_LINE_NMI, PULSE_LINE);
1413   }
14241414
1415   state->m_automat_msm5205_vclk_toggle ^= 1;
1416}
1417
1418static const msm5205_interface msm5205_config =
1419{
1420   automat_vclk_cb,
1421   MSM5205_S48_4B
1422};
1423
1424
1425static MACHINE_CONFIG_START( automat, automat_state )
1426
14251427   /* basic machine hardware */
14261428   MCFG_CPU_ADD("maincpu", M68000, 10000000)
14271429   MCFG_CPU_PROGRAM_MAP(automat_map)
r15413r15414
14351437//  MCFG_SCREEN_REFRESH_RATE(57.41)
14361438//  MCFG_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(529) /* 57.41 Hz, 529us Vblank */)
14371439   MCFG_SCREEN_RAW_PARAMS(DEC0_PIXEL_CLOCK,DEC0_HTOTAL,DEC0_HBEND,DEC0_HBSTART,DEC0_VTOTAL,DEC0_VBEND,DEC0_VBSTART)
1438   MCFG_SCREEN_UPDATE_STATIC(robocop)
1440   MCFG_SCREEN_UPDATE_STATIC(automat)
14391441
1442   MCFG_PALETTE_LENGTH(1024)
14401443   MCFG_GFXDECODE(automat)
14411444
14421445   /* sound hardware */
src/mame/drivers/clayshoo.c
r15413r15414
11/***************************************************************************
22
3    Atari Clay Shoot hardware
3    Allied Leisure Clay Shoot hardware
44
55    driver by Zsolt Vasvari
66
r15413r15414
88        * Clay Shoot
99
1010    Known issues:
11        * none at this time
11        * no sound
12        * cocktail mode, dipswitch or alternate romset?
13          (cocktail set has a color overlay, upright set has a backdrop)
1214
1315****************************************************************************/
1416
r15413r15414
2123{
2224public:
2325   clayshoo_state(const machine_config &mconfig, device_type type, const char *tag)
24      : driver_device(mconfig, type, tag) ,
25      m_videoram(*this, "videoram"){ }
26      : driver_device(mconfig, type, tag),
27      m_videoram(*this, "videoram")
28   { }
2629
2730   /* memory pointers */
2831   required_shared_ptr<UINT8> m_videoram;
r15413r15414
111114
112115WRITE8_MEMBER(clayshoo_state::analog_reset_w)
113116{
114
115117   /* reset the analog value, and start the two times that will fire
116118       off in a short period proportional to the position of the
117119       analog control and set the appropriate bit. */
r15413r15414
237239   AM_RANGE(0x00, 0x00) AM_WRITE(watchdog_reset_w)
238240   AM_RANGE(0x20, 0x23) AM_DEVREADWRITE("ppi8255_0", i8255_device, read, write)
239241   AM_RANGE(0x30, 0x33) AM_DEVREADWRITE("ppi8255_1", i8255_device, read, write)
242//   AM_RANGE(0x40, 0x43) AM_NOP // 8253 for sound?
243//   AM_RANGE(0x50, 0x50) AM_NOP // ?
244//   AM_RANGE(0x60, 0x60) AM_NOP // ?
240245ADDRESS_MAP_END
241246
242247
src/mame/drivers/40love.c
r15413r15414
553553
554554READ8_MEMBER(fortyl_state::undoukai_mcu_r)
555555{
556
557556   //  logerror("mcu_r %02x\n", m_from_mcu);
558557
559558   return m_from_mcu;
r15413r15414
769768   PORT_DIPNAME( 0x04, 0x04, DEF_STR( Free_Play ) )   PORT_DIPLOCATION("SW1:3")
770769   PORT_DIPSETTING(    0x04, DEF_STR( Off ) )
771770   PORT_DIPSETTING(    0x00, DEF_STR( On ) )
772   PORT_DIPNAME( 0x18, 0x10, DEF_STR( Lives ) )      PORT_DIPLOCATION("SW1:4,5")
771   PORT_DIPNAME( 0x18, 0x18, DEF_STR( Lives ) )      PORT_DIPLOCATION("SW1:4,5")
773772   PORT_DIPSETTING(    0x00, "1" )
774   PORT_DIPSETTING(    0x08, "2" )
775   PORT_DIPSETTING(    0x10, "3" )
776   PORT_DIPSETTING(    0x18, "4" )
773   PORT_DIPSETTING(    0x18, "3" )
774   PORT_DIPSETTING(    0x10, "5" )
775   PORT_DIPSETTING(    0x08, "6" )
777776   PORT_DIPUNKNOWN_DIPLOC( 0x20, 0x20, "SW1:6" )
778777   PORT_DIPNAME( 0x40, 0x00, DEF_STR( Flip_Screen ) )   PORT_DIPLOCATION("SW1:7")
779778   PORT_DIPSETTING(    0x00, DEF_STR( Off ) )
r15413r15414
823822   PORT_DIPUNKNOWN_DIPLOC( 0x02, 0x02, "SW3:2" )
824823   PORT_DIPUNKNOWN_DIPLOC( 0x04, 0x04, "SW3:3" )
825824   PORT_DIPUNKNOWN_DIPLOC( 0x08, 0x08, "SW3:4" )
826   PORT_DIPNAME( 0x10, 0x10, "Display Credit Settings" )   PORT_DIPLOCATION("SW3:5")
825   PORT_DIPNAME( 0x10, 0x10, "Coinage Display" )         PORT_DIPLOCATION("SW3:5")
827826   PORT_DIPSETTING(    0x00, DEF_STR( Off ) )
828827   PORT_DIPSETTING(    0x10, DEF_STR( On ) )
829828   PORT_DIPNAME( 0x20, 0x20, "Year Display" )            PORT_DIPLOCATION("SW3:6")
830829   PORT_DIPSETTING(    0x00, DEF_STR( Off ) )
831830   PORT_DIPSETTING(    0x20, DEF_STR( On ) )
832   PORT_DIPNAME( 0x40, 0x40, "Score points to: (Cheat)")   PORT_DIPLOCATION("SW3:7")
833   PORT_DIPSETTING(    0x40, "Winner" )
834   PORT_DIPSETTING(    0x00, "Human" )
835   PORT_DIPNAME( 0x80, 0x00, "Coin Door Type" )         PORT_DIPLOCATION("SW3:8")
836   PORT_DIPSETTING(    0x00, "Single Slot" )
837   PORT_DIPSETTING(    0x80, "Double Slot" )
831   PORT_DIPNAME( 0x40, 0x40, "Player Always Wins (Cheat)")   PORT_DIPLOCATION("SW3:7")
832   PORT_DIPSETTING(    0x40, DEF_STR( Off ) )
833   PORT_DIPSETTING(    0x00, DEF_STR( On ) )
834   PORT_DIPNAME( 0x80, 0x80, "Coin Slots" )            PORT_DIPLOCATION("SW3:8")
835   PORT_DIPSETTING(    0x00, "1" )
836   PORT_DIPSETTING(    0x80, "2" )
838837
839838   PORT_START("SYSTEM")
840   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_UNKNOWN )   //??
841   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_UNKNOWN )   //??
842   PORT_BIT( 0x04, IP_ACTIVE_HIGH,IPT_COIN1 )   //OK
843   PORT_BIT( 0x08, IP_ACTIVE_HIGH,IPT_COIN2 )   //OK
844   PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_START1 )   //OK
845   PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_START2 )   //OK
846   PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_SERVICE1 )   //OK
847   PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_TILT )   //OK
839   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_UNKNOWN )   // ?
840   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_UNKNOWN )   // ?
841   PORT_BIT( 0x04, IP_ACTIVE_HIGH,IPT_COIN1 )
842   PORT_BIT( 0x08, IP_ACTIVE_HIGH,IPT_COIN2 )
843   PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_START1 )
844   PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_START2 )
845   PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_SERVICE1 )
846   PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_TILT )
848847
849848   PORT_START("P1")
850849   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_4WAY
r15413r15414
853852   PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_4WAY
854853   PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_BUTTON1 )
855854   PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_BUTTON2 )
856   PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_BUTTON3 )
855   PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_BUTTON3 )   // ?
857856   PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_BUTTON4 )
858857
859858   PORT_START("P2")
r15413r15414
863862   PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_4WAY PORT_COCKTAIL
864863   PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_COCKTAIL
865864   PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_COCKTAIL
866   PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_BUTTON3 ) PORT_COCKTAIL
865   PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_BUTTON3 ) PORT_COCKTAIL   // ?
867866   PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_BUTTON4 ) PORT_COCKTAIL
868867INPUT_PORTS_END
869868
r15413r15414
10231022   state->m_pix1 = 0;
10241023   state->m_pix2[0] = 0;
10251024   state->m_pix2[1] = 0;
1025
10261026   /* sound */
10271027   state->m_sound_nmi_enable = 0;
10281028   state->m_pending_nmi = 0;
src/mame/drivers/konamigv.c
r15413r15414
2121tokimosp   Tokimeki Memorial Oshiete    ?              GE756   JAB          97.09.27   9:10
2222           Your Heart Seal version PLUS
2323nagano98   Winter Olypmics in Nagano 98 GV999          GX720   EAA01 1.03   98.01.08  10:45
24naganoj    Hyper Olympic in Nagano      GV999          GX720   JAA01 1.02   98.01.07  01:10
2425simpbowl   Simpsons Bowling             GV999          GQ829   UAA          ?
2526
2627PCB Layouts
r15413r15414
845846   DISK_IMAGE_READONLY( "nagano98", 0, BAD_DUMP SHA1(1be7bd4531f249ff2233dd40a206c8d60054a8c6) )
846847ROM_END
847848
849ROM_START( naganoj )
850   GV_BIOS
851
852   ROM_REGION16_BE( 0x0000080, "eeprom", 0 ) /* default eeprom */
853   ROM_LOAD( "720ja.25c",  0x000000, 0x000080, CRC(34c473ba) SHA1(768225b04a293bdbc114a092d14dee28d52044e9) )
854
855   DISK_REGION( "cdrom" )
856   DISK_IMAGE_READONLY( "720jaa01", 0, SHA1(437160996551ef4dfca43899d1d14beca62eb4c9) )
857ROM_END
858
848859ROM_START( tokimosh )
849860   GV_BIOS
850861
851862   ROM_REGION16_BE( 0x0000080, "eeprom", 0 ) /* default eeprom */
852        ROM_LOAD( "tokimosh.25c", 0x000000, 0x000080, CRC(e57b833f) SHA1(f18a0974a6be69dc179706643aab837ff61c2738) )
863   ROM_LOAD( "tokimosh.25c", 0x000000, 0x000080, CRC(e57b833f) SHA1(f18a0974a6be69dc179706643aab837ff61c2738) )
853864
854865   DISK_REGION( "cdrom" )
855866   DISK_IMAGE_READONLY( "755jaa01", 0, BAD_DUMP SHA1(4af080f9650e34d1ddb91bb763469d5fb3c754bd) )
r15413r15414
877888GAME( 1997, tokimosh, konamigv, konamigv, konamigv, tokimosh, ROT0, "Konami", "Tokimeki Memorial Oshiete Your Heart (GE755 JAA)", GAME_IMPERFECT_SOUND | GAME_IMPERFECT_GRAPHICS | GAME_NOT_WORKING )
878889GAME( 1997, tokimosp, konamigv, konamigv, konamigv, tokimosh, ROT0, "Konami", "Tokimeki Memorial Oshiete Your Heart Seal version PLUS (GE756 JAB)", GAME_IMPERFECT_SOUND | GAME_IMPERFECT_GRAPHICS | GAME_NOT_WORKING )
879890GAME( 1998, nagano98, konamigv, konamigv, konamigv, konamigv, ROT0, "Konami", "Nagano Winter Olympics '98 (GX720 EAA)", GAME_IMPERFECT_SOUND | GAME_IMPERFECT_GRAPHICS | GAME_SUPPORTS_SAVE)
891GAME( 1998, naganoj,  nagano98, konamigv, konamigv, konamigv, ROT0, "Konami", "Hyper Olympic in Nagano (GX720 JAA)", GAME_IMPERFECT_SOUND | GAME_IMPERFECT_GRAPHICS | GAME_SUPPORTS_SAVE)
880892GAME( 2000, simpbowl, konamigv, simpbowl, simpbowl, simpbowl, ROT0, "Konami", "Simpsons Bowling (GQ829 UAA)", GAME_IMPERFECT_SOUND | GAME_IMPERFECT_GRAPHICS | GAME_SUPPORTS_SAVE)
src/mame/drivers/gunbustr.c
r15413r15414
156156   AM_RANGE(0x200000, 0x21ffff) AM_RAM AM_SHARE("ram")                              /* main CPUA ram */
157157   AM_RANGE(0x300000, 0x301fff) AM_RAM AM_SHARE("spriteram")            /* Sprite ram */
158158   AM_RANGE(0x380000, 0x380003) AM_WRITE(motor_control_w)                                 /* motor, lamps etc. */
159   AM_RANGE(0x390000, 0x3907ff) AM_RAM AM_SHARE("f3_shared")                              /* Sound shared ram */
159   AM_RANGE(0x390000, 0x3907ff) AM_RAM AM_SHARE("snd_shared")                              /* Sound shared ram */
160160   AM_RANGE(0x400000, 0x400003) AM_READ_PORT("P1_P2")
161161   AM_RANGE(0x400004, 0x400007) AM_READ_PORT("SYSTEM")
162162   AM_RANGE(0x400000, 0x400007) AM_WRITE(gunbustr_input_w)                                 /* eerom etc. */
r15413r15414
325325   MCFG_TC0480SCP_ADD("tc0480scp", gunbustr_tc0480scp_intf)
326326
327327   /* sound hardware */
328   MCFG_FRAGMENT_ADD(taito_f3_sound)
328   MCFG_FRAGMENT_ADD(taito_en_sound)
329329MACHINE_CONFIG_END
330330
331331/***************************************************************************/
src/mame/drivers/taito_z.c
r15413r15414
99Nicola Salmoria. Thanks to Richard Bush and the Raine team, whose open
1010source was very helpful in many areas particularly the sprites.)
1111
12- Changes Log -
1312
1405-01-04 Added Racing Beat
1501-26-02 Added Enforce
1610-17-01 TC0150ROD support improved (e.g. Aquajack)
1709-01-01 Preliminary TC0150ROD support
1808-28-01 Fixed uncentered steer inputs, Nightstr controls
1905-27-01 Inputs through taitoic ioc routines, contcirc subwoofer filter
2004-12-01 Centered steering AD inputs, added digital steer
2102-18-01 Added Spacegun gunsights (Insideoutboy)
2213
23
24                *****
25
2614The Taito Z system has a number of similarities with the Taito F2 system,
2715and uses some of the same custom Taito components.
2816
r15413r15414
7159sticks, light guns, cockpit hardware etc.
7260
7361
62****************************************************************************
63
7464Contcirc board (B.Troha)
7565--------------
7666
r15413r15414
128118Notes: IC-41 Is 271001 Listed as JH1 (unsocketed / unused)
129119       IC-42 Is 271001 Listed as JL1 (unsocketed / unused)
130120
121
122
131123****************************************************************************
132124
133125Aquajack
r15413r15414
235227  ADC0809 - Texas Instruments ADC0809N Analog To Digital Convertor IC (DIP28)
236228
237229
230
231****************************************************************************
232
238233ChaseHQ (Guru)
239234-------
240235
r15413r15414
283278
284279
285280
281****************************************************************************
282
286283ChaseHQ2(SCI) custom chips (Guru) (DG: same as Bshark except 0140SYT?)
287284--------------------------
288285
r15413r15414
509506
510507
511508
509****************************************************************************
512510
511Enforce PCB info
512------------------
513513
514Taito, 198?/199?
515
516Taito Z hardware
517PCB No: K1100406A J1100175A (CPU PCB)
518        K1100407A J1100176A (VIDEO PCB)
519
520CPU: MC68000P12 (x2)
521SND: Z80, YM2610, TCO040IOC, YM3016F
522OSC: 26.686MHz, 24.000MHz, 16.000MHz
523DIPs: 8 Position (x2)
524
525Taito Chips:
526CPU board - TCO100SCN, TCO140SYT, TCO170ABT, TCO110PCR
527Video Board - TCO150ROD, TCO050VDZ (x3), TCO020VAR
528
529Ram: CPU BOARD - 6264 (x9), 43256 (x2),
530     VIDEO BOARD - 2018 (x10), 6264 (x2)
531
532PALs/PROMs:
533CPU BOARD - All located near/around the 68000's
534b58-15 (PAL20L8)
535b58-16 (PAL20L8)
536b58-14 (PAL20L8)
537b58-13 (PAL16L8)
538b58-11 (PAL16L8)
539b58-12 (PAL16L8)
540
541VIDEO BOARD -
542b58-22 (PAL16L8) \
543b58-23 (63s141)   |  near TCO150ROD
544b58-24 (63s141)  /
545
546b58-20 (PAL16L8) \
547b58-21 (PAL16R4)  |
548b58-17 (PAL16L8)  |  near TCO020VAR
549b58-18 (PAL16R4) /
550
551b58-25 (63S141)      near b58-27
552b58-19 (PAL16R4)     near b58-04/03/02/01
553
554ROMs:
555CPU BOARD - b58-18 , 27C010  \
556        b58-19 , 27C010   |  68k Program
557        b58-26 , 27C010   |
558        b58-27 , 27C010  /
559
560        b58-07 , 27C4096 \
561        b58-08 , 27C4096  |
562        b58-09 , 27C4100  |  near TCO100SCN & TCO140SYT
563        b58-10 , 27C4096 /
564
565        b58-32 , 27C512      z80 program
566
567VIDEO PCB - b58-06 , 27C4100     near TCO150ROD
568
569        b58-26a, 27C512      ?
570        b58-27 , LH5763      ?
571
572        b58-01 , 27C4100 \
573        b58-02 , 27C4100  |
574        b58-03 , 27C4100  |  near TCO050VDZ's
575        b58-04 , 27C4100 /
576
577
578
579****************************************************************************
580
514581BShark custom chips
515582-------------------
516583
r15413r15414
526593TC0150ROD (known road generator chip)
527594
528595
596
597****************************************************************************
598
529599DblAxle custom chip info
530600------------------------
531601
r15413r15414
604674Chips:  uPD72105C
605675
606676
677
678****************************************************************************
679
680Racing Beat
681-------------
682
683M43E0227A
684K11E0674A
685K1100650A J1100264A CPU PCB
686|-------------------------------------------------------------|
687|6264       62256        32MHz          DSWA   DSWB           |
688|           62256                                             |
689|C84-104.2                                                    |
690|C84-110.3  TC0170ABT                          TC0510NIO      |
691|C84-103.4                                                    |
692|C84-111.5                                     MB3771         |
693|                                   C84_101.42                |
694|6264                 TC0140SYT                               |
695|                                    6264                     |
696|                                                             |
697|                                                             |
698|                         C84-85.31         Z80               |
699|68000                                                        |
700|                                                             |
701|                                                             |
702|PAL     PAL                                YM2610            |
703|                         C84-86.33                           |
704|PAL                                                          |
705|                             6264          C84-87.46         |
706|                                                             |
707|                                                             |
708|                   PAL   C84-99.35         YM3016            |
709|6264   6264                                                  |
710|                                                             |
711|                   PAL   C84-100.36        TL074             |
712|           TC0150ROD                                         |
713|C84-84.12                    6264                            |
714|                   PAL                                       |
715|                                                TL074        |
716|    C84-07.22                                        MB3735  |
717|                  68000                                      |
718|-------------------------------------------------------------|
719Notes:
720      68000s running at 16MHz
721      Z80 running at 4MHz
722      YM2610 running at 8MHz
723
724
725K11X0675A
726K1100635A
727J1100256A VIDEO PCB
728|-------------------------------------------------------------|
729|                        26.686MHz       6264                 |
730|62256    C84-89.11                              TC0260DAR    |
731|                                                             |
732|62256    C84-90.12                                           |
733|                        TC0480SCP       6264                 |
734|                                                             |
735|                                        6264                 |
736|C84-88.3                                                     |
737|                                                             |
738|                                                             |
739|         C84-19.15                                           |
740|                        TC0370MSO     TC0300FLA    PAL       |
741|         C84-10.16                                           |
742|         C84-11.17                                           |
743|                                                    C84-09.74|
744|                                                             |
745|                    62256   62256   62256   62256            |
746|                                                             |
747|                                                             |
748|            62256   62256   62256   62256   62256            |
749|                                                             |
750|                                                             |
751|            62256   62256   62256   62256   62256            |
752|                                                             |
753|                                                             |
754|                                    62256   62256            |
755|  C84-91.23    C84-93.31                                     |
756|                                                             |
757|                              TC0380BSH           TC0270MOD  |
758|  C84-92.25    C84-94.33                                     |
759|                                                             |
760|-------------------------------------------------------------|
761
762
607763TODO Lists
608764==========
609765
r15413r15414
637793Road priority incompletely understood - e.g. start barrier should
638794be darkening LH edge of road as well as RH edge.
639795
640The 8 level accel / brake should be possible to control with
641analogue pedal. Don't think mame can do this.
642
643796Junk (?) stuff often written in high byte of sound word.
644797
645798Speculative YM2610 a/b/c channel filtering as these may be
r15413r15414
787940a spriteframe toggle - currently this never changes which may be
788941wrong.)
789942
943Double Axle seems to keep only 1 sprite frame in sprite ram,
944which is probably wrong. Game seems to work with no int 6's
945at all. Cpu control byte has 0,4,8,c poked into 2nd nibble
946and it seems possible this should be causing int6's ?
790947
948
791949Racing Beat
792950-----------
793951
794Sprites (and main road) very wrong
952Graphics problems:
953- tearing in the main road (tile layer 3 offset?)
954- car sprites palette flickering
955- some missing sprites (random?) ie. motor block sprite after inserting coin
795956
796M43E0227A
797K11E0674A
798K1100650A J1100264A CPU PCB
799|-------------------------------------------------------------|
800|6264       62256        32MHz          DSWA   DSWB           |
801|           62256                                             |
802|C84-104.2                                                    |
803|C84-110.3  TC0170ABT                          TC0510NIO      |
804|C84-103.4                                                    |
805|C84-111.5                                     MB3771         |
806|                                   C84_101.42                |
807|6264                 TC0140SYT                               |
808|                                    6264                     |
809|                                                             |
810|                                                             |
811|                         C84-85.31         Z80               |
812|68000                                                        |
813|                                                             |
814|                                                             |
815|PAL     PAL                                YM2610            |
816|                         C84-86.33                           |
817|PAL                                                          |
818|                             6264          C84-87.46         |
819|                                                             |
820|                                                             |
821|                   PAL   C84-99.35         YM3016            |
822|6264   6264                                                  |
823|                                                             |
824|                   PAL   C84-100.36        TL074             |
825|           TC0150ROD                                         |
826|C84-84.12                    6264                            |
827|                   PAL                                       |
828|                                                TL074        |
829|    C84-07.22                                        MB3735  |
830|                  68000                                      |
831|-------------------------------------------------------------|
832Notes:
833      68000s running at 16MHz
834      Z80 running at 4MHz
835      YM2610 running at 8MHz
957LAN board is unemulated
836958
959DIP switches are not verified
837960
838K11X0675A
839K1100635A
840J1100256A VIDEO PCB
841|-------------------------------------------------------------|
842|                        26.686MHz       6264                 |
843|62256    C84-89.11                              TC0260DAR    |
844|                                                             |
845|62256    C84-90.12                                           |
846|                        TC0480SCP       6264                 |
847|                                                             |
848|                                        6264                 |
849|C84-88.3                                                     |
850|                                                             |
851|                                                             |
852|         C84-19.15                                           |
853|                        TC0370MSO     TC0300FLA    PAL       |
854|         C84-10.16                                           |
855|         C84-11.17                                           |
856|                                                    C84-09.74|
857|                                                             |
858|                    62256   62256   62256   62256            |
859|                                                             |
860|                                                             |
861|            62256   62256   62256   62256   62256            |
862|                                                             |
863|                                                             |
864|            62256   62256   62256   62256   62256            |
865|                                                             |
866|                                                             |
867|                                    62256   62256            |
868|  C84-91.23    C84-93.31                                     |
869|                                                             |
870|                              TC0380BSH           TC0270MOD  |
871|  C84-92.25    C84-94.33                                     |
872|                                                             |
873|-------------------------------------------------------------|
874961
875
876962***************************************************************************/
877963
878964#include "emu.h"
r15413r15414
890976#include "contcirc.lh"
891977#include "dblaxle.lh"
892978
893static void parse_control( running_machine &machine )
979static void parse_cpu_control( running_machine &machine )
894980{
895981   /* bit 0 enables cpu B */
896   /* however this fails when recovering from a save state
897       if cpu B is disabled !! */
898982   taitoz_state *state = machine.driver_data<taitoz_state>();
899983   device_set_input_line(state->m_subcpu, INPUT_LINE_RESET, (state->m_cpua_ctrl & 0x1) ? CLEAR_LINE : ASSERT_LINE);
900
901984}
902985
903986WRITE16_MEMBER(taitoz_state::cpua_ctrl_w)
904987{
988   //logerror("CPU #0 PC %06x: write %04x to cpu control\n", cpu_get_pc(&space.device()), data);
905989
906   if ((data & 0xff00) && ((data & 0xff) == 0))
907      data = data >> 8;   /* for Wgp */
990   if (mem_mask == 0xff00) data >>= 8;
991   data &= 0xff;
908992
909993   m_cpua_ctrl = data;
994   parse_cpu_control(machine());
995}
910996
911   parse_control(machine());
997WRITE16_MEMBER(taitoz_state::chasehq_cpua_ctrl_w)
998{
999   cpua_ctrl_w(space, offset, data, mem_mask);
9121000
913   // Chase HQ: handle the lights
914   if (m_chasehq_lamps)
915   {
916      output_set_lamp_value(0, (data & 0x20) ? 1 : 0);
917      output_set_lamp_value(1, (data & 0x40) ? 1 : 0);
918   }
1001   output_set_lamp_value(0, (m_cpua_ctrl & 0x20) ? 1 : 0);
1002   output_set_lamp_value(1, (m_cpua_ctrl & 0x40) ? 1 : 0);
1003}
9191004
920   if (m_dblaxle_vibration) output_set_value("Wheel_Vibration", (data & 0x04)>>2);
921   logerror("CPU #0 PC %06x: write %04x to cpu control\n", cpu_get_pc(&space.device()), data);
1005WRITE16_MEMBER(taitoz_state::dblaxle_cpua_ctrl_w)
1006{
1007   cpua_ctrl_w(space, offset, data, mem_mask);
1008
1009   output_set_value("Wheel_Vibration", (data & 0x04)>>2);
9221010}
9231011
9241012
r15413r15414
9421030   device_set_input_line(state->m_subcpu, 5, HOLD_LINE);
9431031}
9441032
945#if 0
946static TIMER_CALLBACK( taitoz_cpub_interrupt6 )
947{
948   taitoz_state *state = machine.driver_data<taitoz_state>();
949   device_set_input_line(state->m_subcpu, 6, HOLD_LINE);
950}
951#endif
9521033
953
954
9551034/***** Routines for particular games *****/
9561035
9571036static INTERRUPT_GEN( sci_interrupt )
r15413r15414
9691048   device_set_input_line(device, 4, HOLD_LINE);
9701049}
9711050
972/* Double Axle seems to keep only 1 sprite frame in sprite ram,
973   which is probably wrong. Game seems to work with no int 6's
974   at all. Cpu control byte has 0,4,8,c poked into 2nd nibble
975   and it seems possible this should be causing int6's ? */
9761051
977static INTERRUPT_GEN( dblaxle_interrupt )
978{
979   // Unsure how many int6's per frame, copy SCI for now
980
981   taitoz_state *state = device->machine().driver_data<taitoz_state>();
982   state->m_dblaxle_int6 = !state->m_dblaxle_int6;
983
984   if (state->m_dblaxle_int6)
985      device->machine().scheduler().timer_set(downcast<cpu_device *>(device)->cycles_to_attotime(200000 - 500), FUNC(taitoz_interrupt6));
986
987   device_set_input_line(device, 4, HOLD_LINE);
988}
989
990static INTERRUPT_GEN( dblaxle_cpub_interrupt )
991{
992   // Unsure how many int6's per frame
993   device->machine().scheduler().timer_set(downcast<cpu_device *>(device)->cycles_to_attotime(200000 - 500), FUNC(taitoz_interrupt6));
994   device_set_input_line(device, 4, HOLD_LINE);
995}
996
997
9981052/******************************************************************
9991053                              EEPROM
10001054******************************************************************/
r15413r15414
10341088
10351089WRITE16_MEMBER(taitoz_state::spacegun_output_bypass_w)
10361090{
1037
10381091   switch (offset)
10391092   {
10401093      case 0x03:
r15413r15414
10591112                       GAME INPUTS
10601113**********************************************************/
10611114
1115CUSTOM_INPUT_MEMBER(taitoz_state::taitoz_pedal_r)
1116{
1117   static const UINT8 retval[8] = { 0,1,3,2,6,7,5,4 };
1118   const char *tag = (const char *)param;
1119   return retval[ioport(tag)->read_safe(0) & 7];
1120}
1121
1122
10621123READ8_MEMBER(taitoz_state::contcirc_input_bypass_r)
10631124{
10641125   /* Bypass TC0220IOC controller for analog input */
10651126
10661127   UINT8 port = tc0220ioc_port_r(m_tc0220ioc, 0);   /* read port number */
1067   int steer = 0;
1068   int fake = ioport("FAKE")->read();
1128   UINT16 steer = 0xff80 + ioport("STEER")->read_safe(0x80);
10691129
1070   if (!(fake & 0x10))   /* Analogue steer (the real control method) */
1071   {
1072      /* center around zero and reduce span to 0xc0 */
1073      steer = ((ioport("STEER")->read() - 0x80) * 0xc0) / 0x100;
1074
1075   }
1076   else   /* Digital steer */
1077   {
1078      if (fake & 0x04)
1079      {
1080         steer = 0x60;
1081      }
1082      else if (fake & 0x08)
1083      {
1084         steer = 0xff9f;
1085      }
1086   }
1087
10881130   switch (port)
10891131   {
10901132      case 0x08:
r15413r15414
11041146   /* Bypass TC0220IOC controller for extra inputs */
11051147
11061148   UINT8 port = tc0220ioc_port_r(m_tc0220ioc, 0);   /* read port number */
1107   int steer = 0;
1108   int fake = ioport("FAKE")->read();
1149   UINT16 steer = 0xff80 + ioport("STEER")->read_safe(0x80);
11091150
1110   if (!(fake & 0x10))   /* Analogue steer (the real control method) */
1111   {
1112      /* center around zero */
1113      steer = ioport("STEER")->read() - 0x80;
1114   }
1115   else   /* Digital steer */
1116   {
1117      if (fake & 0x04)
1118      {
1119         steer = 0xff80;
1120      }
1121      else if (fake & 0x08)
1122      {
1123         steer = 0x7f;
1124      }
1125   }
1126
11271151   switch (port)
11281152   {
11291153      case 0x08:
r15413r15414
12091233
12101234READ16_MEMBER(taitoz_state::sci_steer_input_r)
12111235{
1212   int steer = 0;
1213   int fake = ioport("FAKE")->read();
1236   UINT16 steer = 0xff80 + ioport("STEER")->read_safe(0x80);
12141237
1215   if (!(fake & 0x10))   /* Analogue steer (the real control method) */
1216   {
1217      /* center around zero and reduce span to 0xc0 */
1218      steer = ((ioport("STEER")->read() - 0x80) * 0xc0) / 0x100;
1219   }
1220   else   /* Digital steer */
1221   {
1222      if (fake & 0x04)
1223      {
1224         steer = 0xffa0;
1225      }
1226      else if (fake & 0x08)
1227      {
1228         steer = 0x5f;
1229      }
1230   }
1231
12321238   switch (offset)
12331239   {
12341240      case 0x04:
r15413r15414
12461252
12471253READ16_MEMBER(taitoz_state::spacegun_input_bypass_r)
12481254{
1249
12501255   switch (offset)
12511256   {
12521257      case 0x03:
r15413r15414
12991304
13001305READ16_MEMBER(taitoz_state::dblaxle_steer_input_r)
13011306{
1302   int steer = 0;
1303   int fake = ioport("FAKE")->read();
1307   UINT16 steer = 0xff80 + ioport("STEER")->read_safe(0x80);
13041308
1305   if (!(fake & 0x10))   /* Analogue steer (the real control method) */
1306   {
1307      /* center around zero and reduce span to 0x80 */
1308      steer = ((ioport("STEER")->read() - 0x80) * 0x80) / 0x100;
1309   }
1310   else   /* Digital steer */
1311   {
1312      if (fake & 0x04)
1313      {
1314         steer = 0xffc0;
1315      }
1316      else if (fake & 0x08)
1317      {
1318         steer = 0x3f;
1319      }
1320   }
1321
13221309   switch (offset)
13231310   {
13241311      case 0x04:
r15413r15414
13451332         return 0x55;   /* motor cpu status ? */
13461333
13471334      default:
1348logerror("CPU #0 PC %06x: warning - read motor cpu %03x\n",cpu_get_pc(&space.device()),offset);
1335         logerror("CPU #0 PC %06x: warning - read motor cpu %03x\n",cpu_get_pc(&space.device()),offset);
13491336         return 0;
13501337   }
13511338}
r15413r15414
13551342   /* Writes $e00000-25 and $e00200-219 */
13561343   switch (offset)
13571344   {
1358   case 0x0:
1359   break;
1360   case 0x101:
1361   /* outputs will go here, but driver is still broken */
1362   break;
1345      case 0x0:
1346         break;
1347   
1348      case 0x101:
1349         /* outputs will go here, but driver is still broken */
1350         break;
13631351   }
1364logerror("CPU #0 PC %06x: warning - write %04x to motor cpu %03x\n",cpu_get_pc(&space.device()),data,offset);
1365
1352   
1353   logerror("CPU #0 PC %06x: warning - write %04x to motor cpu %03x\n",cpu_get_pc(&space.device()),data,offset);
13661354}
13671355
13681356
13691357WRITE16_MEMBER(taitoz_state::nightstr_motor_w)
13701358{
1371
13721359   /* Despite the informative notes at the top, the high end of the word doesn't seem to output any useful data. */
13731360   /* I've added this so someone else can finish it.  */
13741361   switch (offset)
r15413r15414
13881375      output_set_value("Motor_2_Speed",(data & 60)/4);
13891376
13901377      break;
1378
13911379   case 8:
13921380      output_set_value("Motor_3_Direction",0);
13931381      if (data & 1) output_set_value("Motor_3_Direction",1);
r15413r15414
13951383      output_set_value("Motor_3_Speed",(data & 60)/4);
13961384
13971385      break;
1386
13981387   default:
13991388      output_set_value("motor_debug",data);
1389      break;
14001390   }
14011391
14021392}
r15413r15414
14221412
14231413WRITE8_MEMBER(taitoz_state::sound_bankswitch_w)
14241414{
1425
14261415   m_banknum = data & 7;
14271416   reset_sound_region(machine());
14281417}
14291418
14301419WRITE16_MEMBER(taitoz_state::taitoz_sound_w)
14311420{
1432
14331421   if (offset == 0)
14341422      tc0140syt_port_w(m_tc0140syt, 0, data & 0xff);
14351423   else if (offset == 1)
r15413r15414
14481436
14491437READ16_MEMBER(taitoz_state::taitoz_sound_r)
14501438{
1451
14521439   if (offset == 1)
14531440      return (tc0140syt_comm_r(m_tc0140syt, 0) & 0xff);
14541441   else
r15413r15414
14581445#if 0
14591446WRITE16_MEMBER(taitoz_state::taitoz_msb_sound_w)
14601447{
1461
14621448   if (offset == 0)
14631449      tc0140syt_port_w(m_tc0140syt, 0, (data >> 8) & 0xff);
14641450   else if (offset == 1)
r15413r15414
14771463
14781464READ16_MEMBER(taitoz_state::taitoz_msb_sound_r)
14791465{
1480
14811466   if (offset == 1)
14821467      return ((tc0140syt_comm_r(m_tc0140syt, 0) & 0xff) << 8);
14831468   else
r15413r15414
14901475WRITE8_MEMBER(taitoz_state::taitoz_pancontrol)
14911476{
14921477   static const char *const fltname[] = { "2610.1.r", "2610.1.l", "2610.2.r", "2610.2.l" };
1493
1494   offset = offset & 3;
1495
1496//  m_pandata[offset] = data;
1497//  popmessage(" pan %02x %02x %02x %02x", m_pandata[0], m_pandata[1], m_pandata[2], m_pandata[3] );
1498
14991478   flt_volume_set_volume(machine().device(fltname[offset & 3]), data / 255.0f);
15001479}
15011480
r15413r15414
15401519   AM_RANGE(0x10c000, 0x10ffff) AM_RAM
15411520   AM_RANGE(0x400000, 0x400001) AM_READ8(chasehq_input_bypass_r, 0x00ff) AM_DEVWRITE8_LEGACY("tc0220ioc", tc0220ioc_portreg_w, 0x00ff)
15421521   AM_RANGE(0x400002, 0x400003) AM_DEVREADWRITE8_LEGACY("tc0220ioc", tc0220ioc_port_r, tc0220ioc_port_w, 0x00ff)
1543   AM_RANGE(0x800000, 0x800001) AM_WRITE(cpua_ctrl_w)
1522   AM_RANGE(0x800000, 0x800001) AM_WRITE(chasehq_cpua_ctrl_w)
15441523   AM_RANGE(0x820000, 0x820003) AM_READWRITE(taitoz_sound_r, taitoz_sound_w)
15451524   AM_RANGE(0xa00000, 0xa00007) AM_DEVREADWRITE_LEGACY("tc0110pcr", tc0110pcr_word_r, tc0110pcr_step1_word_w)   /* palette */
15461525   AM_RANGE(0xc00000, 0xc0ffff) AM_DEVREADWRITE_LEGACY("tc0100scn", tc0100scn_word_r, tc0100scn_word_w)   /* tilemaps */
r15413r15414
17191698   AM_RANGE(0x210000, 0x21ffff) AM_RAM AM_SHARE("share1")
17201699   AM_RANGE(0x400000, 0x40000f) AM_DEVREADWRITE_LEGACY("tc0510nio", tc0510nio_halfword_wordswap_r, tc0510nio_halfword_wordswap_w)
17211700   AM_RANGE(0x400010, 0x40001f) AM_READ(dblaxle_steer_input_r)
1722   AM_RANGE(0x600000, 0x600001) AM_WRITE(cpua_ctrl_w)   /* could this be causing int6 ? */
1701   AM_RANGE(0x600000, 0x600001) AM_WRITE(dblaxle_cpua_ctrl_w)   /* could this be causing int6 ? */
17231702   AM_RANGE(0x620000, 0x620003) AM_READWRITE(taitoz_sound_r, taitoz_sound_w)
17241703   AM_RANGE(0x800000, 0x801fff) AM_RAM_WRITE(paletteram_xBBBBBGGGGGRRRRR_word_w) AM_SHARE("paletteram")
17251704   AM_RANGE(0x900000, 0x90ffff) AM_DEVREADWRITE_LEGACY("tc0480scp", tc0480scp_word_r, tc0480scp_word_w)     /* tilemap mirror */
r15413r15414
19131892   PORT_DIPSETTING(    0x7d, "-03" ) \
19141893   PORT_DIPSETTING(    0x7e, "-02" ) \
19151894   PORT_DIPSETTING(    0x7f, "-01" ) \
1916   PORT_DIPSETTING(    0x80, "+-00" ) \
1895   PORT_DIPSETTING(    0x80, "+00" ) \
19171896   PORT_DIPSETTING(    0x81, "+01" ) \
19181897   PORT_DIPSETTING(    0x82, "+02" ) \
19191898   PORT_DIPSETTING(    0x83, "+03" ) \
r15413r15414
20452024
20462025static INPUT_PORTS_START( contcirc )
20472026   PORT_START("DSWA")
2048   PORT_DIPNAME( 0x01, 0x01, DEF_STR( Cabinet ) ) PORT_DIPLOCATION("SW A:1")
2049   PORT_DIPSETTING(    0x01, DEF_STR( Upright ) )
2050   PORT_DIPSETTING(    0x00, "Cockpit" )   // analogue accelerator pedal
2051   PORT_DIPUNUSED_DIPLOC( 0x02, 0x02, "SW A:2" )
2027   PORT_DIPNAME( 0x01, 0x01, DEF_STR( Cabinet ) )         PORT_DIPLOCATION("SW A:1")
2028   PORT_DIPSETTING(    0x01, "Cockpit" )         // analog pedals
2029   PORT_DIPSETTING(    0x00, DEF_STR( Upright ) )   // digital pedals, no brake?, allow free steering wheel
2030   PORT_DIPNAME( 0x02, 0x02, DEF_STR( Continue_Price ) )   PORT_DIPLOCATION("SW A:2")
2031    PORT_DIPSETTING(    0x02, "Same as Start" )
2032   PORT_DIPSETTING(    0x00, "Discount" )
20522033   PORT_SERVICE_DIPLOC( 0x04, IP_ACTIVE_LOW, "SW A:3" )
2053   PORT_DIPNAME( 0x08, 0x08, DEF_STR( Demo_Sounds ) ) PORT_DIPLOCATION("SW A:4")
2034   PORT_DIPNAME( 0x08, 0x08, DEF_STR( Demo_Sounds ) )      PORT_DIPLOCATION("SW A:4")
20542035   PORT_DIPSETTING(    0x00, DEF_STR( Off ) )
20552036   PORT_DIPSETTING(    0x08, DEF_STR( On ) )
20562037   TAITO_COINAGE_WORLD_LOC(SW A)
20572038
20582039   PORT_START("DSWB")
2059   PORT_DIPNAME( 0x03, 0x03, "Difficulty 1 (time/speed)" ) PORT_DIPLOCATION("SW B:1,2")
2040   PORT_DIPNAME( 0x03, 0x03, "Difficulty 1 (time/speed)" )   PORT_DIPLOCATION("SW B:1,2")
20602041   PORT_DIPSETTING(    0x02, DEF_STR( Easy ) )
20612042   PORT_DIPSETTING(    0x03, DEF_STR( Normal ) )
20622043   PORT_DIPSETTING(    0x01, DEF_STR( Hard ) )
20632044   PORT_DIPSETTING(    0x00, DEF_STR( Hardest ) )
2064   PORT_DIPNAME( 0x0c, 0x0c, "Difficulty 2 (other cars)" ) PORT_DIPLOCATION("SW B:3,4")
2045   PORT_DIPNAME( 0x0c, 0x0c, "Difficulty 2 (other cars)" )   PORT_DIPLOCATION("SW B:3,4")
20652046   PORT_DIPSETTING(    0x08, DEF_STR( Easy ) )
20662047   PORT_DIPSETTING(    0x0c, DEF_STR( Normal ) )
20672048   PORT_DIPSETTING(    0x04, DEF_STR( Hard ) )
20682049   PORT_DIPSETTING(    0x00, DEF_STR( Hardest ) )
2069   PORT_DIPNAME( 0x10, 0x10, "Steering wheel" ) PORT_DIPLOCATION("SW B:5")   //not sure what effect this has
2050   PORT_DIPNAME( 0x10, 0x00, "Steering Wheel" )         PORT_DIPLOCATION("SW B:5") // no function in Cockpit cabinet?
20702051   PORT_DIPSETTING(    0x10, "Free" )
20712052   PORT_DIPSETTING(    0x00, "Locked" )
2072   PORT_DIPNAME( 0x20, 0x00, "Enable 3d alternate frames" ) PORT_DIPLOCATION("SW B:6")
2053   PORT_DIPNAME( 0x20, 0x00, "3D Effect" )               PORT_DIPLOCATION("SW B:6") // unlisted in manual
20732054   PORT_DIPSETTING(    0x00, DEF_STR( Off ) )
20742055   PORT_DIPSETTING(    0x20, DEF_STR( On ) )
20752056   PORT_DIPUNUSED_DIPLOC( 0x40, 0x40, "SW B:7" )
r15413r15414
20812062   PORT_BIT( 0x04, IP_ACTIVE_HIGH, IPT_COIN2 )
20822063   PORT_BIT( 0x08, IP_ACTIVE_HIGH, IPT_COIN1 )
20832064   PORT_BIT( 0x10, IP_ACTIVE_LOW,  IPT_SERVICE1 )
2084   PORT_BIT( 0x20, IP_ACTIVE_HIGH, IPT_BUTTON5 ) PORT_PLAYER(1)   /* 3 for accel [7 levels] */
2085   PORT_BIT( 0x40, IP_ACTIVE_HIGH, IPT_BUTTON4 ) PORT_PLAYER(1)
2086   PORT_BIT( 0x80, IP_ACTIVE_HIGH, IPT_BUTTON1 ) PORT_PLAYER(1)   /* main accel key */
2065   PORT_BIT( 0xe0, IP_ACTIVE_HIGH, IPT_SPECIAL ) PORT_CUSTOM_MEMBER(DEVICE_SELF, taitoz_state, taitoz_pedal_r, "GAS") PORT_CONDITION("DSWA", 0x01, EQUALS, 0x01)
2066   PORT_BIT( 0xe0, IP_ACTIVE_LOW,  IPT_BUTTON1 ) PORT_NAME("Gas Switch") PORT_CONDITION("DSWA", 0x01, EQUALS, 0x00)
20872067
2088   PORT_START("IN1")   /* b3 not mapped: standardized on holding b4=lo gear */
2068   PORT_START("IN1")
20892069   PORT_BIT( 0x01, IP_ACTIVE_LOW,  IPT_UNKNOWN )
20902070   PORT_BIT( 0x02, IP_ACTIVE_LOW,  IPT_UNKNOWN )
20912071   PORT_BIT( 0x04, IP_ACTIVE_LOW,  IPT_TILT )
20922072   PORT_BIT( 0x08, IP_ACTIVE_LOW,  IPT_START1 )
2093   PORT_BIT( 0x10, IP_ACTIVE_HIGH, IPT_BUTTON3 ) PORT_PLAYER(1) PORT_TOGGLE   /* gear shift lo/hi */
2094   PORT_BIT( 0x20, IP_ACTIVE_HIGH, IPT_BUTTON7 ) PORT_PLAYER(1)   /* 3 for brake [7 levels] */
2095   PORT_BIT( 0x40, IP_ACTIVE_HIGH, IPT_BUTTON6 ) PORT_PLAYER(1)
2096   PORT_BIT( 0x80, IP_ACTIVE_HIGH, IPT_BUTTON2 ) PORT_PLAYER(1)   /* main brake key */
2073   PORT_BIT( 0x10, IP_ACTIVE_HIGH, IPT_BUTTON3 ) PORT_NAME("Shifter") PORT_TOGGLE
2074   PORT_BIT( 0xe0, IP_ACTIVE_HIGH, IPT_SPECIAL ) PORT_CUSTOM_MEMBER(DEVICE_SELF, taitoz_state, taitoz_pedal_r, "BRAKE") PORT_CONDITION("DSWA", 0x01, EQUALS, 0x01)
2075   PORT_BIT( 0xe0, IP_ACTIVE_LOW,  IPT_BUTTON2 ) PORT_NAME("Brake Switch") PORT_CONDITION("DSWA", 0x01, EQUALS, 0x00) // no function?
20972076
20982077   PORT_START("IN2")   /* unused */
20992078   PORT_BIT( 0xff, IP_ACTIVE_LOW, IPT_UNUSED )
21002079
2101   PORT_START("STEER")   /* "handle" i.e. steering */
2102   PORT_BIT( 0xff, 0x80, IPT_AD_STICK_X ) PORT_SENSITIVITY(50) PORT_KEYDELTA(15) PORT_REVERSE PORT_PLAYER(1)
2080   PORT_START("STEER")
2081   PORT_BIT( 0xff, 0x80, IPT_PADDLE ) PORT_MINMAX(0x20, 0xe0) PORT_SENSITIVITY(100) PORT_KEYDELTA(4) PORT_REVERSE PORT_NAME("Steering Wheel") PORT_CONDITION("DSWB", 0x10, EQUALS, 0x00)
2082   PORT_BIT( 0xffff, 0x00, IPT_DIAL ) PORT_SENSITIVITY(100) PORT_KEYDELTA(2) PORT_REVERSE PORT_NAME("Steering Wheel") PORT_CONDITION("DSWB", 0x10, EQUALS, 0x10)
21032083
2104   PORT_START("FAKE")   /* fake allowing digital steer */
2105   PORT_BIT( 0x04, IP_ACTIVE_HIGH, IPT_JOYSTICK_LEFT ) PORT_2WAY PORT_PLAYER(1)
2106   PORT_BIT( 0x08, IP_ACTIVE_HIGH, IPT_JOYSTICK_RIGHT ) PORT_2WAY PORT_PLAYER(1)
2107   PORT_DIPNAME( 0x10, 0x00, "Steering type" )
2108   PORT_DIPSETTING(    0x10, "Digital" )
2109   PORT_DIPSETTING(    0x00, "Analogue" )
2084   PORT_START("GAS")
2085   PORT_BIT( 0x07, 0x00, IPT_PEDAL )  PORT_SENSITIVITY(25) PORT_KEYDELTA(1) PORT_NAME("Gas Pedal") PORT_CONDITION("DSWA", 0x01, EQUALS, 0x01)
2086
2087   PORT_START("BRAKE")
2088   PORT_BIT( 0x07, 0x00, IPT_PEDAL2 ) PORT_SENSITIVITY(25) PORT_KEYDELTA(1) PORT_NAME("Brake Pedal") PORT_CONDITION("DSWA", 0x01, EQUALS, 0x01)
21102089INPUT_PORTS_END
21112090
21122091static INPUT_PORTS_START( contcrcu )
r15413r15414
21182097
21192098static INPUT_PORTS_START( chasehq )   // IN3-6 perhaps used with cockpit setup? //
21202099   PORT_START("DSWA")
2121   PORT_DIPNAME( 0x03, 0x03, DEF_STR( Cabinet ) ) PORT_DIPLOCATION("SW A:1,2")   /* US Manual states DIPS 1 & 2 "MUST REMAIN OFF" */
2122   PORT_DIPSETTING(    0x03, "Upright / Steering Lock" )
2123   PORT_DIPSETTING(    0x02, "Upright / No Steering Lock" )
2124   PORT_DIPSETTING(    0x01, "Full Throttle Convert, Cockpit" )
2125   PORT_DIPSETTING(    0x00, "Full Throttle Convert, Deluxe" )
2100   PORT_DIPNAME( 0x03, 0x03, DEF_STR( Cabinet ) )         PORT_DIPLOCATION("SW A:1,2") /* US Manual states DIPS 1 & 2 "MUST REMAIN OFF" */
2101   PORT_DIPSETTING(    0x03, "Upright / Steering Lock" )         // digital pedals, locked steering wheel
2102   PORT_DIPSETTING(    0x02, "Upright / No Steering Lock" )      // digital pedals, free steering wheel
2103   PORT_DIPSETTING(    0x01, "Full Throttle Convert, Cockpit" )   // analog pedals, locked steering wheel
2104   PORT_DIPSETTING(    0x00, "Full Throttle Convert, Deluxe" )      // analog pedals, locked steering wheel, motor
21262105   PORT_SERVICE_DIPLOC( 0x04, IP_ACTIVE_LOW, "SW A:3" )
2127   PORT_DIPNAME( 0x08, 0x08, DEF_STR( Demo_Sounds ) ) PORT_DIPLOCATION("SW A:4")
2106   PORT_DIPNAME( 0x08, 0x08, DEF_STR( Demo_Sounds ) )      PORT_DIPLOCATION("SW A:4")
21282107   PORT_DIPSETTING(    0x00, DEF_STR( Off ) )
21292108   PORT_DIPSETTING(    0x08, DEF_STR( On ) )
21302109   TAITO_COINAGE_WORLD_LOC(SW A)
21312110
21322111   PORT_START("DSWB")
21332112   TAITO_DIFFICULTY_LOC(SW B)
2134   PORT_DIPNAME( 0x0c, 0x0c, "Timer Setting" ) PORT_DIPLOCATION("SW B:3,4")
2113   PORT_DIPNAME( 0x0c, 0x0c, "Timer Setting" )            PORT_DIPLOCATION("SW B:3,4")
21352114   PORT_DIPSETTING(    0x08, "70 Seconds" )
21362115   PORT_DIPSETTING(    0x04, "65 Seconds" )
21372116   PORT_DIPSETTING(    0x0c, "60 Seconds" )
21382117   PORT_DIPSETTING(    0x00, "55 Seconds" )
2139   PORT_DIPNAME( 0x10, 0x10, "Turbos Stocked" ) PORT_DIPLOCATION("SW B:5")
2118   PORT_DIPNAME( 0x10, 0x10, "Turbos Stocked" )         PORT_DIPLOCATION("SW B:5")
21402119   PORT_DIPSETTING(    0x10, "3" )
21412120   PORT_DIPSETTING(    0x00, "5" )
2142   PORT_DIPNAME( 0x20, 0x20, "Discounted Continue Play" ) PORT_DIPLOCATION("SW B:6")   /* Full coin price to start, 1 coin to continue */
2143   PORT_DIPSETTING(    0x20, DEF_STR( Off ) )
2144   PORT_DIPSETTING(    0x00, DEF_STR( On ) )
2145   PORT_DIPNAME( 0x40, 0x40, "Damage Cleared at Continue" ) PORT_DIPLOCATION("SW B:7")
2121   PORT_DIPNAME( 0x20, 0x20, DEF_STR( Continue_Price ) )   PORT_DIPLOCATION("SW B:6")
2122    PORT_DIPSETTING(    0x20, "Same as Start" )
2123   PORT_DIPSETTING(    0x00, "Discount" )
2124   PORT_DIPNAME( 0x40, 0x40, "Clear Damage on Continue" )   PORT_DIPLOCATION("SW B:7")
21462125   PORT_DIPSETTING(    0x00, DEF_STR( Off ) )
21472126   PORT_DIPSETTING(    0x40, DEF_STR( On ) )
2148   PORT_DIPNAME( 0x80, 0x80, DEF_STR( Allow_Continue ) ) PORT_DIPLOCATION("SW B:8")
2127   PORT_DIPNAME( 0x80, 0x80, DEF_STR( Allow_Continue ) )   PORT_DIPLOCATION("SW B:8")
21492128   PORT_DIPSETTING(    0x00, DEF_STR( Off ) )
21502129   PORT_DIPSETTING(    0x80, DEF_STR( On ) )
21512130
r15413r15414
21552134   PORT_BIT( 0x04, IP_ACTIVE_HIGH, IPT_COIN1 )
21562135   PORT_BIT( 0x08, IP_ACTIVE_HIGH, IPT_COIN2 )
21572136   PORT_BIT( 0x10, IP_ACTIVE_LOW,  IPT_SERVICE1 )
2158   PORT_BIT( 0x20, IP_ACTIVE_LOW,  IPT_BUTTON2 ) PORT_PLAYER(1)   /* brake */
2159   PORT_BIT( 0x40, IP_ACTIVE_LOW,  IPT_UNKNOWN )
2160   PORT_BIT( 0x80, IP_ACTIVE_LOW,  IPT_UNKNOWN )
2137   PORT_BIT( 0xe0, IP_ACTIVE_HIGH, IPT_SPECIAL ) PORT_CUSTOM_MEMBER(DEVICE_SELF, taitoz_state, taitoz_pedal_r, "BRAKE") PORT_CONDITION("DSWA", 0x02, EQUALS, 0x00)
2138   PORT_BIT( 0x20, IP_ACTIVE_LOW,  IPT_BUTTON2 ) PORT_NAME("Brake Switch") PORT_CONDITION("DSWA", 0x02, EQUALS, 0x02)
21612139
21622140   PORT_START("IN1")
2163   PORT_BIT( 0x01, IP_ACTIVE_LOW,  IPT_BUTTON3 ) PORT_PLAYER(1)   /* turbo */
2141   PORT_BIT( 0x01, IP_ACTIVE_LOW,  IPT_BUTTON3 ) PORT_NAME("Turbo")
21642142   PORT_BIT( 0x02, IP_ACTIVE_LOW,  IPT_TILT )
2165   PORT_BIT( 0x04, IP_ACTIVE_LOW,  IPT_UNKNOWN )
2143   PORT_BIT( 0x04, IP_ACTIVE_LOW,  IPT_SERVICE2 ) PORT_NAME("Calibrate") // ?
21662144   PORT_BIT( 0x08, IP_ACTIVE_LOW,  IPT_START1 )
2167   PORT_BIT( 0x10, IP_ACTIVE_HIGH, IPT_BUTTON4 ) PORT_PLAYER(1) PORT_TOGGLE   /* gear */
2168   PORT_BIT( 0x20, IP_ACTIVE_LOW,  IPT_BUTTON1 ) PORT_PLAYER(1)   /* accel */
2169   PORT_BIT( 0x40, IP_ACTIVE_LOW,  IPT_UNKNOWN )
2170   PORT_BIT( 0x80, IP_ACTIVE_LOW,  IPT_UNKNOWN )
2145   PORT_BIT( 0x10, IP_ACTIVE_HIGH, IPT_BUTTON4 ) PORT_NAME("Shifter") PORT_TOGGLE
2146   PORT_BIT( 0xe0, IP_ACTIVE_HIGH, IPT_SPECIAL ) PORT_CUSTOM_MEMBER(DEVICE_SELF, taitoz_state, taitoz_pedal_r, "GAS") PORT_CONDITION("DSWA", 0x02, EQUALS, 0x00)
2147   PORT_BIT( 0x20, IP_ACTIVE_LOW,  IPT_BUTTON1 ) PORT_NAME("Gas Switch") PORT_CONDITION("DSWA", 0x02, EQUALS, 0x02)
21712148
21722149   PORT_START("IN2")   /* unused */
21732150   PORT_BIT( 0xff, IP_ACTIVE_LOW, IPT_UNUSED )
r15413r15414
22122189   PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_UNKNOWN )
22132190   PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_UNKNOWN )
22142191
2215   PORT_START("STEER")   /* steering */
2216   PORT_BIT( 0xff, 0x80, IPT_AD_STICK_X ) PORT_SENSITIVITY(50) PORT_KEYDELTA(15) PORT_PLAYER(1)
2192   PORT_START("STEER")
2193   PORT_BIT( 0xff, 0x80, IPT_PADDLE ) PORT_MINMAX(0x20, 0xe0) PORT_SENSITIVITY(100) PORT_KEYDELTA(10) PORT_NAME("Steering Wheel") PORT_CONDITION("DSWA", 0x03, NOTEQUALS, 0x02)
2194   PORT_BIT( 0xffff, 0x00, IPT_DIAL ) PORT_SENSITIVITY(100) PORT_KEYDELTA(2) PORT_NAME("Steering Wheel") PORT_CONDITION("DSWA", 0x03, EQUALS, 0x02)
22172195
2218   PORT_START("FAKE")   /* fake allowing digital steer */
2219   PORT_BIT( 0x04, IP_ACTIVE_HIGH, IPT_JOYSTICK_LEFT ) PORT_2WAY PORT_PLAYER(1)
2220   PORT_BIT( 0x08, IP_ACTIVE_HIGH, IPT_JOYSTICK_RIGHT ) PORT_2WAY PORT_PLAYER(1)
2221   PORT_DIPNAME( 0x10, 0x00, "Steering type" )
2222   PORT_DIPSETTING(    0x10, "Digital" )
2223   PORT_DIPSETTING(    0x00, "Analogue" )
2196   PORT_START("GAS")
2197   PORT_BIT( 0x07, 0x00, IPT_PEDAL )  PORT_SENSITIVITY(25) PORT_KEYDELTA(1) PORT_NAME("Gas Pedal") PORT_CONDITION("DSWA", 0x02, EQUALS, 0x00)
2198
2199   PORT_START("BRAKE")
2200   PORT_BIT( 0x07, 0x00, IPT_PEDAL2 ) PORT_SENSITIVITY(25) PORT_KEYDELTA(1) PORT_NAME("Brake Pedal") PORT_CONDITION("DSWA", 0x02, EQUALS, 0x00)
22242201INPUT_PORTS_END
22252202
22262203static INPUT_PORTS_START( chasehqj )
r15413r15414
23992376
24002377static INPUT_PORTS_START( sci )
24012378   PORT_START("DSWA")
2402   PORT_DIPNAME( 0x01, 0x00, DEF_STR( Cabinet ) ) PORT_DIPLOCATION("SW A:1")
2379   PORT_DIPNAME( 0x01, 0x00, DEF_STR( Cabinet ) )         PORT_DIPLOCATION("SW A:1")
24032380   PORT_DIPSETTING(    0x01, "Cockpit" )
24042381   PORT_DIPSETTING(    0x00, DEF_STR( Upright ) )
24052382   PORT_DIPUNUSED_DIPLOC( 0x02, 0x02, "SW A:2" ) /* Manual states "MUST REMAIN OFF" */
24062383   PORT_SERVICE_DIPLOC( 0x04, IP_ACTIVE_LOW, "SW A:3" )
2407   PORT_DIPNAME( 0x08, 0x08, DEF_STR( Demo_Sounds ) ) PORT_DIPLOCATION("SW A:4")
2384   PORT_DIPNAME( 0x08, 0x08, DEF_STR( Demo_Sounds ) )      PORT_DIPLOCATION("SW A:4")
24082385   PORT_DIPSETTING(    0x00, DEF_STR( Off ) )
24092386   PORT_DIPSETTING(    0x08, DEF_STR( On ) )
24102387   TAITO_COINAGE_WORLD_LOC(SW A)
24112388
24122389   PORT_START("DSWB")
24132390   TAITO_DIFFICULTY_LOC(SW B)
2414   PORT_DIPNAME( 0x0c, 0x0c, "Timer Setting" ) PORT_DIPLOCATION("SW B:3,4")
2391   PORT_DIPNAME( 0x0c, 0x0c, "Timer Setting" )            PORT_DIPLOCATION("SW B:3,4")
24152392   PORT_DIPSETTING(    0x08, "70 Seconds" )
24162393   PORT_DIPSETTING(    0x04, "65 Seconds" )
24172394   PORT_DIPSETTING(    0x0c, "60 Seconds" )
24182395   PORT_DIPSETTING(    0x00, "55 Seconds" )
2419   PORT_DIPNAME( 0x10, 0x10, "Turbos Stocked" ) PORT_DIPLOCATION("SW B:5")
2396   PORT_DIPNAME( 0x10, 0x10, "Turbos Stocked" )         PORT_DIPLOCATION("SW B:5")
24202397   PORT_DIPSETTING(    0x10, "3" )
24212398   PORT_DIPSETTING(    0x00, "5" )
2422   PORT_DIPNAME( 0x20, 0x20, "Steering Radius" ) PORT_DIPLOCATION("SW B:6")
2399   PORT_DIPNAME( 0x20, 0x20, "Steering Radius" )         PORT_DIPLOCATION("SW B:6")
24232400   PORT_DIPSETTING(    0x00, "270 Degree" )
24242401   PORT_DIPSETTING(    0x20, "360 Degree" )
2425   PORT_DIPNAME( 0x40, 0x40, "Damage Cleared at Continue" ) PORT_DIPLOCATION("SW B:7")
2402   PORT_DIPNAME( 0x40, 0x40, "Clear Damage on Continue" )   PORT_DIPLOCATION("SW B:7")
24262403   PORT_DIPSETTING(    0x00, DEF_STR( Off ) )
24272404   PORT_DIPSETTING(    0x40, DEF_STR( On ) )
2428   PORT_DIPNAME( 0x80, 0x80, "Siren Volume" ) PORT_DIPLOCATION("SW B:8")
2405   PORT_DIPNAME( 0x80, 0x80, "Siren Volume" )            PORT_DIPLOCATION("SW B:8")
24292406   PORT_DIPSETTING(    0x80, DEF_STR( Normal ) )
24302407   PORT_DIPSETTING(    0x00, DEF_STR( Low ) )
24312408
24322409   PORT_START("IN0")
24332410   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_UNKNOWN )
2434   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_BUTTON3 ) PORT_PLAYER(1)   /* fire */
2411   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_BUTTON5 ) PORT_NAME("Gun Trigger")
24352412   PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_COIN1 )
24362413   PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_COIN2 )
24372414   PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_SERVICE1 )
2438   PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_PLAYER(1)   /* brake */
2415   PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_NAME("Brake Switch")
24392416   PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_UNKNOWN )
24402417   PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_UNKNOWN )
24412418
24422419   PORT_START("IN1")
2443   PORT_BIT( 0x01, IP_ACTIVE_LOW,  IPT_BUTTON5 ) PORT_PLAYER(1)   /* turbo */
2420   PORT_BIT( 0x01, IP_ACTIVE_LOW,  IPT_BUTTON4 ) PORT_NAME("Turbo")
24442421   PORT_BIT( 0x02, IP_ACTIVE_LOW,  IPT_TILT )
2445   PORT_BIT( 0x04, IP_ACTIVE_LOW,  IPT_BUTTON6 ) PORT_PLAYER(1)   /* "center" */
2422   PORT_BIT( 0x04, IP_ACTIVE_LOW,  IPT_SERVICE2 ) PORT_NAME("Center")
24462423   PORT_BIT( 0x08, IP_ACTIVE_LOW,  IPT_START1 )
2447   PORT_BIT( 0x10, IP_ACTIVE_HIGH, IPT_BUTTON4 ) PORT_PLAYER(1) PORT_TOGGLE   /* gear */
2448   PORT_BIT( 0x20, IP_ACTIVE_LOW,  IPT_BUTTON1 ) PORT_PLAYER(1)   /* accel */
2424   PORT_BIT( 0x10, IP_ACTIVE_HIGH, IPT_BUTTON4 ) PORT_NAME("Shifter") PORT_TOGGLE
2425   PORT_BIT( 0x20, IP_ACTIVE_LOW,  IPT_BUTTON1 ) PORT_NAME("Gas Switch")
24492426   PORT_BIT( 0x40, IP_ACTIVE_LOW,  IPT_UNKNOWN )
24502427   PORT_BIT( 0x80, IP_ACTIVE_LOW,  IPT_UNKNOWN )
24512428
r15413r15414
24532430   PORT_BIT( 0xff, IP_ACTIVE_LOW, IPT_UNUSED )
24542431
24552432   PORT_START("STEER")   /* steering */
2456   PORT_BIT( 0xff, 0x80, IPT_AD_STICK_X ) PORT_SENSITIVITY(50) PORT_KEYDELTA(15) PORT_PLAYER(1)
2457
2458   PORT_START("FAKE")   /* fake allowing digital steer */
2459   PORT_BIT( 0x04, IP_ACTIVE_HIGH, IPT_JOYSTICK_LEFT ) PORT_2WAY PORT_PLAYER(1)
2460   PORT_BIT( 0x08, IP_ACTIVE_HIGH, IPT_JOYSTICK_RIGHT ) PORT_2WAY PORT_PLAYER(1)
2461   PORT_DIPNAME( 0x10, 0x00, "Steering type" )
2462   PORT_DIPSETTING(    0x10, "Digital" )
2463   PORT_DIPSETTING(    0x00, "Analogue" )
2433   PORT_BIT( 0xff, 0x80, IPT_PADDLE ) PORT_MINMAX(0x20, 0xe0) PORT_SENSITIVITY(100) PORT_KEYDELTA(10) PORT_NAME("Steering Wheel")
24642434INPUT_PORTS_END
24652435
24662436static INPUT_PORTS_START( sciu )
r15413r15414
27282698static INPUT_PORTS_START( dblaxle )
27292699   PORT_START("DSWA")
27302700   PORT_DIPUNUSED_DIPLOC( 0x01, 0x01, "SW A:1" )
2731   PORT_DIPNAME( 0x02, 0x02, "Gear shift" ) PORT_DIPLOCATION("SW A:2")
2701   PORT_DIPNAME( 0x02, 0x02, "Gear shift" )         PORT_DIPLOCATION("SW A:2")
27322702   PORT_DIPSETTING(    0x02, DEF_STR( Normal ) )
27332703   PORT_DIPSETTING(    0x00, "Inverted" )
27342704   PORT_SERVICE_DIPLOC( 0x04, IP_ACTIVE_LOW, "SW A:3" )
2735   PORT_DIPNAME( 0x08, 0x08, DEF_STR( Demo_Sounds ) ) PORT_DIPLOCATION("SW A:4")
2705   PORT_DIPNAME( 0x08, 0x08, DEF_STR( Demo_Sounds ) )   PORT_DIPLOCATION("SW A:4")
27362706   PORT_DIPSETTING(    0x00, DEF_STR( Off ) )
27372707   PORT_DIPSETTING(    0x08, DEF_STR( On ) )
27382708   TAITO_COINAGE_US_LOC(SW A)
27392709
27402710   PORT_START("DSWB")
27412711   TAITO_DIFFICULTY_LOC(SW B)
2742   PORT_DIPNAME( 0x04, 0x00, "Multi-machine hookup ?" ) PORT_DIPLOCATION("SW B:3")   // doesn't boot if on
2712   PORT_DIPNAME( 0x04, 0x00, "Network?" )            PORT_DIPLOCATION("SW B:3") // doesn't boot if on
27432713   PORT_DIPSETTING(    0x00, DEF_STR( Off ) )
27442714   PORT_DIPSETTING(    0x04, DEF_STR( On ) )
2745   PORT_DIPNAME( 0x08, 0x08, "Player Truck" ) PORT_DIPLOCATION("SW B:4")
2715   PORT_DIPNAME( 0x08, 0x08, "Player Truck" )         PORT_DIPLOCATION("SW B:4")
27462716   PORT_DIPSETTING(    0x08, "Red" )
27472717   PORT_DIPSETTING(    0x00, "Blue" )
2748   PORT_DIPNAME( 0x10, 0x10, "Back button" ) PORT_DIPLOCATION("SW B:5")
2718   PORT_DIPNAME( 0x10, 0x10, "Back button" )         PORT_DIPLOCATION("SW B:5")
27492719   PORT_DIPSETTING(    0x10, DEF_STR( Normal ) )
27502720   PORT_DIPSETTING(    0x00, "Inverted" )
2751   PORT_DIPUNUSED_DIPLOC( 0x20, 0x20, "SW B:6" )   // causes "Root CPU Error" on "Icy Road" (Tourniquet)
2721   PORT_DIPUNUSED_DIPLOC( 0x20, 0x20, "SW B:6" ) // causes "Root CPU Error" on "Icy Road" (Tourniquet)
27522722   PORT_DIPUNUSED_DIPLOC( 0x40, 0x40, "SW B:7" )
27532723   PORT_DIPUNUSED_DIPLOC( 0x80, 0x80, "SW B:8" )
27542724
27552725   PORT_START("IN0")
27562726   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_UNKNOWN )
2757   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_BUTTON4 ) PORT_PLAYER(1)   PORT_TOGGLE /* shift */
2727   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_BUTTON4 ) PORT_NAME("Shifter") PORT_TOGGLE
27582728   PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_COIN1 )
27592729   PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_COIN2 )
27602730   PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_SERVICE1 )
2761   PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_PLAYER(1)   /* brake */
2731   PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_NAME("Brake Switch")
27622732   PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_UNKNOWN )
2763   PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_BUTTON5 ) PORT_PLAYER(1)   /* "back" */
2733   PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_BUTTON5 ) PORT_NAME("Reverse")
27642734
27652735   PORT_START("IN1")
2766   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_BUTTON3 ) PORT_PLAYER(1)   /* nitro */
2736   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_BUTTON3 ) PORT_NAME("Nitro")
27672737   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_TILT )
2768   PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_BUTTON6 ) PORT_PLAYER(1)   /* "center" */
2738   PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_SERVICE2 ) PORT_NAME("Center")
27692739   PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_START1 )
27702740   PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_UNKNOWN )
2771   PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_PLAYER(1)   /* accel */
2741   PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_NAME("Gas Switch")
27722742   PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_UNKNOWN )
27732743   PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_UNKNOWN )
27742744
27752745   PORT_START("IN2")   /* unused */
27762746   PORT_BIT( 0xff, IP_ACTIVE_LOW, IPT_UNUSED )
27772747
2778   PORT_START("STEER")   /* steering */
2779   PORT_BIT( 0xff, 0x80, IPT_AD_STICK_X ) PORT_SENSITIVITY(40) PORT_KEYDELTA(10) PORT_PLAYER(1)
2780
2781   PORT_START("FAKE")   /* fake allowing digital steer */
2782   PORT_BIT( 0x04, IP_ACTIVE_HIGH, IPT_JOYSTICK_LEFT ) PORT_2WAY PORT_PLAYER(1)
2783   PORT_BIT( 0x08, IP_ACTIVE_HIGH, IPT_JOYSTICK_RIGHT ) PORT_2WAY PORT_PLAYER(1)
2784   PORT_DIPNAME( 0x10, 0x00, "Steering type" )
2785   PORT_DIPSETTING(    0x10, "Digital" )
2786   PORT_DIPSETTING(    0x00, "Analogue" )
2748   PORT_START("STEER")
2749   PORT_BIT( 0xff, 0x80, IPT_PADDLE ) PORT_MINMAX(0x40, 0xc0) PORT_SENSITIVITY(100) PORT_KEYDELTA(4) PORT_NAME("Steering Wheel")
27872750INPUT_PORTS_END
27882751
27892752static INPUT_PORTS_START( pwheelsj )
r15413r15414
27932756   TAITO_COINAGE_JAPAN_OLD_LOC(SW A)
27942757INPUT_PORTS_END
27952758
2759static INPUT_PORTS_START( racingb )
2760   PORT_START("DSWA")
2761   PORT_DIPNAME( 0x01, 0x01, DEF_STR( Cabinet ) )      PORT_DIPLOCATION("SW A:1") // don't know what is what
2762   PORT_DIPSETTING(    0x00, "Type 0" ) // free steering wheel
2763   PORT_DIPSETTING(    0x01, "Type 1" ) // locked steering wheel
2764   PORT_DIPUNKNOWN_DIPLOC( 0x02, 0x02, "SW A:2" )
2765   PORT_SERVICE_DIPLOC( 0x04, IP_ACTIVE_LOW, "SW A:3" )
2766   PORT_DIPNAME( 0x08, 0x08, DEF_STR( Demo_Sounds ) )   PORT_DIPLOCATION("SW A:4")
2767   PORT_DIPSETTING(    0x00, DEF_STR( Off ) )
2768   PORT_DIPSETTING(    0x08, DEF_STR( On ) )
2769   TAITO_COINAGE_WORLD_LOC(SW A)
27962770
2771   PORT_START("DSWB")
2772   PORT_DIPUNKNOWN_DIPLOC( 0x01, 0x01, "SW B:1" )
2773   PORT_DIPUNKNOWN_DIPLOC( 0x02, 0x02, "SW B:2" )
2774   PORT_DIPNAME( 0x04, 0x04, "Steering Wheel Range" )   PORT_DIPLOCATION("SW B:3") // no function in Type 0 cabinet?
2775   PORT_DIPSETTING(    0x04, DEF_STR( Normal ) )
2776   PORT_DIPSETTING(    0x00, DEF_STR( High ) )
2777   PORT_DIPNAME( 0x08, 0x08, "Steering Wheel Type" )   PORT_DIPLOCATION("SW B:4") // no function in Type 0 cabinet?
2778   PORT_DIPSETTING(    0x00, "Free" )
2779   PORT_DIPSETTING(    0x08, "Locked" )
2780   PORT_DIPNAME( 0x10, 0x10, "Network" )            PORT_DIPLOCATION("SW B:5") // gives a LAN error
2781   PORT_DIPSETTING(    0x10, DEF_STR( Off ) )
2782   PORT_DIPSETTING(    0x00, DEF_STR( On ) )
2783   PORT_DIPNAME( 0x60, 0x60, "Player Car" )         PORT_DIPLOCATION("SW B:6,7")
2784   PORT_DIPSETTING(    0x60, "Red" )
2785   PORT_DIPSETTING(    0x40, "Blue" )
2786   PORT_DIPSETTING(    0x20, "Green" )
2787   PORT_DIPSETTING(    0x00, "Yellow" )
2788   PORT_DIPUNKNOWN_DIPLOC( 0x80, 0x80, "SW B:8" ) // affects car color too?
2789
2790   PORT_START("IN0")
2791   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_UNKNOWN )
2792   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_BUTTON4 ) PORT_NAME("Shifter") PORT_TOGGLE
2793   PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_COIN1 )
2794   PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_COIN2 )
2795   PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_SERVICE1 )
2796   PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_NAME("Brake Switch")
2797   PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_UNKNOWN )
2798   PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_UNKNOWN )
2799
2800   PORT_START("IN1")
2801   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_BUTTON3 ) PORT_NAME("Pit In")
2802   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_UNKNOWN )
2803   PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_SERVICE2 ) PORT_NAME("Center")
2804   PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_START1 )
2805   PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_UNKNOWN )
2806   PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_NAME("Gas Switch")
2807   PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_UNKNOWN )
2808   PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_UNKNOWN )
2809
2810   PORT_START("IN2")   /* unused */
2811   PORT_BIT( 0xff, IP_ACTIVE_LOW, IPT_UNUSED )
2812
2813   PORT_START("STEER")
2814   PORT_BIT( 0xff, 0x80, IPT_PADDLE ) PORT_SENSITIVITY(100) PORT_KEYDELTA(4) PORT_NAME("Steering Wheel") PORT_CONDITION("DSWB", 0x08, EQUALS, 0x08)
2815   PORT_BIT( 0xffff, 0x00, IPT_DIAL ) PORT_SENSITIVITY(100) PORT_KEYDELTA(4) PORT_NAME("Steering Wheel") PORT_CONDITION("DSWB", 0x08, EQUALS, 0x00)
2816INPUT_PORTS_END
2817
2818
27972819/***********************************************************
27982820                       GFX DECODING
27992821***********************************************************/
r15413r15414
28972919};
28982920
28992921
2900/**************************************************************
2901                         SUBWOOFER (SOUND)
2902**************************************************************/
2903
2904#if 0
2905static DEVICE_START( subwoofer )
2906{
2907   /* Adjust the lowpass filter of the first three YM2610 channels */
2908
2909   /* 150 Hz is a common top frequency played by a generic */
2910   /* subwoofer, the real Arcade Machine may differs */
2911
2912   mixer_set_lowpass_frequency(0, 20);
2913   mixer_set_lowpass_frequency(1, 20);
2914   mixer_set_lowpass_frequency(2, 20);
2915}
2916
2917static DEVICE_GET_INFO( subwoofer )
2918{
2919   switch (state)
2920   {
2921      /* --- the following bits of info are returned as pointers to data or functions --- */
2922      case DEVINFO_FCT_START:                     info->start = DEVICE_START_NAME(subwoofer);      break;
2923
2924      /* --- the following bits of info are returned as NULL-terminated strings --- */
2925      case DEVINFO_STR_NAME:                     strcpy(info->s, "Subwoofer");               break;
2926      case DEVINFO_STR_SOURCE_FILE:                  strcpy(info->s, __FILE__);                  break;
2927   }
2928}
2929#endif
2930
2931
29322922/***********************************************************
29332923                      MACHINE DRIVERS
29342924
r15413r15414
29952985static const tc0480scp_interface taitoz_tc0480scp_intf =
29962986{
29972987   1, 2,      /* gfxnum, txnum */
2998   0,      /* pixels */
2999   0x21, 0x08,      /* x_offset, y_offset */
3000   4, 0,      /* text_xoff, text_yoff */
2988   0,         /* pixels */
2989   0x1f, 0x08,   /* x_offset, y_offset */
2990   0, 0,      /* text_xoff, text_yoff */
30012991   0, 0,      /* flip_xoff, flip_yoff */
3002   0      /* col_base */
2992   0         /* col_base */
30032993};
30042994
30052995static const tc0110pcr_interface taitoz_tc0110pcr_intf = { 0 };
r15413r15414
30303020
30313021static void taitoz_postload(running_machine &machine)
30323022{
3033   parse_control(machine);
3023   parse_cpu_control(machine);
30343024   reset_sound_region(machine);
30353025}
30363026
r15413r15414
30523042
30533043   /* these are specific to various games: we ought to split the inits */
30543044   state->save_item(NAME(state->m_sci_int6));
3055   state->save_item(NAME(state->m_dblaxle_int6));
30563045   state->save_item(NAME(state->m_ioc220_port));
30573046
30583047   state->save_item(NAME(state->m_banknum));
r15413r15414
30763065   state->m_banknum = -1;
30773066   state->m_cpua_ctrl = 0xff;
30783067   state->m_sci_int6 = 0;
3079   state->m_dblaxle_int6 = 0;
30803068   state->m_ioc220_port = 0;
30813069}
30823070
r15413r15414
31403128   MCFG_SOUND_ADD("2610.2.l", FILTER_VOLUME, 0)
31413129   MCFG_SOUND_ROUTE(ALL_OUTPUTS, "front", 1.0)
31423130
3143//  MCFG_SOUND_ADD("subwoofer", SUBWOOFER, 0)
3144
31453131   MCFG_TC0140SYT_ADD("tc0140syt", taitoz_tc0140syt_intf)
31463132MACHINE_CONFIG_END
31473133
r15413r15414
32673253   MCFG_SOUND_ADD("2610.2.l", FILTER_VOLUME, 0)
32683254   MCFG_SOUND_ROUTE(ALL_OUTPUTS, "lspeaker", 1.0)
32693255
3270//  MCFG_SOUND_ADD("subwoofer", SUBWOOFER, 0)
3271
32723256   MCFG_TC0140SYT_ADD("tc0140syt", taitoz_tc0140syt_intf)
32733257MACHINE_CONFIG_END
32743258
r15413r15414
35923576static MACHINE_CONFIG_START( dblaxle, taitoz_state )
35933577
35943578   /* basic machine hardware */
3595   MCFG_CPU_ADD("maincpu", M68000, 16000000)   /* 16 MHz ??? */
3579   MCFG_CPU_ADD("maincpu", M68000, XTAL_32MHz/2)
35963580   MCFG_CPU_PROGRAM_MAP(dblaxle_map)
3597   MCFG_CPU_VBLANK_INT("screen", dblaxle_interrupt)
3581   MCFG_CPU_VBLANK_INT("screen", irq4_line_hold)
35983582
3599   MCFG_CPU_ADD("audiocpu", Z80,16000000/4)   /* 4 MHz ??? */
3583   MCFG_CPU_ADD("audiocpu", Z80, XTAL_32MHz/8)
36003584   MCFG_CPU_PROGRAM_MAP(z80_sound_map)
36013585
3602   MCFG_CPU_ADD("sub", M68000, 16000000)   /* 16 MHz ??? */
3586   MCFG_CPU_ADD("sub", M68000, XTAL_32MHz/2)
36033587   MCFG_CPU_PROGRAM_MAP(dblaxle_cpub_map)
3604   MCFG_CPU_VBLANK_INT("screen", dblaxle_cpub_interrupt)
3588   MCFG_CPU_VBLANK_INT("screen", irq4_line_hold)
36053589
36063590   MCFG_MACHINE_START(taitoz)
36073591   MCFG_MACHINE_RESET(taitoz)
r15413r15414
36293613   /* sound hardware */
36303614   MCFG_SPEAKER_STANDARD_STEREO("lspeaker", "rspeaker")
36313615
3632   MCFG_SOUND_ADD("ymsnd", YM2610, 16000000/2)
3616   MCFG_SOUND_ADD("ymsnd", YM2610, XTAL_32MHz/4)
36333617   MCFG_SOUND_CONFIG(ym2610_config)
36343618   MCFG_SOUND_ROUTE(0, "lspeaker",  0.25)
36353619   MCFG_SOUND_ROUTE(0, "rspeaker", 0.25)
r15413r15414
36543638static MACHINE_CONFIG_START( racingb, taitoz_state )
36553639
36563640   /* basic machine hardware */
3657   MCFG_CPU_ADD("maincpu", M68000, 16000000)   /* 16 MHz ??? */
3641   MCFG_CPU_ADD("maincpu", M68000, XTAL_32MHz/2)
36583642   MCFG_CPU_PROGRAM_MAP(racingb_map)
3659   MCFG_CPU_VBLANK_INT("screen", dblaxle_interrupt)
3643   MCFG_CPU_VBLANK_INT("screen", sci_interrupt)
36603644
3661   MCFG_CPU_ADD("audiocpu", Z80,16000000/4)   /* 4 MHz ??? */
3645   MCFG_CPU_ADD("audiocpu", Z80, XTAL_32MHz/8)
36623646   MCFG_CPU_PROGRAM_MAP(z80_sound_map)
36633647
3664   MCFG_CPU_ADD("sub", M68000, 16000000)   /* 16 MHz ??? */
3648   MCFG_CPU_ADD("sub", M68000, XTAL_32MHz/2)
36653649   MCFG_CPU_PROGRAM_MAP(racingb_cpub_map)
3666   MCFG_CPU_VBLANK_INT("screen", dblaxle_cpub_interrupt)
3650   MCFG_CPU_VBLANK_INT("screen", irq4_line_hold)
36673651
36683652   MCFG_MACHINE_START(taitoz)
36693653   MCFG_MACHINE_RESET(taitoz)
36703654
3671   MCFG_QUANTUM_TIME(attotime::from_hz(6000))
3655   MCFG_QUANTUM_TIME(attotime::from_hz(600))
36723656
36733657   MCFG_TC0510NIO_ADD("tc0510nio", taitoz_io510_intf)
36743658
r15413r15414
36783662   MCFG_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(0))
36793663   MCFG_SCREEN_SIZE(40*8, 32*8)
36803664   MCFG_SCREEN_VISIBLE_AREA(0*8, 40*8-1, 2*8, 32*8-1)
3681   MCFG_SCREEN_UPDATE_STATIC(dblaxle)
3665   MCFG_SCREEN_UPDATE_STATIC(racingb)
36823666
36833667   MCFG_GFXDECODE(dblaxle)
36843668   MCFG_PALETTE_LENGTH(4096)
r15413r15414
36913675   /* sound hardware */
36923676   MCFG_SPEAKER_STANDARD_STEREO("lspeaker", "rspeaker")
36933677
3694   MCFG_SOUND_ADD("ymsnd", YM2610, 16000000/2)
3678   MCFG_SOUND_ADD("ymsnd", YM2610, XTAL_32MHz/4)
36953679   MCFG_SOUND_CONFIG(ym2610_config)
36963680   MCFG_SOUND_ROUTE(0, "lspeaker",  0.25)
36973681   MCFG_SOUND_ROUTE(0, "rspeaker", 0.25)
r15413r15414
37233707   ROM_REGION( 0x40000, "maincpu", 0 )   /* 256K for 68000 code (CPU A) */
37243708   ROM_LOAD16_BYTE( "ic25", 0x00000, 0x20000, CRC(f5c92e42) SHA1(42dfa1895e601df76d7022b83f05c4e5c843fd12) )
37253709   ROM_LOAD16_BYTE( "ic26", 0x00001, 0x20000, CRC(e7c1d1fa) SHA1(75e851629a54facb8804ee8a953ab3265633bbf4) )
3726// this was bogus and has been removed.
3727// someone hacked the copyright year from 1987 to 1989, and changed an unused byte from FF to F3 to keep
3728// the checksum the same. There are no other differences.
3729//  ROM_LOAD16_BYTE( "cc_26.bin", 0x00001, 0x20000, CRC(1345ebe6) SHA1(88b9cc8ba2f7061beb8f6b763583cd45b03bcea1) )
37303710
37313711   ROM_REGION( 0x40000, "sub", 0 )   /* 256K for 68000 code (CPU B) */
37323712   ROM_LOAD16_BYTE( "ic35",      0x00000, 0x20000, CRC(16522f2d) SHA1(1d2823d61518936d342df3ed712da5bdfdf6e55a) )
r15413r15414
40894069   ROM_LOAD( "pal16l8b-b52-125.ic112", 0x2800, 0x0104, CRC(7628c557) SHA1(11bf628e091dc02e0c2e17ae726061ac04705a54) )
40904070ROM_END
40914071
4092
4093/*
4094Enforce
4095Taito, 198?/199?
4096
4097Taito Z hardware
4098PCB No: K1100406A J1100175A (CPU PCB)
4099        K1100407A J1100176A (VIDEO PCB)
4100
4101CPU: MC68000P12 (x2)
4102SND: Z80, YM2610, TCO040IOC, YM3016F
4103OSC: 26.686MHz, 24.000MHz, 16.000MHz
4104DIPs: 8 Position (x2)
4105
4106Taito Chips:
4107CPU board - TCO100SCN, TCO140SYT, TCO170ABT, TCO110PCR
4108Video Board - TCO150ROD, TCO050VDZ (x3), TCO020VAR
4109
4110Ram: CPU BOARD - 6264 (x9), 43256 (x2),
4111     VIDEO BOARD - 2018 (x10), 6264 (x2)
4112
4113PALs/PROMs:
4114CPU BOARD - All located near/around the 68000's
4115b58-15 (PAL20L8)
4116b58-16 (PAL20L8)
4117b58-14 (PAL20L8)
4118b58-13 (PAL16L8)
4119b58-11 (PAL16L8)
4120b58-12 (PAL16L8)
4121
4122VIDEO BOARD -
4123b58-22 (PAL16L8) \
4124b58-23 (63s141)   |  near TCO150ROD
4125b58-24 (63s141)  /
4126
4127b58-20 (PAL16L8) \
4128b58-21 (PAL16R4)  |
4129b58-17 (PAL16L8)  |  near TCO020VAR
4130b58-18 (PAL16R4) /
4131
4132b58-25 (63S141)      near b58-27
4133b58-19 (PAL16R4)     near b58-04/03/02/01
4134
4135ROMs:
4136CPU BOARD - b58-18 , 27C010  \
4137        b58-19 , 27C010   |  68k Program
4138        b58-26 , 27C010   |
4139        b58-27 , 27C010  /
4140
4141        b58-07 , 27C4096 \
4142        b58-08 , 27C4096  |
4143        b58-09 , 27C4100  |  near TCO100SCN & TCO140SYT
4144        b58-10 , 27C4096 /
4145
4146        b58-32 , 27C512      z80 program
4147
4148VIDEO PCB - b58-06 , 27C4100     near TCO150ROD
4149
4150        b58-26a, 27C512      ?
4151        b58-27 , LH5763      ?
4152
4153        b58-01 , 27C4100 \
4154        b58-02 , 27C4100  |
4155        b58-03 , 27C4100  |  near TCO050VDZ's
4156        b58-04 , 27C4100 /
4157*/
4158
41594072ROM_START( enforce )
41604073   ROM_REGION( 0x40000, "maincpu", 0 )   /* 256K for 68000 code (CPU A) */
41614074   ROM_LOAD16_BYTE( "b58-27.27", 0x00000, 0x20000, CRC(a1aa0191) SHA1(193d936e1bfe0da4ac984aba65d3e4e6c93a4c11) )
r15413r15414
51365049
51375050static DRIVER_INIT( taitoz )
51385051{
5139   taitoz_state *state = machine.driver_data<taitoz_state>();
5140   state->m_chasehq_lamps = 0;
5141   state->m_dblaxle_vibration = 0;
5142}
5052   //taitoz_state *state = machine.driver_data<taitoz_state>();
51435053
5144static DRIVER_INIT( dblaxle )
5145{
5146   taitoz_state *state = machine.driver_data<taitoz_state>();
5147   state->m_chasehq_lamps = 0;
5148   state->m_dblaxle_vibration = 1;
5054   machine.save().register_postload(save_prepost_delegate(FUNC(parse_cpu_control), &machine));
51495055}
51505056
51515057static DRIVER_INIT( bshark )
51525058{
51535059   taitoz_state *state = machine.driver_data<taitoz_state>();
5154   state->m_chasehq_lamps = 0;
5155   state->m_dblaxle_vibration = 0;
5060   DRIVER_INIT_CALL(taitoz);
5061
51565062   state->m_eep_latch = 0;
51575063
5158   machine.save().register_postload(save_prepost_delegate(FUNC(parse_control), &machine));
51595064   state->save_item(NAME(state->m_eep_latch));
51605065}
51615066
5162static DRIVER_INIT( chasehq )
5163{
5164   taitoz_state *state = machine.driver_data<taitoz_state>();
5165   state->m_chasehq_lamps = 1;
5166   state->m_dblaxle_vibration = 0;
5167}
51685067
51695068
5170
51715069GAMEL(1987, contcirc,   0,        contcirc, contcirc, taitoz,   ROT0,               "Taito Corporation Japan",   "Continental Circus (World)", GAME_IMPERFECT_GRAPHICS | GAME_SUPPORTS_SAVE, layout_contcirc )
51725070GAMEL(1987, contcircu,  contcirc, contcirc, contcrcu, taitoz,   ROT0,               "Taito America Corporation", "Continental Circus (US set 1)", GAME_IMPERFECT_GRAPHICS | GAME_SUPPORTS_SAVE, layout_contcirc )
51735071GAMEL(1987, contcircua, contcirc, contcirc, contcrcu, taitoz,   ROT0,               "Taito America Corporation", "Continental Circus (US set 2)", GAME_IMPERFECT_GRAPHICS | GAME_SUPPORTS_SAVE, layout_contcirc )
5174GAMEL(1988, chasehq,    0,        chasehq,  chasehq,  chasehq,  ROT0,               "Taito Corporation Japan",   "Chase H.Q. (World)", GAME_IMPERFECT_GRAPHICS | GAME_SUPPORTS_SAVE, layout_contcirc )
5175GAMEL(1988, chasehqj,   chasehq,  chasehq,  chasehqj, chasehq,  ROT0,               "Taito Corporation",         "Chase H.Q. (Japan)", GAME_IMPERFECT_GRAPHICS | GAME_SUPPORTS_SAVE, layout_contcirc )
5176GAMEL(1988, chasehqu,   chasehq,  chasehq,  chasehq,  chasehq,  ROT0,               "Taito America Corporation", "Chase H.Q. (US)", GAME_IMPERFECT_GRAPHICS | GAME_SUPPORTS_SAVE, layout_contcirc )
5072GAMEL(1988, chasehq,    0,        chasehq,  chasehq,  taitoz,   ROT0,               "Taito Corporation Japan",   "Chase H.Q. (World)", GAME_IMPERFECT_GRAPHICS | GAME_SUPPORTS_SAVE, layout_contcirc )
5073GAMEL(1988, chasehqj,   chasehq,  chasehq,  chasehqj, taitoz,   ROT0,               "Taito Corporation",         "Chase H.Q. (Japan)", GAME_IMPERFECT_GRAPHICS | GAME_SUPPORTS_SAVE, layout_contcirc )
5074GAMEL(1988, chasehqu,   chasehq,  chasehq,  chasehq,  taitoz,   ROT0,               "Taito America Corporation", "Chase H.Q. (US)", GAME_IMPERFECT_GRAPHICS | GAME_SUPPORTS_SAVE, layout_contcirc )
51775075GAME( 1988, enforce,    0,        enforce,  enforce,  taitoz,   ROT0,               "Taito Corporation",         "Enforce (Japan)", GAME_IMPERFECT_GRAPHICS | GAME_SUPPORTS_SAVE )
51785076GAME( 1989, bshark,     0,        bshark,   bshark,   bshark,   ORIENTATION_FLIP_X, "Taito Corporation Japan",   "Battle Shark (World)", GAME_IMPERFECT_GRAPHICS | GAME_SUPPORTS_SAVE )
51795077GAME( 1989, bsharku,    bshark,   bshark,   bsharku,  bshark,   ORIENTATION_FLIP_X, "Taito America Corporation", "Battle Shark (US)", GAME_IMPERFECT_GRAPHICS | GAME_SUPPORTS_SAVE )
r15413r15414
51935091GAME( 1990, spacegun,   0,        spacegun, spacegun, bshark,   ORIENTATION_FLIP_X, "Taito Corporation Japan",   "Space Gun (World)", GAME_SUPPORTS_SAVE )
51945092GAME( 1990, spacegunj,  spacegun, spacegun, spacegnj, bshark,   ORIENTATION_FLIP_X, "Taito Corporation",         "Space Gun (Japan)", GAME_SUPPORTS_SAVE )
51955093GAME( 1990, spacegunu,  spacegun, spacegun, spacegnu, bshark,   ORIENTATION_FLIP_X, "Taito America Corporation", "Space Gun (US)", GAME_SUPPORTS_SAVE )
5196GAMEL(1991, dblaxle,    0,        dblaxle,  dblaxle,  dblaxle,  ROT0,               "Taito America Corporation", "Double Axle (US)", GAME_IMPERFECT_GRAPHICS | GAME_SUPPORTS_SAVE, layout_dblaxle )
5197GAME( 1991, pwheelsj,   dblaxle,  dblaxle,  pwheelsj, dblaxle,  ROT0,               "Taito Corporation",         "Power Wheels (Japan)", GAME_IMPERFECT_GRAPHICS | GAME_SUPPORTS_SAVE )
5198GAME( 1991, racingb,    0,        racingb,  dblaxle,  dblaxle,  ROT0,               "Taito Corporation Japan",   "Racing Beat (World)", GAME_IMPERFECT_GRAPHICS | GAME_NOT_WORKING | GAME_SUPPORTS_SAVE )
5094GAMEL(1991, dblaxle,    0,        dblaxle,  dblaxle,  taitoz,   ROT0,               "Taito America Corporation", "Double Axle (US)", GAME_IMPERFECT_GRAPHICS | GAME_SUPPORTS_SAVE, layout_dblaxle )
5095GAMEL(1991, pwheelsj,   dblaxle,  dblaxle,  pwheelsj, taitoz,   ROT0,               "Taito Corporation",         "Power Wheels (Japan)", GAME_IMPERFECT_GRAPHICS | GAME_SUPPORTS_SAVE, layout_dblaxle )
5096GAMEL(1991, racingb,    0,        racingb,  racingb,  taitoz,   ROT0,               "Taito Corporation Japan",   "Racing Beat (World)", GAME_IMPERFECT_GRAPHICS | GAME_SUPPORTS_SAVE, layout_dblaxle )
src/mame/drivers/taito_f3.c
r15413r15414
201201   AM_RANGE(0x630000, 0x63ffff) AM_READWRITE16(f3_pivot_r,f3_pivot_w,0xffffffff)         //AM_SHARE("f3_pivot_ram")
202202   AM_RANGE(0x660000, 0x66000f) AM_WRITE16(f3_control_0_w,0xffffffff)
203203   AM_RANGE(0x660010, 0x66001f) AM_WRITE16(f3_control_1_w,0xffffffff)
204   AM_RANGE(0xc00000, 0xc007ff) AM_RAM AM_SHARE("f3_shared")
204   AM_RANGE(0xc00000, 0xc007ff) AM_RAM AM_SHARE("snd_shared")
205205   AM_RANGE(0xc80000, 0xc80003) AM_WRITE(f3_sound_reset_0_w)
206206   AM_RANGE(0xc80100, 0xc80103) AM_WRITE(f3_sound_reset_1_w)
207207ADDRESS_MAP_END
r15413r15414
403403
404404static SOUND_RESET( f3 )
405405{
406   SOUND_RESET_CALL( taito_f3_soundsystem_reset );
406   SOUND_RESET_CALL( taito_en_soundsystem_reset );
407407   cputag_set_input_line(machine, "audiocpu", INPUT_LINE_RESET, ASSERT_LINE);
408408}
409409
r15413r15414
451451   MCFG_VIDEO_START(f3)
452452
453453   /* sound hardware */
454   MCFG_FRAGMENT_ADD(taito_f3_sound)
454   MCFG_FRAGMENT_ADD(taito_en_sound)
455455   MCFG_SOUND_RESET(f3)
456456MACHINE_CONFIG_END
457457
src/mame/drivers/rabbit.c
r15413r15414
2525
2626- raster effects (rabbit only?, see left side of one of the levels in rabbit)
2727- clean up zoom code and make zoom effect more accurate
28- status bar in rabbit is the wrong colour, timing of blitter / interrupts?
2928
3029Notes:
3130
32(1) This is currently in it's own driver "tmmjprd.c" because it uses the
31(1) This is currently in its own driver "tmmjprd.c" because it uses the
3332    chip in a completely different way to Rabbit.  They should be merged
3433    again later, once the chip is better understood.
3534
r15413r15414
7574
7675CPU:    MC68EC020FG25
7776OSC:    40.00000MHz
78    24.00000MHz
77        24.00000MHz
7978
8079Custom: Imagetek I5000 (2ch video & 2ch sound)
8180
r15413r15414
9291public:
9392   rabbit_state(const machine_config &mconfig, device_type type, const char *tag)
9493      : driver_device(mconfig, type, tag),
95        m_viewregs0(*this, "viewregs0"),
96        m_viewregs6(*this, "viewregs6"),
97        m_viewregs7(*this, "viewregs7"),
98        m_viewregs9(*this, "viewregs9"),
99        m_viewregs10(*this, "viewregs10"),
100        m_tilemap_regs(*this, "tilemap_regs"),
101        m_spriteregs(*this, "spriteregs"),
102        m_blitterregs(*this, "blitterregs"),
103        m_spriteram(*this, "spriteram") { }
94      m_viewregs0(*this, "viewregs0"),
95      m_viewregs6(*this, "viewregs6"),
96      m_viewregs7(*this, "viewregs7"),
97      m_viewregs9(*this, "viewregs9"),
98      m_viewregs10(*this, "viewregs10"),
99      m_tilemap_regs(*this, "tilemap_regs"),
100      m_spriteregs(*this, "spriteregs"),
101      m_blitterregs(*this, "blitterregs"),
102      m_spriteram(*this, "spriteram")
103   { }
104104
105105   required_shared_ptr<UINT32> m_viewregs0;
106106   required_shared_ptr<UINT32> m_viewregs6;
r15413r15414
138138INLINE void get_rabbit_tilemap_info(running_machine &machine, tile_data &tileinfo, int tile_index, int whichtilemap, int tilesize)
139139{
140140   rabbit_state *state = machine.driver_data<rabbit_state>();
141   int tileno,colour,flipxy, depth;
142   int bank;
143   depth = (state->m_tilemap_ram[whichtilemap][tile_index]&0x10000000)>>28;
144   tileno = state->m_tilemap_ram[whichtilemap][tile_index]&0xffff;
145   bank = (state->m_tilemap_ram[whichtilemap][tile_index]&0x000f0000)>>16;
146   colour =  (state->m_tilemap_ram[whichtilemap][tile_index]>>20)&0xff;
147   flipxy =  (state->m_tilemap_ram[whichtilemap][tile_index]>>29)&3;
141    /* fedcba98 76543210 fedcba98 76543210
142       x                                    color mask? how exactly does it relate to color bits?
143        xx                                  flip
144          x                                 depth
145           xxxx xxxx                        color
146                    xxxx                    bank
147                         xxxxxxxx xxxxxxxx  tile
148    */
149   int depth = (state->m_tilemap_ram[whichtilemap][tile_index]&0x10000000)>>28;
150   int tileno = state->m_tilemap_ram[whichtilemap][tile_index]&0xffff;
151   int bank = (state->m_tilemap_ram[whichtilemap][tile_index]&0x000f0000)>>16;
152   int colour = (state->m_tilemap_ram[whichtilemap][tile_index]>>20)&0xff;
153   int cmask = state->m_tilemap_ram[whichtilemap][tile_index]>>31&1;
154   int flipxy = (state->m_tilemap_ram[whichtilemap][tile_index]>>29)&3;
148155
149   if(state->m_banking)
156   if (state->m_banking)
150157   {
151158      switch (bank)
152159      {
160         case 0x0:
161            break;
162
153163         case 0x8:
154164            tileno += 0x10000;
155165            break;
r15413r15414
157167         case 0xc:
158168            tileno += 0x20000;
159169            break;
170         
171         default:
172            //printf("tilebank %x\n",bank);
173            break;
160174      }
161175   }
162176   else
177   {
163178      tileno += (bank << 16);
179   }
164180
165181   if (depth)
166182   {
167183      tileno >>=(1+tilesize*2);
168      colour&=0x0f;
169      colour+=0x20;
184      colour &= 0x0f;
185      colour += 0x20;
170186      tileinfo.group = 1;
171187      SET_TILE_INFO(6+tilesize,tileno,colour,TILE_FLIPXY(flipxy));
172188   }
173189   else
174190   {
175191      tileno >>=(0+tilesize*2);
176      //colour&=0x3f; // fixes status bar.. but breaks other stuff
177      colour+=0x200;
192      if (cmask) colour&=0x3f; // see health bars
193      colour += 0x200;
178194      tileinfo.group = 0;
179195      SET_TILE_INFO(4+tilesize,tileno,colour,TILE_FLIPXY(flipxy));
180196   }
r15413r15414
195211   get_rabbit_tilemap_info(machine,tileinfo,tile_index,2,1);
196212}
197213
198/* some bad colours on life bars for this layer .. fix them ..
199    (needs mask of 0x3f but this breaks other gfx..) */
200214static TILE_GET_INFO( get_rabbit_tilemap3_tile_info )
201215{
202216   get_rabbit_tilemap_info(machine,tileinfo,tile_index,3,0);
r15413r15414
631645            break;
632646
633647         default: /* unknown / illegal */
634            if(BLITLOG) mame_printf_debug("uknown blit command %02x\n",blt_commnd);
648            if(BLITLOG) mame_printf_debug("unknown blit command %02x\n",blt_commnd);
635649            break;
636650      }
637651   }
r15413r15414
732746   PORT_BIT( 0x00200000, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_PLAYER(2)
733747   PORT_BIT( 0x00400000, IP_ACTIVE_LOW, IPT_BUTTON3 ) PORT_PLAYER(2)
734748   PORT_BIT( 0x00800000, IP_ACTIVE_LOW, IPT_BUTTON4 ) PORT_PLAYER(2)
735   PORT_DIPNAME( 0x01000000, 0x01000000, DEF_STR( Unknown ) )
736   PORT_DIPSETTING(          0x01000000, DEF_STR( Off ) )
737   PORT_DIPSETTING(          0x00000000, DEF_STR( On ) )
738   PORT_DIPNAME( 0x02000000, 0x02000000, DEF_STR( Unknown ) )
739   PORT_DIPSETTING(          0x02000000, DEF_STR( Off ) )
740   PORT_DIPSETTING(          0x00000000, DEF_STR( On ) )
741   PORT_DIPNAME( 0x04000000, 0x04000000, DEF_STR( Unknown ) )
742   PORT_DIPSETTING(          0x04000000, DEF_STR( Off ) )
743   PORT_DIPSETTING(          0x00000000, DEF_STR( On ) )
744   PORT_DIPNAME( 0x08000000, 0x08000000, DEF_STR( Unknown ) )
745   PORT_DIPSETTING(          0x08000000, DEF_STR( Off ) )
746   PORT_DIPSETTING(          0x00000000, DEF_STR( On ) )
747   PORT_DIPNAME( 0x10000000, 0x10000000, DEF_STR( Unknown ) )
748   PORT_DIPSETTING(          0x10000000, DEF_STR( Off ) )
749   PORT_DIPSETTING(          0x00000000, DEF_STR( On ) )
750   PORT_DIPNAME( 0x20000000, 0x20000000, DEF_STR( Unknown ) )
751   PORT_DIPSETTING(          0x20000000, DEF_STR( Off ) )
752   PORT_DIPSETTING(          0x00000000, DEF_STR( On ) )
753   PORT_DIPNAME( 0x40000000, 0x40000000, DEF_STR( Unknown ) )
754   PORT_DIPSETTING(          0x40000000, DEF_STR( Off ) )
755   PORT_DIPSETTING(          0x00000000, DEF_STR( On ) )
756   PORT_DIPNAME( 0x80000000, 0x80000000, DEF_STR( Unknown ) )
757   PORT_DIPSETTING(          0x80000000, DEF_STR( Off ) )
758   PORT_DIPSETTING(          0x00000000, DEF_STR( On ) )
749   PORT_BIT( 0xff000000, IP_ACTIVE_LOW, IPT_UNUSED )
759750INPUT_PORTS_END
760751
761752
r15413r15414
873864
874865  */
875866
876static TIMER_DEVICE_CALLBACK( rabbit_scanline )
867static INTERRUPT_GEN( rabbit_vblank_interrupt )
877868{
878   rabbit_state *state = timer.machine().driver_data<rabbit_state>();
879   int scanline = param;
880
881   if(scanline == 224) // vblank-out irq
882      cputag_set_input_line(timer.machine(), "maincpu", state->m_vblirqlevel, HOLD_LINE);
883
869   rabbit_state *state = device->machine().driver_data<rabbit_state>();
870   cputag_set_input_line(device->machine(), "maincpu", state->m_vblirqlevel, HOLD_LINE);
884871}
885872
886
887873static MACHINE_CONFIG_START( rabbit, rabbit_state )
888874   MCFG_CPU_ADD("maincpu", M68EC020, XTAL_24MHz)
889875   MCFG_CPU_PROGRAM_MAP(rabbit_map)
890   MCFG_TIMER_ADD_SCANLINE("scantimer", rabbit_scanline, "screen", 0, 1)
876   MCFG_CPU_VBLANK_INT("screen", rabbit_vblank_interrupt)
891877
892878   MCFG_EEPROM_93C46_ADD("eeprom")
893879
r15413r15414
903889   MCFG_SCREEN_UPDATE_STATIC(rabbit)
904890
905891   MCFG_PALETTE_LENGTH(0x4000)
906   MCFG_PALETTE_INIT( all_black ) // the status bar palette doesn't get transfered (or our colour select is wrong).. more obvious when it's black than in 'MAME default' colours
892   MCFG_PALETTE_INIT( all_black )
907893
908894   MCFG_VIDEO_START(rabbit)
909895
src/osd/windows/windows.mak
r15413r15414
166166# disable macro redefinition warning
167167CCOMFLAGS += /wd4005
168168
169# disable behavior change: 'member1' called instead of 'member2' warning
170CCOMFLAGS += /wd4350
171
169172# explicitly set the entry point for UNICODE builds
170173LDFLAGS += /ENTRY:wmainCRTStartup
171174
src/emu/sound/es5506.c
r15413r15414
21512151   chip->voice[voice].exbank=bank;
21522152}
21532153
2154void es5505_set_channel_volume(device_t *device, int channel, int volume)
2155{
2156   es5506_state *chip = get_safe_token(device);
21572154
2158   chip->stream->set_output_gain(channel,volume / 100.0);
2159}
21602155
2161
21622156/**************************************************************************
21632157 * Generic get_info
21642158 **************************************************************************/
src/emu/sound/es5506.h
r15413r15414
2424READ16_DEVICE_HANDLER( es5505_r );
2525WRITE16_DEVICE_HANDLER( es5505_w );
2626void es5505_voice_bank_w(device_t *device, int voice, int bank);
27void es5505_set_channel_volume(device_t *device, int channel, int volume);
2827
2928DECLARE_LEGACY_SOUND_DEVICE(ES5505, es5505);
3029
src/emu/machine/68681.c
r15413r15414
9393   UINT8 IP_last_state; /* last state of IP bits */
9494
9595   /* timer */
96   UINT8 half_period;
9697   emu_timer *duart_timer;
9798
9899   /* UART channels */
r15413r15414
244245    }
245246};
246247
248double duart68681_get_ct_rate(duart68681_state *duart68681)
249{
250   double rate = 0.0f;
251
252   if (duart68681->ACR & 0x40)
253   {
254      // Timer mode
255      switch ((duart68681->ACR >> 4) & 3)
256      {
257         case 0: // IP2
258         case 1: // IP2 / 16
259            //logerror( "68681 (%s): Unhandled timer/counter mode %d\n", duart68681->tag(), (duart68681->ACR >> 4) & 3);
260            rate = duart68681->device->clock();
261            break;
262         case 2: // X1/CLK
263            rate = duart68681->device->clock();
264            break;
265         case 3: // X1/CLK / 16
266            rate = duart68681->device->clock() / 16;
267            break;
268      }
269   }
270   else
271   {
272      // Counter mode
273      switch ((duart68681->ACR >> 4) & 3)
274      {
275         case 0: // IP2
276         case 1: // TxCA
277         case 2: // TxCB
278            //logerror( "68681 (%s): Unhandled timer/counter mode %d\n", device->tag(), (duart68681->ACR >> 4) & 3);
279            rate = duart68681->device->clock();
280            break;
281         case 3: // X1/CLK / 16
282            rate = duart68681->device->clock() / 16;
283            break;
284      }
285   }
286
287   return rate;
288}
289
290UINT16 duart68681_get_ct_count(duart68681_state *duart68681)
291{
292   double clock = duart68681_get_ct_rate(duart68681);   
293   return (duart68681->duart_timer->remaining() * clock).as_double();
294}
295
296void duart68681_start_ct(duart68681_state *duart68681, int count)
297{
298   double clock = duart68681_get_ct_rate(duart68681);   
299   duart68681->duart_timer->adjust(attotime::from_hz(clock) * count, 0);
300}
301
247302static TIMER_CALLBACK( duart_timer_callback )
248303{
249304   device_t *device = (device_t *)ptr;
250   duart68681_state   *duart68681 = get_safe_token(device);
305   duart68681_state *duart68681 = get_safe_token(device);
251306
252   duart68681->ISR |= INT_COUNTER_READY;
253   duart68681_update_interrupts(duart68681);
307   if (duart68681->ACR & 0x40)
308   {
309      // Timer mode
310      duart68681->half_period ^= 1;
254311
255//  if ((duart68681->OPCR & 0x0c)== 0x04) {
256//      duart68681->OPR ^= 0x08;
257//      if (duart68681->duart_config->output_port_write)
258//          duart68681->duart_config->output_port_write(duart68681->device, duart68681->OPR ^ 0xff);
259//
260//  }
312      // TODO: Set OP3
313
314      if (!duart68681->half_period)
315      {
316         duart68681->ISR |= INT_COUNTER_READY;
317         duart68681_update_interrupts(duart68681);
318      }
319
320      int count = MAX(duart68681->CTR.w.l, 1);
321      duart68681_start_ct(duart68681, count);
322   }
323   else
324   {
325      // Counter mode
326      duart68681->ISR |= INT_COUNTER_READY;
327      duart68681_update_interrupts(duart68681);
328      duart68681_start_ct(duart68681, 0xffff);
329   }
330
261331};
262332
263333static void duart68681_write_MR(duart68681_state *duart68681, int ch, UINT8 data)
r15413r15414
481551
482552};
483553
484READ8_DEVICE_HANDLER(duart68681_r)
554READ8_DEVICE_HANDLER( duart68681_r )
485555{
486556   duart68681_state* duart68681 = get_safe_token(device);
487557   UINT8 r = 0xff;
r15413r15414
503573            r = duart68681->channel[0].MR2;
504574         }
505575         break;
576
506577      case 0x01: /* SRA */
507578         r = duart68681->channel[0].SR;
508579         break;
580
509581      case 0x03: /* Rx Holding Register A */
510582         r = duart68681_read_rx_fifo(duart68681, 0);
511583         break;
584
512585      case 0x04: /* IPCR */
513         {
514            UINT8 IP;
515            if ( duart68681->duart_config->input_port_read != NULL )
516               IP = duart68681->duart_config->input_port_read(duart68681->device);
517            else
518               IP = 0x0;
586      {
587         UINT8 IP;
588         if ( duart68681->duart_config->input_port_read != NULL )
589            IP = duart68681->duart_config->input_port_read(duart68681->device);
590         else
591            IP = 0x0;
519592
520            r = (((duart68681->IP_last_state ^ IP) & 0x0f) << 4) | (IP & 0x0f);
521            duart68681->IP_last_state = IP;
522            duart68681->ISR &= ~INT_INPUT_PORT_CHANGE;
523            duart68681_update_interrupts(duart68681);
524         }
525         break;
593         r = (((duart68681->IP_last_state ^ IP) & 0x0f) << 4) | (IP & 0x0f);
594         duart68681->IP_last_state = IP;
595         duart68681->ISR &= ~INT_INPUT_PORT_CHANGE;
596         duart68681_update_interrupts(duart68681);
597      }
598      break;
599
526600      case 0x05: /* ISR */
527601         r = duart68681->ISR;
528602         break;
603         
604      case 0x06: /* CUR */
605         r = duart68681_get_ct_count(duart68681) >> 8;
606         break;
607
608      case 0x07: /* CLR */
609         r = duart68681_get_ct_count(duart68681) & 0xff;
610         break;
611           
529612      case 0x08: /* MR1B/MR2B */
530613         if ( duart68681->channel[1].MR_ptr == 0 )
531614         {
r15413r15414
537620            r = duart68681->channel[1].MR2;
538621         }
539622         break;
623
540624      case 0x09: /* SRB */
541625         r = duart68681->channel[1].SR;
542626         break;
627
543628      case 0x0b: /* RHRB */
544629         r = duart68681_read_rx_fifo(duart68681, 1);
545630         break;
631
546632      case 0x0d: /* IP */
547633         if ( duart68681->duart_config->input_port_read != NULL )
548634            r = duart68681->duart_config->input_port_read(duart68681->device);
549635         else
550            {
551               r = 0xff;
636         {
637            r = 0xff;
552638#if 0
553               if (device->machine().input().code_pressed(KEYCODE_1)) r ^= 0x0001;
554               if (device->machine().input().code_pressed(KEYCODE_2)) r ^= 0x0002;
555               if (device->machine().input().code_pressed(KEYCODE_3)) r ^= 0x0004;
556               if (device->machine().input().code_pressed(KEYCODE_4)) r ^= 0x0008;
557               if (device->machine().input().code_pressed(KEYCODE_5)) r ^= 0x0010;
558               if (device->machine().input().code_pressed(KEYCODE_6)) r ^= 0x0020;
559               if (device->machine().input().code_pressed(KEYCODE_7)) r ^= 0x0040;
560               if (device->machine().input().code_pressed(KEYCODE_8)) r ^= 0x0080;
639            if (device->machine().input().code_pressed(KEYCODE_1)) r ^= 0x0001;
640            if (device->machine().input().code_pressed(KEYCODE_2)) r ^= 0x0002;
641            if (device->machine().input().code_pressed(KEYCODE_3)) r ^= 0x0004;
642            if (device->machine().input().code_pressed(KEYCODE_4)) r ^= 0x0008;
643            if (device->machine().input().code_pressed(KEYCODE_5)) r ^= 0x0010;
644            if (device->machine().input().code_pressed(KEYCODE_6)) r ^= 0x0020;
645            if (device->machine().input().code_pressed(KEYCODE_7)) r ^= 0x0040;
646            if (device->machine().input().code_pressed(KEYCODE_8)) r ^= 0x0080;
561647#endif
562            }
648         }
563649         break;
650
564651      case 0x0e: /* Start counter command */
565         switch( (duart68681->ACR >> 4) & 0x07 )
652      {
653         if (duart68681->ACR & 0x40)
566654         {
567            /* TODO: implement modes 0,1,2,4,5 */
568            case 0x03: /* Counter, CLK/16 */
569               {
570                  attotime rate = attotime::from_hz(2*device->clock()/(2*16*16*duart68681->CTR.w.l));
571                  duart68681->duart_timer->adjust(rate, 0, rate);
572               }
573               break;
655            // Reset the timer
656            duart68681->half_period = 0;
657            // TODO: Set OP3 to 1
574658         }
659
660         int count = MAX(duart68681->CTR.w.l, 1);
661         duart68681_start_ct(duart68681, count);
575662         break;
663      }
664
576665      case 0x0f: /* Stop counter command */
577666         duart68681->ISR &= ~INT_COUNTER_READY;
578         if (((duart68681->ACR >>4)& 0x07) < 4) // if in counter mode...
579         duart68681->duart_timer->adjust(attotime::never); // shut down timer
667
668         // Stop the counter only
669         if (!(duart68681->ACR & 0x40))
670            duart68681->duart_timer->adjust(attotime::never);
671
580672         duart68681_update_interrupts(duart68681);
581673         break;
674
582675      default:
583676         LOG(( "Reading unhandled 68681 reg %x\n", offset ));
584677         break;
r15413r15414
588681   return r;
589682}
590683
591WRITE8_DEVICE_HANDLER(duart68681_w)
684WRITE8_DEVICE_HANDLER( duart68681_w )
592685{
593686   duart68681_state* duart68681 = get_safe_token(device);
594687
r15413r15414
600693      case 0x00: /* MRA */
601694         duart68681_write_MR(duart68681, 0, data);
602695         break;
696
603697      case 0x01: /* CSRA */
604698         duart68681_write_CSR(duart68681, 0, data, duart68681->ACR);
605699         break;
700
606701      case 0x02: /* CRA */
607702         duart68681_write_CR(duart68681, 0, data);
608703         break;
704
609705      case 0x03: /* THRA */
610706         duart68681_write_TX(duart68681, 0, data);
611707         break;
708
612709      case 0x04: /* ACR */
710      {
711         UINT8 old_acr = duart68681->ACR;
613712         duart68681->ACR = data;
713
614714         //       bits 6-4: Counter/Timer Mode And Clock Source Select
615715         //       bits 3-0: IP3-0 Change-Of-State Interrupt Enable
616         switch ((data >> 4) & 0x07)
716         if ((old_acr ^ data) & 0x40)
617717         {
618            case 0: case 1: case 2: case 4: case 5: // TODO: handle these cases!
619            logerror( "68681 (%s): Unhandled timer/counter mode %d\n", device->tag(), (data >> 4) & 0x07);
620            break;
621            case 3:
622            break;
623            case 0x06: /* Timer, CLK/1 */       // Timer modes start without reading address 0xe, as per the Freescale 68681 manual
624                {
625                    attotime rate;
626                    if (duart68681->CTR.w.l > 0)
627                    {
628                        rate = attotime::from_hz(2*device->clock()/(2*16*duart68681->CTR.w.l));
629                    }
630                    else
631                    {
632                        rate = attotime::from_hz(2*device->clock()/(2*16*0x10000));
633                    }
634                    duart68681->duart_timer->adjust(rate, 0, rate);
635                }
636                break;
637            case 0x07: /* Timer, CLK/16 */
638                {
639                    //double hz;
640                    //attotime rate = attotime::from_hz(duart68681->clock) * (16*duart68681->CTR.w.l);
641                    attotime rate;
642                    if (duart68681->CTR.w.l > 0)
643                    {
644                        rate = attotime::from_hz(2*device->clock()/(2*16*16*duart68681->CTR.w.l));
718            if (data & 0x40)
719            {
720               // Entering timer mode
721               UINT16 count = MAX(duart68681->CTR.w.l, 1);
722               duart68681->half_period = 0;
645723
646                        // workaround for maygay1b locking up MAME
647                        if ((2*device->clock()/(2*16*16*duart68681->CTR.w.l)) == 0)
648                        {
649                            rate = attotime::from_hz(1);
650                        }
651                    }
652                    else
653                    {
654                        if (2*device->clock()/(2*16*16*0x10000) == 0)
655                        {
656                            rate = attotime::from_hz(1);
657                        }
658                        else
659                        {
660                            rate = attotime::from_hz(2*device->clock()/(2*16*16*0x10000));
661                        }
662                    }
724               // TODO: Set OP3
725               duart68681_start_ct(duart68681, count);
726            }
727            else
728            {
729               // Leaving timer mode (TODO: is this correct?)
730               duart68681->duart_timer->adjust(attotime::never);
731            }
732         }
663733
664                    //hz = ATTOSECONDS_TO_HZ(rate.attoseconds);
665
666                    duart68681->duart_timer->adjust(rate, 0, rate);
667                }
668                break;
669         }
670734         duart68681_write_CSR(duart68681, 0, duart68681->channel[0].CSR, data);
671735         duart68681_write_CSR(duart68681, 1, duart68681->channel[1].CSR, data);
672736         duart68681_update_interrupts(duart68681); // need to add ACR checking for IP delta ints
673737         break;
738      }
674739      case 0x05: /* IMR */
675740         duart68681->IMR = data;
676741         duart68681_update_interrupts(duart68681);
677742         break;
743
678744      case 0x06: /* CTUR */
679745         duart68681->CTR.b.h = data;
680746         break;
747
681748      case 0x07: /* CTLR */
682749         duart68681->CTR.b.l = data;
683750         break;
751
684752      case 0x08: /* MRB */
685753         duart68681_write_MR(duart68681, 1, data);
686754         break;
755
687756      case 0x09: /* CSRB */
688757         duart68681_write_CSR(duart68681, 1, data, duart68681->ACR);
689758         break;
759
690760      case 0x0a: /* CRB */
691761         duart68681_write_CR(duart68681, 1, data);
692762         break;
763
693764      case 0x0b: /* THRB */
694765         duart68681_write_TX(duart68681, 1, data);
695766         break;
767
696768      case 0x0c: /* IVR */
697769         duart68681->IVR = data;
698770         break;
771
699772      case 0x0d: /* OPCR */
700773         if (data != 0x00)
701774            logerror( "68681 (%s): Unhandled OPCR value: %02x\n", device->tag(), data);
702775         duart68681->OPCR = data;
703776         break;
777
704778      case 0x0e: /* Set Output Port Bits */
705779         duart68681->OPR |= data;
706780         if (duart68681->duart_config->output_port_write)
707781            duart68681->duart_config->output_port_write(duart68681->device, duart68681->OPR ^ 0xff);
708782         break;
783
709784      case 0x0f: /* Reset Output Port Bits */
710785         duart68681->OPR &= ~data;
711786         if (duart68681->duart_config->output_port_write)
r15413r15414
761836   device->save_item(NAME(duart68681->OPCR));
762837   device->save_item(NAME(duart68681->CTR));
763838   device->save_item(NAME(duart68681->IP_last_state));
839   device->save_item(NAME(duart68681->half_period));
764840
765841   device->save_item(NAME(duart68681->channel[0].CR));
766842   device->save_item(NAME(duart68681->channel[0].CSR));

Previous 15994 Revisions Next


© 1998-2018 The MESS Team