Previous 15994 Revisions Next

r14999 Sunday 22nd April, 2012 at 15:16:07 UTC by Miodrag Milanović
Sync with U7 (nw)
[src]version.c
[src/emu]device.c device.h diexec.c diexec.h driver.c driver.h ioport.h memory.c memory.h rendersw.c
[src/emu/cpu/m68000]68307bus.c 68307bus.h 68307ser.c 68307ser.h 68340sim.h
[src/emu/imagedev]cassette.c
[src/emu/sound]i5000.c i5000.h
[src/emu/video]mc6845.c
[src/lib/formats]adam_cas.c ap2_dsk.c ap2_dsk.h
[src/lib/softfloat]fyl2x.c
[src/mame]mame.lst
[src/mame/audio]aztarac.c cchasm.c mario.c midway.c midway.h redalert.c williams.c williams.h
[src/mame/drivers]amaticmg.c astrafr.c berzerk.c bfm_sc4.c bfm_sc4h.c coolridr.c darkhors.c ddenlovr.c ddragon.c deco32.c ecoinf3.c flower.c gal3.c galaxia.c galaxian.c gladiatr.c globalfr.c gsword.c jpmsys7.c liberatr.c mcr.c mcr3.c mediagx.c meyc8080.c meyc8088.c midvunit.c midyunit.c model3.c naomi.c proconn.c psikyo.c quasar.c segas32.c seta.c seta2.c silvmil.c snesb.c splus.c ssv.c suna16.c taitoair.c tetrisp2.c vcombat.c viper.c voyager.c zn.c
[src/mame/includes]amiga.h argus.h balsente.h bfm_sc45.h bigstrkb.h btime.h cave.h cclimber.h equites.h galaga.h galaxian.h kaneko16.h lasso.h mcr.h metalmx.h midtunit.h midyunit.h model2.h namcos22.h nmk16.h rungun.h splash.h st0016.h taito_f2.h taito_f3.h terracre.h toaplan2.h turbo.h twin16.h zaxxon.h
[src/mame/layout]bfm_sc4.lay
[src/mame/machine]atarigen.h bfm_bd1.c pgmprot1.c r2crypt.c sec.c steppers.c steppers.h ticket.c ticket.h
[src/mame/video]nycaptor.c tetrisp2.c tia.h
[src/osd/sdl]sdl.mak
[src/osd/windows]windows.mak

src/mame/mame.lst
r14998r14999
89688968puzlstar      // (c) 1999 Puzzle Star
89698969olds         // (c) 1999 Oriental Legend Super / Special
89708970olds100         //
8971olds100a      //
8971olds100a      //
89728972kov2         // (c) 2000 Knights of Valor 2
89738973kov2106         //
89748974kov2103         //
r14998r14999
90109010ddpdoj         // (c) 2002 DoDonPachi Dai-Ou-Jou
90119011ddpdoja         //
90129012ddpdojb         //
9013ddpdojblk      //
9013ddpdojblk      //
90149014espgal         // (c) 2003 Espgaluda
90159015
90169016// IGS PGM2 Platform
src/mame/audio/cchasm.c
r14998r14999
4040{
4141   m_sound_flags &= ~0x80;
4242   z80ctc_trg2_w(m_ctc, 0);
43   return soundlatch2_byte_r(*&space, offset);
43   return soundlatch2_byte_r(space, offset);
4444}
4545
4646WRITE8_MEMBER(cchasm_state::cchasm_soundlatch4_w)
4747{
4848   m_sound_flags |= 0x40;
49   soundlatch4_byte_w(*&space, offset, data);
49   soundlatch4_byte_w(space, offset, data);
5050   cputag_set_input_line(machine(), "maincpu", 1, HOLD_LINE);
5151}
5252
r14998r14999
6060      switch (offset & 0xf)
6161      {
6262      case 0:
63         soundlatch_byte_w(*&space, offset, data);
63         soundlatch_byte_w(space, offset, data);
6464         break;
6565      case 1:
6666         m_sound_flags |= 0x80;
67         soundlatch2_byte_w(*&space, offset, data);
67         soundlatch2_byte_w(space, offset, data);
6868         z80ctc_trg2_w(m_ctc, 1);
6969         cputag_set_input_line(machine(), "audiocpu", INPUT_LINE_NMI, PULSE_LINE);
7070         break;
r14998r14999
8080   switch (offset & 0xf)
8181   {
8282   case 0x0:
83      return soundlatch3_byte_r(*&space, offset) << 8;
83      return soundlatch3_byte_r(space, offset) << 8;
8484   case 0x1:
8585      m_sound_flags &= ~0x40;
86      return soundlatch4_byte_r(*&space,offset) << 8;
86      return soundlatch4_byte_r(space,offset) << 8;
8787   case 0x2:
8888      return (m_sound_flags| (input_port_read(machine(), "IN3") & 0x07) | 0x08) << 8;
8989   case 0x5:
src/mame/audio/midway.c
r14998r14999
107107
108108//-------------------------------------------------
109109//  write - handle an external write to one of the
110//   input latches
110//  input latches
111111//-------------------------------------------------
112112
113113WRITE8_MEMBER(midway_ssio_device::write)
r14998r14999
128128      device_reset();
129129      m_cpu->set_input_line(INPUT_LINE_RESET, ASSERT_LINE);
130130   }
131   
131
132132   // going low resets and reactivates the CPU
133133   else
134134      m_cpu->set_input_line(INPUT_LINE_RESET, CLEAR_LINE);
r14998r14999
167167
168168//-------------------------------------------------
169169//  set_custom_input - configure a custom port
170//   reader
170//  reader
171171//-------------------------------------------------
172172
173173void midway_ssio_device::set_custom_input(int which, UINT8 mask, read8_delegate handler)
r14998r14999
179179
180180//-------------------------------------------------
181181//  set_custom_output - configure a custom port
182//   writer
182//  writer
183183//-------------------------------------------------
184184
185185void midway_ssio_device::set_custom_output(int which, UINT8 mask, write8_delegate handler)
r14998r14999
191191
192192//-------------------------------------------------
193193//  compute_ay8910_modulation - precompute
194//   volume modulation tables based on the duty
195//   cycle described by the PROMs
194//  volume modulation tables based on the duty
195//  cycle described by the PROMs
196196//-------------------------------------------------
197197
198198void midway_ssio_device::compute_ay8910_modulation()
r14998r14999
201201   // AY-8910 modulation:
202202   //
203203   // Starts with a 16MHz oscillator
204   //   /2 via 7474 flip-flip @ F11
204   //  /2 via 7474 flip-flip @ F11
205205   //
206206   // This signal clocks the binary counter @ E11 which
207207   // cascades into the decade counter @ D11. This combo
r14998r14999
258258
259259//-------------------------------------------------
260260//  clock_14024 - periodic timer to clock the
261//   7-bit async counter at C12
261//  7-bit async counter at C12
262262//-------------------------------------------------
263263
264264INTERRUPT_GEN_MEMBER(midway_ssio_device::clock_14024)
r14998r14999
367367
368368//-------------------------------------------------
369369//  update_volumes - update the volumes of each
370//   AY-8910 channel based on modulation and mute
370//  AY-8910 channel based on modulation and mute
371371//-------------------------------------------------
372372
373373void midway_ssio_device::update_volumes()
r14998r14999
488488ioport_constructor midway_ssio_device::device_input_ports() const
489489{
490490   return NULL;
491//   return INPUT_PORTS_NAME( midway_ssio );
491//  return INPUT_PORTS_NAME( midway_ssio );
492492}
493493
494494
r14998r14999
564564
565565//-------------------------------------------------
566566//  write - handle an external write to the input
567//   latch
567//  latch
568568//-------------------------------------------------
569569
570570WRITE8_MEMBER(midway_chip_squeak_deluxe_device::write)
r14998r14999
779779
780780//-------------------------------------------------
781781//  write - handle an external write to the input
782//   latch
782//  latch
783783//-------------------------------------------------
784784
785785WRITE8_MEMBER(midway_sounds_good_device::write)
r14998r14999
966966
967967//-------------------------------------------------
968968//  write - handle an external write to the input
969//   latch
969//  latch
970970//-------------------------------------------------
971971
972972WRITE8_MEMBER(midway_turbo_chip_squeak_device::write)
r14998r14999
11371137
11381138//-------------------------------------------------
11391139//  write - handle an external write to the input
1140//   latch
1140//  latch
11411141//-------------------------------------------------
11421142
11431143WRITE8_MEMBER(midway_squawk_n_talk_device::write)
src/mame/audio/midway.h
r14998r14999
104104   DECLARE_WRITE_LINE_MEMBER(reset_write);
105105   DECLARE_READ8_MEMBER(ioport_read);
106106   DECLARE_WRITE8_MEMBER(ioport_write);
107   
107
108108   // configuration
109109   void set_custom_input(int which, UINT8 mask, read8_delegate handler);
110110   void set_custom_output(int which, UINT8 mask, write8_delegate handler);
src/mame/audio/aztarac.c
r14998r14999
1919   if (ACCESSING_BITS_0_7)
2020   {
2121      data &= 0xff;
22      soundlatch_byte_w(*&space, offset, data);
22      soundlatch_byte_w(space, offset, data);
2323      m_sound_status ^= 0x21;
2424      if (m_sound_status & 0x20)
2525         cputag_set_input_line(machine(), "audiocpu", 0, HOLD_LINE);
r14998r14999
3030{
3131    m_sound_status |= 0x01;
3232    m_sound_status &= ~0x20;
33    return soundlatch_byte_r(*&space,offset);
33    return soundlatch_byte_r(space,offset);
3434}
3535
3636READ8_MEMBER(aztarac_state::aztarac_snd_status_r)
src/mame/audio/williams.c
r14998r14999
111111
112112//-------------------------------------------------
113113//  write - handle an external write to the input
114//   latch
114//  latch
115115//-------------------------------------------------
116116
117117WRITE16_MEMBER(williams_cvsd_sound_device::write)
r14998r14999
162162
163163
164164//-------------------------------------------------
165//  cvsd_digit_clock_clear_w - clear the clock on
165//  cvsd_digit_clock_clear_w - clear the clock on
166166//  the HC55516 and clock the data
167167//-------------------------------------------------
168168
r14998r14999
185185
186186//-------------------------------------------------
187187//  ym2151_irq_w - process IRQ signal changes from
188//   the YM2151
188//  the YM2151
189189//-------------------------------------------------
190190
191191WRITE_LINE_MEMBER(williams_cvsd_sound_device::ym2151_irq_w)
r14998r14999
196196
197197//-------------------------------------------------
198198//  pia_irqa - process IRQ A signal changes from
199//   the 6821
199//  the 6821
200200//-------------------------------------------------
201201
202202WRITE_LINE_MEMBER(williams_cvsd_sound_device::pia_irqa)
r14998r14999
207207
208208//-------------------------------------------------
209209//  pia_irqb - process IRQ B signal changes from
210//   the 6821
210//  the 6821
211211//-------------------------------------------------
212212
213213WRITE_LINE_MEMBER(williams_cvsd_sound_device::pia_irqb)
r14998r14999
375375
376376//-------------------------------------------------
377377//  read - return the talkback register with the
378//   SYNC bits in bits 8 and 9
378//  SYNC bits in bits 8 and 9
379379//-------------------------------------------------
380380
381381READ16_MEMBER(williams_narc_sound_device::read)
r14998r14999
386386
387387//-------------------------------------------------
388388//  write - handle an external write to the input
389//   latch
389//  latch
390390//-------------------------------------------------
391391
392392WRITE16_MEMBER(williams_narc_sound_device::write)
r14998r14999
444444
445445//-------------------------------------------------
446446//  command_r - read command written by external
447//   agent
447//  agent
448448//-------------------------------------------------
449449
450450READ8_MEMBER(williams_narc_sound_device::command_r)
r14998r14999
457457
458458//-------------------------------------------------
459459//  command2_w - write command from master CPU to
460//   slave CPU
460//  slave CPU
461461//-------------------------------------------------
462462
463463WRITE8_MEMBER(williams_narc_sound_device::command2_w)
r14998r14999
468468
469469//-------------------------------------------------
470470//  command2_r - read command written by master
471//   CPU
471//  CPU
472472//-------------------------------------------------
473473
474474READ8_MEMBER(williams_narc_sound_device::command2_r)
r14998r14999
480480
481481//-------------------------------------------------
482482//  master_talkback_w - handle writes to the
483//   talkback latch from the master CPU
483//  talkback latch from the master CPU
484484//-------------------------------------------------
485485
486486WRITE8_MEMBER(williams_narc_sound_device::master_talkback_w)
r14998r14999
492492
493493//-------------------------------------------------
494494//  master_sync_w - handle writes to the master
495//   SYNC register
495//  SYNC register
496496//-------------------------------------------------
497497
498498WRITE8_MEMBER(williams_narc_sound_device::master_sync_w)
r14998r14999
505505
506506//-------------------------------------------------
507507//  slave_talkback_w - handle writes to the
508//   talkback latch from the slave CPU
508//  talkback latch from the slave CPU
509509//-------------------------------------------------
510510
511511WRITE8_MEMBER(williams_narc_sound_device::slave_talkback_w)
r14998r14999
516516
517517//-------------------------------------------------
518518//  slave_sync_w - handle writes to the slave
519//   SYNC register
519//  SYNC register
520520//-------------------------------------------------
521521
522522WRITE8_MEMBER(williams_narc_sound_device::slave_sync_w)
r14998r14999
528528
529529
530530//-------------------------------------------------
531//  cvsd_digit_clock_clear_w - clear the clock on
531//  cvsd_digit_clock_clear_w - clear the clock on
532532//  the HC55516 and clock the data
533533//-------------------------------------------------
534534
r14998r14999
551551
552552//-------------------------------------------------
553553//  ym2151_irq_w - handle line changes on the
554//   YM2151 IRQ line
554//  YM2151 IRQ line
555555//-------------------------------------------------
556556
557557WRITE_LINE_MEMBER(williams_narc_sound_device::ym2151_irq_w)
r14998r14999
720720            m_sound_int_state = 1;
721721         }
722722         break;
723     
723
724724      case TID_SLAVE_COMMAND:
725725         m_latch2 = param & 0xff;
726726         m_cpu1->set_input_line(M6809_FIRQ_LINE, ASSERT_LINE);
727727         break;
728     
728
729729      case TID_SYNC_CLEAR:
730730         m_audio_sync &= ~param;
731731         break;
r14998r14999
754754
755755//-------------------------------------------------
756756//  write - handle an external write to the input
757//   latch
757//  latch
758758//-------------------------------------------------
759759
760760WRITE16_MEMBER(williams_adpcm_sound_device::write)
r14998r14999
795795
796796//-------------------------------------------------
797797//  bank_select_w - select the sound CPU memory
798//   bank
798//  bank
799799//-------------------------------------------------
800800
801801WRITE8_MEMBER(williams_adpcm_sound_device::bank_select_w)
r14998r14999
806806
807807//-------------------------------------------------
808808//  bank_select_w - select the OKI6295 memory
809//   bank
809//  bank
810810//-------------------------------------------------
811811
812812WRITE8_MEMBER(williams_adpcm_sound_device::oki6295_bank_select_w)
r14998r14999
817817
818818//-------------------------------------------------
819819//  command_r - read the command from the external
820//   latch
820//  latch
821821//-------------------------------------------------
822822
823823READ8_MEMBER(williams_adpcm_sound_device::command_r)
r14998r14999
983983            machine().scheduler().boost_interleave(attotime::zero, attotime::from_usec(100));
984984         }
985985         break;
986     
986
987987      case TID_IRQ_CLEAR:
988988         m_sound_int_state = 0;
989989         break;
src/mame/audio/williams.h
r14998r14999
114114   // internal state
115115   UINT8 m_talkback;
116116};
117   
118117
118
119119// ======================> williams_narc_sound_device
120120
121121class williams_narc_sound_device :   public device_t,
r14998r14999
218218   UINT8 m_talkback;
219219   UINT8 m_sound_int_state;
220220};
221   
222221
222
src/mame/audio/redalert.c
r14998r14999
6565WRITE8_MEMBER(redalert_state::redalert_audio_command_w)
6666{
6767   /* the byte is connected to port A of the AY8910 */
68   soundlatch_byte_w(*&space, 0, data);
68   soundlatch_byte_w(space, 0, data);
6969
7070   /* D7 is also connected to the NMI input of the CPU -
7171       the NMI is actually toggled by a 74121 */
r14998r14999
154154
155155WRITE8_MEMBER(redalert_state::redalert_voice_command_w)
156156{
157   soundlatch2_byte_w(*&space, 0, (data & 0x78) >> 3);
157   soundlatch2_byte_w(space, 0, (data & 0x78) >> 3);
158158   cputag_set_input_line(machine(), "voice", I8085_RST75_LINE, (~data & 0x80) ? ASSERT_LINE : CLEAR_LINE);
159159}
160160
r14998r14999
281281WRITE8_MEMBER(redalert_state::demoneye_audio_command_w)
282282{
283283   /* the byte is connected to port A of the AY8910 */
284   soundlatch_byte_w(*&space, 0, data);
284   soundlatch_byte_w(space, 0, data);
285285   cputag_set_input_line(machine(), "audiocpu", INPUT_LINE_NMI, PULSE_LINE);
286286}
287287
src/mame/audio/mario.c
r14998r14999
462462
463463READ8_MEMBER(mario_state::mario_sh_p1_r)
464464{
465   return I8035_P1_R(*&space);
465   return I8035_P1_R(space);
466466}
467467
468468READ8_MEMBER(mario_state::mario_sh_p2_r)
469469{
470   return I8035_P2_R(*&space) & 0xEF; /* Bit 4 connected to GND! */
470   return I8035_P2_R(space) & 0xEF; /* Bit 4 connected to GND! */
471471}
472472
473473READ8_MEMBER(mario_state::mario_sh_t0_r)
474474{
475   return I8035_T_R(*&space, 0);
475   return I8035_T_R(space, 0);
476476}
477477
478478READ8_MEMBER(mario_state::mario_sh_t1_r)
479479{
480   return I8035_T_R(*&space, 1);
480   return I8035_T_R(space, 1);
481481}
482482
483483READ8_MEMBER(mario_state::mario_sh_tune_r)
484484{
485485   UINT8 *SND = memregion("audiocpu")->base();
486486   UINT16 mask = memregion("audiocpu")->bytes()-1;
487   UINT8 p2 = I8035_P2_R(*&space);
487   UINT8 p2 = I8035_P2_R(space);
488488
489489   if ((p2 >> 7) & 1)
490      return soundlatch_byte_r(*&space, offset);
490      return soundlatch_byte_r(space, offset);
491491   else
492492      return (SND[(0x1000 + (p2 & 0x0f) * 256 + offset) & mask]);
493493}
r14998r14999
499499
500500WRITE8_MEMBER(mario_state::mario_sh_p1_w)
501501{
502   I8035_P1_W(*&space, data);
502   I8035_P1_W(space, data);
503503}
504504
505505WRITE8_MEMBER(mario_state::mario_sh_p2_w)
506506{
507507   mario_state   *state = machine().driver_data<mario_state>();
508   I8035_P2_W(*&space, data);
508   I8035_P2_W(space, data);
509509}
510510
511511/****************************************************************
r14998r14999
528528
529529WRITE8_MEMBER(mario_state::mario_sh_tuneselect_w)
530530{
531   soundlatch_byte_w(*&space, offset, data);
531   soundlatch_byte_w(space, offset, data);
532532}
533533
534534/* Sound 0 and 1 are pulsed !*/
r14998r14999
558558            cputag_set_input_line(machine(), "audiocpu",0,CLEAR_LINE);
559559         break;
560560      case 1: /* get coin */
561         I8035_T_W_AH(*&space, 0,data & 1);
561         I8035_T_W_AH(space, 0,data & 1);
562562         break;
563563      case 2: /* ice */
564         I8035_T_W_AH(*&space, 1, data & 1);
564         I8035_T_W_AH(space, 1, data & 1);
565565         break;
566566      case 3: /* crab */
567         I8035_P1_W_AH(*&space, 0, data & 1);
567         I8035_P1_W_AH(space, 0, data & 1);
568568         break;
569569      case 4: /* turtle */
570         I8035_P1_W_AH(*&space, 1, data & 1);
570         I8035_P1_W_AH(space, 1, data & 1);
571571         break;
572572      case 5: /* fly */
573         I8035_P1_W_AH(*&space, 2, data & 1);
573         I8035_P1_W_AH(space, 2, data & 1);
574574         break;
575575      case 6: /* coin */
576         I8035_P1_W_AH(*&space, 3, data & 1);
576         I8035_P1_W_AH(space, 3, data & 1);
577577         break;
578578      case 7: /* skid */
579579         discrete_sound_w(machine().device("discrete"), DS_SOUND7_INP, data & 1);
src/mame/machine/pgmprot1.c
r14998r14999
377377DRIVER_INIT( kovshxas )
378378{
379379   pgm_basic_init(machine);
380//   pgm_kovshp_decrypt(machine);
380//  pgm_kovshp_decrypt(machine);
381381   pgm_arm7_type1_latch_init(machine);
382382   machine.device("maincpu")->memory().space(AS_PROGRAM)->install_legacy_read_handler(0x4f0008, 0x4f0009, FUNC(kovsh_fake_region_r));
383383   machine.device("maincpu")->memory().space(AS_PROGRAM)->install_legacy_write_handler(0x500000, 0x500005, FUNC(kovshp_asic27a_write_word));
src/mame/machine/ticket.c
r14998r14999
147147
148148
149149//-------------------------------------------------
150//  write - write the control line via the active
150//  write - write the control line via the active
151151//  bit
152152//-------------------------------------------------
153153
r14998r14999
227227
228228   // update LED status (fixme: should map to an output)
229229   set_led_status(machine(), 2, (m_status == m_ticketdispensed));
230   
230
231231   // if we just dispensed, increment global count
232232   if (m_status == m_ticketdispensed)
233233   {
src/mame/machine/ticket.h
r14998r14999
105105   UINT8 m_motor_sense;
106106   UINT8 m_status_sense;
107107   attotime m_period;
108   
108
109109   // active state
110110   UINT8 m_active_bit;
111111   UINT8 m_motoron;
src/mame/machine/steppers.c
r14998r14999
254254      default:
255255      logerror("No reel type specified for %x!\n",which);
256256      break;
257     
257
258258      case STARPOINT_48STEP_REEL : /* STARPOINT RMxxx */
259259      case STARPOINT_200STEP_REEL :
260      case GAMESMAN_200STEP_REEL : /* Gamesman GMxxxx */     
260      case GAMESMAN_200STEP_REEL : /* Gamesman GMxxxx */
261261      case STARPOINT_144STEP_DICE :/* STARPOINT 1DCU DICE mechanism */
262262      //Standard drive table is 2,6,4,5,1,9,8,a
263263      //NOTE: This runs through the stator patterns in such a way as to drive the reel forward (downwards from the player's view, clockwise on our rose)
r14998r14999
401401         break;
402402      }
403403      break;
404     
404
405405      case ECOIN_200STEP_REEL :
406406      //While the 48 and 100 step models appear to be reverse driven Starpoint reels, the 200 step model seems bespoke, certainly in terms of wiring.
407407      //On a Proconn machine this same pattern is seen but running in reverse
src/mame/machine/steppers.h
r14998r14999
3030#define GAMESMAN_100STEP_REEL   7
3131#define GAMESMAN_200STEP_REEL   8
3232
33#define PROJECT_48STEP_REEL     9         
33#define PROJECT_48STEP_REEL     9
3434
3535/*------------- Stepper motor interface structure -----------------*/
3636
src/mame/machine/atarigen.h
r14998r14999
188188   UINT32               m_playfield2_latch;
189189
190190   atarigen_screen_timer   m_screen_timer[2];
191   
191
192192   DECLARE_DIRECT_UPDATE_MEMBER(atarigen_slapstic_setdirect);
193193};
194194
src/mame/machine/sec.c
r14998r14999
112112      case SEC_REQUEST_FINGERPRNT: Cmd_Get_Fpr(); break;
113113      case SEC_REQUEST_LAST_CMD:   Cmd_Get_Lst(); break;
114114      case SEC_REQUEST_COUNT_VAL:  Cmd_Get_Cnt(); break;
115      case SEC_SET_NUM_COUNTERS:     Cmd_Set_Ncn(); break;
115      case SEC_SET_NUM_COUNTERS:    Cmd_Set_Ncn(); break;
116116      case SEC_SET_MARKET:       Cmd_Set_Mrk(); break;
117117      case SEC_SET_COUNTER_TXT:    Cmd_Set_Txt(); break;
118      case SEC_COUNT_INC_SMALL:     Cmd_Inc_Sml(); break;
118      case SEC_COUNT_INC_SMALL:    Cmd_Inc_Sml(); break;
119119      case SEC_COUNT_INC_MED:       Cmd_Inc_Med(); break;
120120      case SEC_COUNT_INC_LARGE:    Cmd_Inc_Lrg(); break;
121121
r14998r14999
149149   m_reply[3] = 0; // Last Error
150150
151151   m_reply[4] = CalcByteSum(1);
152   
152
153153   m_rxpos = 0;
154154   m_rxclk = 0;
155155   m_rxlen = 5;
r14998r14999
160160   m_reply[0] = SEC_DAT;
161161   m_reply[1] = m_last;
162162   m_reply[2] = 4;
163   
163
164164   // fingerprint
165165   m_reply[3] = 0x11;
166166   m_reply[4] = 0x01;
r14998r14999
168168   m_reply[6] = 0x00;
169169
170170   m_reply[7] = CalcByteSum(4);
171   
171
172172   m_rxpos = 0;
173173   m_rxclk = 0;
174174   m_rxlen = 8;
r14998r14999
179179   m_reply[0] = SEC_DAT;
180180   m_reply[1] = m_last;
181181   m_reply[2] = 4;
182   
182
183183   // Last Command (is this really 4 bytes?)
184184   m_reply[3] = m_last;
185185   m_reply[4] = 0x00;
r14998r14999
187187   m_reply[6] = 0x00;
188188
189189   m_reply[7] = CalcByteSum(4);
190   
190
191191   m_rxpos = 0;
192192   m_rxclk = 0;
193193   m_rxlen = 8;
r14998r14999
205205   m_reply[5] = 'E';
206206
207207   m_reply[6] = CalcByteSum(3);
208   
208
209209   m_rxpos = 0;
210210   m_rxclk = 0;
211211   m_rxlen = 7;
r14998r14999
215215{
216216   char temp[10];
217217
218   sprintf(temp,"%07d0", m_counters[m_request[3]]);
219         
218   sprintf(temp,"%07d0", m_counters[m_request[3]]);
219
220220   m_reply[0] = SEC_DAT;
221221   m_reply[1] = m_last;
222222   m_reply[2] = 4;
r14998r14999
227227   m_reply[6] = ((temp[6] - 0x30) << 4) + (temp[7] - 0x30);
228228
229229   m_reply[7] = CalcByteSum(4);
230   
230
231231   m_rxpos = 0;
232232   m_rxclk = 0;
233233   m_rxlen = 8;
r14998r14999
242242   m_reply[3] = 0x20; // Status
243243
244244   m_reply[4] = CalcByteSum(1);
245   
245
246246   m_rxpos = 0;
247247   m_rxclk = 0;
248248   m_rxlen = 5;
r14998r14999
257257   m_reply[3] = m_market;
258258
259259   m_reply[4] = CalcByteSum(1);
260   
260
261261   m_rxpos = 0;
262262   m_rxclk = 0;
263263   m_rxlen = 5;
r14998r14999
278278
279279void SEC::Cmd_Set_Mrk(void)
280280{
281   m_market = m_request[3];   
281   m_market = m_request[3];
282282
283283   m_reply[0] = SEC_ACK;
284284   m_reply[1] = m_last;
src/mame/machine/r2crypt.c
r14998r14999
1212    that, when combined, the total amounts of bits is lower (in raiden2 case) or equal
1313    (in zero team) to the number of bits of a 512*16 bits table (the same size than the
1414    bigger table uploaded).
15   
15
1616    The size of the tables is different for both games, which points to the hypothesis
1717    that the position of them within a 512*16 table could be configured through programming.
18    As illustration, these could be possible configurations:
18    As illustration, these could be possible configurations:
1919    (r: rotate; x5: x5; x11: x11; u: unused)
20   
20
2121    R2:
2222    |--|------|
2323    |  |  x11 |
r14998r14999
2626    |  |  |   |
2727    |  |u |x5 |
2828    |--|--|---|
29   
29
3030    ZT:
3131    |--|------|
3232    |r |      |
r14998r14999
3535    |  |      |
3636    |x5|      |
3737    |--|------|
38   
38
3939    This hypothesis has the strengh of explaining why x5 is indeed 5-bits wide instead of the
4040    much more symmetric and senseful 8-bits wide possibility (to allow configurations like
4141    the suggested one for zero team), but, of course, it should be taken just as what it is: a guess.
r14998r14999
7878};
7979
8080static const UINT8 x5_r2[256] = {
81    0x08, 0x09, 0x1f, 0x0f, 0x09, 0x09, 0x0b, 0x1d, 0x06, 0x13, 0x02, 0x15, 0x02, 0x0c, 0x0d, 0x19,
82    0x03, 0x13, 0x0c, 0x1f, 0x1a, 0x18, 0x17, 0x10, 0x0a, 0x19, 0x15, 0x04, 0x1f, 0x11, 0x1c, 0x02,
83    0x0e, 0x08, 0x06, 0x0a, 0x07, 0x1c, 0x10, 0x04, 0x11, 0x0c, 0x0a, 0x19, 0x0a, 0x04, 0x17, 0x07,
84    0x16, 0x1b, 0x1d, 0x15, 0x1d, 0x13, 0x0e, 0x03, 0x1a, 0x11, 0x14, 0x14, 0x03, 0x18, 0x07, 0x03,
85    0x08, 0x1a, 0x02, 0x0f, 0x0b, 0x11, 0x1c, 0x05, 0x19, 0x1d, 0x05, 0x01, 0x1f, 0x1c, 0x1d, 0x07,
86    0x07, 0x0c, 0x02, 0x16, 0x0e, 0x06, 0x0b, 0x07, 0x01, 0x1a, 0x09, 0x0e, 0x0e, 0x07, 0x0e, 0x15,
87    0x01, 0x16, 0x13, 0x15, 0x14, 0x07, 0x0c, 0x1f, 0x1f, 0x19, 0x17, 0x12, 0x19, 0x17, 0x0a, 0x1f,
88    0x0c, 0x16, 0x15, 0x1e, 0x05, 0x14, 0x05, 0x1c, 0x0b, 0x0d, 0x0c, 0x0a, 0x05, 0x09, 0x14, 0x02,
89    0x10, 0x02, 0x13, 0x05, 0x12, 0x17, 0x03, 0x0b, 0x1b, 0x06, 0x15, 0x0b, 0x01, 0x0b, 0x1b, 0x09,
90    0x10, 0x0a, 0x1e, 0x09, 0x08, 0x0a, 0x04, 0x13, 0x04, 0x12, 0x04, 0x0f, 0x0b, 0x0c, 0x06, 0x07,
91    0x03, 0x18, 0x00, 0x1e, 0x17, 0x00, 0x16, 0x08, 0x0d, 0x1c, 0x09, 0x07, 0x17, 0x18, 0x0b, 0x0d,
92    0x11, 0x0f, 0x14, 0x1e, 0x1a, 0x1b, 0x09, 0x15, 0x03, 0x07, 0x12, 0x16, 0x15, 0x11, 0x16, 0x1e,
93    0x14, 0x15, 0x00, 0x05, 0x15, 0x18, 0x18, 0x12, 0x18, 0x1e, 0x06, 0x06, 0x0c, 0x1a, 0x04, 0x0b,
94    0x05, 0x08, 0x04, 0x1f, 0x0c, 0x08, 0x0a, 0x1f, 0x1a, 0x16, 0x0e, 0x1e, 0x16, 0x18, 0x18, 0x05,
95    0x00, 0x1a, 0x05, 0x15, 0x19, 0x10, 0x03, 0x0e, 0x10, 0x1c, 0x0a, 0x18, 0x00, 0x16, 0x0b, 0x05,
96    0x05, 0x15, 0x11, 0x0a, 0x1c, 0x00, 0x1e, 0x1f, 0x17, 0x12, 0x0a, 0x1c, 0x07, 0x04, 0x1f, 0x1a,
81    0x08, 0x09, 0x1f, 0x0f, 0x09, 0x09, 0x0b, 0x1d, 0x06, 0x13, 0x02, 0x15, 0x02, 0x0c, 0x0d, 0x19,
82    0x03, 0x13, 0x0c, 0x1f, 0x1a, 0x18, 0x17, 0x10, 0x0a, 0x19, 0x15, 0x04, 0x1f, 0x11, 0x1c, 0x02,
83    0x0e, 0x08, 0x06, 0x0a, 0x07, 0x1c, 0x10, 0x04, 0x11, 0x0c, 0x0a, 0x19, 0x0a, 0x04, 0x17, 0x07,
84    0x16, 0x1b, 0x1d, 0x15, 0x1d, 0x13, 0x0e, 0x03, 0x1a, 0x11, 0x14, 0x14, 0x03, 0x18, 0x07, 0x03,
85    0x08, 0x1a, 0x02, 0x0f, 0x0b, 0x11, 0x1c, 0x05, 0x19, 0x1d, 0x05, 0x01, 0x1f, 0x1c, 0x1d, 0x07,
86    0x07, 0x0c, 0x02, 0x16, 0x0e, 0x06, 0x0b, 0x07, 0x01, 0x1a, 0x09, 0x0e, 0x0e, 0x07, 0x0e, 0x15,
87    0x01, 0x16, 0x13, 0x15, 0x14, 0x07, 0x0c, 0x1f, 0x1f, 0x19, 0x17, 0x12, 0x19, 0x17, 0x0a, 0x1f,
88    0x0c, 0x16, 0x15, 0x1e, 0x05, 0x14, 0x05, 0x1c, 0x0b, 0x0d, 0x0c, 0x0a, 0x05, 0x09, 0x14, 0x02,
89    0x10, 0x02, 0x13, 0x05, 0x12, 0x17, 0x03, 0x0b, 0x1b, 0x06, 0x15, 0x0b, 0x01, 0x0b, 0x1b, 0x09,
90    0x10, 0x0a, 0x1e, 0x09, 0x08, 0x0a, 0x04, 0x13, 0x04, 0x12, 0x04, 0x0f, 0x0b, 0x0c, 0x06, 0x07,
91    0x03, 0x18, 0x00, 0x1e, 0x17, 0x00, 0x16, 0x08, 0x0d, 0x1c, 0x09, 0x07, 0x17, 0x18, 0x0b, 0x0d,
92    0x11, 0x0f, 0x14, 0x1e, 0x1a, 0x1b, 0x09, 0x15, 0x03, 0x07, 0x12, 0x16, 0x15, 0x11, 0x16, 0x1e,
93    0x14, 0x15, 0x00, 0x05, 0x15, 0x18, 0x18, 0x12, 0x18, 0x1e, 0x06, 0x06, 0x0c, 0x1a, 0x04, 0x0b,
94    0x05, 0x08, 0x04, 0x1f, 0x0c, 0x08, 0x0a, 0x1f, 0x1a, 0x16, 0x0e, 0x1e, 0x16, 0x18, 0x18, 0x05,
95    0x00, 0x1a, 0x05, 0x15, 0x19, 0x10, 0x03, 0x0e, 0x10, 0x1c, 0x0a, 0x18, 0x00, 0x16, 0x0b, 0x05,
96    0x05, 0x15, 0x11, 0x0a, 0x1c, 0x00, 0x1e, 0x1f, 0x17, 0x12, 0x0a, 0x1c, 0x07, 0x04, 0x1f, 0x1a,
9797};
9898
9999static const UINT16 x11_r2[256] = {
100    0x347, 0x0f2, 0x182, 0x58f, 0x1f4, 0x42c, 0x407, 0x5f0, 0x6df, 0x2db, 0x585, 0x5fe, 0x394, 0x542, 0x3e8, 0x574,
101    0x4ea, 0x6d3, 0x6b7, 0x65b, 0x324, 0x143, 0x22a, 0x11d, 0x124, 0x365, 0x7ca, 0x3d6, 0x1d2, 0x7cd, 0x6b1, 0x4f1,
102    0x1de, 0x674, 0x685, 0x779, 0x264, 0x6d8, 0x379, 0x7ce, 0x201, 0x73b, 0x5c9, 0x025, 0x338, 0x4b2, 0x697, 0x567,
103    0x312, 0x04e, 0x78d, 0x492, 0x044, 0x203, 0x437, 0x04b, 0x729, 0x197, 0x6e2, 0x552, 0x517, 0x3c9, 0x09c, 0x3de,
104    0x2f8, 0x259, 0x1f0, 0x6ce, 0x6d6, 0x55d, 0x223, 0x65e, 0x7ca, 0x330, 0x3f7, 0x348, 0x640, 0x26d, 0x340, 0x2df,
105    0x752, 0x792, 0x5b0, 0x2fb, 0x398, 0x75c, 0x0a2, 0x524, 0x538, 0x74c, 0x1c5, 0x5a2, 0x522, 0x7c3, 0x6b3, 0x4f0,
106    0x5ac, 0x40b, 0x3e0, 0x1c8, 0x6ff, 0x291, 0x7c4, 0x47c, 0x6d9, 0x248, 0x623, 0x78d, 0x2cd, 0x356, 0x12a, 0x0bc,
107    0x582, 0x1d8, 0x1c6, 0x6eb, 0x7c2, 0x7f9, 0x650, 0x57d, 0x701, 0x7e5, 0x118, 0x1b4, 0x4ad, 0x2b8, 0x2bb, 0x765,
108    0x2d9, 0x46a, 0x020, 0x2da, 0x5e4, 0x115, 0x53c, 0x2b4, 0x16d, 0x0f7, 0x633, 0x1a6, 0x0a0, 0x3e6, 0x29d, 0x77b,
109    0x558, 0x185, 0x7b9, 0x0b1, 0x36e, 0x4d3, 0x7e2, 0x5f9, 0x3d2, 0x21e, 0x0e1, 0x2ac, 0x0fc, 0x0fc, 0x66d, 0x7b5,
110    0x4af, 0x627, 0x0f4, 0x621, 0x58f, 0x3d7, 0x1bc, 0x10a, 0x458, 0x259, 0x451, 0x770, 0x107, 0x134, 0x162, 0x32f,
111    0x5cf, 0x6c9, 0x670, 0x2d4, 0x0da, 0x739, 0x30c, 0x62f, 0x4af, 0x0e2, 0x3e3, 0x65c, 0x214, 0x066, 0x47d, 0x2f2,
112    0x729, 0x566, 0x450, 0x3f2, 0x35d, 0x593, 0x593, 0x532, 0x008, 0x270, 0x479, 0x358, 0x6f3, 0x7ed, 0x240, 0x587,
113    0x581, 0x00f, 0x750, 0x4d8, 0x1ab, 0x100, 0x47f, 0x34f, 0x497, 0x240, 0x769, 0x76f, 0x705, 0x375, 0x684, 0x273,
114    0x01f, 0x268, 0x2cc, 0x2d7, 0x5d4, 0x284, 0x40c, 0x5e8, 0x7c1, 0x281, 0x518, 0x4b0, 0x136, 0x73b, 0x3ea, 0x023,
115    0x1c1, 0x7de, 0x106, 0x275, 0x1e1, 0x503, 0x30a, 0x271, 0x4f8, 0x52b, 0x266, 0x375, 0x024, 0x399, 0x672, 0x6f8,
100    0x347, 0x0f2, 0x182, 0x58f, 0x1f4, 0x42c, 0x407, 0x5f0, 0x6df, 0x2db, 0x585, 0x5fe, 0x394, 0x542, 0x3e8, 0x574,
101    0x4ea, 0x6d3, 0x6b7, 0x65b, 0x324, 0x143, 0x22a, 0x11d, 0x124, 0x365, 0x7ca, 0x3d6, 0x1d2, 0x7cd, 0x6b1, 0x4f1,
102    0x1de, 0x674, 0x685, 0x779, 0x264, 0x6d8, 0x379, 0x7ce, 0x201, 0x73b, 0x5c9, 0x025, 0x338, 0x4b2, 0x697, 0x567,
103    0x312, 0x04e, 0x78d, 0x492, 0x044, 0x203, 0x437, 0x04b, 0x729, 0x197, 0x6e2, 0x552, 0x517, 0x3c9, 0x09c, 0x3de,
104    0x2f8, 0x259, 0x1f0, 0x6ce, 0x6d6, 0x55d, 0x223, 0x65e, 0x7ca, 0x330, 0x3f7, 0x348, 0x640, 0x26d, 0x340, 0x2df,
105    0x752, 0x792, 0x5b0, 0x2fb, 0x398, 0x75c, 0x0a2, 0x524, 0x538, 0x74c, 0x1c5, 0x5a2, 0x522, 0x7c3, 0x6b3, 0x4f0,
106    0x5ac, 0x40b, 0x3e0, 0x1c8, 0x6ff, 0x291, 0x7c4, 0x47c, 0x6d9, 0x248, 0x623, 0x78d, 0x2cd, 0x356, 0x12a, 0x0bc,
107    0x582, 0x1d8, 0x1c6, 0x6eb, 0x7c2, 0x7f9, 0x650, 0x57d, 0x701, 0x7e5, 0x118, 0x1b4, 0x4ad, 0x2b8, 0x2bb, 0x765,
108    0x2d9, 0x46a, 0x020, 0x2da, 0x5e4, 0x115, 0x53c, 0x2b4, 0x16d, 0x0f7, 0x633, 0x1a6, 0x0a0, 0x3e6, 0x29d, 0x77b,
109    0x558, 0x185, 0x7b9, 0x0b1, 0x36e, 0x4d3, 0x7e2, 0x5f9, 0x3d2, 0x21e, 0x0e1, 0x2ac, 0x0fc, 0x0fc, 0x66d, 0x7b5,
110    0x4af, 0x627, 0x0f4, 0x621, 0x58f, 0x3d7, 0x1bc, 0x10a, 0x458, 0x259, 0x451, 0x770, 0x107, 0x134, 0x162, 0x32f,
111    0x5cf, 0x6c9, 0x670, 0x2d4, 0x0da, 0x739, 0x30c, 0x62f, 0x4af, 0x0e2, 0x3e3, 0x65c, 0x214, 0x066, 0x47d, 0x2f2,
112    0x729, 0x566, 0x450, 0x3f2, 0x35d, 0x593, 0x593, 0x532, 0x008, 0x270, 0x479, 0x358, 0x6f3, 0x7ed, 0x240, 0x587,
113    0x581, 0x00f, 0x750, 0x4d8, 0x1ab, 0x100, 0x47f, 0x34f, 0x497, 0x240, 0x769, 0x76f, 0x705, 0x375, 0x684, 0x273,
114    0x01f, 0x268, 0x2cc, 0x2d7, 0x5d4, 0x284, 0x40c, 0x5e8, 0x7c1, 0x281, 0x518, 0x4b0, 0x136, 0x73b, 0x3ea, 0x023,
115    0x1c1, 0x7de, 0x106, 0x275, 0x1e1, 0x503, 0x30a, 0x271, 0x4f8, 0x52b, 0x266, 0x375, 0x024, 0x399, 0x672, 0x6f8,
116116};
117117
118118static const UINT8 rotate_zt[256] = {
r14998r14999
135135};
136136
137137static const UINT8 x5_zt[256] = {
138    0x0d, 0x14, 0x13, 0x1b, 0x1a, 0x05, 0x1a, 0x05, 0x1b, 0x17, 0x0d, 0x0f, 0x00, 0x17, 0x09, 0x04,
139    0x13, 0x0f, 0x14, 0x17, 0x14, 0x0f, 0x1b, 0x0a, 0x0a, 0x15, 0x07, 0x0b, 0x0e, 0x05, 0x18, 0x12,
140    0x1c, 0x01, 0x17, 0x02, 0x04, 0x00, 0x06, 0x12, 0x00, 0x0a, 0x1c, 0x19, 0x10, 0x1b, 0x16, 0x03,
141    0x1c, 0x13, 0x16, 0x13, 0x15, 0x1d, 0x04, 0x14, 0x17, 0x1d, 0x01, 0x03, 0x1f, 0x1f, 0x1a, 0x10,
142    0x08, 0x0c, 0x09, 0x16, 0x04, 0x19, 0x03, 0x14, 0x0c, 0x1d, 0x09, 0x08, 0x00, 0x1c, 0x0b, 0x18,
143    0x1b, 0x00, 0x16, 0x0f, 0x0b, 0x1c, 0x0d, 0x16, 0x09, 0x15, 0x0c, 0x01, 0x18, 0x04, 0x04, 0x03,
144    0x11, 0x0f, 0x03, 0x17, 0x04, 0x0a, 0x05, 0x1b, 0x08, 0x07, 0x0e, 0x08, 0x06, 0x16, 0x0f, 0x0d,
145    0x0a, 0x14, 0x0a, 0x11, 0x14, 0x02, 0x08, 0x1f, 0x0e, 0x13, 0x0e, 0x02, 0x08, 0x13, 0x04, 0x19,
146    0x0e, 0x00, 0x01, 0x1d, 0x02, 0x19, 0x08, 0x1c, 0x13, 0x09, 0x11, 0x14, 0x1e, 0x04, 0x03, 0x18,
147    0x1f, 0x05, 0x0f, 0x03, 0x09, 0x0d, 0x12, 0x0f, 0x0d, 0x0e, 0x15, 0x1a, 0x17, 0x1c, 0x1d, 0x10,
148    0x15, 0x00, 0x18, 0x18, 0x00, 0x08, 0x08, 0x01, 0x0d, 0x10, 0x14, 0x12, 0x03, 0x1c, 0x05, 0x0a,
149    0x0f, 0x0d, 0x15, 0x00, 0x0b, 0x1f, 0x00, 0x1d, 0x1d, 0x1a, 0x13, 0x16, 0x08, 0x1b, 0x03, 0x12,
150    0x02, 0x10, 0x0e, 0x10, 0x04, 0x05, 0x09, 0x07, 0x1d, 0x04, 0x05, 0x06, 0x17, 0x05, 0x1a, 0x04,
151    0x1f, 0x0e, 0x09, 0x13, 0x15, 0x12, 0x1c, 0x13, 0x03, 0x09, 0x12, 0x08, 0x19, 0x17, 0x00, 0x19,
152    0x1f, 0x06, 0x1c, 0x05, 0x18, 0x0a, 0x1f, 0x1e, 0x0d, 0x05, 0x1e, 0x1a, 0x11, 0x13, 0x15, 0x0c,
153    0x05, 0x16, 0x11, 0x06, 0x12, 0x0c, 0x0c, 0x0f, 0x1c, 0x18, 0x08, 0x1e, 0x1c, 0x16, 0x15, 0x03,
138    0x0d, 0x14, 0x13, 0x1b, 0x1a, 0x05, 0x1a, 0x05, 0x1b, 0x17, 0x0d, 0x0f, 0x00, 0x17, 0x09, 0x04,
139    0x13, 0x0f, 0x14, 0x17, 0x14, 0x0f, 0x1b, 0x0a, 0x0a, 0x15, 0x07, 0x0b, 0x0e, 0x05, 0x18, 0x12,
140    0x1c, 0x01, 0x17, 0x02, 0x04, 0x00, 0x06, 0x12, 0x00, 0x0a, 0x1c, 0x19, 0x10, 0x1b, 0x16, 0x03,
141    0x1c, 0x13, 0x16, 0x13, 0x15, 0x1d, 0x04, 0x14, 0x17, 0x1d, 0x01, 0x03, 0x1f, 0x1f, 0x1a, 0x10,
142    0x08, 0x0c, 0x09, 0x16, 0x04, 0x19, 0x03, 0x14, 0x0c, 0x1d, 0x09, 0x08, 0x00, 0x1c, 0x0b, 0x18,
143    0x1b, 0x00, 0x16, 0x0f, 0x0b, 0x1c, 0x0d, 0x16, 0x09, 0x15, 0x0c, 0x01, 0x18, 0x04, 0x04, 0x03,
144    0x11, 0x0f, 0x03, 0x17, 0x04, 0x0a, 0x05, 0x1b, 0x08, 0x07, 0x0e, 0x08, 0x06, 0x16, 0x0f, 0x0d,
145    0x0a, 0x14, 0x0a, 0x11, 0x14, 0x02, 0x08, 0x1f, 0x0e, 0x13, 0x0e, 0x02, 0x08, 0x13, 0x04, 0x19,
146    0x0e, 0x00, 0x01, 0x1d, 0x02, 0x19, 0x08, 0x1c, 0x13, 0x09, 0x11, 0x14, 0x1e, 0x04, 0x03, 0x18,
147    0x1f, 0x05, 0x0f, 0x03, 0x09, 0x0d, 0x12, 0x0f, 0x0d, 0x0e, 0x15, 0x1a, 0x17, 0x1c, 0x1d, 0x10,
148    0x15, 0x00, 0x18, 0x18, 0x00, 0x08, 0x08, 0x01, 0x0d, 0x10, 0x14, 0x12, 0x03, 0x1c, 0x05, 0x0a,
149    0x0f, 0x0d, 0x15, 0x00, 0x0b, 0x1f, 0x00, 0x1d, 0x1d, 0x1a, 0x13, 0x16, 0x08, 0x1b, 0x03, 0x12,
150    0x02, 0x10, 0x0e, 0x10, 0x04, 0x05, 0x09, 0x07, 0x1d, 0x04, 0x05, 0x06, 0x17, 0x05, 0x1a, 0x04,
151    0x1f, 0x0e, 0x09, 0x13, 0x15, 0x12, 0x1c, 0x13, 0x03, 0x09, 0x12, 0x08, 0x19, 0x17, 0x00, 0x19,
152    0x1f, 0x06, 0x1c, 0x05, 0x18, 0x0a, 0x1f, 0x1e, 0x0d, 0x05, 0x1e, 0x1a, 0x11, 0x13, 0x15, 0x0c,
153    0x05, 0x16, 0x11, 0x06, 0x12, 0x0c, 0x0c, 0x0f, 0x1c, 0x18, 0x08, 0x1e, 0x1c, 0x16, 0x15, 0x03,
154154};
155155
156156static const UINT16 x11_zt[512] = {
157    0x7e9, 0x625, 0x625, 0x006, 0x006, 0x14a, 0x14a, 0x7e9, 0x657, 0x417, 0x417, 0x1a7, 0x1a7, 0x22f, 0x22f, 0x657,
158    0x37e, 0x447, 0x447, 0x117, 0x117, 0x735, 0x735, 0x37e, 0x3be, 0x487, 0x487, 0x724, 0x724, 0x6e3, 0x6e3, 0x3be,
159    0x646, 0x035, 0x035, 0x57e, 0x57e, 0x134, 0x134, 0x646, 0x09a, 0x4d1, 0x4d1, 0x511, 0x511, 0x5d5, 0x5d5, 0x09a,
160    0x3e2, 0x5c6, 0x5c6, 0x3b6, 0x3b6, 0x354, 0x354, 0x3e2, 0x6e3, 0x7d6, 0x7d6, 0x317, 0x317, 0x1f0, 0x1f0, 0x6e3,
161    0x115, 0x462, 0x462, 0x620, 0x620, 0x0ce, 0x0ce, 0x115, 0x715, 0x7ec, 0x7ec, 0x1e6, 0x1e6, 0x610, 0x610, 0x715,
162    0x34a, 0x718, 0x718, 0x7ba, 0x7ba, 0x288, 0x288, 0x34a, 0x6e7, 0x193, 0x193, 0x3d2, 0x3d2, 0x78f, 0x78f, 0x6e7,
163    0x57c, 0x014, 0x014, 0x6b3, 0x6b3, 0x204, 0x204, 0x57c, 0x3f4, 0x782, 0x782, 0x5b4, 0x5b4, 0x375, 0x375, 0x3f4,
164    0x17d, 0x660, 0x660, 0x48d, 0x48d, 0x7ff, 0x7ff, 0x17d, 0x5b1, 0x39d, 0x39d, 0x48c, 0x48c, 0x5ab, 0x5ab, 0x5b1,
165    0x3d3, 0x4f6, 0x4f6, 0x7b9, 0x7b9, 0x5df, 0x5df, 0x3d3, 0x349, 0x4c5, 0x4c5, 0x403, 0x403, 0x0ab, 0x0ab, 0x349,
166    0x46b, 0x790, 0x790, 0x59f, 0x59f, 0x2b1, 0x2b1, 0x46b, 0x6c5, 0x4e7, 0x4e7, 0x023, 0x023, 0x0b0, 0x0b0, 0x6c5,
167    0x2d6, 0x3e2, 0x3e2, 0x7f3, 0x7f3, 0x376, 0x376, 0x2d6, 0x2d7, 0x0bf, 0x0bf, 0x14b, 0x14b, 0x65b, 0x65b, 0x2d7,
168    0x68d, 0x360, 0x360, 0x434, 0x434, 0x5fa, 0x5fa, 0x68d, 0x654, 0x386, 0x386, 0x28b, 0x28b, 0x2e1, 0x2e1, 0x654,
169    0x1ee, 0x4e8, 0x4e8, 0x482, 0x482, 0x471, 0x471, 0x1ee, 0x221, 0x3de, 0x3de, 0x467, 0x467, 0x21b, 0x21b, 0x221,
170    0x7a6, 0x6b6, 0x6b6, 0x157, 0x157, 0x658, 0x658, 0x7a6, 0x1e9, 0x6e3, 0x6e3, 0x340, 0x340, 0x2cd, 0x2cd, 0x1e9,
171    0x045, 0x566, 0x566, 0x1f0, 0x1f0, 0x5a1, 0x5a1, 0x045, 0x559, 0x0d4, 0x0d4, 0x67c, 0x67c, 0x21a, 0x21a, 0x559,
172    0x187, 0x13b, 0x13b, 0x68e, 0x68e, 0x0f6, 0x0f6, 0x187, 0x2b5, 0x4c2, 0x4c2, 0x2b6, 0x2b6, 0x6a4, 0x6a4, 0x2b5,
173    0x56b, 0x1b2, 0x1b2, 0x15d, 0x15d, 0x3aa, 0x3aa, 0x56b, 0x506, 0x67a, 0x67a, 0x5db, 0x5db, 0x5ef, 0x5ef, 0x506,
174    0x5ab, 0x3ed, 0x3ed, 0x2b3, 0x2b3, 0x504, 0x504, 0x5ab, 0x137, 0x761, 0x761, 0x735, 0x735, 0x6e9, 0x6e9, 0x137,
175    0x35a, 0x7bb, 0x7bb, 0x190, 0x190, 0x0a8, 0x0a8, 0x35a, 0x797, 0x164, 0x164, 0x1b8, 0x1b8, 0x761, 0x761, 0x797,
176    0x138, 0x076, 0x076, 0x613, 0x613, 0x055, 0x055, 0x138, 0x2e2, 0x493, 0x493, 0x0c2, 0x0c2, 0x785, 0x785, 0x2e2,
177    0x60b, 0x41a, 0x41a, 0x22a, 0x22a, 0x2a1, 0x2a1, 0x60b, 0x5cb, 0x092, 0x092, 0x656, 0x656, 0x5db, 0x5db, 0x5cb,
178    0x00a, 0x490, 0x490, 0x39d, 0x39d, 0x572, 0x572, 0x00a, 0x600, 0x4cd, 0x4cd, 0x33f, 0x33f, 0x0bc, 0x0bc, 0x600,
179    0x047, 0x685, 0x685, 0x4b0, 0x4b0, 0x330, 0x330, 0x047, 0x7b4, 0x590, 0x590, 0x1db, 0x1db, 0x349, 0x349, 0x7b4,
180    0x6ae, 0x7a3, 0x7a3, 0x6fa, 0x6fa, 0x2d4, 0x2d4, 0x6ae, 0x117, 0x2fe, 0x2fe, 0x756, 0x756, 0x627, 0x627, 0x117,
181    0x337, 0x55e, 0x55e, 0x2ef, 0x2ef, 0x2a9, 0x2a9, 0x337, 0x382, 0x02a, 0x02a, 0x4af, 0x4af, 0x7fa, 0x7fa, 0x382,
182    0x73f, 0x6d8, 0x6d8, 0x7d2, 0x7d2, 0x52d, 0x52d, 0x73f, 0x385, 0x303, 0x303, 0x3eb, 0x3eb, 0x689, 0x689, 0x385,
183    0x6cd, 0x4c3, 0x4c3, 0x2df, 0x2df, 0x1d5, 0x1d5, 0x6cd, 0x7da, 0x44c, 0x44c, 0x764, 0x764, 0x7f6, 0x7f6, 0x7da,
184    0x7c1, 0x276, 0x276, 0x27f, 0x27f, 0x1c9, 0x1c9, 0x7c1, 0x58c, 0x001, 0x001, 0x07f, 0x07f, 0x62b, 0x62b, 0x58c,
185    0x374, 0x746, 0x746, 0x5b2, 0x5b2, 0x35e, 0x35e, 0x374, 0x64d, 0x1fd, 0x1fd, 0x2dc, 0x2dc, 0x550, 0x550, 0x64d,
186    0x33d, 0x40c, 0x40c, 0x3a4, 0x3a4, 0x293, 0x293, 0x33d, 0x0c0, 0x462, 0x462, 0x6fb, 0x6fb, 0x4b0, 0x4b0, 0x0c0,
187    0x2aa, 0x175, 0x175, 0x01e, 0x01e, 0x762, 0x762, 0x2aa, 0x216, 0x76b, 0x76b, 0x728, 0x728, 0x15f, 0x15f, 0x216,
188    0x30e, 0x0d8, 0x0d8, 0x55c, 0x55c, 0x31c, 0x31c, 0x30e, 0x351, 0x3dc, 0x3dc, 0x6c1, 0x6c1, 0x651, 0x651, 0x351,
157    0x7e9, 0x625, 0x625, 0x006, 0x006, 0x14a, 0x14a, 0x7e9, 0x657, 0x417, 0x417, 0x1a7, 0x1a7, 0x22f, 0x22f, 0x657,
158    0x37e, 0x447, 0x447, 0x117, 0x117, 0x735, 0x735, 0x37e, 0x3be, 0x487, 0x487, 0x724, 0x724, 0x6e3, 0x6e3, 0x3be,
159    0x646, 0x035, 0x035, 0x57e, 0x57e, 0x134, 0x134, 0x646, 0x09a, 0x4d1, 0x4d1, 0x511, 0x511, 0x5d5, 0x5d5, 0x09a,
160    0x3e2, 0x5c6, 0x5c6, 0x3b6, 0x3b6, 0x354, 0x354, 0x3e2, 0x6e3, 0x7d6, 0x7d6, 0x317, 0x317, 0x1f0, 0x1f0, 0x6e3,
161    0x115, 0x462, 0x462, 0x620, 0x620, 0x0ce, 0x0ce, 0x115, 0x715, 0x7ec, 0x7ec, 0x1e6, 0x1e6, 0x610, 0x610, 0x715,
162    0x34a, 0x718, 0x718, 0x7ba, 0x7ba, 0x288, 0x288, 0x34a, 0x6e7, 0x193, 0x193, 0x3d2, 0x3d2, 0x78f, 0x78f, 0x6e7,
163    0x57c, 0x014, 0x014, 0x6b3, 0x6b3, 0x204, 0x204, 0x57c, 0x3f4, 0x782, 0x782, 0x5b4, 0x5b4, 0x375, 0x375, 0x3f4,
164    0x17d, 0x660, 0x660, 0x48d, 0x48d, 0x7ff, 0x7ff, 0x17d, 0x5b1, 0x39d, 0x39d, 0x48c, 0x48c, 0x5ab, 0x5ab, 0x5b1,
165    0x3d3, 0x4f6, 0x4f6, 0x7b9, 0x7b9, 0x5df, 0x5df, 0x3d3, 0x349, 0x4c5, 0x4c5, 0x403, 0x403, 0x0ab, 0x0ab, 0x349,
166    0x46b, 0x790, 0x790, 0x59f, 0x59f, 0x2b1, 0x2b1, 0x46b, 0x6c5, 0x4e7, 0x4e7, 0x023, 0x023, 0x0b0, 0x0b0, 0x6c5,
167    0x2d6, 0x3e2, 0x3e2, 0x7f3, 0x7f3, 0x376, 0x376, 0x2d6, 0x2d7, 0x0bf, 0x0bf, 0x14b, 0x14b, 0x65b, 0x65b, 0x2d7,
168    0x68d, 0x360, 0x360, 0x434, 0x434, 0x5fa, 0x5fa, 0x68d, 0x654, 0x386, 0x386, 0x28b, 0x28b, 0x2e1, 0x2e1, 0x654,
169    0x1ee, 0x4e8, 0x4e8, 0x482, 0x482, 0x471, 0x471, 0x1ee, 0x221, 0x3de, 0x3de, 0x467, 0x467, 0x21b, 0x21b, 0x221,
170    0x7a6, 0x6b6, 0x6b6, 0x157, 0x157, 0x658, 0x658, 0x7a6, 0x1e9, 0x6e3, 0x6e3, 0x340, 0x340, 0x2cd, 0x2cd, 0x1e9,
171    0x045, 0x566, 0x566, 0x1f0, 0x1f0, 0x5a1, 0x5a1, 0x045, 0x559, 0x0d4, 0x0d4, 0x67c, 0x67c, 0x21a, 0x21a, 0x559,
172    0x187, 0x13b, 0x13b, 0x68e, 0x68e, 0x0f6, 0x0f6, 0x187, 0x2b5, 0x4c2, 0x4c2, 0x2b6, 0x2b6, 0x6a4, 0x6a4, 0x2b5,
173    0x56b, 0x1b2, 0x1b2, 0x15d, 0x15d, 0x3aa, 0x3aa, 0x56b, 0x506, 0x67a, 0x67a, 0x5db, 0x5db, 0x5ef, 0x5ef, 0x506,
174    0x5ab, 0x3ed, 0x3ed, 0x2b3, 0x2b3, 0x504, 0x504, 0x5ab, 0x137, 0x761, 0x761, 0x735, 0x735, 0x6e9, 0x6e9, 0x137,
175    0x35a, 0x7bb, 0x7bb, 0x190, 0x190, 0x0a8, 0x0a8, 0x35a, 0x797, 0x164, 0x164, 0x1b8, 0x1b8, 0x761, 0x761, 0x797,
176    0x138, 0x076, 0x076, 0x613, 0x613, 0x055, 0x055, 0x138, 0x2e2, 0x493, 0x493, 0x0c2, 0x0c2, 0x785, 0x785, 0x2e2,
177    0x60b, 0x41a, 0x41a, 0x22a, 0x22a, 0x2a1, 0x2a1, 0x60b, 0x5cb, 0x092, 0x092, 0x656, 0x656, 0x5db, 0x5db, 0x5cb,
178    0x00a, 0x490, 0x490, 0x39d, 0x39d, 0x572, 0x572, 0x00a, 0x600, 0x4cd, 0x4cd, 0x33f, 0x33f, 0x0bc, 0x0bc, 0x600,
179    0x047, 0x685, 0x685, 0x4b0, 0x4b0, 0x330, 0x330, 0x047, 0x7b4, 0x590, 0x590, 0x1db, 0x1db, 0x349, 0x349, 0x7b4,
180    0x6ae, 0x7a3, 0x7a3, 0x6fa, 0x6fa, 0x2d4, 0x2d4, 0x6ae, 0x117, 0x2fe, 0x2fe, 0x756, 0x756, 0x627, 0x627, 0x117,
181    0x337, 0x55e, 0x55e, 0x2ef, 0x2ef, 0x2a9, 0x2a9, 0x337, 0x382, 0x02a, 0x02a, 0x4af, 0x4af, 0x7fa, 0x7fa, 0x382,
182    0x73f, 0x6d8, 0x6d8, 0x7d2, 0x7d2, 0x52d, 0x52d, 0x73f, 0x385, 0x303, 0x303, 0x3eb, 0x3eb, 0x689, 0x689, 0x385,
183    0x6cd, 0x4c3, 0x4c3, 0x2df, 0x2df, 0x1d5, 0x1d5, 0x6cd, 0x7da, 0x44c, 0x44c, 0x764, 0x764, 0x7f6, 0x7f6, 0x7da,
184    0x7c1, 0x276, 0x276, 0x27f, 0x27f, 0x1c9, 0x1c9, 0x7c1, 0x58c, 0x001, 0x001, 0x07f, 0x07f, 0x62b, 0x62b, 0x58c,
185    0x374, 0x746, 0x746, 0x5b2, 0x5b2, 0x35e, 0x35e, 0x374, 0x64d, 0x1fd, 0x1fd, 0x2dc, 0x2dc, 0x550, 0x550, 0x64d,
186    0x33d, 0x40c, 0x40c, 0x3a4, 0x3a4, 0x293, 0x293, 0x33d, 0x0c0, 0x462, 0x462, 0x6fb, 0x6fb, 0x4b0, 0x4b0, 0x0c0,
187    0x2aa, 0x175, 0x175, 0x01e, 0x01e, 0x762, 0x762, 0x2aa, 0x216, 0x76b, 0x76b, 0x728, 0x728, 0x15f, 0x15f, 0x216,
188    0x30e, 0x0d8, 0x0d8, 0x55c, 0x55c, 0x31c, 0x31c, 0x30e, 0x351, 0x3dc, 0x3dc, 0x6c1, 0x6c1, 0x651, 0x651, 0x351,
189189};
190190
191191
r14998r14999
221221void raiden2_decrypt_sprites(running_machine &machine)
222222{
223223    UINT32 *data = (UINT32 *)machine.root_device().memregion("gfx3")->base();
224    for(int i=0; i<0x800000/4; i++)
224    for(int i=0; i<0x800000/4; i++)
225225    {
226226        data[i] = core_decrypt(data[i],
227227            (i&0xff) ^ BIT(i,15) ^ (BIT(i,20)<<8),
r14998r14999
241241void zeroteam_decrypt_sprites(running_machine &machine)
242242{
243243    UINT32 *data = (UINT32 *)machine.root_device().memregion("gfx3")->base();
244    for(int i=0; i<0x400000/4; i++)
244    for(int i=0; i<0x400000/4; i++)
245245    {
246246        data[i] = core_decrypt(data[i],
247247            i & 0xff,
src/mame/machine/bfm_bd1.c
r14998r14999
287287         break;
288288         case 0x01:   // blank inside window
289289         break;
290
290
291291         case 0x02:   // blank outside window
292292         break;
293293
r14998r14999
415415            bd1[id].blank_flag = 0;
416416         }
417417      }
418      else
418      else
419419      {
420         
420
421421         if (data > 0x3F)
422422         {
423         //   logerror("Undefined character %x \n", data);
423         //  logerror("Undefined character %x \n", data);
424424         }
425425         change = BD1_setdata(id, BD1charset[data & 0x3F], data);
426426      }
src/mame/includes/nmk16.h
r14998r14999
2121   optional_shared_ptr<UINT16> m_nmk_txvideoram;
2222   required_shared_ptr<UINT16> m_mainram;
2323   optional_shared_ptr<UINT16> m_gunnail_scrollram;
24   optional_shared_ptr<UINT8> m_spriteram;   
24   optional_shared_ptr<UINT8> m_spriteram;
2525   optional_shared_ptr<UINT16> m_nmk_fgvideoram;
2626   optional_shared_ptr<UINT16> m_gunnail_scrollramy;
2727   optional_shared_ptr<UINT16> m_nmk_bgvideoram1;
src/mame/includes/rungun.h
r14998r14999
1111      : driver_device(mconfig, type, tag) ,
1212      m_sysreg(*this, "sysreg"),
1313      m_936_videoram(*this, "936_videoram"){ }
14   
14
1515   /* memory pointers */
1616   required_shared_ptr<UINT16> m_sysreg;
1717   required_shared_ptr<UINT16> m_936_videoram;
src/mame/includes/midyunit.h
r14998r14999
4141   optional_device<williams_narc_sound_device> m_narc_sound;
4242   optional_device<williams_cvsd_sound_device> m_cvsd_sound;
4343   optional_device<williams_adpcm_sound_device> m_adpcm_sound;
44   
44
4545   UINT16 *m_cmos_ram;
4646   UINT32 m_cmos_page;
4747   optional_shared_ptr<UINT8> m_gfx_rom;
src/mame/includes/midtunit.h
r14998r14999
1919   required_shared_ptr<UINT16>   m_nvram;
2020   optional_device<williams_cvsd_sound_device> m_cvsd_sound;
2121   optional_device<williams_adpcm_sound_device> m_adpcm_sound;
22   
22
2323   DECLARE_WRITE16_MEMBER(midtunit_cmos_enable_w);
2424   DECLARE_WRITE16_MEMBER(midtunit_cmos_w);
2525   DECLARE_READ16_MEMBER(midtunit_cmos_r);
src/mame/includes/balsente.h
r14998r14999
4545      m_shrike_shared(*this, "shrike_shared"){ }
4646
4747   required_device<timer_device> m_scanline_timer;
48     
48
4949   /* global data */
5050   UINT8 m_shooter;
5151   UINT8 m_shooter_x;
r14998r14999
124124   UINT8 *m_sprite_bank[2];
125125
126126   UINT8 m_palettebank_vis;
127   
127
128128   required_shared_ptr<UINT8> m_spriteram;
129   required_shared_ptr<UINT8> m_videoram;   
129   required_shared_ptr<UINT8> m_videoram;
130130   optional_shared_ptr<UINT16> m_shrike_io;
131131   optional_shared_ptr<UINT16> m_shrike_shared;
132132
src/mame/includes/terracre.h
r14998r14999
1010   required_shared_ptr<UINT16> m_spriteram;
1111   required_shared_ptr<UINT16> m_amazon_videoram;
1212   required_shared_ptr<UINT16> m_videoram;
13   
13
1414   const UINT16 *m_mpProtData;
1515   UINT8 m_mAmazonProtCmd;
1616   UINT8 m_mAmazonProtReg[6];
src/mame/includes/amiga.h
r14998r14999
427427   UINT16 m_aga_sprdatb[8][4];
428428   int m_aga_sprite_fetched_words;
429429   int m_aga_sprite_dma_used_words[8];
430   
430
431431   DECLARE_CUSTOM_INPUT_MEMBER( amiga_joystick_convert );
432432};
433433
src/mame/includes/argus.h
r14998r14999
2020   required_shared_ptr<UINT8> m_paletteram;
2121   optional_shared_ptr<UINT8> m_txram;
2222   optional_shared_ptr<UINT8> m_bg1ram;
23   required_shared_ptr<UINT8> m_spriteram;   
23   required_shared_ptr<UINT8> m_spriteram;
2424   optional_shared_ptr<UINT8> m_butasan_bg1ram;
25   
25
2626   UINT8 *m_dummy_bg0ram;
2727   UINT8 *m_butasan_txram;
2828   UINT8 *m_butasan_bg0ram;
src/mame/includes/zaxxon.h
r14998r14999
1616   required_shared_ptr<UINT8> m_videoram;
1717   optional_shared_ptr<UINT8> m_spriteram;
1818   optional_shared_ptr<UINT8> m_colorram;
19   
19
2020   UINT8 m_int_enabled;
2121   UINT8 m_coin_status[3];
2222   UINT8 m_coin_enable[3];
src/mame/includes/cclimber.h
r14998r14999
2828   optional_shared_ptr<UINT8> m_swimmer_background_color;
2929   optional_shared_ptr<UINT8> m_toprollr_bg_videoram;
3030   optional_shared_ptr<UINT8> m_toprollr_bg_coloram;
31   
31
3232   UINT8 m_yamato_p0;
3333   UINT8 m_yamato_p1;
3434   UINT8 m_toprollr_rombank;
src/mame/includes/kaneko16.h
r14998r14999
9999   optional_shared_ptr<UINT16> m_layers_1_regs;
100100   optional_shared_ptr<UINT16> m_mcu_ram;
101101   optional_shared_ptr<UINT16> m_mainram;
102   
102
103103   UINT8 m_nvram_save[128];
104104   int m_sprite_type;
105105   int m_sprite_fliptype;
r14998r14999
110110   struct tempsprite *m_first_sprite;
111111   kaneko16_priority_t m_priority;
112112   optional_shared_ptr<UINT16> m_galsnew_bg_pixram;
113   optional_shared_ptr<UINT16> m_galsnew_fg_pixram;   
113   optional_shared_ptr<UINT16> m_galsnew_fg_pixram;
114114   calc1_hit_t m_hit;
115115   calc3_hit_t m_hit3;
116116   calc3_t m_calc3;
src/mame/includes/btime.h
r14998r14999
2323   optional_shared_ptr<UINT8> m_zoar_scrollram;
2424   optional_shared_ptr<UINT8> m_lnc_charbank;
2525   optional_shared_ptr<UINT8> m_deco_charram;
26   optional_shared_ptr<UINT8> m_spriteram;      // used by disco
26   optional_shared_ptr<UINT8> m_spriteram;    // used by disco
2727//  UINT8 *  m_decrypted;
2828   optional_shared_ptr<UINT8> m_audio_rambase;
2929
src/mame/includes/galaxian.h
r14998r14999
4242
4343   required_shared_ptr<UINT8> m_spriteram;
4444   required_shared_ptr<UINT8> m_videoram;
45   
45
4646   int m_bullets_base;
4747   int m_numspritegens;
4848   int m_counter_74ls161[2];
src/mame/includes/model2.h
r14998r14999
3131   required_shared_ptr<UINT32> m_lumaram;
3232   optional_shared_ptr<UINT16> m_soundram;
3333   optional_shared_ptr<UINT32> m_tgp_program;
34   
34
3535   UINT32 m_intreq;
3636   UINT32 m_intena;
3737   UINT32 m_coproctl;
src/mame/includes/st0016.h
r14998r14999
99
1010   int mux_port;
1111   UINT32 m_st0016_rom_bank;
12   
12
1313   required_device<cpu_device> m_maincpu;
1414   DECLARE_READ8_MEMBER(mux_r);
1515   DECLARE_WRITE8_MEMBER(mux_select_w);
src/mame/includes/toaplan2.h
r14998r14999
3030   gp9001vdp_device* m_vdp1;
3131
3232   optional_shared_ptr<UINT8> m_shared_ram; // 8 bit RAM shared between 68K and sound CPU
33   optional_shared_ptr<UINT16> m_shared_ram16;    // Really 8 bit RAM connected to Z180
33   optional_shared_ptr<UINT16> m_shared_ram16;    // Really 8 bit RAM connected to Z180
3434
3535   device_t *m_main_cpu;
3636   device_t *m_sub_cpu;
src/mame/includes/namcos22.h
r14998r14999
122122   UINT8 *m_dirtypal;
123123   bitmap_ind16 *m_mix_bitmap;
124124   tilemap_t *m_bgtilemap;
125   
125
126126   DECLARE_READ32_MEMBER(namcos22_gamma_r);
127127   DECLARE_WRITE32_MEMBER(namcos22_gamma_w);
128128   DECLARE_WRITE32_MEMBER(namcos22s_czram_w);
src/mame/includes/turbo.h
r14998r14999
2828   UINT8 *      m_buckrog_bitmap_ram;
2929
3030   /* machine states */
31   UINT8       m_i8279_scanlines;
31   UINT8      m_i8279_scanlines;
3232
3333   /* sound state */
3434   UINT8      m_turbo_osel;
r14998r14999
7272   UINT8      m_buckrog_command;
7373   UINT8      m_buckrog_myship;
7474   int m_last_sound_a;
75   
75
7676   DECLARE_WRITE8_MEMBER(scanlines_w);
7777   DECLARE_WRITE8_MEMBER(digit_w);
7878   DECLARE_READ8_MEMBER(turbo_collision_r);
src/mame/includes/bfm_sc45.h
r14998r14999
3030   UINT8 vfd_ser_value;
3131   int vfd_ser_count;
3232
33   const stepper_interface **m_reel_setup;
33   const stepper_interface **m_reel_setup;
3434   int m_reel_changed;
3535   int m_reels;
3636   int m_reel12_latch;
src/mame/includes/galaga.h
r14998r14999
1717   optional_shared_ptr<UINT8> m_galaga_ram1;
1818   optional_shared_ptr<UINT8> m_galaga_ram2;
1919   optional_shared_ptr<UINT8> m_galaga_ram3;
20   optional_shared_ptr<UINT8> m_galaga_starcontrol;    // 6 addresses
20   optional_shared_ptr<UINT8> m_galaga_starcontrol;   // 6 addresses
2121   emu_timer *m_cpu3_interrupt_timer;
2222   UINT8 m_custom_mod;
2323
src/mame/includes/lasso.h
r14998r14999
2424   required_shared_ptr<UINT8> m_spriteram;
2525   required_shared_ptr<UINT8> m_back_color;
2626   optional_shared_ptr<UINT8> m_chip_data;
27   optional_shared_ptr<UINT8> m_bitmap_ram;      /* 0x2000 bytes for a 256 x 256 x 1 bitmap */
27   optional_shared_ptr<UINT8> m_bitmap_ram;   /* 0x2000 bytes for a 256 x 256 x 1 bitmap */
2828   optional_shared_ptr<UINT8> m_last_colors;
2929   optional_shared_ptr<UINT8> m_track_scroll;
3030
src/mame/includes/splash.h
r14998r14999
1616   required_shared_ptr<UINT16> m_spriteram;
1717   optional_shared_ptr<UINT16> m_protdata;
1818   optional_shared_ptr<UINT16> m_bitmap_mode;
19   
19
2020   int m_bitmap_type;
2121   int m_sprite_attr2_shift;
2222   tilemap_t *m_bg_tilemap[2];
r14998r14999
3434   int m_msm_source;
3535   int m_snd_interrupt_enable1;
3636   int m_snd_interrupt_enable2;
37   
37
3838   DECLARE_WRITE16_MEMBER(splash_sh_irqtrigger_w);
3939   DECLARE_WRITE16_MEMBER(roldf_sh_irqtrigger_w);
4040   DECLARE_WRITE16_MEMBER(splash_coin_w);
src/mame/includes/metalmx.h
r14998r14999
2222   required_device<adsp2105_device> m_adsp;
2323   required_device<dsp32c_device> m_dsp32c_1;
2424   required_device<dsp32c_device> m_dsp32c_2;
25   
25
2626   required_shared_ptr<UINT32> m_adsp_internal_program_ram;
2727   required_shared_ptr<UINT16> m_gsp_dram;
2828   required_shared_ptr<UINT16> m_gsp_vram;
src/mame/includes/equites.h
r14998r14999
2121   required_shared_ptr<UINT16> m_spriteram;
2222   optional_shared_ptr<UINT16> m_workram;
2323   optional_shared_ptr<UINT16> m_spriteram_2;
24   required_shared_ptr<UINT8>  m_mcu_ram;       // 8bits
24   required_shared_ptr<UINT8>  m_mcu_ram;     // 8bits
2525//  UINT16 *  m_nvram;    // currently this uses generic nvram handling
2626
2727   /* video-related */
src/mame/includes/bigstrkb.h
r14998r14999
2121
2222   required_shared_ptr<UINT16> m_vidreg1;
2323   required_shared_ptr<UINT16> m_vidreg2;
24   
24
2525   DECLARE_WRITE16_MEMBER(bsb_videoram_w);
2626   DECLARE_WRITE16_MEMBER(bsb_videoram2_w);
2727   DECLARE_WRITE16_MEMBER(bsb_videoram3_w);
src/mame/includes/taito_f2.h
r14998r14999
2525   required_shared_ptr<UINT16> m_spriteram;
2626   UINT16 *        m_spriteram_buffered;
2727   UINT16 *        m_spriteram_delayed;
28   optional_shared_ptr<UINT16> m_cchip2_ram;           // for megablst only
28   optional_shared_ptr<UINT16> m_cchip2_ram;          // for megablst only
2929//  UINT16 *        m_paletteram;    // currently this uses generic palette handling
3030
3131
src/mame/includes/taito_f3.h
r14998r14999
194194   int (*m_dpix_n[8][16])(taito_f3_state *state, UINT32 s_pix);
195195   int (**m_dpix_lp[5])(taito_f3_state *state, UINT32 s_pix);
196196   int (**m_dpix_sp[9])(taito_f3_state *state, UINT32 s_pix);
197   
197
198198   DECLARE_READ32_MEMBER(f3_control_r);
199199   DECLARE_WRITE32_MEMBER(f3_control_w);
200200   DECLARE_WRITE32_MEMBER(f3_sound_reset_0_w);
src/mame/includes/mcr.h
r14998r14999
3434   optional_device<z80_device> m_maincpu;
3535   optional_shared_ptr<UINT8> m_spriteram;
3636   optional_shared_ptr<UINT8> m_videoram;
37   
37
3838   optional_device<midway_ssio_device> m_ssio;
3939   optional_device<midway_chip_squeak_deluxe_device> m_chip_squeak_deluxe;
4040   optional_device<midway_sounds_good_device> m_sounds_good;
4141   optional_device<midway_turbo_chip_squeak_device> m_turbo_chip_squeak;
4242   optional_device<midway_squawk_n_talk_device> m_squawk_n_talk;
43   
43
4444   DECLARE_WRITE8_MEMBER(mcr_control_port_w);
4545   DECLARE_WRITE8_MEMBER(mcr_ipu_laserdisk_w);
4646   DECLARE_READ8_MEMBER(mcr_ipu_watchdog_r);
src/mame/includes/twin16.h
r14998r14999
1616   required_shared_ptr<UINT16> m_videoram;
1717   optional_shared_ptr<UINT16> m_tile_gfx_ram;
1818   optional_shared_ptr<UINT16> m_sprite_gfx_ram;
19   
19
2020   UINT16 m_CPUA_register;
2121   UINT16 m_CPUB_register;
2222   UINT16 m_sound_command;
src/mame/includes/cave.h
r14998r14999
2525{
2626public:
2727   cave_state(const machine_config &mconfig, device_type type, const char *tag)
28      : driver_device(mconfig, type, tag),
28      : driver_device(mconfig, type, tag),
2929        m_videoregs(*this, "videoregs"),
3030        m_vram(*this, "vram"),
3131        m_vctrl(*this, "vctrl"),
src/mame/video/nycaptor.c
r14998r14999
2323      return state->m_sharedram[0x299] ? state->m_sharedram[0x298] : 0;
2424   else
2525      return 0;
26
27    return 0;
2628}
2729
2830WRITE8_MEMBER(nycaptor_state::nycaptor_spriteram_w)
r14998r14999
263265      draw_sprites(screen.machine(), bitmap, cliprect, 7);
264266   }
265267   else
266   #endif
268#endif
267269   switch (nycaptor_spot(screen.machine()) & 3)
268270   {
269271   case 0:
src/mame/video/tia.h
r14998r14999
3131#define MCFG_TIA_VIDEO_ADD(_tag, _config) \
3232   MCFG_DEVICE_ADD(_tag, TIA_VIDEO, 0) \
3333   MCFG_DEVICE_CONFIG(_config)
34   
34
3535//**************************************************************************
3636//  TYPE DEFINITIONS
3737//**************************************************************************
r14998r14999
3939
4040// ======================> tia_interface
4141
42   
42
4343struct tia_interface {
4444   devcb_read16   m_read_input_port_cb;
4545   devcb_read8      m_databus_contents_cb;
r14998r14999
112112   devcb_resolved_read16   m_read_input_port_func;
113113   devcb_resolved_read8   m_databus_contents_func;
114114   devcb_resolved_write16   m_vsync_callback_func;
115   
115
116116   struct player_gfx p0gfx;
117117   struct player_gfx p1gfx;
118   
118
119119   UINT64 frame_cycles;
120120   UINT64 paddle_cycles;
121   
121
122122   int horzP0;
123123   int horzP1;
124124   int horzM0;
r14998r14999
137137   int skipclipP1;
138138   int skipM0delay;
139139   int skipM1delay;
140   
140
141141   int current_bitmap;
142   
142
143143   int prev_x;
144144   int prev_y;
145   
145
146146   UINT8 VSYNC;
147147   UINT8 VBLANK;
148148   UINT8 COLUP0;
r14998r14999
182182   UINT8 PF2;
183183   UINT8 INPT4;
184184   UINT8 INPT5;
185   
185
186186   UINT8 prevGRP0;
187187   UINT8 prevGRP1;
188188   UINT8 prevENABL;
189   
189
190190   int HMOVE_started;
191191   int HMOVE_started_previous;
192192   UINT8 HMP0_latch;
r14998r14999
196196   UINT8 HMBL_latch;
197197   UINT8 REFLECT;      /* Should playfield be reflected or not */
198198   UINT8 NUSIZx_changed;
199   
199
200200   bitmap_ind16 *helper[3];
201   
201
202202   UINT16 screen_height;
203   
203
204204};
205205
206206
src/mame/video/tetrisp2.c
r14998r14999
839839// scrambled palettes?
840840static inline int mypal(int x)
841841{
842//   return pal5bit(x >> 3);
842//  return pal5bit(x >> 3);
843843   return pal5bit((x^0xff) >> 3);
844//   return (((x - 0x80) >= 0) ? (x - 0x80) : 0) ^ 0x7f;
845//   return (x - 0x80);
844//  return (((x - 0x80) >= 0) ? (x - 0x80) : 0) ^ 0x7f;
845//  return (x - 0x80);
846846}
847847
848848WRITE16_MEMBER(stepstag_state::stepstag_palette_w)
849849{
850850   data = COMBINE_DATA(&m_generic_paletteram_16[offset]);
851//   if ((offset & 1) == 0)
851//  if ((offset & 1) == 0)
852852      palette_set_color_rgb(machine(),offset/4,
853853         mypal(m_generic_paletteram_16[offset/4*4+0] & 0xff),
854854         mypal(m_generic_paletteram_16[offset/4*4+1] & 0xff),
src/mame/layout/bfm_sc4.lay
r14998r14999
3131      <color red="1.0" green="0.3" blue="0.0" />
3232    </led7seg>
3333  </element>
34 
34
3535   <view name="AWP Simulated Video (No Artwork)">
3636      <backdrop name="vfd0" element="vfd0" state="0">
3737         <bounds x="210" y="200" width="9" height="17"/>
r14998r14999
9999      <backdrop name="reel6" element="Steppers" state="0">
100100         <bounds x="310" y="360" width="50" height="50"/>
101101      </backdrop>
102     
103     
104     
105     
102 
103 
104 
105 
106106      <backdrop name="lamp0" element="matrixlamp" state="0">
107107         <bounds x="0" y="0" width="7" height="7"/>
108108      </backdrop>
r14998r14999
996996    <backdrop name="matrix39" element="matrixlamp" state="0">
997997      <bounds y="28" x="196" width="3" height="3"/>
998998    </backdrop>
999   
1000     
999 
1000 
10011001    <backdrop name="matrix40" element="matrixlamp" state="0">
10021002      <bounds y="0" x="202" width="3" height="3"/>
10031003    </backdrop>
r14998r14999
11181118    <backdrop name="matrix79" element="matrixlamp" state="0">
11191119      <bounds y="28" x="218" width="3" height="3"/>
11201120    </backdrop>
1121     
1122     
1121 
1122 
11231123    <backdrop name="matrix80" element="matrixlamp" state="0">
11241124      <bounds y="0" x="224" width="3" height="3"/>
11251125    </backdrop>
r14998r14999
12401240    <backdrop name="matrix119" element="matrixlamp" state="0">
12411241      <bounds y="28" x="240" width="3" height="3"/>
12421242    </backdrop>
1243     
1244     
1243 
1244 
12451245    <backdrop name="matrix120" element="matrixlamp" state="0">
12461246      <bounds y="0" x="246" width="3" height="3"/>
12471247    </backdrop>
r14998r14999
13621362    <backdrop name="matrix159" element="matrixlamp" state="0">
13631363      <bounds y="28" x="262" width="3" height="3"/>
13641364    </backdrop>
1365     
1366    <!-- the rest of the elements tend to be used for 7-segs 
1365 
1366    <!-- the rest of the elements tend to be used for 7-segs
13671367         so render them as both -->
13681368    <backdrop name="matrix160" element="matrixlamp" state="0">
13691369      <bounds y="0" x="280" width="3" height="3"/>
r14998r14999
16781678    <backdrop name="digit7" element="digit" state="0">
16791679      <bounds x="250" y="64" width="9" height="19"/>
16801680    </backdrop>
1681   
1681
16821682    <backdrop name="digit8" element="digit" state="0">
16831683      <bounds x="180" y="84" width="9" height="19"/>
16841684    </backdrop>
src/mame/drivers/jpmsys7.c
r14998r14999
2929   AM_RANGE(0x20000018, 0x2000001b) AM_WRITENOP // large data upload like astra/pluto?
3030   AM_RANGE(0x50000000, 0x50001fff) AM_RAM
3131
32//   AM_RANGE(0xf0000000, 0xf0000fff) AM_RAM
32//  AM_RANGE(0xf0000000, 0xf0000fff) AM_RAM
3333
3434ADDRESS_MAP_END
3535
src/mame/drivers/mediagx.c
r14998r14999
461461      else if((m_disp_ctrl_reg[DC_GENERAL_CFG] & 0x00f00000) == 0x00000000)
462462      {
463463         m_pal_index = data;
464         ramdac->index_w( *&space, 0, data );
464         ramdac->index_w( space, 0, data );
465465      }
466466      else if((m_disp_ctrl_reg[DC_GENERAL_CFG] & 0x00f00000) == 0x00100000)
467467      {
r14998r14999
471471         {
472472            m_pal_index = 0;
473473         }
474         ramdac->pal_w( *&space, 0, data );
474         ramdac->pal_w( space, 0, data );
475475      }
476476   }
477477   else
src/mame/drivers/seta2.c
r14998r14999
405405   }
406406   if (ACCESSING_BITS_8_15)
407407   {
408      machine().device<ticket_dispenser_device>("ticket")->write(*&space, 0, (data & 0x0100) >> 1);   // ticket dispenser
408      machine().device<ticket_dispenser_device>("ticket")->write(space, 0, (data & 0x0100) >> 1);   // ticket dispenser
409409   }
410410
411411//  popmessage("LED %04X", data);
src/mame/drivers/zn.c
r14998r14999
699699
700700WRITE32_MEMBER(zn_state::zn_qsound_w)
701701{
702   soundlatch_byte_w(*&space, 0, data);
702   soundlatch_byte_w(space, 0, data);
703703   cputag_set_input_line(machine(), "audiocpu", INPUT_LINE_NMI, PULSE_LINE);
704704}
705705
r14998r14999
16781678   if (offset)
16791679      cputag_set_input_line(machine(), "audiocpu", 2, HOLD_LINE);   // irq 2 on the 68k
16801680   else
1681      soundlatch_byte_w(*&space, 0, data);
1681      soundlatch_byte_w(space, 0, data);
16821682}
16831683
16841684static DRIVER_INIT( coh1002e )
r14998r14999
25572557
25582558   ready = m_cbaj_to_r3k;
25592559   m_cbaj_to_r3k &= ~2;
2560   return soundlatch2_byte_r(*&space,0) | ready<<24;
2560   return soundlatch2_byte_r(space,0) | ready<<24;
25612561}
25622562
25632563WRITE32_MEMBER(zn_state::cbaj_z80_w)
r14998r14999
25952595{
25962596
25972597   m_cbaj_to_r3k |= 2;
2598   soundlatch2_byte_w(*&space, 0, data);
2598   soundlatch2_byte_w(space, 0, data);
25992599}
26002600
26012601READ8_MEMBER(zn_state::cbaj_z80_ready_r)
src/mame/drivers/meyc8080.c
r14998r14999
261261  ---- -x--   Bet pulse.
262262  ---- x---   Manual Keyout pulse (only mdrawpkra)
263263  xxxx ----   Seems unused...
264
264
265265*/
266266   coin_counter_w(machine(), 0, ~data & 0x01);   /* Coin1 */
267267   coin_counter_w(machine(), 1, ~data & 0x04);   /* Bets */
r14998r14999
323323   AM_RANGE(0x4000, 0x5fff) AM_RAM AM_SHARE("vram0")
324324   AM_RANGE(0x6000, 0x7fff) AM_RAM AM_SHARE("vram1")
325325   AM_RANGE(0x8000, 0x9fff) AM_RAM AM_SHARE("vram2")
326//   AM_RANGE(0xa000, 0xa0ff) AM_RAM      // unknown... filled with 00's at boot time or when entering the service mode.
326//  AM_RANGE(0xa000, 0xa0ff) AM_RAM     // unknown... filled with 00's at boot time or when entering the service mode.
327327   AM_RANGE(0xcd00, 0xcdff) AM_RAM AM_SHARE("nvram")
328328   AM_RANGE(0xf000, 0xf000) AM_READ_PORT("BSW") AM_DEVWRITE_LEGACY("dac", meyc8080_dac_1_w)
329329   AM_RANGE(0xf004, 0xf004) AM_READ_PORT("IN1") AM_WRITE(lights_1_w)
src/mame/drivers/deco32.c
r14998r14999
33523352
33533353   deco156_decrypt(machine);
33543354
3355    deco32_state *state = machine.driver_data<deco32_state>();
3355   deco32_state *state = machine.driver_data<deco32_state>();
33563356   state->soundlatch_setclearedvalue(0xff);
33573357
33583358   /* The board for Night Slashers is very close to the Fighter's History and
src/mame/drivers/ddenlovr.c
r14998r14999
20902090WRITE8_MEMBER(dynax_state::mmpanic_soundlatch_w)
20912091{
20922092
2093   soundlatch_byte_w(*&space, 0, data);
2093   soundlatch_byte_w(space, 0, data);
20942094   device_set_input_line(m_soundcpu, INPUT_LINE_NMI, PULSE_LINE);
20952095}
20962096
src/mame/drivers/mcr3.c
r14998r14999
10891089   MCFG_MACHINE_START(mcr)
10901090   MCFG_MACHINE_RESET(mcr)
10911091   MCFG_NVRAM_ADD_0FILL("nvram")
1092   
1092
10931093   // sound hardware
10941094   MCFG_SPEAKER_STANDARD_STEREO("lspeaker", "rspeaker")
10951095
src/mame/drivers/viper.c
r14998r14999
11151115/*
11161116READ64_MEMBER(viper_state::epic_64be_r)
11171117{
1118   return read64be_with_32le_handler(epic_r, &space, offset, mem_mask);
1118    return read64be_with_32le_handler(epic_r, &space, offset, mem_mask);
11191119}
11201120WRITE64_MEMBER(viper_state::epic_64be_w)
11211121{
1122   write64be_with_32le_handler(epic_w, &space, offset, data, mem_mask);
1122    write64be_with_32le_handler(epic_w, &space, offset, data, mem_mask);
11231123}
11241124*/
11251125
src/mame/drivers/amaticmg.c
r14998r14999
778778{
779779   int aux = address & 0xfff;
780780   aux = aux ^ (aux>>6);
781   aux = ((aux<<6) | (aux>>6)) & 0xfff;
781   aux = ((aux<<6) | (aux>>6)) & 0xfff;
782782   UINT8 aux2 = BITSWAP8(aux, 9,10,4,1,6,0,7,3);
783783   aux2 ^= aux2>>4;
784784   aux2 = (aux2<<4) | (aux2>>4);
r14998r14999
792792{
793793   UINT8 plaintext;
794794   int newaddress;
795   
795
796796   UINT8 *src = machine.root_device().memregion("mainprg")->base();
797797   UINT8 *dest = machine.root_device().memregion("maincpu")->base();
798798   int len = machine.root_device().memregion("mainprg")->bytes();
799   
799
800800   for (int i = 0; i < len; i++)
801801   {
802802      encf(src[i], i, plaintext, newaddress);
src/mame/drivers/liberatr.c
r14998r14999
392392   MCFG_DEVICE_PERIODIC_INT_DRIVER(driver_device,irq0_line_hold,4*60)
393393
394394   MCFG_ER2055_ADD("earom")
395   
395
396396   /* video hardware */
397397   MCFG_SCREEN_ADD("screen", RASTER)
398398   MCFG_SCREEN_REFRESH_RATE(60)
src/mame/drivers/snesb.c
r14998r14999
416416   PORT_DIPSETTING(    0x02, DEF_STR( 3C_1C ) )
417417   PORT_DIPSETTING(    0x03, DEF_STR( 2C_1C ) )
418418   PORT_DIPSETTING(    0x07, DEF_STR( 1C_1C ) )
419//   PORT_DIPSETTING(    0x00, DEF_STR( 1C_1C ) )            /* duplicate setting */
419//  PORT_DIPSETTING(    0x00, DEF_STR( 1C_1C ) )            /* duplicate setting */
420420   PORT_DIPSETTING(    0x06, DEF_STR( 1C_2C ) )
421421   PORT_DIPSETTING(    0x05, DEF_STR( 1C_3C ) )
422422   PORT_DIPSETTING(    0x04, DEF_STR( 1C_4C ) )
r14998r14999
443443   PORT_DIPUNUSED( 0x20, IP_ACTIVE_LOW )
444444   PORT_DIPUNUSED( 0x40, IP_ACTIVE_LOW )
445445   PORT_DIPUNUSED( 0x80, IP_ACTIVE_LOW )
446   
446
447447   PORT_START("COIN")
448448   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_COIN1 )
449449   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_COIN2 )
r14998r14999
459459   PORT_DIPSETTING(    0x02, DEF_STR( 3C_1C ) )
460460   PORT_DIPSETTING(    0x03, DEF_STR( 2C_1C ) )
461461   PORT_DIPSETTING(    0x07, DEF_STR( 1C_1C ) )
462//   PORT_DIPSETTING(    0x00, DEF_STR( 1C_1C ) )            /* duplicate setting */
462//  PORT_DIPSETTING(    0x00, DEF_STR( 1C_1C ) )            /* duplicate setting */
463463   PORT_DIPSETTING(    0x06, DEF_STR( 1C_2C ) )
464464   PORT_DIPSETTING(    0x05, DEF_STR( 1C_3C ) )
465465   PORT_DIPSETTING(    0x04, DEF_STR( 1C_4C ) )
r14998r14999
503503   PORT_DIPSETTING(    0x02, DEF_STR( 3C_1C ) )
504504   PORT_DIPSETTING(    0x03, DEF_STR( 2C_1C ) )
505505   PORT_DIPSETTING(    0x07, DEF_STR( 1C_1C ) )
506//   PORT_DIPSETTING(    0x00, DEF_STR( 1C_1C ) )            /* duplicate setting */
506//  PORT_DIPSETTING(    0x00, DEF_STR( 1C_1C ) )            /* duplicate setting */
507507   PORT_DIPSETTING(    0x06, DEF_STR( 1C_2C ) )
508508   PORT_DIPSETTING(    0x05, DEF_STR( 1C_3C ) )
509509   PORT_DIPSETTING(    0x04, DEF_STR( 1C_4C ) )
r14998r14999
511511   PORT_DIPSETTING(    0x18, DEF_STR( Easy ) )
512512   PORT_DIPSETTING(    0x10, DEF_STR( Normal ) )
513513   PORT_DIPSETTING(    0x08, DEF_STR( Hard ) )
514//   PORT_DIPSETTING(    0x00, DEF_STR( Hard ) )             /* duplicate setting */
514//  PORT_DIPSETTING(    0x00, DEF_STR( Hard ) )             /* duplicate setting */
515515   PORT_DIPUNUSED( 0x20, IP_ACTIVE_LOW )
516516   PORT_DIPUNUSED( 0x40, IP_ACTIVE_LOW )
517517   PORT_DIPNAME( 0x80, 0x00, "Mode" )
r14998r14999
548548   PORT_DIPSETTING(    0x02, DEF_STR( 3C_1C ) )
549549   PORT_DIPSETTING(    0x03, DEF_STR( 2C_1C ) )
550550   PORT_DIPSETTING(    0x07, DEF_STR( 1C_1C ) )
551//   PORT_DIPSETTING(    0x00, DEF_STR( 1C_1C ) )            /* duplicate setting */
551//  PORT_DIPSETTING(    0x00, DEF_STR( 1C_1C ) )            /* duplicate setting */
552552   PORT_DIPSETTING(    0x06, DEF_STR( 1C_2C ) )
553553   PORT_DIPSETTING(    0x05, DEF_STR( 1C_3C ) )
554554   PORT_DIPSETTING(    0x04, DEF_STR( 1C_4C ) )
src/mame/drivers/voyager.c
r14998r14999
33Star Trek Voyager (c) 2002 Team Play, Inc. / Game Refuge / Monaco Entertainment
44
55skeleton driver by R. Belmont
6
6
77Motherboard is FIC AZIIEA with AMD Duron processor of unknown speed
88Chipset: VIA KT133a with VT8363A Northbridge and VT82C686B Southbridge
99Video: Jaton 3DForce2MX-32, based on Nvidia GeForce 2MX chipset w/32 MB of VRAM
10 
11TODO: VIA KT133a chipset support, GeForce 2MX video support, lots of things ;-)
12 
10
11TODO: VIA KT133a chipset support, GeForce 2MX video support, lots of things ;-)
12
1313*************************************************************************************/
1414
1515#include "emu.h"
r14998r14999
801801
802802ROM_START( voyager )
803803   ROM_REGION( 0x40000, "bios", 0 )
804    ROM_LOAD( "stv.u23", 0x000000, 0x040000, CRC(0bed28b6) SHA1(8e7f17af65ca9d17c5c7ddedb2313507d0ea8181) )
804    ROM_LOAD( "stv.u23", 0x000000, 0x040000, CRC(0bed28b6) SHA1(8e7f17af65ca9d17c5c7ddedb2313507d0ea8181) )
805805
806   ROM_REGION( 0x8000, "video_bios", 0 )   // incorrect,
806   ROM_REGION( 0x8000, "video_bios", 0 )   // incorrect,
807807   ROM_LOAD16_BYTE( "trident_tgui9680_bios.bin", 0x0000, 0x4000, CRC(1eebde64) SHA1(67896a854d43a575037613b3506aea6dae5d6a19) )
808808   ROM_CONTINUE(                                 0x0001, 0x4000 )
809809
810810   ROM_REGION( 0x800, "nvram", ROMREGION_ERASE00 )
811811
812812   DISK_REGION( "drive_0" )
813    DISK_IMAGE_READONLY( "voyager", 0, SHA1(8b94f2420f6abb40148e4ba6eed8819d8e85dbde))     
813    DISK_IMAGE_READONLY( "voyager", 0, SHA1(8b94f2420f6abb40148e4ba6eed8819d8e85dbde))
814814ROM_END
815815
816816GAME( 2002, voyager,  0, voyager, voyager,  voyager, ROT0, "Team Play/Game Refuge/Monaco Entertainment", "Star Trek: Voyager", GAME_NOT_WORKING|GAME_NO_SOUND )
src/mame/drivers/taitoair.c
r14998r14999
397397   AM_RANGE(0x000000, 0x0bffff) AM_ROM
398398   AM_RANGE(0x0c0000, 0x0cffff) AM_RAM AM_SHARE("m68000_mainram")
399399   AM_RANGE(0x140000, 0x140001) AM_WRITE(system_control_w)   /* Pause the TMS32025 */
400   AM_RANGE(0x180000, 0x187fff) AM_RAM_WRITE(airsys_gradram_w) AM_SHARE("gradram")                /* "gradiation ram (0/1)" */
400   AM_RANGE(0x180000, 0x187fff) AM_RAM_WRITE(airsys_gradram_w) AM_SHARE("gradram")               /* "gradiation ram (0/1)" */
401401   AM_RANGE(0x188000, 0x189fff) AM_MIRROR(0x2000) AM_RAM_WRITE(airsys_paletteram16_w) AM_SHARE("paletteram")
402402   AM_RANGE(0x800000, 0x820fff) AM_DEVREADWRITE_LEGACY("tc0080vco", tc0080vco_word_r, tc0080vco_word_w)   /* tilemaps, sprites */
403403   AM_RANGE(0x906000, 0x906007) AM_RAM // DMA?
src/mame/drivers/gal3.c
r14998r14999
165165{
166166   gal3_state *state = machine.driver_data<gal3_state>();
167167   state->m_generic_paletteram_16.allocate(0x10000);
168
168
169169   namco_obj_init(machine,
170170      0,      /* gfx bank */
171171      0xf,   /* reverse palette mapping */
src/mame/drivers/seta.c
r14998r14999
15031503         break;
15041504
15051505      case 4/2:   // not sure
1506         if (ACCESSING_BITS_0_7)   soundlatch_byte_w(*&space, 0, data & 0xff);
1506         if (ACCESSING_BITS_0_7)   soundlatch_byte_w(space, 0, data & 0xff);
15071507         break;
15081508
15091509      case 6/2:   // not sure
1510         if (ACCESSING_BITS_0_7)   soundlatch2_byte_w(*&space, 0, data & 0xff);
1510         if (ACCESSING_BITS_0_7)   soundlatch2_byte_w(space, 0, data & 0xff);
15111511         break;
15121512   }
15131513
r14998r14999
16531653{
16541654   if (ACCESSING_BITS_0_7)
16551655   {
1656      soundlatch_word_w(*&space, 0, data, mem_mask);
1656      soundlatch_word_w(space, 0, data, mem_mask);
16571657      cputag_set_input_line(machine(), "sub", INPUT_LINE_NMI, PULSE_LINE);
16581658      device_spin_until_time(&space.device(), attotime::from_usec(50));   // Allow the other cpu to reply
16591659   }
r14998r14999
24482448      case 1:   offset = 2;   break;
24492449      case 2:   offset = 1;   break;
24502450   }
2451   seta_vregs_w(*&space,offset,data,mem_mask);
2451   seta_vregs_w(space,offset,data,mem_mask);
24522452}
24532453
24542454/* Mirror RAM is necessary or startup, to clear Work RAM after the test */
r14998r14999
27382738   if (ACCESSING_BITS_0_7)
27392739   {
27402740      cputag_set_input_line(machine(), "audiocpu", 0, HOLD_LINE);
2741      soundlatch_byte_w(*&space, 0, data & 0xff);
2741      soundlatch_byte_w(space, 0, data & 0xff);
27422742   }
27432743}
27442744
src/mame/drivers/naomi.c
r14998r14999
55235523    NAOMI_DEFAULT_EEPROM
55245524
55255525    ROM_REGION( 0xb000000, "rom_board", ROMREGION_ERASEFF)
5526    ROM_LOAD( "nja3vera_fl1.2d", 0x0800000, 0x0800000, CRC(442cb858) SHA1(8244871bdb0b49e14ea400d63fe759754a530410) )
5527    ROM_LOAD( "nja3vera_fl2.2c", 0x1000000, 0x0800000, CRC(1f81f46b) SHA1(7677f881b84233f3f95a792f9be6f618cba6d586) )
5528    ROM_LOAD( "nja3vera_fl3.2b", 0x1800000, 0x0800000, CRC(24974c3d) SHA1(cd64dec682688e26fca91873e5e7b6e0d931d1ce) )
5529    ROM_LOAD( "nja1ma2.4l",      0x2000000, 0x1000000, CRC(5af34ea0) SHA1(b49a50e995cb6682782b0643d40001b9bffe0118) )
5530    ROM_LOAD( "nja1ma3.4k",      0x3000000, 0x1000000, CRC(504a89b3) SHA1(e0b90542f80527e998db7ee3bb75e36c375cacba) )
5531    ROM_LOAD( "nja1ma4.4j",      0x4000000, 0x1000000, CRC(d5c2799a) SHA1(ce46c1aa38479d9e5e350573bc6b214979b88dbc) )
5532    ROM_LOAD( "nja1ma5.4h",      0x5000000, 0x1000000, CRC(cf5df4d3) SHA1(220bc51979d2c5f753fc6b544bb38c0c306bbcb8) )
5533    ROM_LOAD( "nja1ma6.4f",      0x6000000, 0x1000000, CRC(5daa6ed4) SHA1(139a68ea0cb5c071beeffb893533302fa80bc3f8) )
5534    ROM_LOAD( "nja1ma7.4e",      0x7000000, 0x1000000, CRC(d866cfa8) SHA1(a57a761cef0eaaada088a6091ec2324c112253fc) )
5535    ROM_LOAD( "nja1ma8.4d",      0x8000000, 0x1000000, CRC(1c959b74) SHA1(f1ff82c26df6250e1d8c23214f7827278cd572db) )
5536    ROM_LOAD( "nja1ma9.4c",      0x9000000, 0x1000000, CRC(8abed815) SHA1(5e1b208d23a17ba743d0507d963be42e7828755f) )
5537    ROM_LOAD( "nja1ma10.4b",     0xa000000, 0x1000000, CRC(f14d2073) SHA1(b4a8cd585794be149b616119df3f75c0fb30e2f0) )
5526    ROM_LOAD( "nja3vera_fl1.2d", 0x0800000, 0x0800000, CRC(442cb858) SHA1(8244871bdb0b49e14ea400d63fe759754a530410) )
5527    ROM_LOAD( "nja3vera_fl2.2c", 0x1000000, 0x0800000, CRC(1f81f46b) SHA1(7677f881b84233f3f95a792f9be6f618cba6d586) )
5528    ROM_LOAD( "nja3vera_fl3.2b", 0x1800000, 0x0800000, CRC(24974c3d) SHA1(cd64dec682688e26fca91873e5e7b6e0d931d1ce) )
5529    ROM_LOAD( "nja1ma2.4l",      0x2000000, 0x1000000, CRC(5af34ea0) SHA1(b49a50e995cb6682782b0643d40001b9bffe0118) )
5530    ROM_LOAD( "nja1ma3.4k",      0x3000000, 0x1000000, CRC(504a89b3) SHA1(e0b90542f80527e998db7ee3bb75e36c375cacba) )
5531    ROM_LOAD( "nja1ma4.4j",      0x4000000, 0x1000000, CRC(d5c2799a) SHA1(ce46c1aa38479d9e5e350573bc6b214979b88dbc) )
5532    ROM_LOAD( "nja1ma5.4h",      0x5000000, 0x1000000, CRC(cf5df4d3) SHA1(220bc51979d2c5f753fc6b544bb38c0c306bbcb8) )
5533    ROM_LOAD( "nja1ma6.4f",      0x6000000, 0x1000000, CRC(5daa6ed4) SHA1(139a68ea0cb5c071beeffb893533302fa80bc3f8) )
5534    ROM_LOAD( "nja1ma7.4e",      0x7000000, 0x1000000, CRC(d866cfa8) SHA1(a57a761cef0eaaada088a6091ec2324c112253fc) )
5535    ROM_LOAD( "nja1ma8.4d",      0x8000000, 0x1000000, CRC(1c959b74) SHA1(f1ff82c26df6250e1d8c23214f7827278cd572db) )
5536    ROM_LOAD( "nja1ma9.4c",      0x9000000, 0x1000000, CRC(8abed815) SHA1(5e1b208d23a17ba743d0507d963be42e7828755f) )
5537    ROM_LOAD( "nja1ma10.4b",     0xa000000, 0x1000000, CRC(f14d2073) SHA1(b4a8cd585794be149b616119df3f75c0fb30e2f0) )
55385538
55395539    // this is a hack because we don't support the 8MB shift feature in naomibd yet (this also causes IC1 to show BAD
55405540    // in the ROM test - it is not bad and does not need a redump)
55415541    ROM_COPY( "rom_board", 0x800000, 0x000000, 0x800000 )
55425542
55435543    ROM_REGION( 4, "rom_key", 0 )
5544    ROM_LOAD( "nja3-key.bin", 0x000000, 0x000004, CRC(e6997eb0) SHA1(c866a5069e28939be5a8fc867bc14791decac3c8) )
5544    ROM_LOAD( "nja3-key.bin", 0x000000, 0x000004, CRC(e6997eb0) SHA1(c866a5069e28939be5a8fc867bc14791decac3c8) )
55455545ROM_END
55465546
55475547// this one's weird: the rom test checksum for IC 1 matches a screenshot from h/w, but on h/w it says ---- instead of BAD.
r14998r14999
79327932/* Cart games on Namco custom ROM board */
79337933/* 25209801 */ GAME( 2000, wldkicks, naomi, naomim2, naomi,    naomi,    ROT0, "Capcom / Namco", "World Kicks (WK1 Ver. A)", GAME_UNEMULATED_PROTECTION|GAME_FLAGS )
79347934/* 25349801 */ GAME( 2000, toukon4,  naomi, naomim2, naomi,    naomi,    ROT0, "Capcom / Namco", "Shin Nihon Pro Wrestling Toukon Retsuden 4 Arcade Edition (TRF1 Ver. A)", GAME_UNEMULATED_PROTECTION|GAME_FLAGS )
7935/* 25469801 */ GAME( 2000, ninjaslt, naomi, naomim2, naomi,    naomi,    ROT0, "Capcom / Namco", "Ninja Assault (NJA3 Ver. A)", GAME_UNEMULATED_PROTECTION|GAME_FLAGS )
7935/* 25469801 */ GAME( 2000, ninjaslt, naomi, naomim2, naomi,    naomi,    ROT0, "Capcom / Namco", "Ninja Assault (NJA3 Ver. A)", GAME_UNEMULATED_PROTECTION|GAME_FLAGS )
79367936/* 25709801 */ GAME( 2001, gunsur2,  naomi, naomi,   naomi,    naomi,    ROT0, "Capcom / Namco", "Gun Survivor 2 Biohazard Code: Veronica (BHF1 Ver. A)", GAME_UNEMULATED_PROTECTION|GAME_FLAGS )
79377937/* 25869812 */ GAME( 2002, mazan,    naomi, naomim2, naomi,    naomi,    ROT0, "Capcom / Namco", "Mazan: Flash of the Blade (MAZ1 Ver. A)", GAME_UNEMULATED_PROTECTION|GAME_FLAGS )
79387938
src/mame/drivers/galaxia.c
r14998r14999
8484{
8585//  machine().primary_screen->update_partial(machine().primary_screen->vpos());
8686   m_bg_tilemap->mark_tile_dirty(offset);
87   cvs_video_or_color_ram_w(*&space, offset, data);
87   cvs_video_or_color_ram_w(space, offset, data);
8888}
8989
9090WRITE8_MEMBER(galaxia_state::galaxia_scroll_w)
src/mame/drivers/flower.c
r14998r14999
122122   AM_RANGE(0xa103, 0xa103) AM_READ_PORT("IN1CPU0")
123123   AM_RANGE(0xa400, 0xa400) AM_WRITE(sound_command_w)
124124   AM_RANGE(0xc000, 0xddff) AM_RAM
125   AM_RANGE(0xde00, 0xdfff) AM_RAM AM_SHARE("spriteram")
125   AM_RANGE(0xde00, 0xdfff) AM_RAM AM_SHARE("spriteram")
126126   AM_RANGE(0xe000, 0xe7ff) AM_RAM_WRITE(flower_textram_w)  AM_SHARE("textram")
127127   AM_RANGE(0xe000, 0xefff) AM_RAM // only cleared?
128128   AM_RANGE(0xf000, 0xf1ff) AM_RAM_WRITE(flower_bg0ram_w)   AM_SHARE("bg0ram")
src/mame/drivers/meyc8088.c
r14998r14999
44
55  i8088 CPU @ 5MHz (15MHz XTAL + i8284A clock generator),
66  3 x 8KB EPROM (max 4), 3 x 8KB RAM (max 4), 2KB battery RAM,
7  2 x i8155, optional i8251A for factory debug
7  2 x i8155, optional i8251A + RS232 for factory debug
88
9  driver by MAME team
10  also thanks to Darrell Hal Smith, Kevin Mullins
911
12
1013****************************************************************/
1114
1215#include "emu.h"
r14998r14999
2528
2629   required_device<cpu_device> m_maincpu;
2730   required_shared_ptr<UINT8> m_vram;
28   
31
2932   UINT8 m_status;
3033   UINT8 m_common;
31   
34
35   DECLARE_WRITE8_MEMBER(drive_w);
3236   DECLARE_WRITE8_MEMBER(video5_flip_w);
3337   DECLARE_READ8_MEMBER(video5_flip_r);
3438   DECLARE_WRITE8_MEMBER(screen_flip_w);
r14998r14999
6973
7074***************************************************************************/
7175
76WRITE8_MEMBER(meyc8088_state::drive_w)
77{
78   m_status &= ~0x20;
79
80   // d0-d3: DC counter drivers
81   // d4-d7: AC motor drivers
82}
83
7284// switch screen on/off on $b4000 access
7385READ8_MEMBER(meyc8088_state::screen_flip_r)
7486{
r14998r14999
101113   AM_RANGE(0xb0800, 0xb0807) AM_DEVREADWRITE("i8155_2", i8155_device, io_r, io_w)
102114   AM_RANGE(0xb1000, 0xb10ff) AM_DEVREADWRITE("i8155_1", i8155_device, memory_r, memory_w)
103115   AM_RANGE(0xb1800, 0xb1807) AM_DEVREADWRITE("i8155_1", i8155_device, io_r, io_w)
104//   AM_RANGE(0xb2000, 0xb2000) AM_NOP // drive motor?
105//   AM_RANGE(0xb3000, 0xb3000) AM_RAM // 8251A, debug related
106//   AM_RANGE(0xb3800, 0xb3800) AM_RAM // "
116   AM_RANGE(0xb2000, 0xb2000) AM_WRITE(drive_w)
117//  AM_RANGE(0xb3000, 0xb3000) AM_NOP // 8251A, debug related
118//  AM_RANGE(0xb3800, 0xb3800) AM_NOP // "
107119   AM_RANGE(0xb4000, 0xb4000) AM_READWRITE(screen_flip_r, screen_flip_w)
108120   AM_RANGE(0xb5000, 0xb5000) AM_READWRITE(video5_flip_r, video5_flip_w)
109121   AM_RANGE(0xf8000, 0xfffff) AM_ROM
r14998r14999
130142
131143   // d0: /CR2
132144   state->m_status = (state->m_status & ~1) | (data & 1);
133   
145
134146   // d1: battery on
135   
147   state->m_status = (state->m_status & ~0x10) | (data << 3 & 0x10);
148
136149   // d2-d5: /common
137150   state->m_common = data >> 2 & 0xf;
138151
r14998r14999
155168static READ8_DEVICE_HANDLER(meyc8088_status_r)
156169{
157170   meyc8088_state *state = device->machine().driver_data<meyc8088_state>();
158   
171
159172   // d0: /CR2
160173   // d1: screen on
161174   // d2: video5
162175   // d3: N/C
163176   // d4: battery ok
164177   // d5: /drive on
165   return (state->m_status & 7) | 0x38;
178   return (state->m_status & 7) | 0x18;
166179}
167180
168181static const i8155_interface i8155_intf[2] =
src/mame/drivers/bfm_sc4h.c
r14998r14999
2323    This file contains the hardware emulation, for the supported sets
2424    see bfm_sc4.c
2525 
26   ---
27   note, if game says 'read meters' simply press CTRL then 'B'
28   I think we're stuck in some king of free play test mode so Start 1 will spin and give you credit
26    ---
27    note, if game says 'read meters' simply press CTRL then 'B'
28    I think we're stuck in some king of free play test mode so Start 1 will spin and give you credit
2929 
3030*/
3131 
r14998r14999
7878               UINT32 r_A0 = cpu_get_reg(&space.device(), M68K_A0);
7979               UINT32 r_A1 = cpu_get_reg(&space.device(), M68K_A1);
8080               UINT32 r_D1 = cpu_get_reg(&space.device(), M68K_D1);
81           
81
8282               if (r_D1 == 0x7)
8383               {
8484                  bool valid = true;
r14998r14999
108108 
109109 
110110            return m_cpuregion[offset];
111         
111
112112         }
113113         else
114114            logerror("%08x maincpu read access offset %08x mem_mask %04x cs %d\n", pc, offset*2, mem_mask, cs);
r14998r14999
153153               {
154154                  case 0x0240:
155155                     retvalue = 0x00ff;
156                     
156
157157                     if (mem_mask&0xff00)
158158                     {
159159                        retvalue |= (sec.read_data_line() << (6+8));
r14998r14999
253253   }
254254 
255255   // others drive 7-segs with it..  so rendering it there as well in our debug layouts
256   
256
257257   // todo: reorder properly!
258258   UINT8 bf7segdata = BITSWAP8(data,7,6,5,4,3,2,1,0);
259259   output_set_digit_value(offset, bf7segdata);
r14998r14999
293293 
294294            if (addr < 0x0200)
295295            {
296               
296
297297               if (mem_mask&0xff00)
298298               {
299299                  logerror("lamp write mem_mask&0xff00 unhandled\n");
r14998r14999
303303               {   // lamps
304304                  mux_output_w(space, (addr & 0x01f0)>>4, data);
305305               }
306               
306
307307            }
308308            else if ((addr >= 0x1000) && (addr < 0x1200))
309309            {
r14998r14999
324324                  case 0x0330:
325325                     logerror("%08x meter write %04x\n",pc, data);
326326                     //m_meterstatus = (m_meterstatus&0xc0) | (data & 0x3f);
327                     sec.write_clock_line(~data&0x20);               
327                     sec.write_clock_line(~data&0x20);
328328                     break;
329329 
330330                  case 0x1248:
r14998r14999
491491 
492492void bfm_sc4_68307_portb_w(address_space *space, bool dedicated, UINT16 data, UINT16 line_mask)
493493{
494//   if (dedicated == false)
494//  if (dedicated == false)
495495   {
496496      int pc = cpu_get_pc(&space->device());
497497      //m68ki_cpu_core *m68k = m68k_get_safe_token(&space->device());
r14998r14999
621621UINT8 bfm_sc4_duart_input_r(device_t *device)
622622{
623623   sc4_state *state = device->machine().driver_data<sc4_state>();
624//   printf("bfm_sc4_duart_input_r\n");
624//  printf("bfm_sc4_duart_input_r\n");
625625   return state->m_optic_pattern;
626626}
627627 
628628void bfm_sc4_duart_output_w(device_t *device, UINT8 data)
629629{
630//   logerror("bfm_sc4_duart_output_w\n");
630//  logerror("bfm_sc4_duart_output_w\n");
631631   sc4_state *state = device->machine().driver_data<sc4_state>();
632632 
633633   state->m_reel56_latch = data;
src/mame/drivers/segas32.c
r14998r14999
40484048   segas32_state *state = machine.driver_data<segas32_state>();
40494049   segas32_common_init(machine, read16_delegate(FUNC(segas32_state::extra_custom_io_r),state), write16_delegate());
40504050
4051   /* install protection handlers */   
4051   /* install protection handlers */
40524052   machine.device("maincpu")->memory().space(AS_PROGRAM)->install_read_handler(0xa00100, 0xa0011f, read16_delegate(FUNC(segas32_state::arf_wakeup_protection_r),state));
40534053   machine.device("maincpu")->memory().space(AS_PROGRAM)->install_readwrite_handler(0xa00000, 0xa00fff, read16_delegate(FUNC(segas32_state::arabfgt_protection_r),state), write16_delegate(FUNC(segas32_state::arabfgt_protection_w),state));
40544054}
r14998r14999
41204120   segas32_state *state = machine.driver_data<segas32_state>();
41214121   segas32_common_init(machine, read16_delegate(FUNC(segas32_state::extra_custom_io_r),state), write16_delegate());
41224122
4123   decrypt_ga2_protrom(machine);   
4123   decrypt_ga2_protrom(machine);
41244124   machine.device("maincpu")->memory().space(AS_PROGRAM)->install_readwrite_handler(0xa00000, 0xa00fff, read16_delegate(FUNC(segas32_state::ga2_dpram_r),state), write16_delegate(FUNC(segas32_state::ga2_dpram_w),state));
41254125}
41264126
src/mame/drivers/ddragon.c
r14998r14999
310310         break;
311311
312312      case 3: /* 380e - SND irq */
313         soundlatch_byte_w(*&space, 0, data);
313         soundlatch_byte_w(space, 0, data);
314314         device_set_input_line(m_snd_cpu, m_sound_irq, (m_sound_irq == INPUT_LINE_NMI) ? PULSE_LINE : HOLD_LINE);
315315         break;
316316
src/mame/drivers/vcombat.c
r14998r14999
117117   DECLARE_WRITE64_MEMBER(v1_fb_w);
118118   DECLARE_WRITE16_MEMBER(crtc_w);
119119   DECLARE_DIRECT_UPDATE_MEMBER(vcombat_vid_0_direct_handler);
120   DECLARE_DIRECT_UPDATE_MEMBER(vcombat_vid_1_direct_handler);   
120   DECLARE_DIRECT_UPDATE_MEMBER(vcombat_vid_1_direct_handler);
121121};
122122
123123static UINT32 update_screen(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect, int index)
src/mame/drivers/mcr.c
r14998r14999
25282528
25292529   state_save_register_global(machine, input_mux);
25302530   state_save_register_global(machine, last_op4);
2531   
2531
25322532   midway_ssio_device *ssio = machine.device<midway_ssio_device>("ssio");
25332533   if (ssio != NULL)
25342534   {
src/mame/drivers/silvmil.c
r14998r14999
3030      : driver_device(mconfig, type, tag),
3131        m_bg_videoram(*this, "bg_videoram"),
3232        m_fg_videoram(*this, "fg_videoram"),
33        m_spriteram(*this, "spriteram")  {
34   
33        m_spriteram(*this, "spriteram")  {
3534
35
3636   }
3737
3838   /* memory pointers */
r14998r14999
5050   {
5151      m_silvmil_tilebank[m_whichbank] = (data>>8) & 0x1f;
5252
53   //   printf("%08x tilebank_w %04x (which = %04x)\n",pc, data, m_whichbank);
53   //  printf("%08x tilebank_w %04x (which = %04x)\n",pc, data, m_whichbank);
5454      m_fg_layer->mark_all_dirty();
5555      m_bg_layer->mark_all_dirty();
5656   }
r14998r14999
102102
103103      }
104104   }
105   
106105
106
107107};
108108
109109
src/mame/drivers/coolridr.c
r14998r14999
287287   UINT16 m_hCellCount;
288288   UINT16 m_vPosition;
289289   UINT16 m_hPosition;
290   
290
291291   required_device<cpu_device> m_maincpu;
292292   required_device<cpu_device> m_subcpu;
293293   required_device<cpu_device> m_soundcpu;
src/mame/drivers/midyunit.c
r14998r14999
10481048   MCFG_SCREEN_ADD("screen", RASTER)
10491049   MCFG_SCREEN_RAW_PARAMS(STDRES_PIXEL_CLOCK*2, 505, 0, 399, 289, 0, 253)
10501050   MCFG_SCREEN_UPDATE_STATIC(tms340x0_ind16)
1051   
1051
10521052   /* sound hardware */
10531053   MCFG_SPEAKER_STANDARD_MONO("mono")
10541054MACHINE_CONFIG_END
r14998r14999
10711071   /* basic machine hardware */
10721072   MCFG_CPU_MODIFY("maincpu")
10731073   MCFG_CPU_CLOCK(FAST_MASTER_CLOCK)
1074   
1074
10751075   MCFG_WILLIAMS_CVSD_SOUND_ADD("cvsd")
10761076   MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.0)
10771077
r14998r14999
10981098   /* basic machine hardware */
10991099   MCFG_CPU_MODIFY("maincpu")
11001100   MCFG_CPU_CLOCK(FAST_MASTER_CLOCK)
1101   
1101
11021102   MCFG_WILLIAMS_ADPCM_SOUND_ADD("adpcm")
11031103   MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.0)
11041104
r14998r14999
11131113   /* basic machine hardware */
11141114   MCFG_CPU_MODIFY("maincpu")
11151115   MCFG_CPU_CLOCK(FASTER_MASTER_CLOCK)
1116   
1116
11171117   MCFG_WILLIAMS_ADPCM_SOUND_ADD("adpcm")
11181118   MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.0)
11191119
src/mame/drivers/astrafr.c
r14998r14999
2020public:
2121   astrafr_state(const machine_config &mconfig, device_type type, const char *tag)
2222      : driver_device(mconfig, type, tag)
23   {
23   {
2424      fgpa_first_read_addr = 0xffff;
2525      fgpa_rom_write_addr = 0xffff;
2626      fgpa_after_rom_write_addr = 0xffff;
r14998r14999
3434   DECLARE_READ8_MEMBER( astra_fgpa_r )
3535   {
3636      int pc = cpu_get_pc(&space.device());
37     
37
3838      if (offset==fgpa_first_read_addr)
3939      {
4040         return 0xff;
r14998r14999
4545         return 0xff;
4646      }
4747   }
48   
48
4949   DECLARE_WRITE8_MEMBER( astra_fgpa_w )
5050   {
5151      int pc = cpu_get_pc(&space.device());
52     
52
5353      if (offset==fgpa_rom_write_addr)
5454      {
5555         // the games write most of the ROM data to a port
r14998r14999
6565   DECLARE_READ8_MEMBER( astra_fgpa_slave_r )
6666   {
6767      int pc = cpu_get_pc(&space.device());
68     
68
6969      if (offset==fgpa_first_read_addr)
7070      {
7171         return 0xff;
r14998r14999
7676         return 0xff;
7777      }
7878   }
79   
79
8080   DECLARE_WRITE8_MEMBER( astra_fgpa_slave_w )
8181   {
8282      int pc = cpu_get_pc(&space.device());
83     
83
8484      if (offset==fgpa_rom_write_addr)
8585      {
8686         // the games write most of the ROM data to a port
r14998r14999
197197static MACHINE_START( astra_57 )
198198{
199199   astrafr_state *state = machine.driver_data<astrafr_state>();
200//   state->fgpa_after_rom_write_addr = 0x20;
201//   state->fgpa_first_read_addr = 0x23;
200//  state->fgpa_after_rom_write_addr = 0x20;
201//  state->fgpa_first_read_addr = 0x23;
202202   state->fgpa_rom_write_addr = 0x57;
203203}
204204
r14998r14999
21332133GAME( 200?, as_rtrg,   as_rtr     , astra_single,    astrafr,    astradec,   ROT0,  "Astra", "Ready To Roll (Astra, V200, alt)"      , GAME_IS_SKELETON_MECHANICAL)
21342134GAME( 200?, as_rtrh,   as_rtr     , astra_single_2e,    astrafr,    astradec,   ROT0,  "Astra", "Ready To Roll (Astra, V202)"      , GAME_IS_SKELETON_MECHANICAL)
21352135
2136GAME( 200?, as_rab,    0        , astra_single_2e,    astrafr,    0,    ROT0,  "Astra", "Ring A Bell (Astra, V105)"      , GAME_IS_SKELETON_MECHANICAL)
2136GAME( 200?, as_rab,    0        , astra_single_2e,    astrafr,    0,   ROT0,  "Astra", "Ring A Bell (Astra, V105)"      , GAME_IS_SKELETON_MECHANICAL)
21372137GAME( 200?, as_raba,   as_rab     , astra_single,    astrafr,    0,    ROT0,  "Astra", "Ring A Bell (Astra, V106)"      , GAME_IS_SKELETON_MECHANICAL)
21382138GAME( 200?, as_rabb,   as_rab     , astra_single,    astrafr,    0,    ROT0,  "Astra", "Ring A Bell (Astra, V107)"      , GAME_IS_SKELETON_MECHANICAL)
21392139GAME( 200?, as_rabc,   as_rab     , astra_single,    astrafr,    0,    ROT0,  "Astra", "Ring A Bell (Astra, V104)"      , GAME_IS_SKELETON_MECHANICAL)
2140GAME( 200?, as_rbg,    0        , astra_single_2e,    astrafr,    0,    ROT0,  "Astra", "River Boat Gambler (Astra, V304)"      , GAME_IS_SKELETON_MECHANICAL)
2140GAME( 200?, as_rbg,    0        , astra_single_2e,    astrafr,    0,   ROT0,  "Astra", "River Boat Gambler (Astra, V304)"      , GAME_IS_SKELETON_MECHANICAL)
21412141GAME( 200?, as_rbga,   as_rab     , astra_single,    astrafr,    0,    ROT0,  "Astra", "River Boat Gambler (Astra, V303)"      , GAME_IS_SKELETON_MECHANICAL)
21422142GAME( 200?, as_rbgb,   as_rab     , astra_single,    astrafr,    0,    ROT0,  "Astra", "River Boat Gambler (Astra, V104)"      , GAME_IS_SKELETON_MECHANICAL)
21432143GAME( 200?, as_rbgc,   as_rab     , astra_single,    astrafr,    0,    ROT0,  "Astra", "River Boat Gambler (Astra, V102)"      , GAME_IS_SKELETON_MECHANICAL)
21442144GAME( 200?, as_rbgd,   as_rab     , astra_single,    astrafr,    0,    ROT0,  "Astra", "River Boat Gambler (Astra, V101)"      , GAME_IS_SKELETON_MECHANICAL)
21452145GAME( 200?, as_rbge,   as_rab     , astra_single,    astrafr,    0,    ROT0,  "Astra", "River Boat Gambler (Astra, V008)"      , GAME_IS_SKELETON_MECHANICAL)
2146GAME( 200?, as_rbglo,    0        , astrafr_dual_37,    astrafr,    astradec_sml_dual,    ROT0,  "Lowen", "River Boat Gambler (Lowen, V106)"      , GAME_IS_SKELETON_MECHANICAL)
2146GAME( 200?, as_rbglo,    0        , astrafr_dual_37,    astrafr,    astradec_sml_dual,   ROT0,  "Lowen", "River Boat Gambler (Lowen, V106)"      , GAME_IS_SKELETON_MECHANICAL)
21472147GAME( 200?, as_rox,    0        , astra_single,    astrafr,    0,    ROT0,  "Astra", "Roll X (Astra, V006)"      , GAME_IS_SKELETON_MECHANICAL)
2148GAME( 200?, as_csv,    0        , astra_single_37,    astrafr,    0,    ROT0,  "Astra", "Slot Slant (?) (Astra, V202)"      , GAME_IS_SKELETON_MECHANICAL)
2148GAME( 200?, as_csv,    0        , astra_single_37,    astrafr,    0,   ROT0,  "Astra", "Slot Slant (?) (Astra, V202)"      , GAME_IS_SKELETON_MECHANICAL)
21492149GAME( 200?, as_sltcl,    0        , astra_single,    astrafr,    0,    ROT0,  "Astra", "Slots Classic (?) (Astra)"      , GAME_IS_SKELETON_MECHANICAL)
21502150GAME( 200?, as_stp,    0        , astra_single_2e,    astrafr,    astradec,   ROT0,  "Astra", "Stampede (Astra, V103)"      , GAME_IS_SKELETON_MECHANICAL)
21512151GAME( 200?, as_stpa,   as_stp     , astra_single,    astrafr,    astradec,   ROT0,  "Astra", "Stampede (Astra, V102)"      , GAME_IS_SKELETON_MECHANICAL)
r14998r14999
21602160GAME( 200?, as_slde,   as_sld     , astra_single,    astrafr,    0,    ROT0,  "Astra", "Super Little Devil (Astra, V101)"      , GAME_IS_SKELETON_MECHANICAL)
21612161GAME( 200?, as_tem,   0          , astra_single_alt_37,    astrafr,    astradec,   ROT0,  "Astra", "Temptation (Astra, V101)"      , GAME_IS_SKELETON_MECHANICAL)
21622162GAME( 200?, as_tema,  as_tem     , astra_single_alt_37,    astrafr,    astradec,   ROT0,  "Astra", "Temptation (Astra, V006)"      , GAME_IS_SKELETON_MECHANICAL)
2163GAME( 200?, as_tbl,   0              , astra_single_2e,    astrafr,    0,    ROT0,  "Astra", "Triple Bells (Astra, V104)"      , GAME_IS_SKELETON_MECHANICAL)
2163GAME( 200?, as_tbl,   0              , astra_single_2e,    astrafr,    0,   ROT0,  "Astra", "Triple Bells (Astra, V104)"      , GAME_IS_SKELETON_MECHANICAL)
21642164GAME( 200?, as_tbla,  as_tbl        , astra_single,    astrafr,    0,    ROT0,  "Astra", "Triple Bells (Astra, V105)"      , GAME_IS_SKELETON_MECHANICAL)
21652165GAME( 200?, as_tblb,  as_tbl        , astra_single,    astrafr,    0,    ROT0,  "Astra", "Triple Bells (Astra, V106)"      , GAME_IS_SKELETON_MECHANICAL)
21662166GAME( 200?, as_tblc,  as_tbl        , astra_single,    astrafr,    0,    ROT0,  "Astra", "Triple Bells (Astra, V103)"      , GAME_IS_SKELETON_MECHANICAL)
r14998r14999
21712171
21722172GAME( 200?, as_twp,   0          , astra_single,    astrafr,    0,    ROT0,  "Astra", "Twin Pots (Astra, V106)"      , GAME_IS_SKELETON_MECHANICAL)
21732173GAME( 200?, as_twpa,  as_twp      , astra_single,    astrafr,    0,    ROT0,  "Astra", "Twin Pots (Astra, V104)"      , GAME_IS_SKELETON_MECHANICAL)
2174GAME( 200?, as_vn,    0        , astrafr_dual_alt_37,    astrafr,    astradec_dual,    ROT0,  "Astra", "Vegas Nights (Astra, V205)"      , GAME_IS_SKELETON_MECHANICAL)
2174GAME( 200?, as_vn,    0        , astrafr_dual_alt_37,    astrafr,    astradec_dual,   ROT0,  "Astra", "Vegas Nights (Astra, V205)"      , GAME_IS_SKELETON_MECHANICAL)
21752175GAME( 200?, as_vcv,    0        , astra_single,    astrafr,    astradec,   ROT0,  "Astra", "Viva Cash Vegas (Astra, V005)"      , GAME_IS_SKELETON_MECHANICAL)
21762176GAME( 200?, as_vcva,   as_vcv     , astra_single,    astrafr,    astradec,   ROT0,  "Astra", "Viva Cash Vegas (Astra, V107)"      , GAME_IS_SKELETON_MECHANICAL)
21772177GAME( 200?, as_vcvb,   as_vcv     , astra_single,    astrafr,    astradec,   ROT0,  "Astra", "Viva Cash Vegas (Astra, V106)"      , GAME_IS_SKELETON_MECHANICAL)
src/mame/drivers/bfm_sc4.c
r14998r14999
1212    emulation see bfm_sc4h.c
1313
1414
15   note: default Jackpot keys are set to whatever value the game
16         mentions it should be using with none present, many
17        games accept multiple keys
15    note: default Jackpot keys are set to whatever value the game
16          mentions it should be using with none present, many
17          games accept multiple keys
1818
1919*/
2020
r14998r14999
3131
3232      if (rom[3] != 0x6612)
3333         return false;
34     
34
3535      if (rom[7] != 0x0c81)
3636         return false;
37     
37
3838      if (rom[10] != 0x66ea)
3939         return false;
4040   }
r14998r14999
172172}
173173
174174/* default reels */
175const stepper_interface* default_reel_configs[6] =
175const stepper_interface* default_reel_configs[6] =
176176{
177177   &starpoint_interface_48step,
178178   &starpoint_interface_48step,
r14998r14999
222222   if (!found)
223223      printf("No suitable string found\n");
224224
225   
225
226226   sc4_state *state = machine.driver_data<sc4_state>();
227227
228228   state->m_reel_setup = default_reel_configs;
r14998r14999
2275222752GAME( 200?, sc4pstato   ,sc4pstat,   sc4, sc4, sc4, ROT0, "QPS","Paystation (V042) (Qps) (Scorpion 4) (set 1)", GAME_IS_SKELETON_MECHANICAL )
2275322753GAME( 200?, sc4pstatq   ,sc4pstat,   sc4, sc4, sc4, ROT0, "QPS","Paystation (V042) (Qps) (Scorpion 4) (set 2)", GAME_IS_SKELETON_MECHANICAL )
2275422754
22755const stepper_interface* sc4cvani_reel_configs[6] =
22755const stepper_interface* sc4cvani_reel_configs[6] =
2275622756{
2275722757   &starpoint_interface_48step,
2275822758   &starpoint_interface_48step,
r14998r14999
2278122781GAME( 200?, sc4cvanih   ,sc4cvani,   sc4, sc4, sc4cvani, ROT0, "QPS","Cashvania (Qps) (Scorpion 4) (set 9)", GAME_IS_SKELETON_MECHANICAL )
2278222782GAME( 200?, sc4cvanii   ,sc4cvani,   sc4, sc4, sc4cvani, ROT0, "QPS","Cashvania (Qps) (Scorpion 4) (set 10)", GAME_IS_SKELETON_MECHANICAL )
2278322783
22784const stepper_interface* sc4cvclb_reel_configs[6] =
22784const stepper_interface* sc4cvclb_reel_configs[6] =
2278522785{
2278622786   &starpoint_interface_48step,
2278722787   &starpoint_interface_48step,
r14998r14999
2289322893GAME( 200?, sc4bluee   ,sc4blue,   sc4, sc4, sc4, ROT0, "Mazooma","Blue Rinse (Mazooma) (Scorpion 4) (set 6)", GAME_IS_SKELETON_MECHANICAL )
2289422894
2289522895
22896const stepper_interface* sc4bonbx_reel_configs[6] =
22896const stepper_interface* sc4bonbx_reel_configs[6] =
2289722897{
2289822898   &starpoint_interface_200step_reel,
2289922899   &starpoint_interface_200step_reel,
r14998r14999
2408824088// PR2085  LUCKY SEVENS         LUCKY SEVENS  ARCADE  LUCKY SOUNDS         LUCKY SEVENS
2408924089GAME( 200?, sc4luck7d   ,sc4luck7,   sc4, sc4, sc4, ROT0, "Mazooma","Lucky 7s (Mazooma) (Scorpion 4) (set 5)", GAME_IS_SKELETON_MECHANICAL )
2409024090
24091const stepper_interface* sc4luckb_reel_configs[6] =
24091const stepper_interface* sc4luckb_reel_configs[6] =
2409224092{
2409324093   &starpoint_interface_48step,
2409424094   &starpoint_interface_48step,
r14998r14999
2442524425//  PR1205 PAY TIME         95004224 PAYTIME PR7156             PAY TIME
2442624426GAME( 200?, sc4paytm   ,0,         sc4, sc4, sc4, ROT0, "BFM","Pay Time (Bellfruit) (Scorpion 4)", GAME_IS_SKELETON_MECHANICAL ) // Not English
2442724427
24428const stepper_interface* sc4pgold_reel_configs[6] =
24428const stepper_interface* sc4pgold_reel_configs[6] =
2442924429{
2443024430   &starpoint_interface_48step,
2443124431   &starpoint_interface_48step,
r14998r14999
2473424734GAME( 200?, sc4rbankc   ,sc4rbank,   sc4, sc4, sc4, ROT0, "BFM","Royle Banker (Bellfruit) (Scorpion 4) (set 4)", GAME_IS_SKELETON_MECHANICAL )
2473524735
2473624736
24737const stepper_interface* sc4royle_reel_configs[6] =
24737const stepper_interface* sc4royle_reel_configs[6] =
2473824738{
2473924739   &starpoint_interface_48step,
2474024740   &starpoint_interface_48step,
r14998r14999
2555725557GAME( 200?, sc4bobh      ,sc4bob,   sc4, sc4, sc4, ROT0, "Mazooma","Bobby Dazzler (Mazooma) (Scorpion 4) (set 9)", GAME_IS_SKELETON_MECHANICAL )
2555825558GAME( 200?, sc4bobi      ,sc4bob,   sc4, sc4, sc4, ROT0, "Mazooma","Bobby Dazzler (Mazooma) (Scorpion 4) (set 10)", GAME_IS_SKELETON_MECHANICAL )
2555925559
25560const stepper_interface* sc4bull_reel_configs[6] =
25560const stepper_interface* sc4bull_reel_configs[6] =
2556125561{
2556225562   &starpoint_interface_48step,
2556325563   &starpoint_interface_48step,
r14998r14999
2574125741GAME( 200?, sc4crnjw   ,0,         sc4, sc4, sc4, ROT0, "BFM","Crown Jewels (Bellfruit) (Scorpion 4) (set 1)", GAME_IS_SKELETON_MECHANICAL )
2574225742GAME( 200?, sc4crnjwa   ,sc4crnjw,   sc4, sc4, sc4, ROT0, "BFM","Crown Jewels (Bellfruit) (Scorpion 4) (set 2)", GAME_IS_SKELETON_MECHANICAL )
2574325743
25744const stepper_interface* sc4dnd_reel_configs[6] =
25744const stepper_interface* sc4dnd_reel_configs[6] =
2574525745{
2574625746   &starpoint_interface_48step,
2574725747   &starpoint_interface_48step,
r14998r14999
2579025790GAME( 200?, sc4dndk      ,sc4dnd,   sc4, sc4dnd35, sc4dnd, ROT0, "BFM","Deal Or No Deal (Bellfruit) (Scorpion 4) (DONL428, set 1)", GAME_IS_SKELETON_MECHANICAL )// DONL 428
2579125791GAME( 200?, sc4dndm      ,sc4dnd,   sc4, sc4dnd35, sc4dnd, ROT0, "BFM","Deal Or No Deal (Bellfruit) (Scorpion 4) (DONL428, set 2)", GAME_IS_SKELETON_MECHANICAL )// DONL 428
2579225792
25793const stepper_interface* sc4dndcs_reel_configs[6] =
25793const stepper_interface* sc4dndcs_reel_configs[6] =
2579425794{
2579525795   &starpoint_interface_48step,
2579625796   &starpoint_interface_48step,
r14998r14999
2582025820GAME( 200?, sc4dndcsa   ,sc4dndcs,   sc4, sc4dndcs5, sc4dndcs, ROT0, "BFM","Deal Or No Deal Classic (Bellfruit) (Scorpion 4) (CLDD212, set 1)", GAME_IS_SKELETON_MECHANICAL ) // CLDD 212
2582125821GAME( 200?, sc4dndcsc   ,sc4dndcs,   sc4, sc4dndcs5, sc4dndcs, ROT0, "BFM","Deal Or No Deal Classic (Bellfruit) (Scorpion 4) (CLDD212, set 2)", GAME_IS_SKELETON_MECHANICAL ) // CLDD 212
2582225822
25823const stepper_interface* sc4dndbb_reel_configs[6] =
25823const stepper_interface* sc4dndbb_reel_configs[6] =
2582425824{
2582525825   &starpoint_interface_48step,
2582625826   &starpoint_interface_48step,
r14998r14999
2586425864GAME( 200?, sc4dndbbf   ,sc4dndbb,   sc4, sc4dndbb70, sc4dndbb, ROT0, "BFM","Deal Or No Deal Break The Bank (Bellfruit) (Scorpion 4) (CRBE572, set 1)", GAME_IS_SKELETON_MECHANICAL ) // CRBE 572
2586525865GAME( 200?, sc4dndbbi   ,sc4dndbb,   sc4, sc4dndbb70, sc4dndbb, ROT0, "BFM","Deal Or No Deal Break The Bank (Bellfruit) (Scorpion 4) (CRBE572, set 2)", GAME_IS_SKELETON_MECHANICAL )// CRBE 572
2586625866
25867const stepper_interface* sc4dndcl_reel_configs[6] =
25867const stepper_interface* sc4dndcl_reel_configs[6] =
2586825868{
2586925869   &starpoint_interface_48step,
2587025870   &starpoint_interface_48step,
r14998r14999
2589825898// PR1949 CLUB DEAL OR NO DEAL         DEAL OR NO DEAL CLUB  PR1949 DEAL O N D SOUNDS11
2589925899GAME( 200?, sc4dndclc   ,sc4dndcl,   sc4, sc4,         sc4dndcl, ROT0, "BFM","Deal Or No Deal Club (Bellfruit) (Scorpion 4) (DNDL181, set 1)", GAME_IS_SKELETON_MECHANICAL ) // DNDL 181 CLUB $500 (no key req?)
2590025900GAME( 200?, sc4dndclg   ,sc4dndcl,   sc4, sc4,         sc4dndcl, ROT0, "BFM","Deal Or No Deal Club (Bellfruit) (Scorpion 4) (DNDL181, set 2)", GAME_IS_SKELETON_MECHANICAL ) // DNDL 181 CLUB $500 (no key req?)
25901GAME( 200?, sc4dndcla   ,sc4dndcl,   sc4, sc4dndcl500, sc4dndcl, ROT0, "BFM","Deal Or No Deal Club (Bellfruit) (Scorpion 4) (DNDL212, set 1)", GAME_IS_SKELETON_MECHANICAL ) // DNDL 212 CLUB £500
25902GAME( 200?, sc4dndcle   ,sc4dndcl,   sc4, sc4dndcl500, sc4dndcl, ROT0, "BFM","Deal Or No Deal Club (Bellfruit) (Scorpion 4) (DNDL212, set 2)", GAME_IS_SKELETON_MECHANICAL ) // DNDL 212 CLUB £500
25903GAME( 200?, sc4dndcl   ,0,         sc4, sc4dndcl250, sc4dndcl, ROT0, "BFM","Deal Or No Deal Club (Bellfruit) (Scorpion 4) (DNDL313, set 1)", GAME_IS_SKELETON_MECHANICAL ) // DNDL 313 CLUB £250
25904GAME( 200?, sc4dndcld   ,sc4dndcl,   sc4, sc4dndcl250, sc4dndcl, ROT0, "BFM","Deal Or No Deal Club (Bellfruit) (Scorpion 4) (DNDL313, set 2)", GAME_IS_SKELETON_MECHANICAL ) // DNDL 313 CLUB £250
25905GAME( 200?, sc4dndclb   ,sc4dndcl,   sc4, sc4dndcl250, sc4dndcl, ROT0, "BFM","Deal Or No Deal Club (Bellfruit) (Scorpion 4) (DNDL391, set 1)", GAME_IS_SKELETON_MECHANICAL ) // DNDL 391 CLUB £250
25906GAME( 200?, sc4dndclf   ,sc4dndcl,   sc4, sc4dndcl250, sc4dndcl, ROT0, "BFM","Deal Or No Deal Club (Bellfruit) (Scorpion 4) (DNDL391, set 2)", GAME_IS_SKELETON_MECHANICAL ) // DNDL 391 CLUB £250
25901GAME( 200?, sc4dndcla   ,sc4dndcl,   sc4, sc4dndcl500, sc4dndcl, ROT0, "BFM","Deal Or No Deal Club (Bellfruit) (Scorpion 4) (DNDL212, set 1)", GAME_IS_SKELETON_MECHANICAL ) // DNDL 212 CLUB ?500
25902GAME( 200?, sc4dndcle   ,sc4dndcl,   sc4, sc4dndcl500, sc4dndcl, ROT0, "BFM","Deal Or No Deal Club (Bellfruit) (Scorpion 4) (DNDL212, set 2)", GAME_IS_SKELETON_MECHANICAL ) // DNDL 212 CLUB ?500
25903GAME( 200?, sc4dndcl   ,0,         sc4, sc4dndcl250, sc4dndcl, ROT0, "BFM","Deal Or No Deal Club (Bellfruit) (Scorpion 4) (DNDL313, set 1)", GAME_IS_SKELETON_MECHANICAL ) // DNDL 313 CLUB ?250
25904GAME( 200?, sc4dndcld   ,sc4dndcl,   sc4, sc4dndcl250, sc4dndcl, ROT0, "BFM","Deal Or No Deal Club (Bellfruit) (Scorpion 4) (DNDL313, set 2)", GAME_IS_SKELETON_MECHANICAL ) // DNDL 313 CLUB ?250
25905GAME( 200?, sc4dndclb   ,sc4dndcl,   sc4, sc4dndcl250, sc4dndcl, ROT0, "BFM","Deal Or No Deal Club (Bellfruit) (Scorpion 4) (DNDL391, set 1)", GAME_IS_SKELETON_MECHANICAL ) // DNDL 391 CLUB ?250
25906GAME( 200?, sc4dndclf   ,sc4dndcl,   sc4, sc4dndcl250, sc4dndcl, ROT0, "BFM","Deal Or No Deal Club (Bellfruit) (Scorpion 4) (DNDL391, set 2)", GAME_IS_SKELETON_MECHANICAL ) // DNDL 391 CLUB ?250
2590725907
25908const stepper_interface* sc4dnddd_reel_configs[6] =
25908const stepper_interface* sc4dnddd_reel_configs[6] =
2590925909{
2591025910   &starpoint_interface_48step,
2591125911   &starpoint_interface_48step,
r14998r14999
2594725947GAME( 200?, sc4dndddc   ,sc4dnddd,   sc4, sc4dnddd70, sc4dnddd, ROT0, "BFM","Deal Or No Deal Double Deal Or No Deal (Bellfruit) (Scorpion 4) (DDNO573, set 1)", GAME_IS_SKELETON_MECHANICAL ) // DDNO 573
2594825948GAME( 200?, sc4dndddg   ,sc4dnddd,   sc4, sc4dnddd70, sc4dnddd, ROT0, "BFM","Deal Or No Deal Double Deal Or No Deal (Bellfruit) (Scorpion 4) (DDNO573, set 2)", GAME_IS_SKELETON_MECHANICAL ) // DDNO 573
2594925949
25950const stepper_interface* sc4dndhf_reel_configs[6] =
25950const stepper_interface* sc4dndhf_reel_configs[6] =
2595125951{
2595225952   &starpoint_interface_48step,
2595325953   &starpoint_interface_48step,
r14998r14999
2599025990GAME( 200?, sc4dndhfc   ,sc4dndhf,   sc4, sc4dndhf70, sc4dndhf, ROT0, "BFM","Deal Or No Deal Hall Of Fame (Bellfruit) (Scorpion 4) (DNHA571, set 1)", GAME_IS_SKELETON_MECHANICAL ) // DNHA 571
2599125991GAME( 200?, sc4dndhfe   ,sc4dndhf,   sc4, sc4dndhf70, sc4dndhf, ROT0, "BFM","Deal Or No Deal Hall Of Fame (Bellfruit) (Scorpion 4) (DNHA571, set 2)", GAME_IS_SKELETON_MECHANICAL ) // DNHA 571
2599225992
25993const stepper_interface* sc4dndys_reel_configs[6] =
25993const stepper_interface* sc4dndys_reel_configs[6] =
2599425994{
2599525995   &starpoint_interface_48step,
2599625996   &starpoint_interface_48step,
r14998r14999
2602826028GAME( 200?, sc4dndysb   ,sc4dndys,   sc4, sc4dndys70, sc4dndys, ROT0, "BFM","Deal Or No Deal It's Your Show (Bellfruit) (Scorpion 4) (DOBO571, set 2)", GAME_IS_SKELETON_MECHANICAL ) // DOBO 571
2602926029GAME( 200?, sc4dndysa   ,sc4dndys,   sc4, sc4dndys35, sc4dndys, ROT0, "BFM","Deal Or No Deal It's Your Show (Bellfruit) (Scorpion 4) (DOBO474)",        GAME_IS_SKELETON_MECHANICAL ) // DOBO 474
2603026030
26031const stepper_interface* sc4dndlp_reel_configs[6] =
26031const stepper_interface* sc4dndlp_reel_configs[6] =
2603226032{
2603326033   &starpoint_interface_48step,
2603426034   &starpoint_interface_48step,
r14998r14999
2606226062GAME( 200?, sc4dndlpb   ,sc4dndlp,   sc4, sc4dndlp70, sc4dndlp, ROT0, "BFM","Deal Or No Deal Let's Play Deal Or No Deal (Bellfruit) (Scorpion 4) (LPDN573, set 1)", GAME_IS_SKELETON_MECHANICAL )// LPDN 573
2606326063GAME( 200?, sc4dndlpe   ,sc4dndlp,   sc4, sc4dndlp70, sc4dndlp, ROT0, "BFM","Deal Or No Deal Let's Play Deal Or No Deal (Bellfruit) (Scorpion 4) (LPDN573, set 2)", GAME_IS_SKELETON_MECHANICAL )// LPDN 573
2606426064
26065const stepper_interface* sc4dndra_reel_configs[6] =
26065const stepper_interface* sc4dndra_reel_configs[6] =
2606626066{
2606726067   &starpoint_interface_48step,
2606826068   &starpoint_interface_48step,
r14998r14999
2610126101GAME( 200?, sc4dndrac   ,sc4dndra,   sc4, sc4dndra70, sc4dndra, ROT0, "BFM","Deal Or No Deal Red Alert (Bellfruit) (Scorpion 4) (REDT572, set 1)", GAME_IS_SKELETON_MECHANICAL ) // REDT 572
2610226102GAME( 200?, sc4dndrae   ,sc4dndra,   sc4, sc4dndra70, sc4dndra, ROT0, "BFM","Deal Or No Deal Red Alert (Bellfruit) (Scorpion 4) (REDT572, set 2)", GAME_IS_SKELETON_MECHANICAL ) // REDT 572
2610326103
26104const stepper_interface* sc4dndbd_reel_configs[6] =
26104const stepper_interface* sc4dndbd_reel_configs[6] =
2610526105{
2610626106   &starpoint_interface_48step,
2610726107   &starpoint_interface_48step,
r14998r14999
2614126141GAME( 200?, sc4dndbdc   ,sc4dndbd,   sc4, sc4dndbd70, sc4dndbd, ROT0, "BFM","Deal Or No Deal The Big Deal (Bellfruit) (Scorpion 4) (BGDA571, set 1)", GAME_IS_SKELETON_MECHANICAL ) // BGDA 571
2614226142GAME( 200?, sc4dndbde   ,sc4dndbd,   sc4, sc4dndbd70, sc4dndbd, ROT0, "BFM","Deal Or No Deal The Big Deal (Bellfruit) (Scorpion 4) (BGDA571, set 2)", GAME_IS_SKELETON_MECHANICAL ) // BGDA 571
2614326143
26144const stepper_interface* sc4dndbr_reel_configs[6] =
26144const stepper_interface* sc4dndbr_reel_configs[6] =
2614526145{
2614626146   &starpoint_interface_48step,
2614726147   &starpoint_interface_48step,
r14998r14999
2618326183GAME( 200?, sc4dndbre   ,sc4dndbr,   sc4, sc4dndbr70, sc4dndbr, ROT0, "BFM","Deal Or No Deal The Big Reds (Bellfruit) (Scorpion 4) (BIGD571, set 1)", GAME_IS_SKELETON_MECHANICAL ) // BIGD 571
2618426184GAME( 200?, sc4dndbrg   ,sc4dndbr,   sc4, sc4dndbr70, sc4dndbr, ROT0, "BFM","Deal Or No Deal The Big Reds (Bellfruit) (Scorpion 4) (BIGD571, set 2)", GAME_IS_SKELETON_MECHANICAL ) // BIGD 571
2618526185
26186const stepper_interface* sc4dndcc_reel_configs[6] =
26186const stepper_interface* sc4dndcc_reel_configs[6] =
2618726187{
2618826188   &starpoint_interface_48step,
2618926189   &starpoint_interface_48step,
r14998r14999
2622426224GAME( 200?, sc4dndccd   ,sc4dndcc,   sc4, sc4dndcc70, sc4dndcc, ROT0, "BFM","Deal Or No Deal The Crazy Chair (Bellfruit) (Scorpion 4) (CRZR571, set 1)", GAME_IS_SKELETON_MECHANICAL ) // CRZR 571
2622526225GAME( 200?, sc4dndccf   ,sc4dndcc,   sc4, sc4dndcc70, sc4dndcc, ROT0, "BFM","Deal Or No Deal The Crazy Chair (Bellfruit) (Scorpion 4) (CRZR571, set 2)", GAME_IS_SKELETON_MECHANICAL ) // CRZR 571
2622626226
26227const stepper_interface* sc4dnddw_reel_configs[6] =
26227const stepper_interface* sc4dnddw_reel_configs[6] =
2622826228{
2622926229   &starpoint_interface_48step,
2623026230   &starpoint_interface_48step,
r14998r14999
2626526265GAME( 200?, sc4dnddwe   ,sc4dnddw,   sc4, sc4dnddw70, sc4dnddw, ROT0, "BFM","Deal Or No Deal The Deal Wheel (Bellfruit) (Scorpion 4) (DOFN572, set 1)", GAME_IS_SKELETON_MECHANICAL ) // DOFN 572
2626626266GAME( 200?, sc4dnddwg   ,sc4dnddw,   sc4, sc4dnddw70, sc4dnddw, ROT0, "BFM","Deal Or No Deal The Deal Wheel (Bellfruit) (Scorpion 4) (DOFN572, set 2)", GAME_IS_SKELETON_MECHANICAL ) // DOFN 572
2626726267
26268const stepper_interface* sc4dnddf_reel_configs[6] =
26268const stepper_interface* sc4dnddf_reel_configs[6] =
2626926269{
2627026270   &starpoint_interface_48step,
2627126271   &starpoint_interface_48step,
r14998r14999
2630426304GAME( 200?, sc4dnddfc   ,sc4dnddf,   sc4, sc4dnddf70, sc4dnddf, ROT0, "BFM","Deal Or No Deal The Dream Factory (Bellfruit) (Scorpion 4) (TDFC571, set 1)", GAME_IS_SKELETON_MECHANICAL ) // TDFC 571
2630526305GAME( 200?, sc4dnddfe   ,sc4dnddf,   sc4, sc4dnddf70, sc4dnddf, ROT0, "BFM","Deal Or No Deal The Dream Factory (Bellfruit) (Scorpion 4) (TDFC571, set 2)", GAME_IS_SKELETON_MECHANICAL ) // TDFC 571
2630626306
26307const stepper_interface* sc4dndpg_reel_configs[6] =
26307const stepper_interface* sc4dndpg_reel_configs[6] =
2630826308{
2630926309   &starpoint_interface_48step,
2631026310   &starpoint_interface_48step,
r14998r14999
2634426344GAME( 200?, sc4dndpgb   ,sc4dndpg,   sc4, sc4dndpg70, sc4dndpg, ROT0, "BFM","Deal Or No Deal The Perfect Game (Bellfruit) (Scorpion 4) (TPBG572, set 1)", GAME_IS_SKELETON_MECHANICAL ) // TPGB 572
2634526345GAME( 200?, sc4dndpge   ,sc4dndpg,   sc4, sc4dndpg70, sc4dndpg, ROT0, "BFM","Deal Or No Deal The Perfect Game (Bellfruit) (Scorpion 4) (TPGB572, set 2)", GAME_IS_SKELETON_MECHANICAL ) // TPGB 572
2634626346
26347const stepper_interface* sc4dndtp_reel_configs[6] =
26347const stepper_interface* sc4dndtp_reel_configs[6] =
2634826348{
2634926349   &starpoint_interface_48step,
2635026350   &starpoint_interface_48step,
r14998r14999
2638526385GAME( 200?, sc4dndtpk   ,sc4dndtp,   sc4, sc4dndtp35, sc4dndtp, ROT0, "BFM","Deal Or No Deal The Power 5 (Bellfruit) (Scorpion 4) (TPRV41A, set 2)", GAME_IS_SKELETON_MECHANICAL )// TPRV 41A
2638626386
2638726387
26388const stepper_interface* sc4dndww_reel_configs[6] =
26388const stepper_interface* sc4dndww_reel_configs[6] =
2638926389{
2639026390   &starpoint_interface_48step,
2639126391   &starpoint_interface_48step,
r14998r14999
2641826418GAME( 200?, sc4dndwwc   ,sc4dndww,   sc4, sc4dndww35, sc4dndww, ROT0, "BFM","Deal Or No Deal The Walk Of Wealth (Bellfruit) (Scorpion 4) (TWOH415, set 1)", GAME_IS_SKELETON_MECHANICAL ) // TWOH 415
2641926419GAME( 200?, sc4dndwwd   ,sc4dndww,   sc4, sc4dndww35, sc4dndww, ROT0, "BFM","Deal Or No Deal The Walk Of Wealth (Bellfruit) (Scorpion 4) (TWOH415, set 2)", GAME_IS_SKELETON_MECHANICAL ) // TWOH 415
2642026420
26421const stepper_interface* sc4dndcw_reel_configs[6] =
26421const stepper_interface* sc4dndcw_reel_configs[6] =
2642226422{
2642326423   &starpoint_interface_48step,
2642426424   &starpoint_interface_48step,
r14998r14999
2644926449GAME( 200?, sc4dndcwa   ,sc4dndcw,   sc4, sc4dndcw5, sc4dndcw, ROT0, "BFM","Deal Or No Deal The Walk Of Wealth Classic (Bellfruit) (Scorpion 4) (CWOH272, set 1)", GAME_IS_SKELETON_MECHANICAL ) // CWOH 272
2645026450GAME( 200?, sc4dndcwc   ,sc4dndcw,   sc4, sc4dndcw5, sc4dndcw, ROT0, "BFM","Deal Or No Deal The Walk Of Wealth Classic (Bellfruit) (Scorpion 4) (CWOH272, set 2)", GAME_IS_SKELETON_MECHANICAL ) // CWOH 272
2645126451
26452const stepper_interface* sc4dndtr_reel_configs[6] =
26452const stepper_interface* sc4dndtr_reel_configs[6] =
2645326453{
2645426454   &starpoint_interface_48step,
2645526455   &starpoint_interface_48step,
r14998r14999
2647826478GAME( 200?, sc4dndtr   ,0,         sc4, sc4dndtr70, sc4dndtr, ROT0, "BFM","Deal Or No Deal Think Red (Bellfruit) (Scorpion 4) (THRE571, set 1)", GAME_IS_SKELETON_MECHANICAL ) // THRE 571
2647926479GAME( 200?, sc4dndtra   ,sc4dndtr,   sc4, sc4dndtr70, sc4dndtr, ROT0, "BFM","Deal Or No Deal Think Red (Bellfruit) (Scorpion 4) (THRE571, set 2)", GAME_IS_SKELETON_MECHANICAL ) // THRE 571
2648026480
26481const stepper_interface* sc4dndwb_reel_configs[6] =
26481const stepper_interface* sc4dndwb_reel_configs[6] =
2648226482{
2648326483   &starpoint_interface_48step,
2648426484   &starpoint_interface_48step,
r14998r14999
2651226512GAME( 200?, sc4dndwbf   ,sc4dndwb,   sc4, sc4dndwb35, sc4dndwb, ROT0, "BFM","Deal Or No Deal What's In Your Box (Bellfruit) (Scorpion 4) (WIYX419, set 1)", GAME_IS_SKELETON_MECHANICAL ) // WIYX 419
2651326513GAME( 200?, sc4dndwbg   ,sc4dndwb,   sc4, sc4dndwb35, sc4dndwb, ROT0, "BFM","Deal Or No Deal What's In Your Box (Bellfruit) (Scorpion 4) (WIYX419, set 2)", GAME_IS_SKELETON_MECHANICAL ) // WIYX 419
2651426514
26515const stepper_interface* sc4dndbe_reel_configs[6] =
26515const stepper_interface* sc4dndbe_reel_configs[6] =
2651626516{
2651726517   &starpoint_interface_48step,
2651826518   &starpoint_interface_48step,
r14998r14999
2655926559GAME( 200?, sc4dndbem   ,sc4dndbe,   sc4, sc4dndbe35, sc4dndbe, ROT0, "BFM","Deal Or No Deal Beat The Banker (Bellfruit) (Scorpion 4) (DBTK426, set 1)", GAME_IS_SKELETON_MECHANICAL ) // DBTK 426
2656026560GAME( 200?, sc4dndben   ,sc4dndbe,   sc4, sc4dndbe35, sc4dndbe, ROT0, "BFM","Deal Or No Deal Beat The Banker (Bellfruit) (Scorpion 4) (DBTK426, set 2)", GAME_IS_SKELETON_MECHANICAL ) // DBTK 426
2656126561
26562const stepper_interface* sc4dndbc_reel_configs[6] =
26562const stepper_interface* sc4dndbc_reel_configs[6] =
2656326563{
2656426564   &starpoint_interface_48step,
2656526565   &starpoint_interface_48step,
r14998r14999
2665326653GAME( 200?, sc4evolf   ,sc4evol,   sc4, sc4, sc4, ROT0, "Qps","Evolution (Qps) (Scorpion 4) (set 7)", GAME_IS_SKELETON_MECHANICAL )
2665426654GAME( 200?, sc4evolg   ,sc4evol,   sc4, sc4, sc4, ROT0, "Qps","Evolution (Qps) (Scorpion 4) (set 8)", GAME_IS_SKELETON_MECHANICAL )
2665526655
26656const stepper_interface* sc4fguy_reel_configs[6] =
26656const stepper_interface* sc4fguy_reel_configs[6] =
2665726657{
2665826658   &starpoint_interface_48step,
2665926659   &starpoint_interface_48step,
r14998r14999
2671226712GAME( 200?, sc4gladf   ,sc4glad,   sc4, sc4, sc4, ROT0, "Mazooma","Gladiator (Mazooma) (Scorpion 4) (set 7)", GAME_IS_SKELETON_MECHANICAL )
2671326713GAME( 200?, sc4gladg   ,sc4glad,   sc4, sc4, sc4, ROT0, "Mazooma","Gladiator (Mazooma) (Scorpion 4) (set 8)", GAME_IS_SKELETON_MECHANICAL )
2671426714
26715const stepper_interface* sc4gd_reel_configs[6] =
26715const stepper_interface* sc4gd_reel_configs[6] =
2671626716{
2671726717   &starpoint_interface_48step,
2671826718   &starpoint_interface_48step,
r14998r14999
2674326743GAME( 200?, sc4gdmz      ,0,         sc4, sc4, sc4, ROT0, "Mazooma","Gold Diggers? / Golden X Game (Mazooma) (Scorpion 4) (set 1)", GAME_IS_SKELETON_MECHANICAL )
2674426744GAME( 200?, sc4gdmza   ,sc4gdmz,   sc4, sc4, sc4, ROT0, "Mazooma","Gold Diggers? / Golden X Game (Mazooma) (Scorpion 4) (set 2)", GAME_IS_SKELETON_MECHANICAL )
2674526745
26746const stepper_interface* sc4gdclb_reel_configs[6] =
26746const stepper_interface* sc4gdclb_reel_configs[6] =
2674726747{
2674826748   &starpoint_interface_48step,
2674926749   &starpoint_interface_48step,
r14998r14999
2677526775GAME( 200?, sc4gdclbj   ,sc4gdclb,   sc4, sc4, sc4gdclb, ROT0, "BFM","Gold Digger Club (Bellfruit) (Scorpion 4) (set 11)", GAME_IS_SKELETON_MECHANICAL )
2677626776GAME( 200?, sc4gdclbk   ,sc4gdclb,   sc4, sc4, sc4gdclb, ROT0, "BFM","Gold Digger Club (Bellfruit) (Scorpion 4) (set 12)", GAME_IS_SKELETON_MECHANICAL )
2677726777
26778const stepper_interface* sc4gbcas_reel_configs[6] =
26778const stepper_interface* sc4gbcas_reel_configs[6] =
2677926779{
2678026780   &starpoint_interface_48step,
2678126781   &starpoint_interface_48step,
r14998r14999
2680026800GAME( 200?, sc4gbcasc   ,sc4gbcas,   sc4, sc4, sc4gbcas, ROT0, "BFM","Golden Balls Casino (Bellfruit) (Scorpion 4) (set 4)", GAME_IS_SKELETON_MECHANICAL )
2680126801
2680226802
26803const stepper_interface* sc4gball_reel_configs[6] =
26803const stepper_interface* sc4gball_reel_configs[6] =
2680426804{
2680526805   &starpoint_interface_48step,
2680626806   &starpoint_interface_48step,
r14998r14999
2682426824GAME( 200?, sc4gballb   ,sc4gball,   sc4, sc4, sc4gball, ROT0, "BFM","Golden Balls (Bellfruit) (Scorpion 4) (set 3)", GAME_IS_SKELETON_MECHANICAL )
2682526825GAME( 200?, sc4gballc   ,sc4gball,   sc4, sc4, sc4gball, ROT0, "BFM","Golden Balls (Bellfruit) (Scorpion 4) (set 4)", GAME_IS_SKELETON_MECHANICAL )
2682626826
26827const stepper_interface* sc4gunp_reel_configs[6] =
26827const stepper_interface* sc4gunp_reel_configs[6] =
2682826828{
2682926829   &starpoint_interface_48step,
2683026830   &starpoint_interface_48step,
r14998r14999
2685126851GAME( 200?, sc4gunpf   ,sc4gunp,   sc4, sc4, sc4gunp, ROT0, "BFM","Gunpowder Slot (Bellfruit) (Scorpion 4) (set 7)", GAME_IS_SKELETON_MECHANICAL )
2685226852GAME( 200?, sc4gunpg   ,sc4gunp,   sc4, sc4, sc4gunp, ROT0, "BFM","Gunpowder Slot (Bellfruit) (Scorpion 4) (set 8)", GAME_IS_SKELETON_MECHANICAL )
2685326853
26854const stepper_interface* sc4hapnt_reel_configs[6] =
26854const stepper_interface* sc4hapnt_reel_configs[6] =
2685526855{
2685626856   &starpoint_interface_48step,
2685726857   &starpoint_interface_48step,
r14998r14999
2687626876GAME( 200?, sc4hapntd   ,sc4hapnt,   sc4, sc4, sc4hapnt, ROT0, "BFM","Happy Notes (Bellfruit) (Scorpion 4) (set 5)", GAME_IS_SKELETON_MECHANICAL )
2687726877GAME( 200?, sc4hapnte   ,sc4hapnt,   sc4, sc4, sc4hapnt, ROT0, "BFM","Happy Notes (Bellfruit) (Scorpion 4) (set 6)", GAME_IS_SKELETON_MECHANICAL )
2687826878
26879const stepper_interface* sc4hntcs_reel_configs[6] =
26879const stepper_interface* sc4hntcs_reel_configs[6] =
2688026880{
2688126881   &starpoint_interface_48step,
2688226882   &starpoint_interface_48step,
r14998r14999
2693826938GAME( 200?, sc4hellbi   ,sc4hellb,   sc4, sc4, sc4mbus, ROT0, "BFM","Hells Bells (PR1419) (Bellfruit) (Scorpion 4) (set 9)", GAME_IS_SKELETON_MECHANICAL )
2693926939GAME( 200?, sc4hellbj   ,sc4hellb,   sc4, sc4, sc4mbus, ROT0, "BFM","Hells Bells (PR1419) (Bellfruit) (Scorpion 4) (set 10)", GAME_IS_SKELETON_MECHANICAL )
2694026940
26941const stepper_interface* sc4hill_reel_configs[6] =
26941const stepper_interface* sc4hill_reel_configs[6] =
2694226942{
2694326943   &starpoint_interface_48step,
2694426944   &starpoint_interface_48step,
r14998r14999
2756227562GAME( 200?, sc4mowowb   ,sc4mowow,   sc4, sc4, sc4, ROT0, "Mazooma","Monopoly Wheel Of Wealth (Mazooma) (PR2118) (Scorpion 4) (set 3)", GAME_IS_SKELETON_MECHANICAL ) // ^^
2756327563GAME( 200?, sc4mowowc   ,sc4mowow,   sc4, sc4, sc4, ROT0, "Mazooma","Monopoly Wheel Of Wealth (Mazooma) (PR2118) (Scorpion 4) (set 4)", GAME_IS_SKELETON_MECHANICAL ) // ^^
2756427564
27565GAME( 200?, sc4mwwtb   ,0,         sc4, sc4, sc4, ROT0, "Mazooma","Monopoly Wheel Of Wealth (Mazooma) (PR2389, Top Box) (Scorpion 4) (set 1)", GAME_IS_SKELETON_MECHANICAL ) // PR2389  WHEEL OF WEALTH         WOWT SOUNDS         WHEEL OF WEAL
27565GAME( 200?, sc4mwwtb   ,0,        sc4, sc4, sc4, ROT0, "Mazooma","Monopoly Wheel Of Wealth (Mazooma) (PR2389, Top Box) (Scorpion 4) (set 1)", GAME_IS_SKELETON_MECHANICAL ) // PR2389  WHEEL OF WEALTH         WOWT SOUNDS         WHEEL OF WEAL
2756627566GAME( 200?, sc4mwwtba   ,sc4mwwtb,   sc4, sc4, sc4, ROT0, "Mazooma","Monopoly Wheel Of Wealth (Mazooma) (PR2389, Top Box) (Scorpion 4) (set 2)", GAME_IS_SKELETON_MECHANICAL ) // ^^
2756727567GAME( 200?, sc4mwwtbb   ,sc4mwwtb,   sc4, sc4, sc4, ROT0, "Mazooma","Monopoly Wheel Of Wealth (Mazooma) (PR2389, Top Box) (Scorpion 4) (set 3)", GAME_IS_SKELETON_MECHANICAL ) // ^^
2756827568GAME( 200?, sc4mwwtbc   ,sc4mwwtb,   sc4, sc4, sc4, ROT0, "Mazooma","Monopoly Wheel Of Wealth (Mazooma) (PR2389, Top Box) (Scorpion 4) (set 4)", GAME_IS_SKELETON_MECHANICAL )// ^^
2756927569GAME( 200?, sc4mwwtbd   ,sc4mwwtb,   sc4, sc4, sc4, ROT0, "Mazooma","Monopoly Wheel Of Wealth (Mazooma) (PR2389, Top Box) (Scorpion 4) (set 5)", GAME_IS_SKELETON_MECHANICAL )// ^^
2757027570
2757127571
27572const stepper_interface* sc4bwow_reel_configs[6] =
27572const stepper_interface* sc4bwow_reel_configs[6] =
2757327573{
2757427574   &starpoint_interface_48step,
2757527575   &starpoint_interface_48step,
r14998r14999
2762527625GAME( 200?, sc4ggtba   ,sc4ggtb,   sc4, sc4, sc4, ROT0, "Mazooma","Golden Game (Mazooma) (PR2056, Top Box) (Scorpion 4) (set 2)", GAME_IS_SKELETON_MECHANICAL ) // ^^
2762627626GAME( 200?, sc4ggtbb   ,sc4ggtb,   sc4, sc4, sc4, ROT0, "Mazooma","Golden Game (Mazooma) (PR2056, Top Box) (Scorpion 4) (set 3)", GAME_IS_SKELETON_MECHANICAL )// ^^
2762727627
27628const stepper_interface* sc4ggame_reel_configs[6] =
27628const stepper_interface* sc4ggame_reel_configs[6] =
2762927629{
2763027630   &starpoint_interface_200step_reel,
2763127631   &starpoint_interface_200step_reel,
r14998r14999
2765127651
2765227652// 25GBP sets
2765327653// PR2056  GOLDEN X         GOLDEN GAME ARCADE  BARX SOUNDS         GOLDEN X
27654GAME( 200?, sc4ggame   ,0,           sc4, sc4, sc4ggamem, ROT0, "Mazooma","Golden Game (Mazooma) (PR2056, newer?) (Scorpion 4) (GLDX, 25GBP, set 1)", GAME_IS_SKELETON_MECHANICAL )
27654GAME( 200?, sc4ggame   ,0,           sc4, sc4, sc4ggamem, ROT0, "Mazooma","Golden Game (Mazooma) (PR2056, newer?) (Scorpion 4) (GLDX, 25GBP, set 1)", GAME_IS_SKELETON_MECHANICAL )
2765527655GAME( 200?, sc4ggamei   ,sc4ggame,   sc4, sc4, sc4ggamem, ROT0, "Mazooma","Golden Game (Mazooma) (PR2056, newer?) (Scorpion 4) (GLDX, 25GBP, set 2)", GAME_IS_SKELETON_MECHANICAL )// ^^
2765627656GAME( 200?, sc4ggamep   ,sc4ggame,   sc4, sc4, sc4ggamem, ROT0, "Mazooma","Golden Game (Mazooma) (PR2056, newer?) (Scorpion 4) (GLDX, 25GBP, set 3)", GAME_IS_SKELETON_MECHANICAL )// ^^
2765727657GAME( 200?, sc4ggameq   ,sc4ggame,   sc4, sc4, sc4ggamem, ROT0, "Mazooma","Golden Game (Mazooma) (PR2056, newer?) (Scorpion 4) (GLDX, 25GBP, set 4)", GAME_IS_SKELETON_MECHANICAL )// ^^
r14998r14999
2767627676GAME( 200?, sc4ggame2   ,sc4ggame,   sc4, sc4, sc4ggamem, ROT0, "Mazooma","Golden Game (Mazooma) (PR2056, newer?) (Scorpion 4) (set 8)", GAME_IS_SKELETON_MECHANICAL )// ^^
2767727677// 25GBP, no 41 check
2767827678// PR2056  GOLDEN X         BARX SOUNDS         GOLDEN X
27679GAME( 200?, sc4ggamea   ,sc4ggame,   sc4, sc4, sc4ggame,  ROT0, "Mazooma","Golden Game (Mazooma) (PR2056) (Scorpion 4) (GLDX, 25GBP, set 1)", GAME_IS_SKELETON_MECHANICAL )
27679GAME( 200?, sc4ggamea   ,sc4ggame,   sc4, sc4, sc4ggame,  ROT0, "Mazooma","Golden Game (Mazooma) (PR2056) (Scorpion 4) (GLDX, 25GBP, set 1)", GAME_IS_SKELETON_MECHANICAL )
2768027680GAME( 200?, sc4ggameb   ,sc4ggame,   sc4, sc4, sc4ggame,  ROT0, "Mazooma","Golden Game (Mazooma) (PR2056) (Scorpion 4) (GLDX, 25GBP, set 2)", GAME_IS_SKELETON_MECHANICAL ) // ^^
2768127681GAME( 200?, sc4ggamec   ,sc4ggame,   sc4, sc4, sc4ggame,  ROT0, "Mazooma","Golden Game (Mazooma) (PR2056) (Scorpion 4) (GLDX, 25GBP, set 3)", GAME_IS_SKELETON_MECHANICAL ) // ^^
2768227682GAME( 200?, sc4ggamed   ,sc4ggame,   sc4, sc4, sc4ggame,  ROT0, "Mazooma","Golden Game (Mazooma) (PR2056) (Scorpion 4) (GLDX, 25GBP, set 4)", GAME_IS_SKELETON_MECHANICAL ) // ^^
r14998r14999
2771127711GAME( 200?, sc4ggdlxf   ,sc4ggdlx,   sc4, sc4, sc4ggame, ROT0, "Mazooma","Golden Game Deluxe (Mazooma) (PR2201) (Scorpion 4) (set 7)", GAME_IS_SKELETON_MECHANICAL )
2771227712GAME( 200?, sc4ggdlxg   ,sc4ggdlx,   sc4, sc4, sc4ggame, ROT0, "Mazooma","Golden Game Deluxe (Mazooma) (PR2201) (Scorpion 4) (set 8)", GAME_IS_SKELETON_MECHANICAL )// ^^
2771327713
27714const stepper_interface* sc4gggtb_reel_configs[6] =
27714const stepper_interface* sc4gggtb_reel_configs[6] =
2771527715{
2771627716   &starpoint_interface_48step,
2771727717   &starpoint_interface_48step,
r14998r14999
2773327733GAME( 200?, sc4gggtba      ,sc4ggg,   sc4, sc4, sc4gggtb, ROT0, "Mazooma","Grand Golden Game (Mazooma) (PR2056, Top Box) (Scorpion 4) (GGGT, set 2)", GAME_IS_SKELETON_MECHANICAL )// ^^
2773427734
2773527735
27736const stepper_interface* sc4ggg_reel_configs[6] =
27736const stepper_interface* sc4ggg_reel_configs[6] =
2773727737{
2773827738   &starpoint_interface_200step_reel,
2773927739   &starpoint_interface_200step_reel,
src/mame/drivers/galaxian.c
r14998r14999
11961196WRITE8_MEMBER(galaxian_state::kingball_sound2_w)
11971197{
11981198   m_kingball_sound = (m_kingball_sound & ~0x02) | (data << 1);
1199   soundlatch_byte_w(*&space, 0, m_kingball_sound | 0xf0);
1199   soundlatch_byte_w(space, 0, m_kingball_sound | 0xf0);
12001200}
12011201
12021202
r14998r14999
12721272
12731273WRITE8_MEMBER(galaxian_state::checkman_sound_command_w)
12741274{
1275   soundlatch_byte_w(*&space, 0, data);
1275   soundlatch_byte_w(space, 0, data);
12761276   cputag_set_input_line(machine(), "audiocpu", INPUT_LINE_NMI, PULSE_LINE);
12771277}
12781278
src/mame/drivers/berzerk.c
r14998r14999
607607
608608static ADDRESS_MAP_START( frenzy_map, AS_PROGRAM, 8, berzerk_state )
609609   AM_RANGE(0x0000, 0x3fff) AM_ROM
610   AM_RANGE(0x4000, 0x5fff) AM_RAM AM_SHARE("videoram")
610   AM_RANGE(0x4000, 0x5fff) AM_RAM AM_SHARE("videoram")
611611   AM_RANGE(0x6000, 0x7fff) AM_RAM_WRITE(magicram_w) AM_SHARE("videoram")
612612   AM_RANGE(0x8000, 0x87ff) AM_MIRROR(0x3800) AM_RAM AM_SHARE("colorram")
613613   AM_RANGE(0xc000, 0xcfff) AM_ROM
src/mame/drivers/psikyo.c
r14998r14999
10161016static MACHINE_START( psikyo )
10171017{
10181018   psikyo_state *state = machine.driver_data<psikyo_state>();
1019   
1019
10201020   state->m_audiocpu = machine.device("audiocpu");
10211021
10221022   state->save_item(NAME(state->m_soundlatch));
src/mame/drivers/model3.c
r14998r14999
16091609{
16101610   UINT64 r = 0;
16111611   if(ACCESSING_BITS_56_63) {
1612      r |= (UINT64)rtc72421_r(*&space, (offset*2)+0, (UINT32)(mem_mask >> 32)) << 32;
1612      r |= (UINT64)rtc72421_r(space, (offset*2)+0, (UINT32)(mem_mask >> 32)) << 32;
16131613   }
16141614   if(ACCESSING_BITS_24_31) {
1615      r |= (UINT64)rtc72421_r(*&space, (offset*2)+1, (UINT32)(mem_mask));
1615      r |= (UINT64)rtc72421_r(space, (offset*2)+1, (UINT32)(mem_mask));
16161616   }
16171617   return r;
16181618}
r14998r14999
16201620WRITE64_MEMBER(model3_state::model3_rtc_w)
16211621{
16221622   if(ACCESSING_BITS_56_63) {
1623      rtc72421_w(*&space, (offset*2)+0, (UINT32)(data >> 32), (UINT32)(mem_mask >> 32));
1623      rtc72421_w(space, (offset*2)+0, (UINT32)(data >> 32), (UINT32)(mem_mask >> 32));
16241624   }
16251625   if(ACCESSING_BITS_24_31) {
1626      rtc72421_w(*&space, (offset*2)+1, (UINT32)(data), (UINT32)(mem_mask));
1626      rtc72421_w(space, (offset*2)+1, (UINT32)(data), (UINT32)(mem_mask));
16271627   }
16281628}
16291629
src/mame/drivers/globalfr.c
r14998r14999
2626    { }
2727
2828   required_device<cpu_device> m_maincpu;
29   
29
3030// serial vfd
3131   bool vfd_old_clock;
3232
r14998r14999
4040
4141   int clock = (data & 0x40);
4242   int datline = (data & 0x80);
43   
43
4444   //Unlike MPU4, this uses positive transitions on both lines, so this may be a similar, but not identical component
4545   // if the clock line changes
4646   if ( clock != state->vfd_old_clock )
src/mame/drivers/tetrisp2.c
r14998r14999
574574
575575WRITE16_MEMBER(stepstag_state::stepstag_leds_w)
576576{
577//   data = COMBINE_DATA()
577//  data = COMBINE_DATA()
578578   if (ACCESSING_BITS_0_7)
579579   {
580580      set_led_status(machine(),  0,   data & 0x0001);   // P2 Front-Left
r14998r14999
594594      set_led_status(machine(), 11,   data & 0x2000);   // P1 Back-Right
595595   }
596596
597//   popmessage("FEET %02x",data);
597//  popmessage("FEET %02x",data);
598598}
599599
600600// Main CPU
r14998r14999
606606   AM_RANGE(0x300000, 0x31ffff) AM_RAM                                             // Palette
607607   AM_RANGE(0x400000, 0x403fff) AM_RAM_WRITE(tetrisp2_vram_fg_w) AM_SHARE("vram_fg")         // Foreground
608608   AM_RANGE(0x404000, 0x407fff) AM_RAM_WRITE(tetrisp2_vram_bg_w) AM_SHARE("vram_bg")         // Background
609//   AM_RANGE(0x408000, 0x409fff) AM_RAM                                             // ???
609//  AM_RANGE(0x408000, 0x409fff) AM_RAM                                                         // ???
610610   AM_RANGE(0x500000, 0x50ffff) AM_RAM                                             // Line
611611   AM_RANGE(0x600000, 0x60ffff) AM_RAM_WRITE(tetrisp2_vram_rot_w) AM_SHARE("vram_rot")      // Rotation
612612   AM_RANGE(0x900000, 0x903fff) AM_READWRITE(tetrisp2_nvram_r, tetrisp2_nvram_w) AM_SHARE("nvram")   // NVRAM
613613   AM_RANGE(0x904000, 0x907fff) AM_READWRITE(tetrisp2_nvram_r, tetrisp2_nvram_w)            // NVRAM (mirror)
614614
615615   AM_RANGE(0xa10000, 0xa10001) AM_READ_PORT("FEET") AM_WRITE(stepstag_leds_w)               // I/O
616//   AM_RANGE(0xa30000, 0xa30001) AM_NOP   // PC?
616//  AM_RANGE(0xa30000, 0xa30001) AM_NOP // PC?
617617   AM_RANGE(0xa42000, 0xa42001) AM_READ( unk_a42000_r ) // visual ready flag + ???
618618   AM_RANGE(0xa44000, 0xa44001) AM_READNOP      // watchdog
619//   AM_RANGE(0xa48000, 0xa48001) AM_WRITENOP   // PC?
620//   AM_RANGE(0xa4c000, 0xa4c001) AM_WRITENOP   // PC?
619//  AM_RANGE(0xa48000, 0xa48001) AM_WRITENOP    // PC?
620//  AM_RANGE(0xa4c000, 0xa4c001) AM_WRITENOP    // PC?
621621   AM_RANGE(0xa50000, 0xa50001) AM_READWRITE( soundlatch_word_r, stepstag_soundlatch_word_w )
622622   AM_RANGE(0xa60000, 0xa60003) AM_DEVWRITE8_LEGACY("ymz", ymz280b_w, 0x00ff)               // Sound
623623
r14998r14999
652652
653653   // rgb brightness?
654654   AM_RANGE(0x700000, 0x700001) AM_WRITENOP // 0-f
655   AM_RANGE(0x700002, 0x700003) AM_WRITENOP //   0-f
655   AM_RANGE(0x700002, 0x700003) AM_WRITENOP // 0-f
656656   AM_RANGE(0x700004, 0x700005) AM_WRITENOP // 0-f
657657   AM_RANGE(0x700006, 0x700007) AM_WRITENOP // 0-3f (high bits?)
658658
r14998r14999
660660   AM_RANGE(0x800000, 0x803fff) AM_RAM AM_SHARE("spriteram")      // Object RAM
661661   AM_RANGE(0x800000, 0x87ffff) AM_RAM
662662   AM_RANGE(0x880000, 0x880001) AM_WRITENOP // cleared after writing this sprite list
663//   AM_RANGE(0x8c0000, 0x8c0001) AM_WRITENOP // cleared at boot
663//  AM_RANGE(0x8c0000, 0x8c0001) AM_WRITENOP // cleared at boot
664664
665665   // middle screen sprites
666666   AM_RANGE(0x900000, 0x903fff) AM_RAM AM_SHARE("spriteram2")      // Object RAM
667667   AM_RANGE(0x900000, 0x97ffff) AM_RAM
668668   AM_RANGE(0x980000, 0x980001) AM_WRITENOP // cleared after writing this sprite list
669//   AM_RANGE(0x9c0000, 0x9c0001) AM_WRITENOP // cleared at boot
669//  AM_RANGE(0x9c0000, 0x9c0001) AM_WRITENOP // cleared at boot
670670
671671   // right screen sprites
672672   AM_RANGE(0xa00000, 0xa03fff) AM_RAM AM_SHARE("spriteram3")      // Object RAM
673673   AM_RANGE(0xa00000, 0xa7ffff) AM_RAM
674674   AM_RANGE(0xa80000, 0xa80001) AM_WRITENOP // cleared after writing this sprite list
675//   AM_RANGE(0xac0000, 0xac0001) AM_WRITENOP // cleared at boot
675//  AM_RANGE(0xac0000, 0xac0001) AM_WRITENOP // cleared at boot
676676
677677   AM_RANGE(0xb00000, 0xb00001) AM_READWRITE( soundlatch_word_r, soundlatch_word_w )
678678
r14998r14999
11171117static INPUT_PORTS_START( stepstag )
11181118   PORT_START("BUTTONS") // $be0002.w
11191119   PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_PLAYER(2)      // P2 start (middle)
1120   PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_PLAYER(2)      // P2 start (left)     
1120   PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_PLAYER(2)      // P2 start (left)
11211121   PORT_BIT( 0x0004, IP_ACTIVE_LOW, IPT_BUTTON3 ) PORT_PLAYER(2)      // P2 start (right)
11221122   PORT_BIT( 0x0008, IP_ACTIVE_LOW, IPT_UNKNOWN )
11231123   PORT_BIT( 0x0010, IP_ACTIVE_LOW, IPT_UNKNOWN )
r14998r14999
11251125   PORT_BIT( 0x0040, IP_ACTIVE_LOW, IPT_UNKNOWN )
11261126   PORT_BIT( 0x0080, IP_ACTIVE_LOW, IPT_UNKNOWN )
11271127   PORT_BIT( 0x0100, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_PLAYER(1)      // P1 start (middle)
1128   PORT_BIT( 0x0200, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_PLAYER(1)      // P1 start (left)     
1128   PORT_BIT( 0x0200, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_PLAYER(1)      // P1 start (left)
11291129   PORT_BIT( 0x0400, IP_ACTIVE_LOW, IPT_BUTTON3 ) PORT_PLAYER(1)      // P1 start (right)
11301130   PORT_BIT( 0x0800, IP_ACTIVE_LOW, IPT_UNKNOWN )
11311131   PORT_BIT( 0x1000, IP_ACTIVE_LOW, IPT_UNKNOWN )
src/mame/drivers/ssv.c
r14998r14999
412412   AM_RANGE(0x160000, 0x17ffff) AM_RAM                                                /*          */   \
413413   AM_RANGE(0x1c0000, 0x1c0001) AM_READ(ssv_vblank_r         )                           /*  Vblank? */   \
414414/**/AM_RANGE(0x1c0002, 0x1c007f) AM_READONLY                           /*  Scroll  */   \
415   AM_RANGE(0x1c0000, 0x1c007f) AM_WRITE(ssv_scroll_w) AM_SHARE("scroll")                /*  Scroll  */  \
415   AM_RANGE(0x1c0000, 0x1c007f) AM_WRITE(ssv_scroll_w) AM_SHARE("scroll")                /*  Scroll  */  \
416416   AM_RANGE(0x210002, 0x210003) AM_READ_PORT("DSW1")                                                \
417417   AM_RANGE(0x210004, 0x210005) AM_READ_PORT("DSW2")                                                \
418418   AM_RANGE(0x210008, 0x210009) AM_READ_PORT("P1")                                                   \
src/mame/drivers/midvunit.c
r14998r14999
193193
194194   /* bit 3 is the watchdog */
195195   if ((olddata ^ m_control_data) & 0x0008)
196      watchdog_reset_w(*&space, 0, 0);
196      watchdog_reset_w(space, 0, 0);
197197
198198   /* bit 1 is the DCS sound reset */
199199   dcs_reset_w(machine(), (~m_control_data >> 1) & 1);
r14998r14999
214214
215215   /* bit 9 is the watchdog */
216216   if ((olddata ^ m_control_data) & 0x0200)
217      watchdog_reset_w(*&space, 0, 0);
217      watchdog_reset_w(space, 0, 0);
218218
219219   /* bit 8 is the LED */
220220
r14998r14999
420420         /* bit 0x10 resets watchdog */
421421         if ((olddata ^ m_midvplus_misc[offset]) & 0x0010)
422422         {
423            watchdog_reset_w(*&space, 0, 0);
423            watchdog_reset_w(space, 0, 0);
424424            logit = 0;
425425         }
426426         break;
src/mame/drivers/suna16.c
r14998r14999
361361
362362static ADDRESS_MAP_START( bestbest_pcm_1_iomap, AS_IO, 8, suna16_state )
363363   ADDRESS_MAP_GLOBAL_MASK(0xff)
364   AM_RANGE(0x00, 0x00) AM_READ (soundlatch2_byte_r    )   // From The Sound Z80
364   AM_RANGE(0x00, 0x00) AM_READ (soundlatch2_byte_r   )   // From The Sound Z80
365365   AM_RANGE(0x00, 0x00) AM_MIRROR(0x02) AM_DEVWRITE_LEGACY("dac1", bssoccer_DAC_w)   // 2 x DAC
366366   AM_RANGE(0x01, 0x01) AM_MIRROR(0x02) AM_DEVWRITE_LEGACY("dac2", bssoccer_DAC_w)   // 2 x DAC
367367ADDRESS_MAP_END
src/mame/drivers/proconn.c
r14998r14999
134134// the mapping of the devices is rather ugly with address bits 8-9 providing the usual address bits 0-1 or 'offset'
135135// r0/r1/r2/r3 and w0/w1/w2/w3 might still be in the wrong order at the moment.
136136static ADDRESS_MAP_START( proconn_portmap, AS_IO, 8, proconn_state )
137//   ADDRESS_MAP_GLOBAL_MASK(0x3ff)
137//  ADDRESS_MAP_GLOBAL_MASK(0x3ff)
138138
139139   // sio (vfd should be connected to it?)
140140   AM_RANGE(0x00ff, 0x00ff) AM_READWRITE(sio_r0, sio_w0)
r14998r14999
149149   AM_RANGE(0x03fe, 0x03fe) AM_READWRITE(ctc_r3, ctc_w3)
150150
151151   // ay (meters connected to it?)
152   AM_RANGE(0x00fd, 0x00fd) AM_READWRITE(ay_r0, ay_w0)
153   AM_RANGE(0x00fc, 0x00fc) AM_WRITE(ay_w1)
152   AM_RANGE(0x00fd, 0x00fd) AM_READWRITE(ay_r0, ay_w0)
153   AM_RANGE(0x00fc, 0x00fc) AM_WRITE(ay_w1)
154154
155155   // ??
156156   AM_RANGE(0xfbf9, 0xfbf9) AM_WRITENOP
157157   AM_RANGE(0xfff9, 0xfff9) AM_WRITENOP
158   
158
159159   // pio5 (lamps?)
160160   AM_RANGE(0x00f0, 0x00f0) AM_READWRITE(pio5_r0, pio5_w0)
161161   AM_RANGE(0x01f0, 0x01f0) AM_READWRITE(pio5_r1, pio5_w1)
r14998r14999
258258
259259static WRITE8_DEVICE_HANDLER( serial_transmit )
260260{
261//   if (offset == 0)
261//  if (offset == 0)
262262   {
263263      ROC10937_newdata(0, data);
264264      ROC10937_draw_16seg(0);
src/mame/drivers/quasar.c
r14998r14999
9494   // lower nibble = command to I8035
9595   // not necessarily like this, but it seems to work better than direct mapping
9696   // (although schematics has it as direct - but then the schematics are wrong elsewhere to!)
97   soundlatch_byte_w(*&space, 0, (data & 8) + ((data >> 1) & 3) + ((data << 2) & 4));
97   soundlatch_byte_w(space, 0, (data & 8) + ((data >> 1) & 3) + ((data << 2) & 4));
9898}
9999
100100READ8_MEMBER(quasar_state::quasar_sh_command_r)
101101{
102   return soundlatch_byte_r(*&space, 0) + (input_port_read(machine(), "DSW2") & 0x30);
102   return soundlatch_byte_r(space, 0) + (input_port_read(machine(), "DSW2") & 0x30);
103103}
104104
105105READ8_MEMBER(quasar_state::audio_t1_r)
106106{
107   return (soundlatch_byte_r(*&space, 0) == 0);
107   return (soundlatch_byte_r(space, 0) == 0);
108108}
109109
110110// memory map taken from the manual
src/mame/drivers/gsword.c
r14998r14999
325325
326326WRITE8_MEMBER(gsword_state::adpcm_soundcommand_w)
327327{
328   soundlatch_byte_w(*&space, 0, data);
328   soundlatch_byte_w(space, 0, data);
329329   cputag_set_input_line(machine(), "audiocpu", INPUT_LINE_NMI, PULSE_LINE);
330330}
331331
src/mame/drivers/darkhors.c
r14998r14999
7575      m_jclub2_tileram(*this, "jclub2_tileram"),
7676      m_spriteram(*this, "spriteram"),
7777      m_maincpu(*this, "maincpu") { }
78   
78
7979   virtual void machine_start()
8080   {
8181      m_generic_paletteram_16.allocate(0x10000);
r14998r14999
963963static DRIVER_INIT( darkhors )
964964{
965965   UINT32 *rom    = (UINT32 *) machine.root_device().memregion("maincpu")->base();
966//   UINT8  *eeprom = (UINT8 *)  machine.root_device().memregion("eeprom")->base();
967//   int i;
966//  UINT8  *eeprom = (UINT8 *)  machine.root_device().memregion("eeprom")->base();
967//  int i;
968968
969969#if 1
970970   // eeprom error patch
r14998r14999
975975   rom[0x04600/4]   =   0x4e714eb9;
976976#endif
977977
978//   if (eeprom != NULL)
979//      for (i = 0; i < (1<<7); i++)
980//         eeprom[i] = eeprom[i*2];
978//  if (eeprom != NULL)
979//      for (i = 0; i < (1<<7); i++)
980//          eeprom[i] = eeprom[i*2];
981981}
982982
983983GAME( 199?, jclub2,   0,      jclub2,  darkhors, 0,        ROT0, "Seta", "Jockey Club II (newer hardware)", GAME_NOT_WORKING | GAME_NO_SOUND )
src/mame/drivers/splus.c
r14998r14999
3333public:
3434   splus_state(const machine_config &mconfig, device_type type, const char *tag)
3535      : driver_device(mconfig, type, tag),
36      m_cmosl_ram(*this, "cmosl"),
37      m_cmosh_ram(*this, "cmosh"),
38      m_program_ram(*this, "program_ram"),
39      m_reel_ram(*this, "reel_ram"),
36      m_cmosl_ram(*this, "cmosl"),
37      m_cmosh_ram(*this, "cmosh"),
38      m_program_ram(*this, "program_ram"),
39      m_reel_ram(*this, "reel_ram"),
4040      m_io_port(*this, "io_port")
4141   {
4242      m_sda_dir = 0;
src/mame/drivers/ecoinf3.c
r14998r14999
6464static WRITE8_DEVICE_HANDLER( ppi8255_intf_e_write_a )
6565{
6666   // writes the 'PYRAMID' string from RAM (copied from ROM) here...
67   // along with port 40/41/42 accesses
67   // along with port 40/41/42 accesses
6868   // also error messages? (well it looks like it should, but code is strange and skips them) I guess it's a debug port or the vfd?
6969   // watch ram around e3e0
7070
7171   // Pyramid - Writes PYRAMID V6, and 10MS INIT ERROR
7272   // Labyrinth - Same behavior as Pyramid
7373   // Secret Castle - Same behavior as Pyramid
74   
74
7575   // Sphinx - Writes "No % Key"  -- depends on port 0x51, writes "SPHINX  V- 1" if it's happy with that .. after that you get COIN TAMPER,  a count down with COINS TRIM and a reboot
7676   // Pennies from Heaven - same behavior as Sphinx
7777   static int count = 0;
7878
7979   if ((data>=0x20) && (data<0x5b))
8080   {
81      if (count%80 == 0) printf("\n");     
81      if (count%80 == 0) printf("\n");
8282
8383      printf("%c", data);
8484      count++;
r14998r14999
8787
8888static WRITE8_DEVICE_HANDLER( ppi8255_intf_e_write_b )
8989{
90//   printf("\nwrite b %02x\n", data);
90//  printf("\nwrite b %02x\n", data);
9191}
9292
9393static WRITE8_DEVICE_HANDLER( ppi8255_intf_e_write_c )
9494{
95//   printf("\nwrite c %02x\n", data);
95//  printf("\nwrite c %02x\n", data);
9696
9797}
9898
src/mame/drivers/gladiatr.c
r14998r14999
291291
292292WRITE8_MEMBER(gladiatr_state::glad_cpu_sound_command_w)
293293{
294   soundlatch_byte_w(*&space,0,data);
294   soundlatch_byte_w(space,0,data);
295295   cputag_set_input_line(machine(), "audiocpu", INPUT_LINE_NMI, ASSERT_LINE);
296296}
297297
298298READ8_MEMBER(gladiatr_state::glad_cpu_sound_command_r)
299299{
300300   cputag_set_input_line(machine(), "audiocpu", INPUT_LINE_NMI, CLEAR_LINE);
301   return soundlatch_byte_r(*&space,0);
301   return soundlatch_byte_r(space,0);
302302}
303303
304304WRITE8_MEMBER(gladiatr_state::gladiatr_flipscreen_w)
src/osd/sdl/sdl.mak
r14998r14999
365365DEFS += -DMACOSX_USE_LIBSDL
366366endif   # MACOSX_USE_LIBSDL
367367
368else   # ifeq ($(TARGETOS),macosx)
368else   # ifeq ($(TARGETOS),macosx)
369369
370370DEFS += -DSDLMAME_UNIX
371371DEBUGOBJS = $(SDLOBJ)/debugwin.o $(SDLOBJ)/dview.o $(SDLOBJ)/debug-sup.o $(SDLOBJ)/debug-intf.o
src/osd/windows/windows.mak
r14998r14999
162162
163163# disable side effects warning in STL headers
164164CPPONLYFLAGS += /wd4548
165
165
166166# disable macro redefinition warning
167167CCOMFLAGS += /wd4005
168168
src/emu/cpu/m68000/68307bus.c
r14998r14999
3535            logerror("%08x m68307_internal_mbus_r %08x (MBSR - M-Bus Status Register)\n", pc, offset);
3636            retval = 0;
3737            if (mbus->m_busy) retval |= 0x20;
38            if (mbus->m_intpend) retval |= 0x02;         
39           
38            if (mbus->m_intpend) retval |= 0x02;
39
4040            return retval;
4141
4242         case m68307BUS_MBDR:
r14998r14999
7575
7676         case m68307BUS_MBCR:
7777            logerror("%08x m68307_internal_mbus_w %08x, %02x (MFCR - M-Bus Control Register)\n", pc, offset,data);
78           
78
7979            mbus->m_MFCR = data;
8080            if (data & 0x80)
8181            {
r14998r14999
8383               mbus->m_intpend = false;
8484            }
8585            if (data & 0x20) mbus->m_busy = true;
86           
86
8787            break;
8888
8989         case m68307BUS_MBSR:
9090            logerror("%08x m68307_internal_mbus_w %08x, %02x (MBSR - M-Bus Status Register)\n", pc, offset,data);
9191            break;
92         
92
9393         case m68307BUS_MBDR:
9494            logerror("%08x m68307_internal_mbus_w %08x, %02x (MBDR - M-Bus Data I/O Register)\n", pc, offset,data);
9595
src/emu/cpu/m68000/68307ser.c
r14998r14999
3636            case m68307SER_UMR1_UMR2:
3737               logerror("%08x m68307_internal_serial_r %08x (UMR1, UMR2 - UART Mode Register)\n", pc, offset);
3838               return space->machine().rand();
39         
39
4040            case m68307SER_USR_UCSR:
4141               logerror("%08x m68307_internal_serial_r %08x (USR, UCSR - UART Status/Clock Select Register)\n", pc, offset);
4242               return space->machine().rand();
src/emu/cpu/m68000/68340sim.h
r14998r14999
11#define m68340SIM_MCR          (0x00)
2//                          (0x02)
2//                             (0x02)
33#define m68340SIM_SYNCR        (0x04)
44#define m68340SIM_AVR_RSR      (0x06)
5//                         (0x08)
6//                         (0x0a)
7//                         (0x0c)
8//                         (0x0e)
5//                             (0x08)
6//                             (0x0a)
7//                             (0x0c)
8//                             (0x0e)
99#define m68340SIM_PORTA        (0x11)
1010#define m68340SIM_DDRA         (0x13)
1111#define m68340SIM_PPRA1        (0x15)
r14998r14999
1818#define m68340SIM_PICR         (0x22)
1919#define m68340SIM_PITR         (0x24)
2020#define m68340SIM_SWSR         (0x26)
21//                        (0x28)
22//                        (0x2a)
23//                        (0x2c)
24//                        (0x2e)
25//                        (0x30)
26//                        (0x32)
27//                        (0x34)
28//                        (0x36)
29//                        (0x38)
30//                        (0x3a)
31//                        (0x3c)
32//                        (0x3e)
21//                             (0x28)
22//                             (0x2a)
23//                             (0x2c)
24//                             (0x2e)
25//                             (0x30)
26//                             (0x32)
27//                             (0x34)
28//                             (0x36)
29//                             (0x38)
30//                             (0x3a)
31//                             (0x3c)
32//                             (0x3e)
3333#define m68340SIM_AM_CS0       (0x40)
3434#define m68340SIM_BA_CS0       (0x44)
3535#define m68340SIM_AM_CS1       (0x48)
src/emu/cpu/m68000/68307bus.h
r14998r14999
1010class m68307_mbus
1111{
1212   public:
13     
13
1414   UINT16 m_MFCR;
1515
1616   bool m_busy;
src/emu/cpu/m68000/68307ser.h
r14998r14999
88#define m68307SER_UISR_UIMR  (0x0b)
99#define m68307SER_UBG1       (0x0d)
1010#define m68307SER_UBG2       (0x0f)
11//                      (0x11)
11//                          (0x11)
1212//                           (0x13)
1313//                           (0x15)
1414//                           (0x17)
src/emu/video/mc6845.c
r14998r14999
746746      if (m_end_update != NULL)
747747         m_end_update(this, bitmap, cliprect, param);
748748   }
749//   else
750//      popmessage("Invalid MC6845 screen parameters - display disabled!!!");
749   else
750      popmessage("Invalid MC6845 screen parameters - display disabled!!!");
751751   return 0;
752752}
753753
src/emu/rendersw.c
r14998r14999
7878   static inline UINT32 dest_b(_PixelType pixel) { return (pixel >> _DstShiftB) & (0xff >> _SrcShiftB); }
7979
8080   // generic conversion with special optimization for destinations in the standard format
81   static inline _PixelType source32_to_dest(rgb_t pixel)
81   static inline _PixelType source32_to_dest(rgb_t pixel)
8282   {
8383      if (_SrcShiftR == 0 && _SrcShiftG == 0 && _SrcShiftB == 0 && _DstShiftR == 16 && _DstShiftG == 8 && _DstShiftB == 0)
8484         return pixel;
r14998r14999
137137       //  G = clip(( common - 100 * Cb - 208 * Cr + 91776) >> 8)
138138       //  B = clip(( common + 516 * Cb            - 13696) >> 8)
139139      //
140     
140
141141       UINT8 y = ycc;
142142       UINT8 cb = ycc >> 8;
143143       UINT8 cr = ycc >> 16;
r14998r14999
188188
189189
190190   //-------------------------------------------------
191   //  get_texel_palette16a - return a texel from a
191   //  get_texel_palette16a - return a texel from a
192192   //  palettized 16bpp source with alpha
193193   //-------------------------------------------------
194194
r14998r14999
223223
224224
225225   //-------------------------------------------------
226   //  get_texel_yuy16 - return a texel from a 16bpp
226   //  get_texel_yuy16 - return a texel from a 16bpp
227227   //  YCbCr source (pixel is returned as Cr-Cb-Y)
228228   //-------------------------------------------------
229229
r14998r14999
285285
286286
287287   //-------------------------------------------------
288   //  get_texel_rgb32 - return a texel from a 32bpp
288   //  get_texel_rgb32 - return a texel from a 32bpp
289289   //  RGB source
290290   //-------------------------------------------------
291291
r14998r14999
320320
321321
322322   //-------------------------------------------------
323   //  get_texel_argb32 - return a texel from a 32bpp
323   //  get_texel_argb32 - return a texel from a 32bpp
324324   //  ARGB source
325325   //-------------------------------------------------
326326
src/emu/sound/i5000.c
r14998r14999
3939      vol /= div;
4040   }
4141   m_lut_volume[0xff] = 0;
42   
42
4343   // create the stream
4444   m_stream = machine().sound().stream_alloc(*this, 0, 2, clock() / 0x400, this);
4545
r14998r14999
5252{
5353   // stop playing
5454   write_reg16(0x43, 0xffff);
55   
55
5656   // reset channel regs
5757   for (int i = 0; i < 0x40; i++)
5858      write_reg16(i, 0);
r14998r14999
7777         // TODO
7878         return false;
7979      }
80     
80
8181      // cmd 0x0000 = end sample
8282      // other values: unused
8383      else return false;
84     
84
8585   }
86   
86
8787   return true;
8888}
8989
r14998r14999
9494   {
9595      INT32 mix_l = 0;
9696      INT32 mix_r = 0;
97     
97
9898      // loop over all channels
9999      for (int ch = 0; ch < 16; ch++)
100100      {
r14998r14999
109109            continue;
110110         }
111111         m_channels[ch].freq_timer += m_channels[ch].freq_base;
112         
112
113113         int adpcm_data = m_channels[ch].sample >> m_channels[ch].shift_pos;
114114         m_channels[ch].shift_pos += m_channels[ch].shift_amount;
115115         if (m_channels[ch].shift_pos & 0x10)
r14998r14999
122122
123123            adpcm_data |= (m_channels[ch].sample << (m_channels[ch].shift_amount - m_channels[ch].shift_pos));
124124         }
125         
125
126126         adpcm_data = m_channels[ch].m_adpcm.clock(adpcm_data & m_channels[ch].shift_mask);
127         
127
128128         m_channels[ch].output_r = adpcm_data * m_channels[ch].vol_r / 128;
129129         m_channels[ch].output_l = adpcm_data * m_channels[ch].vol_l / 128;
130130         mix_r += m_channels[ch].output_r;
131131         mix_l += m_channels[ch].output_l;
132132      }
133     
133
134134      outputs[0][i] = mix_r / 16;
135135      outputs[1][i] = mix_l / 16;
136136   }
r14998r14999
146146      switch (reg & 3)
147147      {
148148         // 0, 1: address
149         
149
150150         // 2: frequency
151151         case 2:
152152            m_channels[ch].freq_base = (0x1ff - (data & 0xff)) << (~data >> 8 & 3);
r14998r14999
157157            m_channels[ch].vol_r = m_lut_volume[data & 0xff];
158158            m_channels[ch].vol_l = m_lut_volume[data >> 8 & 0xff];
159159            break;
160         
160
161161         default:
162162            break;
163163      }
164164   }
165   
165
166166   // global regs
167167   else
168168   {
r14998r14999
177177                  UINT32 address = m_regs[ch << 2 | 1] << 16 | m_regs[ch << 2];
178178                  UINT16 start = m_rom_base[(address + 0) & m_rom_mask];
179179                  UINT16 param = m_rom_base[(address + 1) & m_rom_mask];
180                 
180
181181                  // check sample start ID
182182                  if (start != 0x7f7f)
183183                  {
r14998r14999
205205                        m_channels[ch].shift_mask = 0xf;
206206                        break;
207207                  }
208                 
208
209209                  m_channels[ch].address = (address + 4) & m_rom_mask;
210210
211211                  m_channels[ch].freq_timer = 0;
212212                  m_channels[ch].shift_pos = 0;
213                 
213
214214                  m_channels[ch].m_adpcm.reset();
215215                  m_channels[ch].is_playing = read_sample(ch);
216216               }
217217            }
218218            break;
219         
219
220220         // channel key off (0 has no effect)
221221         case 0x43:
222222            for (int ch = 0; ch < 16; ch++)
r14998r14999
237237            break;
238238      }
239239   }
240   
240
241241   m_regs[reg] = data;
242242}
243243
r14998r14999
256256               ret |= (1 << ch);
257257         }
258258         break;
259     
259
260260      default:
261261         // 0x41: ?
262262         break;
263263   }
264   
264
265265   return ret;
266266}
267267
src/emu/sound/i5000.h
r14998r14999
7373
7474    UINT16 *m_rom_base;
7575    UINT32 m_rom_mask;
76   
76
7777    int m_lut_volume[0x100];
78   
78
7979    bool read_sample(int ch);
8080    void write_reg16(UINT8 reg, UINT16 data);
8181};
src/emu/ioport.h
r14998r14999
926926   // construction/destruction
927927   ioport_manager(running_machine &machine);
928928   time_t initialize();
929   
929
930930   // getters
931931   running_machine &machine() const { return m_machine; }
932932   input_port_config *first_port() const { return m_portlist.first(); }
src/emu/imagedev/cassette.c
r14998r14999
324324   /* reset the position */
325325   m_position = 0.0;
326326   m_position_time = device().machine().time().as_double();
327   
327
328328   /* default channel to 0, speed multiplier to 1 */
329329   m_channel = 0;
330330   m_speed = 1;
src/emu/device.c
r14998r14999
101101     m_name(name),
102102     m_owner(owner),
103103     m_next(NULL),
104     
104
105105     m_interface_list(NULL),
106106     m_execute(NULL),
107107     m_memory(NULL),
108108     m_state(NULL),
109     
109
110110     m_configured_clock(clock),
111111     m_unscaled_clock(clock),
112112     m_clock(clock),
r14998r14999
141141     m_searchpath(shortname),
142142     m_owner(owner),
143143     m_next(NULL),
144     
144
145145     m_interface_list(NULL),
146146     m_execute(NULL),
147147     m_memory(NULL),
148148     m_state(NULL),
149     
149
150150     m_configured_clock(clock),
151151     m_unscaled_clock(clock),
152152     m_clock(clock),
r14998r14999
920920   memory_share *share = m_base.memshare(m_tag);
921921   if (share == NULL)
922922      return NULL;
923   
923
924924   // check the width and warn if not correct
925925   if (width != 0 && share->width() != width)
926926   {
r14998r14999
928928         mame_printf_warning("Shared ptr '%s' found but is width %d, not %d as requested\n", m_tag, share->width(), width);
929929      return NULL;
930930   }
931   
931
932932   // return results
933933   bytes = share->bytes();
934934   return share->ptr();
r14998r14999
937937
938938//-------------------------------------------------
939939//  report_missing - report missing objects and
940//   return true if it's ok
940//  return true if it's ok
941941//-------------------------------------------------
942942
943943bool device_t::finder_base::report_missing(bool found, const char *objname, bool required)
r14998r14999
945945   // just pass through in the found case
946946   if (found)
947947      return true;
948   
948
949949   // otherwise, report
950950   if (required)
951951      mame_printf_error("Required %s '%s' not found\n", objname, m_tag);
src/emu/device.h
r14998r14999
569569   // finder
570570   virtual bool findit()
571571   {
572      this->m_target = reinterpret_cast<_PointerType *>(this->find_memory(m_width, m_bytes, _Required));
572      this->m_target = reinterpret_cast<_PointerType *>(this->find_memory(m_width, m_bytes, _Required));
573573      return this->report_missing(this->m_target != NULL, "shared pointer", _Required);
574574   }
575575
r14998r14999
604604class device_t::shared_ptr_array_finder
605605{
606606   typedef shared_ptr_finder<_PointerType, _Required> shared_ptr_type;
607   
607
608608public:
609609   // construction/destruction
610610   shared_ptr_array_finder(device_t &base, const char *basetag, UINT8 width = sizeof(_PointerType) * 8)
r14998r14999
612612      for (int index = 0; index < _Count; index++)
613613         m_array[index] = global_alloc(shared_ptr_type(base, m_tag[index].format("%s.%d", basetag, index), width));
614614   }
615   
615
616616   virtual ~shared_ptr_array_finder()
617617   {
618618      for (int index = 0; index < _Count; index++)
src/emu/memory.c
r14998r14999
43904390
43914391
43924392//-------------------------------------------------
4393//  configure_decrypted_entry - configure a
4393//  configure_decrypted_entry - configure a
43944394//  decrypted entry
43954395//-------------------------------------------------
43964396
r14998r14999
44144414
44154415
44164416//-------------------------------------------------
4417//  configure_decrypted_entries - configure
4417//  configure_decrypted_entries - configure
44184418//  multiple decrypted entries
44194419//-------------------------------------------------
44204420
src/emu/memory.h
r14998r14999
850850
851851   tagged_list<memory_share>   m_sharelist;         // map for share lookups
852852
853   tagged_list<memory_region>    m_regionlist;         // list of memory regions
853   tagged_list<memory_region>   m_regionlist;         // list of memory regions
854854};
855855
856856
src/emu/diexec.c
r14998r14999
532532   // bind delegates
533533   m_vblank_interrupt.bind_relative_to(device());
534534   m_timed_interrupt.bind_relative_to(device());
535//   m_driver_irq.bind_relative_to(device());
535//  m_driver_irq.bind_relative_to(device());
536536
537537   // fill in the initial states
538538   execute_interface_iterator iter(device().machine().root_device());
src/emu/diexec.h
r14998r14999
295295   // configuration
296296   bool               m_disabled;               // disabled from executing?
297297   device_interrupt_delegate m_vblank_interrupt;      // for interrupts tied to VBLANK
298   device_interrupt_func    m_vblank_interrupt_legacy;   // for interrupts tied to VBLANK
298   device_interrupt_func   m_vblank_interrupt_legacy;   // for interrupts tied to VBLANK
299299   const char *         m_vblank_interrupt_screen;   // the screen that causes the VBLANK interrupt
300300   device_interrupt_delegate m_timed_interrupt;      // for interrupts not tied to VBLANK
301   device_interrupt_func    m_timed_interrupt_legacy;   // for interrupts not tied to VBLANK
301   device_interrupt_func   m_timed_interrupt_legacy;   // for interrupts not tied to VBLANK
302302   attotime            m_timed_interrupt_period;   // period for periodic interrupts
303303   bool               m_is_octal;               // to determine if messages/debugger will show octal or hex
304304
src/emu/driver.c
r14998r14999
278278      m_callbacks[CB_VIDEO_START]();
279279   else
280280      video_start();
281   
281
282282   // save generic states
283283   save_item(NAME(m_flip_screen_x));
284284   save_item(NAME(m_flip_screen_y));
r14998r14999
447447//**************************************************************************
448448
449449//-------------------------------------------------
450//  soundlatch_sync_callback - time-delayed
450//  soundlatch_sync_callback - time-delayed
451451//  callback to set a latch value
452452//-------------------------------------------------
453453
r14998r14999
486486//  reading from sound latches
487487//-------------------------------------------------
488488
489READ8_MEMBER( driver_device::soundlatch_byte_r )       { return m_latched_value[0]; }
489READ8_MEMBER( driver_device::soundlatch_byte_r )      { return m_latched_value[0]; }
490490READ16_MEMBER( driver_device::soundlatch_word_r )   { return m_latched_value[0]; }
491491READ8_MEMBER( driver_device::soundlatch2_byte_r )      { return m_latched_value[1]; }
492492READ16_MEMBER( driver_device::soundlatch2_word_r )  { return m_latched_value[1]; }
r14998r14999
591591   // normalize to all 1
592592   if (on)
593593      on = ~0;
594   
594
595595   // if something's changed, handle it
596596   if (m_flip_screen_x != on)
597597   {
r14998r14999
610610   // normalize to all 1
611611   if (on)
612612      on = ~0;
613   
613
614614   // if something's changed, handle it
615615   if (m_flip_screen_y != on)
616616   {
src/emu/driver.h
r14998r14999
154154   // construction/destruction
155155   driver_device(const machine_config &mconfig, device_type type, const char *tag);
156156   virtual ~driver_device();
157   
157
158158   // getters
159159   const game_driver &system() const { assert(m_system != NULL); return *m_system; }
160160
r14998r14999
182182   {
183183      (downcast<_DriverClass &>(device).*_Function)();
184184   }
185   
186   // generic interrupt generators   
185
186   // generic interrupt generators
187187   void generic_pulse_irq_line(device_execute_interface &exec, int irqline, int cycles);
188188   void generic_pulse_irq_line_and_vector(device_execute_interface &exec, int irqline, int vector, int cycles);
189189
r14998r14999
348348   // 8-8-8 RGB palette write handlers
349349   DECLARE_WRITE16_MEMBER( paletteram_xrgb_word_be_w );
350350   DECLARE_WRITE16_MEMBER( paletteram_xbgr_word_be_w );
351   
351
352352   // generic input port helpers
353353   // custom handler
354354   DECLARE_CUSTOM_INPUT_MEMBER( custom_port_read );
r14998r14999
397397   // internal state
398398   const game_driver *      m_system;               // pointer to the game driver
399399   driver_callback_delegate m_callbacks[CB_COUNT];      // start/reset callbacks
400   legacy_callback_func    m_legacy_callbacks[CB_COUNT]; // legacy start/reset callbacks
400   legacy_callback_func   m_legacy_callbacks[CB_COUNT]; // legacy start/reset callbacks
401401
402402   // generic audio
403403   UINT16               m_latch_clear_value;
r14998r14999
405405   UINT8               m_latch_read[4];
406406
407407   // generic video
408   UINT32                m_flip_screen_x;
409   UINT32                m_flip_screen_y;
408   UINT32               m_flip_screen_x;
409   UINT32               m_flip_screen_y;
410410};
411411
412412
src/lib/softfloat/fyl2x.c
r14998r14999
161161static const float128 float128_ln2inv2 =
162162    packFloat_128(U64(0x400071547652b82f), U64(0xe1777d0ffda0d23a));
163163
164#define SQRT2_HALF_SIG    U64(0xb504f333f9de6484)
164#define SQRT2_HALF_SIG   U64(0xb504f333f9de6484)
165165
166166extern float128 OddPoly(float128 x, float128 *arr, unsigned n);
167167
r14998r14999
277277invalid:
278278         float_raise(float_flag_invalid);
279279         return floatx80_default_nan;
280          }
280       }
281281        else {
282282            if (bExp == 0) {
283283                if (bSig == 0) goto invalid;
r14998r14999
391391invalid:
392392         float_raise(float_flag_invalid);
393393         return floatx80_default_nan;
394          }
394       }
395395         else {
396396            if (bExp == 0) {
397397                if (bSig == 0) goto invalid;
src/lib/formats/adam_cas.c
r14998r14999
9090      header[2] = 0x57;
9191      header[9] = 0xe3;
9292   }
93     
93
9494   for (i = 0; i < 10; i++) // header
9595   {
9696      err = coladam_put_byte(cass, channel, time_index, header[i], prev_sign);
r14998r14999
120120   err = coladam_put_byte(cass, channel, time_index, 0x00, prev_sign);
121121   return err;
122122}
123   
124123 
124 
125125static casserr_t coladam_ddp_load( cassette_image *cass )
126126{
127127   double time = 0.;
r14998r14999
131131 
132132   // It would appear that data packs that originally had the type GW data layout and headers work fine when converted to type
133133   // HE. Thus we set all tapes to type HE.
134   
134
135135   int layout_type = TYPE_HE;
136   
136
137137   // Track 0
138138   for ( i = 0; i < 2753; i++ ) // leading zero bytes
139139   {
r14998r14999
193193         err = coladam_put_block(cass, 1, &time, &prev_sign, block, buffer, layout_type);
194194      }
195195   }
196   
196
197197   if (err)
198198      return err;
199   
199
200200   return CASSETTE_ERROR_SUCCESS;
201201}
202202 
src/lib/formats/ap2_dsk.c
r14998r14999
11/*********************************************************************
22
3   ap2_dsk.c
3    ap2_dsk.c
44
5   Apple II disk images
5    Apple II disk images
66
77*********************************************************************/
88
r14998r14999
514514
515515/***************************************************************************
516516
517   New implementation
517    New implementation
518518
519519****************************************************************************
520520
521   Copyright Olivier Galibert, Lord Nightmare and Balrog
522   All rights reserved.
521    Copyright Olivier Galibert, Lord Nightmare and Balrog
522    All rights reserved.
523523
524   Redistribution and use in source and binary forms, with or without
525   modification, are permitted provided that the following conditions are
526   met:
524    Redistribution and use in source and binary forms, with or without
525    modification, are permitted provided that the following conditions are
526    met:
527527
528      * Redistributions of source code must retain the above copyright
529        notice, this list of conditions and the following disclaimer.
530      * Redistributions in binary form must reproduce the above copyright
531        notice, this list of conditions and the following disclaimer in
532        the documentation and/or other materials provided with the
533        distribution.
534      * Neither the name 'MAME' nor the names of its contributors may be
535        used to endorse or promote products derived from this software
536        without specific prior written permission.
528        * Redistributions of source code must retain the above copyright
529          notice, this list of conditions and the following disclaimer.
530        * Redistributions in binary form must reproduce the above copyright
531          notice, this list of conditions and the following disclaimer in
532          the documentation and/or other materials provided with the
533          distribution.
534        * Neither the name 'MAME' nor the names of its contributors may be
535          used to endorse or promote products derived from this software
536          without specific prior written permission.
537537
538   THIS SOFTWARE IS PROVIDED BY AARON GILES ''AS IS'' AND ANY EXPRESS OR
539   IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
540   WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
541   DISCLAIMED. IN NO EVENT SHALL AARON GILES BE LIABLE FOR ANY DIRECT,
542   INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
543   (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
544   SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
545   HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
546   STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING
547   IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
548   POSSIBILITY OF SUCH DAMAGE.
538    THIS SOFTWARE IS PROVIDED BY AARON GILES ''AS IS'' AND ANY EXPRESS OR
539    IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
540    WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
541    DISCLAIMED. IN NO EVENT SHALL AARON GILES BE LIABLE FOR ANY DIRECT,
542    INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
543    (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
544    SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
545    HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
546    STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING
547    IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
548    POSSIBILITY OF SUCH DAMAGE.
549549
550550****************************************************************************/
551551
r14998r14999
745745                                    for(int i=0; i<0x156; i++) {
746746                                          data[i] = gcr6bw_tb[gb(buf, ts, pos, wrap)] ^ c;
747747                                          c = data[i];
748                                    //   printf("%02x ", c);
749                                    //   if (((i&0xf)+1)==0x10) printf("\n");
748                                    //  printf("%02x ", c);
749                                    //  if (((i&0xf)+1)==0x10) printf("\n");
750750                                    }
751751                                    // read the checksum byte
752752                                    data[0x156] = gcr6bw_tb[gb(buf,ts,pos,wrap)];
r14998r14999
819819      return true;
820820}
821821
822const floppy_format_type FLOPPY_A216S_FORMAT = &floppy_image_format_creator<a2_16sect_format>;
No newline at end of file
822const floppy_format_type FLOPPY_A216S_FORMAT = &floppy_image_format_creator<a2_16sect_format>;
src/lib/formats/ap2_dsk.h
r14998r14999
11/*********************************************************************
22
3   ap2_dsk.h
3    ap2_dsk.h
44
5   Apple II disk images
5    Apple II disk images
66
77*********************************************************************/
88
r14998r14999
1414
1515/***************************************************************************
1616
17   Constants
17    Constants
1818
1919***************************************************************************/
2020
r14998r14999
5555
5656extern const floppy_format_type FLOPPY_A216S_FORMAT;
5757
58#endif /* AP2_DISK_H */
No newline at end of file
58#endif /* AP2_DISK_H */
src/version.c
r14998r14999
3838***************************************************************************/
3939
4040extern const char build_version[];
41const char build_version[] = "0.145u6 ("__DATE__")";
41const char build_version[] = "0.145u7 ("__DATE__")";

Previous 15994 Revisions Next


© 1998-2018 The MESS Team