Previous 15994 Revisions Next

r11637 Monday 23rd May, 2011 at 14:09:42 UTC by Robbbert
converted "cassette" to CASSETTE_TAG
[src/mess/drivers]a2600.c amstrad.c apf.c apogee.c d6800.c fm7.c lviv.c mekd2.c mikro80.c mikrosha.c mycom.c mz2000.c mz700.c mz80.c nascom1.c ondra.c orao.c oric.c orion.c partner.c pc6001.c pc8801.c pcm.c pegasus.c phunsy.c pk8000.c pk8020.c pmd85.c poly88.c primo.c pv2000.c radio86.c rx78.c spc1000.c special.c spectrum.c svi318.c thomson.c tm990189.c tmc1800.c tmc2000e.c trs80.c tutor.c ut88.c vector06.c vg5k.c vic20.c vip.c vtech1.c vtech2.c x1.c zx.c
[src/mess/machine]ac1.c galaxy.c lviv.c mikro80.c mz700.c mz80.c nascom1.c ondra.c orao.c oric.c pmd85.c poly88.c primo.c radio86.c special.c thomson.c trs80.c ut88.c vector06.c vtech2.c zx.c

src/mess/machine/radio86.c
r11636r11637
6060static READ8_DEVICE_HANDLER (radio86_8255_portc_r2 )
6161{
6262   radio86_state *state = device->machine().driver_data<radio86_state>();
63   double level = cassette_input(device->machine().device("cassette"));
63   double level = cassette_input(device->machine().device(CASSETTE_TAG));
6464   UINT8 dat = input_port_read(device->machine(), "LINE8");
6565   if (level <  0) {
6666      dat ^= state->m_tape_value;
r11636r11637
7676
7777static WRITE8_DEVICE_HANDLER (radio86_8255_portc_w2 )
7878{
79   cassette_output(device->machine().device("cassette"),data & 0x01 ? 1 : -1);
79   cassette_output(device->machine().device(CASSETTE_TAG),data & 0x01 ? 1 : -1);
8080}
8181
8282
r11636r11637
105105static READ8_DEVICE_HANDLER (rk7007_8255_portc_r )
106106{
107107   radio86_state *state = device->machine().driver_data<radio86_state>();
108   double level = cassette_input(device->machine().device("cassette"));
108   double level = cassette_input(device->machine().device(CASSETTE_TAG));
109109   UINT8 key = 0xff;
110110   if ((state->m_keyboard_mask & 0x01)!=0) { key &= input_port_read(device->machine(),"CLINE0"); }
111111   if ((state->m_keyboard_mask & 0x02)!=0) { key &= input_port_read(device->machine(),"CLINE1"); }
src/mess/machine/thomson.c
r11636r11637
4747/********************* common cassette code ***************************/
4848
4949INLINE device_t* thom_cassette_img( running_machine &machine )
50{ return machine.device("cassette"); }
50{ return machine.device(CASSETTE_TAG); }
5151
5252/*-------------- TO7 ------------*/
5353
src/mess/machine/pmd85.c
r11636r11637
805805   if (!(input_port_read(machine, "DSW0") & 0x02))   /* V.24 / Tape Switch */
806806   {
807807      /* tape reading */
808      if (cassette_get_state(machine.device("cassette"))&CASSETTE_PLAY)
808      if (cassette_get_state(machine.device(CASSETTE_TAG))&CASSETTE_PLAY)
809809      {
810810         switch (state->m_model)
811811         {
812812            case PMD85_1:
813813               if (state->m_clk_level_tape)
814814               {
815                  state->m_previous_level = (cassette_input(machine.device("cassette")) > 0.038) ? 1 : 0;
815                  state->m_previous_level = (cassette_input(machine.device(CASSETTE_TAG)) > 0.038) ? 1 : 0;
816816                  state->m_clk_level_tape = 0;
817817               }
818818               else
819819               {
820                  current_level = (cassette_input(machine.device("cassette")) > 0.038) ? 1 : 0;
820                  current_level = (cassette_input(machine.device(CASSETTE_TAG)) > 0.038) ? 1 : 0;
821821
822822                  if (state->m_previous_level!=current_level)
823823                  {
r11636r11637
842842      }
843843
844844      /* tape writing */
845      if (cassette_get_state(machine.device("cassette"))&CASSETTE_RECORD)
845      if (cassette_get_state(machine.device(CASSETTE_TAG))&CASSETTE_RECORD)
846846      {
847847         data = get_in_data_bit(state->m_cassette_serial_connection.input_state);
848848         data ^= state->m_clk_level_tape;
849         cassette_output(machine.device("cassette"), data&0x01 ? 1 : -1);
849         cassette_output(machine.device(CASSETTE_TAG), data&0x01 ? 1 : -1);
850850
851851         if (!state->m_clk_level_tape)
852852            msm8251_transmit_clock(machine.device("uart"));
src/mess/machine/oric.c
r11636r11637
270270
271271static device_t *cassette_device_image(running_machine &machine)
272272{
273   return machine.device("cassette");
273   return machine.device(CASSETTE_TAG);
274274}
275275
276276/* not called yet - this will update the via with the state of the tape data.
src/mess/machine/orao.c
r11636r11637
5858      case 0x03FF : return input_port_read(space->machine(), "LINE19");
5959      /* Tape */
6060      case 0x07FF :
61               level = cassette_input(space->machine().device("cassette"));
61               level = cassette_input(space->machine().device(CASSETTE_TAG));
6262               if (level <  0) {
6363                  return 0x00;
6464               }
src/mess/machine/vector06.c
r11636r11637
3434
3535static READ8_DEVICE_HANDLER (vector06_8255_portc_r )
3636{
37   double level = cassette_input(device->machine().device("cassette"));
37   double level = cassette_input(device->machine().device(CASSETTE_TAG));
3838   UINT8 retVal = input_port_read(device->machine(), "LINE8");
3939   if (level >  0) {
4040      retVal |= 0x10;
src/mess/machine/nascom1.c
r11636r11637
118118{
119119   nascom1_state *state = space->machine().driver_data<nascom1_state>();
120120
121   cassette_change_state( space->machine().device("cassette"),
121   cassette_change_state( space->machine().device(CASSETTE_TAG),
122122      ( data & 0x10 ) ? CASSETTE_MOTOR_ENABLED : CASSETTE_MOTOR_DISABLED, CASSETTE_MASK_MOTOR );
123123
124124   if (!(data & NASCOM1_KEY_RESET))
src/mess/machine/poly88.c
r11636r11637
150150//  if (!(input_port_read(machine, "DSW0") & 0x02)) /* V.24 / Tape Switch */
151151   //{
152152      /* tape reading */
153      if (cassette_get_state(machine.device("cassette"))&CASSETTE_PLAY)
153      if (cassette_get_state(machine.device(CASSETTE_TAG))&CASSETTE_PLAY)
154154      {
155155               if (state->m_clk_level_tape)
156156               {
157                  state->m_previous_level = (cassette_input(machine.device("cassette")) > 0.038) ? 1 : 0;
157                  state->m_previous_level = (cassette_input(machine.device(CASSETTE_TAG)) > 0.038) ? 1 : 0;
158158                  state->m_clk_level_tape = 0;
159159               }
160160               else
161161               {
162                  current_level = (cassette_input(machine.device("cassette")) > 0.038) ? 1 : 0;
162                  current_level = (cassette_input(machine.device(CASSETTE_TAG)) > 0.038) ? 1 : 0;
163163
164164                  if (state->m_previous_level!=current_level)
165165                  {
r11636r11637
175175      }
176176
177177      /* tape writing */
178      if (cassette_get_state(machine.device("cassette"))&CASSETTE_RECORD)
178      if (cassette_get_state(machine.device(CASSETTE_TAG))&CASSETTE_RECORD)
179179      {
180180         data = get_in_data_bit(state->m_cassette_serial_connection.input_state);
181181         data ^= state->m_clk_level_tape;
182         cassette_output(machine.device("cassette"), data&0x01 ? 1 : -1);
182         cassette_output(machine.device(CASSETTE_TAG), data&0x01 ? 1 : -1);
183183
184184         if (!state->m_clk_level_tape)
185185            msm8251_transmit_clock(machine.device("uart"));
src/mess/machine/trs80.c
r11636r11637
913913   state->m_cassette_data_timer->adjust( attotime::zero, 0, attotime::from_hz(11025) );
914914   state->m_printer = machine.device("centronics");
915915   state->m_ay31015 = machine.device("tr1602");
916   state->m_cass = machine.device("cassette");
916   state->m_cass = machine.device(CASSETTE_TAG);
917917   state->m_speaker = machine.device("speaker");
918918   state->m_fdc = machine.device("wd179x");
919919}
src/mess/machine/primo.c
r11636r11637
9191   // bit 3 - I3 (external bus)
9292
9393   // bit 2 - cassette
94   data |= (cassette_input(space->machine().device("cassette")) < 0.1) ? 0x04 : 0x00;
94   data |= (cassette_input(space->machine().device(CASSETTE_TAG)) < 0.1) ? 0x04 : 0x00;
9595
9696   // bit 1 - reset button
9797   data |= (input_port_read(space->machine(), "RESET")) ? 0x02 : 0x00;
r11636r11637
159159   switch (data & 0x03)
160160   {
161161      case 0:
162         cassette_output(space->machine().device("cassette"), -1.0);
162         cassette_output(space->machine().device(CASSETTE_TAG), -1.0);
163163         break;
164164      case 1:
165165      case 2:
166         cassette_output(space->machine().device("cassette"), 0.0);
166         cassette_output(space->machine().device(CASSETTE_TAG), 0.0);
167167         break;
168168      case 3:
169         cassette_output(space->machine().device("cassette"), 1.0);
169         cassette_output(space->machine().device(CASSETTE_TAG), 1.0);
170170         break;
171171   }
172172}
src/mess/machine/galaxy.c
r11636r11637
2323
2424   if (offset == 0)
2525   {
26      double level = cassette_input(space->machine().device("cassette"));
26      double level = cassette_input(space->machine().device(CASSETTE_TAG));
2727      return (level >  0) ? 0xfe : 0xff;
2828   }
2929   else
r11636r11637
3737   galaxy_state *state = space->machine().driver_data<galaxy_state>();
3838   double val = (((data >>6) & 1 ) + ((data >> 2) & 1) - 1) * 32000;
3939   state->m_latch_value = data;
40   cassette_output(space->machine().device("cassette"), val);
40   cassette_output(space->machine().device(CASSETTE_TAG), val);
4141}
4242
4343
src/mess/machine/vtech2.c
r11636r11637
187187
188188static device_t *vtech2_cassette_image(running_machine &machine)
189189{
190   return machine.device("cassette");
190   return machine.device(CASSETTE_TAG);
191191}
192192
193193/*************************************************
src/mess/machine/zx.c
r11636r11637
137137      if (!input_port_read(space->machine(), "CONFIG"))
138138         data &= ~0x40;
139139
140      cassette_output(space->machine().device("cassette"), +0.75);
140      cassette_output(space->machine().device(CASSETTE_TAG), +1.0);
141141
142142      if (state->m_ula_irq_active)
143143      {
r11636r11637
148148      }
149149//      else
150150//      {
151         if ((cassette_input(space->machine().device("cassette")) < -0.75) && state->m_tape_bit)
151         if ((cassette_input(space->machine().device(CASSETTE_TAG)) < -0.75) && state->m_tape_bit)
152152         {
153153            state->m_tape_bit = 0x00;
154154            space->machine().scheduler().timer_set(attotime::from_usec(362), FUNC(zx_tape_pulse));
r11636r11637
202202      if (!input_port_read(space->machine(), "CONFIG"))
203203         data &= ~0x40;
204204
205      cassette_output(space->machine().device("cassette"), +0.75);
205      cassette_output(space->machine().device(CASSETTE_TAG), +1.0);
206206
207207      if (state->m_ula_irq_active)
208208      {
r11636r11637
213213      }
214214      else
215215      {
216         if ((cassette_input(space->machine().device("cassette")) < -0.75) && state->m_tape_bit)
216         if ((cassette_input(space->machine().device(CASSETTE_TAG)) < -0.75) && state->m_tape_bit)
217217         {
218218            state->m_tape_bit = 0x00;
219219            space->machine().scheduler().timer_set(attotime::from_usec(362), FUNC(zx_tape_pulse));
r11636r11637
274274      if ((offset & 0x8000) == 0)
275275         data &= input_port_read(space->machine(), "ROW7");
276276
277      cassette_output(space->machine().device("cassette"), +0.75);
277      cassette_output(space->machine().device(CASSETTE_TAG), +1.0);
278278
279279      if (state->m_ula_irq_active)
280280      {
r11636r11637
285285      }
286286      else
287287      {
288         if ((cassette_input(space->machine().device("cassette")) < -0.75) && state->m_tape_bit)
288         if ((cassette_input(space->machine().device(CASSETTE_TAG)) < -0.75) && state->m_tape_bit)
289289         {
290290            state->m_tape_bit = 0x00;
291291            space->machine().scheduler().timer_set(attotime::from_usec(362), FUNC(zx_tape_pulse));
r11636r11637
351351      if ((offset & 0x8000) == 0)
352352         data &= input_port_read(space->machine(), "ROW7");
353353
354      cassette_output(space->machine().device("cassette"), +0.75);
354      cassette_output(space->machine().device(CASSETTE_TAG), +1.0);
355355
356356      if (state->m_ula_irq_active)
357357      {
r11636r11637
361361      }
362362      else
363363      {
364         if ((cassette_input(space->machine().device("cassette")) < -0.75) && state->m_tape_bit)
364         if ((cassette_input(space->machine().device(CASSETTE_TAG)) < -0.75) && state->m_tape_bit)
365365         {
366366            state->m_tape_bit = 0x00;
367367            space->machine().scheduler().timer_set(attotime::from_usec(362), FUNC(zx_tape_pulse));
r11636r11637
390390   UINT8 offs = offset & 0xff;
391391
392392   if (offs == 0xff)
393      cassette_output(space->machine().device("cassette"), -0.75);
393      cassette_output(space->machine().device(CASSETTE_TAG), -1.0);
394394   else
395395      LOG_ZX81_IOR("Unmapped port");
396396}
r11636r11637
428428   else
429429   if (offs == 0xff)
430430   {
431      cassette_output(space->machine().device("cassette"), -0.75);
431      cassette_output(space->machine().device(CASSETTE_TAG), -1.0);
432432      zx_ula_bkgnd(space->machine(), 1);
433433      if (state->m_ula_frame_vsync == 2)
434434      {
src/mess/machine/ac1.c
r11636r11637
117117MACHINE_RESET( ac1 )
118118{
119119   ac1_state *state = machine.driver_data<ac1_state>();
120   state->m_cassette = machine.device("cassette");
120   state->m_cassette = machine.device(CASSETTE_TAG);
121121}
src/mess/machine/mz700.c
r11636r11637
479479 */
480480static READ8_DEVICE_HANDLER( pio_port_c_r )
481481{
482   device_t *cas = device->machine().device("cassette");
482   device_t *cas = device->machine().device(CASSETTE_TAG);
483483   mz_state *mz = device->machine().driver_data<mz_state>();
484484   UINT8 data = 0;
485485
r11636r11637
522522     * bit 0 out    unused
523523     */
524524
525//  UINT8 state = cassette_get_state(device->machine().device("cassette"));
525//  UINT8 state = cassette_get_state(device->machine().device(CASSETTE_TAG));
526526//  UINT8 action = ((~pio_port_c_output & 8) & (data & 8));     /* detect low-to-high transition */
527527
528528   /* The motor control circuit consists of a resistor, capacitor, invertor, nand-gate, and D flip-flop.
r11636r11637
535535        If you load from the command-line or the software-picker, type in L <enter> immediately. */
536536#if 0
537537   cassette_change_state(
538      device->machine().device("cassette"),
538      device->machine().device(CASSETTE_TAG),
539539      ((data & 0x08) && mz700_motor_on) ? CASSETTE_MOTOR_ENABLED : CASSETTE_MOTOR_DISABLED,
540540      CASSETTE_MOTOR_DISABLED);
541541
r11636r11637
543543
544544   LOG(2,"mz700_pio_port_c_w",("%02X\n", data),device->machine());
545545
546   cassette_output(device->machine().device("cassette"), (data & 0x02) ? +1.0 : -1.0);
546   cassette_output(device->machine().device(CASSETTE_TAG), (data & 0x02) ? +1.0 : -1.0);
547547}
548548
549549
src/mess/machine/ondra.c
r11636r11637
1616
1717static device_t *cassette_device_image(running_machine &machine)
1818{
19   return machine.device("cassette");
19   return machine.device(CASSETTE_TAG);
2020}
2121
2222
src/mess/machine/lviv.c
r11636r11637
6767{
6868   lviv_state *state = device->machine().driver_data<lviv_state>();
6969   UINT8 data = state->m_ppi_port_outputs[0][2] & 0x0f;
70   if (cassette_input(device->machine().device("cassette")) > 0.038)
70   if (cassette_input(device->machine().device(CASSETTE_TAG)) > 0.038)
7171      data |= 0x10;
7272   if (state->m_ppi_port_outputs[0][0] & input_port_read(device->machine(), "JOY"))
7373      data |= 0x80;
r11636r11637
9494   state->m_ppi_port_outputs[0][2] = data;
9595   if (state->m_ppi_port_outputs[0][1]&0x80)
9696      speaker_level_w(speaker, data&0x01);
97   cassette_output(device->machine().device("cassette"), (data & 0x01) ? -1.0 : 1.0);
97   cassette_output(device->machine().device(CASSETTE_TAG), (data & 0x01) ? -1.0 : 1.0);
9898   lviv_update_memory(device->machine());
9999}
100100
src/mess/machine/special.c
r11636r11637
2626{
2727   /* set initialy ROM to be visible on first bank */
2828   UINT8 *RAM = machine.region("maincpu")->base();
29   memset(RAM,0x0000,0x3000); // make frist page empty by default
29   memset(RAM,0x0000,0x3000); // make first page empty by default
3030   memory_configure_bank(machine, "bank1", 1, 2, RAM, 0x0000);
3131   memory_configure_bank(machine, "bank1", 0, 2, RAM, 0xc000);
3232}
r11636r11637
6767   dat = (dat  << 2) ^0xff;
6868   if (input_port_read(device->machine(), "LINE12")!=0xff) dat ^= 0x02;
6969
70   level = cassette_input(device->machine().device("cassette"));
70   level = cassette_input(device->machine().device(CASSETTE_TAG));
7171   if (level >=  0)
7272   {
7373         dat ^= 0x01;
r11636r11637
102102
103103   state->m_specialist_8255_portc = data;
104104
105   cassette_output(device->machine().device("cassette"),data & 0x80 ? 1 : -1);
105   cassette_output(device->machine().device(CASSETTE_TAG),data & 0x80 ? 1 : -1);
106106
107107   dac_data_w(dac_device, data & 0x20); //beeper
108108
src/mess/machine/mikro80.c
r11636r11637
106106
107107WRITE8_HANDLER( mikro80_tape_w )
108108{
109   cassette_output(space->machine().device("cassette"),data & 0x01 ? 1 : -1);
109   cassette_output(space->machine().device(CASSETTE_TAG),data & 0x01 ? 1 : -1);
110110}
111111
112112
113113READ8_HANDLER( mikro80_tape_r )
114114{
115   double level = cassette_input(space->machine().device("cassette"));
115   double level = cassette_input(space->machine().device(CASSETTE_TAG));
116116   if (level <  0) {
117117         return 0x00;
118118   }
src/mess/machine/mz80.c
r11636r11637
5151   UINT8 val = 0;
5252   val |= state->m_mz80k_vertical ? 0x80 : 0x00;
5353   val |= (state->m_mz80k_cursor_cnt > 31) ? 0x40 : 0x00;
54    val |= (cassette_get_state(device->machine().device("cassette")) & CASSETTE_MASK_UISTATE)== CASSETTE_PLAY ? 0x10 : 0x00;
54    val |= (cassette_get_state(device->machine().device(CASSETTE_TAG)) & CASSETTE_MASK_UISTATE)== CASSETTE_PLAY ? 0x10 : 0x00;
5555
56    if (cassette_input(device->machine().device("cassette")) > 0.00)
56    if (cassette_input(device->machine().device(CASSETTE_TAG)) > 0.00)
5757        val |= 0x20;
5858
5959   return val;
src/mess/machine/ut88.c
r11636r11637
9292{
9393   device_t *dac_device = space->machine().device("dac");
9494   dac_data_w(dac_device, data); //beeper
95   cassette_output(space->machine().device("cassette"),data & 0x01 ? 1 : -1);
95   cassette_output(space->machine().device(CASSETTE_TAG),data & 0x01 ? 1 : -1);
9696}
9797
9898
9999READ8_HANDLER( ut88_tape_r )
100100{
101   double level = cassette_input(space->machine().device("cassette"));
101   double level = cassette_input(space->machine().device(CASSETTE_TAG));
102102   if (level <  0) {
103103         return 0x00;
104104   }
src/mess/drivers/vip.c
r11636r11637
703703
704704   /* devices */
705705   MCFG_QUICKLOAD_ADD("quickload", vip, "bin,c8,c8x", 0)
706   MCFG_CASSETTE_ADD("cassette", vip_cassette_config)
706   MCFG_CASSETTE_ADD(CASSETTE_TAG, vip_cassette_config)
707707
708708   /* internal ram */
709709   MCFG_RAM_ADD(RAM_TAG)
src/mess/drivers/mz2000.c
r11636r11637
565565    */
566566   UINT8 res = 0xff ^ 0xe0;
567567
568   res |= (cassette_input(device->machine().device("cassette")) > 0.00) ? 0x40 : 0x00;
569   res |= ((cassette_get_state(device->machine().device("cassette")) & CASSETTE_MASK_UISTATE) == CASSETTE_PLAY) ? 0x00 : 0x20;
568   res |= (cassette_input(device->machine().device(CASSETTE_TAG)) > 0.00) ? 0x40 : 0x00;
569   res |= ((cassette_get_state(device->machine().device(CASSETTE_TAG)) & CASSETTE_MASK_UISTATE) == CASSETTE_PLAY) ? 0x00 : 0x20;
570570
571571   popmessage("%02x",res);
572572
r11636r11637
756756   MCFG_MB8877_ADD("mb8877a",mz2000_mb8877a_interface)
757757   MCFG_FLOPPY_4_DRIVES_ADD(mz2000_floppy_config)
758758
759   MCFG_CASSETTE_ADD( "cassette", default_cassette_config )
759   MCFG_CASSETTE_ADD( CASSETTE_TAG, default_cassette_config )
760760
761761   /* video hardware */
762762   MCFG_SCREEN_ADD("screen", RASTER)
r11636r11637
774774
775775   MCFG_SPEAKER_STANDARD_MONO("mono")
776776
777   MCFG_SOUND_WAVE_ADD("wave", "cassette")
777   MCFG_SOUND_WAVE_ADD("wave", CASSETTE_TAG)
778778   MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.20)
779779
780780   MCFG_SOUND_ADD("beeper", BEEP, 0)
src/mess/drivers/pc6001.c
r11636r11637
673673   if((!(state->m_sys_latch & 8)) && data & 0x8) //PLAY tape cmd
674674   {
675675      state->m_cas_switch = 1;
676      //cassette_change_state(space->machine().device("cass" ),CASSETTE_MOTOR_ENABLED,CASSETTE_MASK_MOTOR);
677      //cassette_change_state(space->machine().device("cass" ),CASSETTE_PLAY,CASSETTE_MASK_UISTATE);
676      //cassette_change_state(space->machine().device(CASSETTE_TAG ),CASSETTE_MOTOR_ENABLED,CASSETTE_MASK_MOTOR);
677      //cassette_change_state(space->machine().device(CASSETTE_TAG ),CASSETTE_PLAY,CASSETTE_MASK_UISTATE);
678678   }
679679   if((state->m_sys_latch & 8) && ((data & 0x8) == 0)) //STOP tape cmd
680680   {
681681      state->m_cas_switch = 0;
682      //cassette_change_state(space->machine().device("cass" ),CASSETTE_MOTOR_DISABLED,CASSETTE_MASK_MOTOR);
683      //cassette_change_state(space->machine().device("cass" ),CASSETTE_STOPPED,CASSETTE_MASK_UISTATE);
682      //cassette_change_state(space->machine().device(CASSETTE_TAG ),CASSETTE_MOTOR_DISABLED,CASSETTE_MASK_MOTOR);
683      //cassette_change_state(space->machine().device(CASSETTE_TAG ),CASSETTE_STOPPED,CASSETTE_MASK_UISTATE);
684684      //state->m_irq_vector = 0x00;
685685      //cputag_set_input_line(space->machine(),"maincpu", 0, ASSERT_LINE);
686686   }
r11636r11637
11711171   if((!(state->m_sys_latch & 8)) && data & 0x8) //PLAY tape cmd
11721172   {
11731173      state->m_cas_switch = 1;
1174      //cassette_change_state(space->machine().device("cass" ),CASSETTE_MOTOR_ENABLED,CASSETTE_MASK_MOTOR);
1175      //cassette_change_state(space->machine().device("cass" ),CASSETTE_PLAY,CASSETTE_MASK_UISTATE);
1174      //cassette_change_state(space->machine().device(CASSETTE_TAG ),CASSETTE_MOTOR_ENABLED,CASSETTE_MASK_MOTOR);
1175      //cassette_change_state(space->machine().device(CASSETTE_TAG ),CASSETTE_PLAY,CASSETTE_MASK_UISTATE);
11761176   }
11771177   if((state->m_sys_latch & 8) && ((data & 0x8) == 0)) //STOP tape cmd
11781178   {
11791179      state->m_cas_switch = 0;
1180      //cassette_change_state(space->machine().device("cass" ),CASSETTE_MOTOR_DISABLED,CASSETTE_MASK_MOTOR);
1181      //cassette_change_state(space->machine().device("cass" ),CASSETTE_STOPPED,CASSETTE_MASK_UISTATE);
1180      //cassette_change_state(space->machine().device(CASSETTE_TAG ),CASSETTE_MOTOR_DISABLED,CASSETTE_MASK_MOTOR);
1181      //cassette_change_state(space->machine().device(CASSETTE_TAG ),CASSETTE_STOPPED,CASSETTE_MASK_UISTATE);
11821182      //state->m_irq_vector = 0x00;
11831183      //cputag_set_input_line(space->machine(),"maincpu", 0, ASSERT_LINE);
11841184   }
r11636r11637
15351535   if((!(state->m_sys_latch & 8)) && data & 0x8) //PLAY tape cmd
15361536   {
15371537      state->m_cas_switch = 1;
1538      //cassette_change_state(space->machine().device("cass" ),CASSETTE_MOTOR_ENABLED,CASSETTE_MASK_MOTOR);
1539      //cassette_change_state(space->machine().device("cass" ),CASSETTE_PLAY,CASSETTE_MASK_UISTATE);
1538      //cassette_change_state(space->machine().device(CASSETTE_TAG ),CASSETTE_MOTOR_ENABLED,CASSETTE_MASK_MOTOR);
1539      //cassette_change_state(space->machine().device(CASSETTE_TAG ),CASSETTE_PLAY,CASSETTE_MASK_UISTATE);
15401540   }
15411541   if((state->m_sys_latch & 8) && ((data & 0x8) == 0)) //STOP tape cmd
15421542   {
15431543      state->m_cas_switch = 0;
1544      //cassette_change_state(space->machine().device("cass" ),CASSETTE_MOTOR_DISABLED,CASSETTE_MASK_MOTOR);
1545      //cassette_change_state(space->machine().device("cass" ),CASSETTE_STOPPED,CASSETTE_MASK_UISTATE);
1544      //cassette_change_state(space->machine().device(CASSETTE_TAG ),CASSETTE_MOTOR_DISABLED,CASSETTE_MASK_MOTOR);
1545      //cassette_change_state(space->machine().device(CASSETTE_TAG ),CASSETTE_STOPPED,CASSETTE_MASK_UISTATE);
15461546      //state->m_irq_vector = 0x00;
15471547      //cputag_set_input_line(space->machine(),"maincpu", 0, ASSERT_LINE);
15481548   }
r11636r11637
19731973      #if 0
19741974      static UINT8 cas_data_i = 0x80,cas_data_poll;
19751975      //state->m_cur_keycode = gfx_data[state->m_cas_offset++];
1976      if(cassette_input(timer.machine().device("cass")) > 0.03)
1976      if(cassette_input(timer.machine().device(CASSETTE_TAG)) > 0.03)
19771977         cas_data_poll|= cas_data_i;
19781978      else
19791979         cas_data_poll&=~cas_data_i;
r11636r11637
23062306   MCFG_CARTSLOT_EXTENSION_LIST("bin")
23072307   MCFG_CARTSLOT_NOT_MANDATORY
23082308
2309//  MCFG_CASSETTE_ADD("cass",pc6001_cassette_config)
2310   MCFG_CARTSLOT_ADD("cass")
2309//  MCFG_CASSETTE_ADD(CASSETTE_TAG,pc6001_cassette_config)
2310   MCFG_CARTSLOT_ADD(CASSETTE_TAG)
23112311   MCFG_CARTSLOT_EXTENSION_LIST("cas,p6")
23122312   MCFG_CARTSLOT_NOT_MANDATORY
23132313   MCFG_CARTSLOT_INTERFACE("pc6001_cass")
r11636r11637
23172317   MCFG_SOUND_ADD("ay8910", AY8910, PC6001_MAIN_CLOCK/4)
23182318   MCFG_SOUND_CONFIG(pc6001_ay_interface)
23192319   MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.00)
2320//  MCFG_SOUND_WAVE_ADD("wave","cass")
2320//  MCFG_SOUND_WAVE_ADD("wave",CASSETTE_TAG)
23212321//  MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.05)
23222322
23232323   /* TODO: accurate timing on this */
src/mess/drivers/mycom.c
r11636r11637
7272   m_ppi0(*this, "ppi8255_0"),
7373   m_ppi1(*this, "ppi8255_1"),
7474   m_ppi2(*this, "ppi8255_2"),
75   m_cass(*this, "cassette"),
75   m_cass(*this, CASSETTE_TAG),
7676   m_wave(*this, "wave"),
7777   m_crtc(*this, "crtc"),
7878   m_fdc(*this, "fdc"),
r11636r11637
587587   MCFG_MC6845_ADD("crtc", MC6845, 1008000, mc6845_intf)
588588
589589   MCFG_SPEAKER_STANDARD_MONO("mono")
590   MCFG_SOUND_WAVE_ADD("wave", "cassette")
590   MCFG_SOUND_WAVE_ADD("wave", CASSETTE_TAG)
591591   MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.20)
592592   MCFG_SOUND_ADD("sn1", SN76489, 1996800) // unknown clock / divider
593593   MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.50)
594594
595595   /* Devices */
596596   MCFG_MSM5832_ADD(MSM5832RS_TAG, XTAL_32_768kHz)
597   MCFG_CASSETTE_ADD( "cassette", default_cassette_config )
597   MCFG_CASSETTE_ADD( CASSETTE_TAG, default_cassette_config )
598598   MCFG_WD179X_ADD("fdc", wd1771_intf) // WD1771
599599
600600   MCFG_TIMER_ADD_PERIODIC("keyboard_timer", mycom_kbd, attotime::from_hz(20))
src/mess/drivers/spc1000.c
r11636r11637
327327   MCFG_SOUND_ADD("ay8910", AY8910, XTAL_4MHz / 1)
328328   MCFG_SOUND_CONFIG(spc1000_ay_interface)
329329   MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.50)
330   MCFG_SOUND_WAVE_ADD("wave", "cassette")
330   MCFG_SOUND_WAVE_ADD("wave", CASSETTE_TAG)
331331   MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.00)
332332
333   MCFG_CASSETTE_ADD( "cassette", spc1000_cassette_config )
333   MCFG_CASSETTE_ADD( CASSETTE_TAG, spc1000_cassette_config )
334334
335335   /* internal ram */
336336   MCFG_RAM_ADD(RAM_TAG)
src/mess/drivers/x1.c
r11636r11637
777777    */
778778   state->m_cmt_current_cmd = cmd;
779779
780   if(cassette_get_image(machine.device("cass")) == NULL) //avoid a crash if a disk game tries to access this
780   if(cassette_get_image(machine.device(CASSETTE_TAG)) == NULL) //avoid a crash if a disk game tries to access this
781781      return;
782782
783783   switch(cmd)
784784   {
785785      case 0x01:  // Stop
786         cassette_change_state(machine.device("cass" ),CASSETTE_MOTOR_DISABLED,CASSETTE_MASK_MOTOR);
787         cassette_change_state(machine.device("cass" ),CASSETTE_STOPPED,CASSETTE_MASK_UISTATE);
786         cassette_change_state(machine.device(CASSETTE_TAG ),CASSETTE_MOTOR_DISABLED,CASSETTE_MASK_MOTOR);
787         cassette_change_state(machine.device(CASSETTE_TAG ),CASSETTE_STOPPED,CASSETTE_MASK_UISTATE);
788788         state->m_cmt_test = 1;
789789         popmessage("CMT: Stop");
790790         break;
791791      case 0x02:  // Play
792         cassette_change_state(machine.device("cass" ),CASSETTE_MOTOR_ENABLED,CASSETTE_MASK_MOTOR);
793         cassette_change_state(machine.device("cass" ),CASSETTE_PLAY,CASSETTE_MASK_UISTATE);
792         cassette_change_state(machine.device(CASSETTE_TAG ),CASSETTE_MOTOR_ENABLED,CASSETTE_MASK_MOTOR);
793         cassette_change_state(machine.device(CASSETTE_TAG ),CASSETTE_PLAY,CASSETTE_MASK_UISTATE);
794794         popmessage("CMT: Play");
795795         break;
796796      case 0x03:  // Fast Forward
797         cassette_change_state(machine.device("cass" ),CASSETTE_MOTOR_DISABLED,CASSETTE_MASK_MOTOR);
798         cassette_change_state(machine.device("cass" ),CASSETTE_STOPPED,CASSETTE_MASK_UISTATE);
797         cassette_change_state(machine.device(CASSETTE_TAG ),CASSETTE_MOTOR_DISABLED,CASSETTE_MASK_MOTOR);
798         cassette_change_state(machine.device(CASSETTE_TAG ),CASSETTE_STOPPED,CASSETTE_MASK_UISTATE);
799799         popmessage("CMT: Fast Forward");
800800         break;
801801      case 0x04:  // Rewind
802         cassette_change_state(machine.device("cass" ),CASSETTE_MOTOR_DISABLED,CASSETTE_MASK_MOTOR);
803         cassette_change_state(machine.device("cass" ),CASSETTE_STOPPED,CASSETTE_MASK_UISTATE);
802         cassette_change_state(machine.device(CASSETTE_TAG ),CASSETTE_MOTOR_DISABLED,CASSETTE_MASK_MOTOR);
803         cassette_change_state(machine.device(CASSETTE_TAG ),CASSETTE_STOPPED,CASSETTE_MASK_UISTATE);
804804         popmessage("CMT: Rewind");
805805         break;
806806      case 0x05:  // APSS Fast Forward
807         cassette_change_state(machine.device("cass" ),CASSETTE_MOTOR_DISABLED,CASSETTE_MASK_MOTOR);
808         cassette_change_state(machine.device("cass" ),CASSETTE_STOPPED,CASSETTE_MASK_UISTATE);
807         cassette_change_state(machine.device(CASSETTE_TAG ),CASSETTE_MOTOR_DISABLED,CASSETTE_MASK_MOTOR);
808         cassette_change_state(machine.device(CASSETTE_TAG ),CASSETTE_STOPPED,CASSETTE_MASK_UISTATE);
809809         popmessage("CMT: APSS Fast Forward");
810810         break;
811811      case 0x06:  // APSS Rewind
812         cassette_change_state(machine.device("cass" ),CASSETTE_MOTOR_DISABLED,CASSETTE_MASK_MOTOR);
813         cassette_change_state(machine.device("cass" ),CASSETTE_STOPPED,CASSETTE_MASK_UISTATE);
812         cassette_change_state(machine.device(CASSETTE_TAG ),CASSETTE_MOTOR_DISABLED,CASSETTE_MASK_MOTOR);
813         cassette_change_state(machine.device(CASSETTE_TAG ),CASSETTE_STOPPED,CASSETTE_MASK_UISTATE);
814814         popmessage("CMT: APSS Rewind");
815815         break;
816816      case 0x0a:  // Record
817         cassette_change_state(machine.device("cass" ),CASSETTE_MOTOR_ENABLED,CASSETTE_MASK_MOTOR);
818         cassette_change_state(machine.device("cass" ),CASSETTE_RECORD,CASSETTE_MASK_UISTATE);
817         cassette_change_state(machine.device(CASSETTE_TAG ),CASSETTE_MOTOR_ENABLED,CASSETTE_MASK_MOTOR);
818         cassette_change_state(machine.device(CASSETTE_TAG ),CASSETTE_RECORD,CASSETTE_MASK_UISTATE);
819819         popmessage("CMT: Record");
820820         break;
821821      default:
r11636r11637
827827static TIMER_DEVICE_CALLBACK( cmt_wind_timer )
828828{
829829   x1_state *state = timer.machine().driver_data<x1_state>();
830   device_t* cmt = timer.machine().device("cass");
830   device_t* cmt = timer.machine().device(CASSETTE_TAG);
831831
832   if(cassette_get_image(timer.machine().device("cass")) == NULL) //avoid a crash if a disk game tries to access this
832   if(cassette_get_image(timer.machine().device(CASSETTE_TAG)) == NULL) //avoid a crash if a disk game tries to access this
833833      return;
834834
835835   switch(state->m_cmt_current_cmd)
r11636r11637
942942               // bit 1 = tape inserted
943943               // bit 2 = record status (1=OK, 0=write protect)
944944         state->m_sub_val[0] = 0x05;
945         if(cassette_get_image(space->machine().device("cass")) != NULL)
945         if(cassette_get_image(space->machine().device(CASSETTE_TAG)) != NULL)
946946            state->m_sub_val[0] |= 0x02;
947947         state->m_sub_cmd_length = 1;
948948         logerror("CMT: Command 0xEB received, returning 0x%02x.\n",state->m_sub_val[0]);
r11636r11637
19011901
19021902   res = state->m_ram_bank | state->m_sub_obf | state->m_vsync | state->m_vdisp;
19031903
1904   if(cassette_input(device->machine().device("cass")) > 0.03)
1904   if(cassette_input(device->machine().device(CASSETTE_TAG)) > 0.03)
19051905      res |= 0x02;
19061906
1907//  if(cassette_get_state(device->machine().device("cass")) & CASSETTE_MOTOR_DISABLED)
1907//  if(cassette_get_state(device->machine().device(CASSETTE_TAG)) & CASSETTE_MOTOR_DISABLED)
19081908//      res &= ~0x02;  // is zero if not playing
19091909
19101910   // CMT test bit is set low when the CMT Stop command is issued, and becomes
r11636r11637
19581958   state->m_io_switch = data & 0x20;
19591959   state->m_io_sys = data & 0xff;
19601960
1961   cassette_output(device->machine().device("cass"),(data & 0x01) ? +1.0 : -1.0);
1961   cassette_output(device->machine().device(CASSETTE_TAG),(data & 0x01) ? +1.0 : -1.0);
19621962}
19631963
19641964static I8255A_INTERFACE( ppi8255_intf )
r11636r11637
25532553
25542554   state->m_cmt_current_cmd = 0;
25552555   state->m_cmt_test = 0;
2556   cassette_change_state(machine.device("cass" ),CASSETTE_MOTOR_DISABLED,CASSETTE_MASK_MOTOR);
2556   cassette_change_state(machine.device(CASSETTE_TAG ),CASSETTE_MOTOR_DISABLED,CASSETTE_MASK_MOTOR);
25572557
25582558   state->m_key_irq_flag = state->m_ctc_irq_flag = 0;
25592559   state->m_sub_cmd = 0;
r11636r11637
26842684   MCFG_SOUND_ROUTE(0, "rspeaker", 0.25)
26852685   MCFG_SOUND_ROUTE(1, "lspeaker",  0.5)
26862686   MCFG_SOUND_ROUTE(2, "rspeaker", 0.5)
2687   MCFG_SOUND_WAVE_ADD("wave","cass")
2687   MCFG_SOUND_WAVE_ADD("wave",CASSETTE_TAG)
26882688   MCFG_SOUND_ROUTE(ALL_OUTPUTS, "lspeaker", 0.10)
26892689   MCFG_SOUND_ROUTE(ALL_OUTPUTS, "rspeaker", 0.10)
26902690
2691   MCFG_CASSETTE_ADD("cass",x1_cassette_config)
2691   MCFG_CASSETTE_ADD(CASSETTE_TAG,x1_cassette_config)
26922692   MCFG_SOFTWARE_LIST_ADD("cass_list","x1_cass")
26932693
26942694   MCFG_FLOPPY_4_DRIVES_ADD(x1_floppy_config)
src/mess/drivers/d6800.c
r11636r11637
5656   d6800_state(const machine_config &mconfig, device_type type, const char *tag)
5757      : driver_device(mconfig, type, tag),
5858        m_maincpu(*this, "maincpu"),
59        m_cass(*this, "cassette"),
59        m_cass(*this, CASSETTE_TAG),
6060        m_pia(*this, "pia"),
6161        m_speaker(*this, "speaker")
6262   { }
r11636r11637
297297
298298   /* sound hardware */
299299   MCFG_SPEAKER_STANDARD_MONO("mono")
300   MCFG_SOUND_WAVE_ADD("wave", "cassette")
300   MCFG_SOUND_WAVE_ADD("wave", CASSETTE_TAG)
301301   MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.25)
302302   MCFG_SOUND_ADD("speaker", SPEAKER_SOUND, 0)
303303   MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.50)
304304
305305   /* devices */
306306   MCFG_PIA6821_ADD("pia", d6800_mc6821_intf)
307   MCFG_CASSETTE_ADD("cassette", d6800_cassette_config)
307   MCFG_CASSETTE_ADD(CASSETTE_TAG, d6800_cassette_config)
308308MACHINE_CONFIG_END
309309
310310/* ROMs */
src/mess/drivers/radio86.c
r11636r11637
371371   MCFG_VIDEO_START(generic_bitmapped)
372372
373373   MCFG_SPEAKER_STANDARD_MONO("mono")
374   MCFG_SOUND_WAVE_ADD("wave", "cassette")
374   MCFG_SOUND_WAVE_ADD("wave", CASSETTE_TAG)
375375   MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.25)
376376
377377   MCFG_I8257_ADD("dma8257", XTAL_16MHz / 9, radio86_dma)
378378
379   MCFG_CASSETTE_ADD( "cassette", radio86_cassette_config )
379   MCFG_CASSETTE_ADD( CASSETTE_TAG, radio86_cassette_config )
380380MACHINE_CONFIG_END
381381
382382
src/mess/drivers/vic20.c
r11636r11637
379379   vic20_state *state = device->machine().driver_data<vic20_state>();
380380
381381   /* cassette write */
382   cassette_output(device->machine().device("cassette"), BIT(data, 3) ? -(0x5a9e >> 1) : +(0x5a9e >> 1));
382   cassette_output(device->machine().device(CASSETTE_TAG), BIT(data, 3) ? -(0x5a9e >> 1) : +(0x5a9e >> 1));
383383
384384   /* keyboard column */
385385   state->m_key_col = data;
src/mess/drivers/tm990189.c
r11636r11637
322322      reply |= input_port_read(device->machine(), keynames[state->m_digitsel]) << 1;
323323
324324   /* tape input */
325   if (cassette_input(device->machine().device("cassette")) > 0.0)
325   if (cassette_input(device->machine().device(CASSETTE_TAG)) > 0.0)
326326      reply |= 0x40;
327327
328328   return reply;
r11636r11637
377377
378378static WRITE8_DEVICE_HANDLER( sys9901_tapewdata_w )
379379{
380   cassette_output(device->machine().device("cassette"), data ? +1.0 : -1.0);
380   cassette_output(device->machine().device(CASSETTE_TAG), data ? +1.0 : -1.0);
381381}
382382
383383/*
r11636r11637
481481   case 5: /* CKON: set DECKCONTROL */
482482      state->m_LED_state |= 0x20;
483483      {
484         device_t *img = space->machine().device("cassette");
484         device_t *img = space->machine().device(CASSETTE_TAG);
485485         cassette_change_state(img, CASSETTE_MOTOR_ENABLED, CASSETTE_MASK_MOTOR);
486486      }
487487      break;
r11636r11637
489489   case 6: /* CKOF: clear DECKCONTROL */
490490      state->m_LED_state &= ~0x20;
491491      {
492         device_t *img = space->machine().device("cassette");
492         device_t *img = space->machine().device(CASSETTE_TAG);
493493         cassette_change_state(img, CASSETTE_MOTOR_DISABLED, CASSETTE_MASK_MOTOR);
494494      }
495495      break;
r11636r11637
820820   /* sound hardware */
821821   /* one two-level buzzer */
822822   MCFG_SPEAKER_STANDARD_MONO("mono")
823   MCFG_SOUND_WAVE_ADD("wave", "cassette")
823   MCFG_SOUND_WAVE_ADD("wave", CASSETTE_TAG)
824824   MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.50)
825825   MCFG_SOUND_ADD("speaker", SPEAKER_SOUND, 0)
826826   MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.50)
827827
828   MCFG_CASSETTE_ADD( "cassette", default_cassette_config )
828   MCFG_CASSETTE_ADD( CASSETTE_TAG, default_cassette_config )
829829
830830   /* tms9901 */
831831   MCFG_TMS9901_ADD("tms9901_0", usr9901reset_param)
r11636r11637
867867   /* sound hardware */
868868   /* one two-level buzzer */
869869   MCFG_SPEAKER_STANDARD_MONO("mono")
870   MCFG_SOUND_WAVE_ADD("wave", "cassette")
870   MCFG_SOUND_WAVE_ADD("wave", CASSETTE_TAG)
871871   MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.50)
872872   MCFG_SOUND_ADD("speaker", SPEAKER_SOUND, 0)
873873   MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.50)
874874
875   MCFG_CASSETTE_ADD( "cassette", default_cassette_config )
875   MCFG_CASSETTE_ADD( CASSETTE_TAG, default_cassette_config )
876876
877877   /* tms9901 */
878878   MCFG_TMS9901_ADD("tms9901_0", usr9901reset_param)
src/mess/drivers/thomson.c
r11636r11637
654654     MCFG_CENTRONICS_ADD("centronics", to7_centronics_config)
655655
656656/* cassette */
657     MCFG_CASSETTE_ADD( "cassette", to7_cassette_config )
657     MCFG_CASSETTE_ADD( CASSETTE_TAG, to7_cassette_config )
658658
659659/* timer */
660660     MCFG_MC6846_ADD( "mc6846", to7_timer )
r11636r11637
10491049     MCFG_CPU_MODIFY( "maincpu" )
10501050     MCFG_CPU_PROGRAM_MAP ( mo5)
10511051
1052     MCFG_CASSETTE_MODIFY( "cassette", mo5_cassette_config )
1052     MCFG_CASSETTE_MODIFY( CASSETTE_TAG, mo5_cassette_config )
10531053
10541054     MCFG_DEVICE_REMOVE( "mc6846" )
10551055
src/mess/drivers/pmd85.c
r11636r11637
570570
571571   /* sound hardware */
572572   MCFG_SPEAKER_STANDARD_MONO("mono")
573   MCFG_SOUND_WAVE_ADD("wave", "cassette")
573   MCFG_SOUND_WAVE_ADD("wave", CASSETTE_TAG)
574574   MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.50)
575575
576576   /* cassette */
577   MCFG_CASSETTE_ADD( "cassette", pmd85_cassette_config )
577   MCFG_CASSETTE_ADD( CASSETTE_TAG, pmd85_cassette_config )
578578
579579   /* uart */
580580   MCFG_MSM8251_ADD("uart", default_msm8251_interface)
src/mess/drivers/spectrum.c
r11636r11637
316316   if ((Changed & (1<<3))!=0)
317317   {
318318      /* write cassette data */
319      cassette_output(space->machine().device("cassette"), (data & (1<<3)) ? -1.0 : +1.0);
319      cassette_output(space->machine().device(CASSETTE_TAG), (data & (1<<3)) ? -1.0 : +1.0);
320320   }
321321
322322   state->m_port_fe_data = data;
r11636r11637
392392   data |= (0xe0); /* Set bits 5-7 - as reset above */
393393
394394   /* cassette input from wav */
395   if (cassette_input(space->machine().device("cassette")) > 0.0038 )
395   if (cassette_input(space->machine().device(CASSETTE_TAG)) > 0.0038 )
396396   {
397397      data &= ~0x40;
398398   }
r11636r11637
732732
733733   /* sound hardware */
734734   MCFG_SPEAKER_STANDARD_MONO("mono")
735   MCFG_SOUND_WAVE_ADD("wave", "cassette")
735   MCFG_SOUND_WAVE_ADD("wave", CASSETTE_TAG)
736736   MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.25)
737737   MCFG_SOUND_ADD("speaker", SPEAKER_SOUND, 0)
738738   MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.50)
r11636r11637
740740   /* devices */
741741   MCFG_SNAPSHOT_ADD("snapshot", spectrum, "ach,frz,plusd,prg,sem,sit,sna,snp,snx,sp,z80,zx", 0)
742742   MCFG_QUICKLOAD_ADD("quickload", spectrum, "raw,scr", 2) // The delay prevents the screen from being cleared by the RAM test at boot
743   MCFG_CASSETTE_ADD( "cassette", spectrum_cassette_config )
743   MCFG_CASSETTE_ADD( CASSETTE_TAG, spectrum_cassette_config )
744744
745745   /* cartridge */
746746   MCFG_CARTSLOT_ADD("cart")
src/mess/drivers/phunsy.c
r11636r11637
297297
298298   /* sound hardware */
299299   MCFG_SPEAKER_STANDARD_MONO("mono")
300   //MCFG_SOUND_WAVE_ADD("wave", "cassette")
300   //MCFG_SOUND_WAVE_ADD("wave", CASSETTE_TAG)
301301   //MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.25)
302302   MCFG_SOUND_ADD("speaker", SPEAKER_SOUND, 0)
303303   MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.50)
src/mess/drivers/a2600.c
r11636r11637
908908   else if ( offset == 0xFF9 )
909909   {
910910      /* Cassette port read */
911      double tap_val = cassette_input( space->machine().device("cassette") );
911      double tap_val = cassette_input( space->machine().device(CASSETTE_TAG) );
912912      //logerror("%04X: Cassette port read, tap_val = %f\n", cpu_get_pc(space->machine().device("maincpu")), tap_val);
913913      if ( tap_val < 0 )
914914      {
r11636r11637
12421242      state->m_keypad_right_column = data & 0x0F;
12431243      break;
12441244   case 0x0a:   /* KidVid voice module */
1245      cassette_change_state( machine.device("cassette"), ( data & 0x02 ) ? (cassette_state)CASSETTE_MOTOR_DISABLED : (cassette_state)(CASSETTE_MOTOR_ENABLED | CASSETTE_PLAY), (cassette_state)CASSETTE_MOTOR_DISABLED );
1245      cassette_change_state( machine.device(CASSETTE_TAG), ( data & 0x02 ) ? (cassette_state)CASSETTE_MOTOR_DISABLED : (cassette_state)(CASSETTE_MOTOR_ENABLED | CASSETTE_PLAY), (cassette_state)CASSETTE_MOTOR_DISABLED );
12461246      break;
12471247   }
12481248}
r11636r11637
19591959      state->m_modeSS_byte_started = 0;
19601960      space->set_direct_update_handler(direct_update_delegate(FUNC(modeSS_opbase), &machine));
19611961      /* The Supercharger has no motor control so just enable it */
1962      cassette_change_state( machine.device("cassette"), CASSETTE_MOTOR_ENABLED, CASSETTE_MOTOR_DISABLED );
1962      cassette_change_state( machine.device(CASSETTE_TAG), CASSETTE_MOTOR_ENABLED, CASSETTE_MOTOR_DISABLED );
19631963      break;
19641964
19651965   case modeFV:
r11636r11637
22222222   MCFG_SPEAKER_STANDARD_MONO("mono")
22232223   MCFG_SOUND_ADD("tia", TIA, MASTER_CLOCK_NTSC/114)
22242224   MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.90)
2225   MCFG_SOUND_WAVE_ADD("wave", "cassette")
2225   MCFG_SOUND_WAVE_ADD("wave", CASSETTE_TAG)
22262226   MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.10)
22272227
22282228   /* devices */
22292229   MCFG_RIOT6532_ADD("riot", MASTER_CLOCK_NTSC / 3, r6532_interface)
22302230   MCFG_FRAGMENT_ADD(a2600_cartslot)
2231   MCFG_CASSETTE_ADD( "cassette", a2600_cassette_config )
2231   MCFG_CASSETTE_ADD( CASSETTE_TAG, a2600_cassette_config )
22322232MACHINE_CONFIG_END
22332233
22342234
r11636r11637
22552255   MCFG_SPEAKER_STANDARD_MONO("mono")
22562256   MCFG_SOUND_ADD("tia", TIA, MASTER_CLOCK_PAL/114)
22572257   MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.90)
2258   MCFG_SOUND_WAVE_ADD("wave", "cassette")
2258   MCFG_SOUND_WAVE_ADD("wave", CASSETTE_TAG)
22592259   MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.10)
22602260
22612261   /* devices */
22622262   MCFG_RIOT6532_ADD("riot", MASTER_CLOCK_PAL / 3, r6532_interface)
22632263   MCFG_FRAGMENT_ADD(a2600_cartslot)
2264   MCFG_CASSETTE_ADD( "cassette", a2600_cassette_config )
2264   MCFG_CASSETTE_ADD( CASSETTE_TAG, a2600_cassette_config )
22652265MACHINE_CONFIG_END
22662266
22672267
src/mess/drivers/oric.c
r11636r11637
409409
410410   /* sound hardware */
411411   MCFG_SPEAKER_STANDARD_MONO("mono")
412   MCFG_SOUND_WAVE_ADD("wave", "cassette")
412   MCFG_SOUND_WAVE_ADD("wave", CASSETTE_TAG)
413413   MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.50)
414414   MCFG_SOUND_ADD("ay8912", AY8912, 1000000)
415415   MCFG_SOUND_CONFIG(oric_ay_interface)
r11636r11637
419419   MCFG_CENTRONICS_ADD("centronics", oric_centronics_config)
420420
421421   /* cassette */
422   MCFG_CASSETTE_ADD( "cassette", oric_cassette_config )
422   MCFG_CASSETTE_ADD( CASSETTE_TAG, oric_cassette_config )
423423
424424   /* via */
425425   MCFG_VIA6522_ADD( "via6522_0", 1000000, oric_6522_interface )
src/mess/drivers/orao.c
r11636r11637
195195   MCFG_SPEAKER_STANDARD_MONO("mono")
196196   MCFG_SOUND_ADD("dac", DAC, 0)
197197   MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 8.00)
198   MCFG_SOUND_WAVE_ADD("wave", "cassette")
198   MCFG_SOUND_WAVE_ADD("wave", CASSETTE_TAG)
199199   MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.00)
200200
201   MCFG_CASSETTE_ADD( "cassette", orao_cassette_config )
201   MCFG_CASSETTE_ADD( CASSETTE_TAG, orao_cassette_config )
202202MACHINE_CONFIG_END
203203
204204/* ROM definition */
src/mess/drivers/mekd2.c
r11636r11637
335335
336336   /* sound hardware */
337337   MCFG_SPEAKER_STANDARD_MONO("mono")
338   MCFG_SOUND_WAVE_ADD("wave", "cassette")
338   MCFG_SOUND_WAVE_ADD("wave", CASSETTE_TAG)
339339   MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.25)
340340
341   MCFG_CASSETTE_ADD( "cassette", default_cassette_config )
341   MCFG_CASSETTE_ADD( CASSETTE_TAG, default_cassette_config )
342342
343343   /* Cartslot ?? does not come with one.. */
344344   MCFG_CARTSLOT_ADD("cart")
src/mess/drivers/vector06.c
r11636r11637
197197   MCFG_VIDEO_START(vector06)
198198
199199   MCFG_SPEAKER_STANDARD_MONO("mono")
200   MCFG_SOUND_WAVE_ADD("wave", "cassette")
200   MCFG_SOUND_WAVE_ADD("wave", CASSETTE_TAG)
201201   MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.25)
202202
203   MCFG_CASSETTE_ADD( "cassette", vector_cassette_config )
203   MCFG_CASSETTE_ADD( CASSETTE_TAG, vector_cassette_config )
204204
205205   MCFG_WD1793_ADD("wd1793", vector06_wd17xx_interface)
206206   MCFG_FLOPPY_2_DRIVES_ADD(vector_floppy_config)
src/mess/drivers/mikrosha.c
r11636r11637
226226   MCFG_VIDEO_START(generic_bitmapped)
227227
228228   MCFG_SPEAKER_STANDARD_MONO("mono")
229   MCFG_SOUND_WAVE_ADD("wave", "cassette")
229   MCFG_SOUND_WAVE_ADD("wave", CASSETTE_TAG)
230230   MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.25)
231231
232232   MCFG_I8257_ADD("dma8257", XTAL_16MHz / 9, radio86_dma)
233233
234   MCFG_CASSETTE_ADD( "cassette", mikrosha_cassette_config )
234   MCFG_CASSETTE_ADD( CASSETTE_TAG, mikrosha_cassette_config )
235235MACHINE_CONFIG_END
236236
237237
src/mess/drivers/orion.c
r11636r11637
149149   MCFG_VIDEO_START(orion128)
150150
151151   MCFG_SPEAKER_STANDARD_MONO("mono")
152   MCFG_SOUND_WAVE_ADD("wave", "cassette")
152   MCFG_SOUND_WAVE_ADD("wave", CASSETTE_TAG)
153153   MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.25)
154154
155   MCFG_CASSETTE_ADD( "cassette", orion_cassette_config )
155   MCFG_CASSETTE_ADD( CASSETTE_TAG, orion_cassette_config )
156156
157157   MCFG_WD1793_ADD("wd1793", orion_wd17xx_interface )
158158
r11636r11637
210210   MCFG_SPEAKER_STANDARD_MONO("mono")
211211   MCFG_SOUND_ADD("speaker", SPEAKER_SOUND, 0)
212212   MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.0)
213   MCFG_SOUND_WAVE_ADD("wave", "cassette")
213   MCFG_SOUND_WAVE_ADD("wave", CASSETTE_TAG)
214214   MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.25)
215215   MCFG_SOUND_ADD("ay8912", AY8912, 1773400)
216216   MCFG_SOUND_CONFIG(orionz80_ay_interface)
217217   MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.00)
218218
219   MCFG_CASSETTE_ADD( "cassette", orion_cassette_config )
219   MCFG_CASSETTE_ADD( CASSETTE_TAG, orion_cassette_config )
220220
221221   MCFG_WD1793_ADD("wd1793", orion_wd17xx_interface )
222222
r11636r11637
264264   MCFG_SPEAKER_STANDARD_MONO("mono")
265265   MCFG_SOUND_ADD("speaker", SPEAKER_SOUND, 0)
266266   MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.0)
267   MCFG_SOUND_WAVE_ADD("wave", "cassette")
267   MCFG_SOUND_WAVE_ADD("wave", CASSETTE_TAG)
268268   MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.25)
269269   MCFG_SOUND_ADD("ay8912", AY8912, 1773400)
270270   MCFG_SOUND_CONFIG(orionz80_ay_interface)
271271   MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.00)
272272
273   MCFG_CASSETTE_ADD( "cassette", orion_cassette_config )
273   MCFG_CASSETTE_ADD( CASSETTE_TAG, orion_cassette_config )
274274
275275   MCFG_WD1793_ADD("wd1793", orion_wd17xx_interface )
276276
src/mess/drivers/tmc1800.c
r11636r11637
800800
801801   // devices
802802   MCFG_QUICKLOAD_ADD("quickload", tmc1800, "bin", 0)
803   MCFG_CASSETTE_ADD( "cassette", tmc1800_cassette_config )
803   MCFG_CASSETTE_ADD( CASSETTE_TAG, tmc1800_cassette_config )
804804
805805   // internal ram
806806   MCFG_RAM_ADD(RAM_TAG)
r11636r11637
826826
827827   // devices
828828   MCFG_QUICKLOAD_ADD("quickload", tmc1800, "bin", 0)
829   MCFG_CASSETTE_ADD( "cassette", tmc1800_cassette_config )
829   MCFG_CASSETTE_ADD( CASSETTE_TAG, tmc1800_cassette_config )
830830
831831   // internal ram
832832   MCFG_RAM_ADD(RAM_TAG)
r11636r11637
846846
847847   // devices
848848   MCFG_QUICKLOAD_ADD("quickload", tmc1800, "bin", 0)
849   MCFG_CASSETTE_ADD( "cassette", tmc1800_cassette_config )
849   MCFG_CASSETTE_ADD( CASSETTE_TAG, tmc1800_cassette_config )
850850
851851   // internal ram
852852   MCFG_RAM_ADD(RAM_TAG)
r11636r11637
866866
867867   // devices
868868   MCFG_QUICKLOAD_ADD("quickload", tmc1800, "bin", 0)
869   MCFG_CASSETTE_ADD( "cassette", tmc1800_cassette_config )
869   MCFG_CASSETTE_ADD( CASSETTE_TAG, tmc1800_cassette_config )
870870
871871   // internal ram
872872   MCFG_RAM_ADD(RAM_TAG)
src/mess/drivers/nascom1.c
r11636r11637
303303   /* devices */
304304   MCFG_SNAPSHOT_ADD("snapshot", nascom1, "nas", 0.5)
305305
306   MCFG_CASSETTE_ADD( "cassette", default_cassette_config )
306   MCFG_CASSETTE_ADD( CASSETTE_TAG, default_cassette_config )
307307
308308   /* internal ram */
309309   MCFG_RAM_ADD(RAM_TAG)
src/mess/drivers/vtech1.c
r11636r11637
649649   /* find devices */
650650   vtech1->m_mc6847 = machine.device("mc6847");
651651   vtech1->m_speaker = machine.device("speaker");
652   vtech1->m_cassette = machine.device("cassette");
652   vtech1->m_cassette = machine.device(CASSETTE_TAG);
653653   vtech1->m_printer = machine.device("printer");
654654
655655   /* ram */
r11636r11637
983983
984984   /* sound hardware */
985985   MCFG_SPEAKER_STANDARD_MONO("mono")
986   MCFG_SOUND_WAVE_ADD("wave", "cassette")
986   MCFG_SOUND_WAVE_ADD("wave", CASSETTE_TAG)
987987   MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.25)
988988   MCFG_SOUND_ADD("speaker", SPEAKER_SOUND, 0)
989989   MCFG_SOUND_CONFIG(vtech1_speaker_interface)
r11636r11637
995995   /* snapshot/quickload */
996996   MCFG_SNAPSHOT_ADD("snapshot", vtech1, "vz", 1.5)
997997
998   MCFG_CASSETTE_ADD( "cassette", laser_cassette_config )
998   MCFG_CASSETTE_ADD( CASSETTE_TAG, laser_cassette_config )
999999
10001000   /* cartridge */
10011001   MCFG_CARTSLOT_ADD("cart")
src/mess/drivers/amstrad.c
r11636r11637
900900
901901   /* sound hardware */
902902   MCFG_SPEAKER_STANDARD_MONO("mono")
903   MCFG_SOUND_WAVE_ADD("wave", "cassette")
903   MCFG_SOUND_WAVE_ADD("wave", CASSETTE_TAG)
904904   MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.50)
905905   MCFG_SOUND_ADD("ay", AY8912, XTAL_16MHz / 16)
906906   MCFG_SOUND_CONFIG(ay8912_interface)
r11636r11637
912912   /* snapshot */
913913   MCFG_SNAPSHOT_ADD("snapshot", amstrad, "sna", 0)
914914
915   MCFG_CASSETTE_ADD( "cassette", amstrad_cassette_config )
915   MCFG_CASSETTE_ADD( CASSETTE_TAG, amstrad_cassette_config )
916916
917917   MCFG_UPD765A_ADD("upd765", amstrad_upd765_interface)
918918
r11636r11637
963963
964964   /* sound hardware */
965965   MCFG_SPEAKER_STANDARD_MONO("mono")
966   MCFG_SOUND_WAVE_ADD("wave", "cassette")
966   MCFG_SOUND_WAVE_ADD("wave", CASSETTE_TAG)
967967   MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.50)
968968   MCFG_SOUND_ADD("ay", AY8912, XTAL_40MHz / 40)
969969   MCFG_SOUND_CONFIG(ay8912_interface)
r11636r11637
975975   /* snapshot */
976976   MCFG_SNAPSHOT_ADD("snapshot", amstrad, "sna", 0)
977977
978   MCFG_CASSETTE_ADD( "cassette", amstrad_cassette_config )
978   MCFG_CASSETTE_ADD( CASSETTE_TAG, amstrad_cassette_config )
979979
980980   MCFG_UPD765A_ADD("upd765", amstrad_upd765_interface)
981981
src/mess/drivers/poly88.c
r11636r11637
189189
190190   /* audio hardware */
191191   MCFG_SPEAKER_STANDARD_MONO("mono")
192   MCFG_SOUND_WAVE_ADD("wave", "cassette")
192   MCFG_SOUND_WAVE_ADD("wave", CASSETTE_TAG)
193193   MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.00)
194194
195195   /* cassette */
196   MCFG_CASSETTE_ADD( "cassette", poly88_cassette_config )
196   MCFG_CASSETTE_ADD( CASSETTE_TAG, poly88_cassette_config )
197197
198198   /* uart */
199199   MCFG_MSM8251_ADD("uart", poly88_usart_interface)
src/mess/drivers/tutor.c
r11636r11637
387387{
388388   //tutor_state *state = machine.driver_data<tutor_state>();
389389   //assert(state->m_tape_interrupt_enable);
390   cputag_set_input_line(machine, "maincpu", 1, (cassette_input(machine.device("cassette")) > 0.0) ? ASSERT_LINE : CLEAR_LINE);
390   cputag_set_input_line(machine, "maincpu", 1, (cassette_input(machine.device(CASSETTE_TAG)) > 0.0) ? ASSERT_LINE : CLEAR_LINE);
391391}
392392
393393/* CRU handler */
394394static  READ8_HANDLER(tutor_cassette_r)
395395{
396   return (cassette_input(space->machine().device("cassette")) > 0.0) ? 1 : 0;
396   return (cassette_input(space->machine().device(CASSETTE_TAG)) > 0.0) ? 1 : 0;
397397}
398398
399399/* memory handler */
r11636r11637
411411      {
412412      case 0:
413413         /* data out */
414         cassette_output(space->machine().device("cassette"), (data) ? +1.0 : -1.0);
414         cassette_output(space->machine().device(CASSETTE_TAG), (data) ? +1.0 : -1.0);
415415         break;
416416      case 1:
417417         /* interrupt control??? */
r11636r11637
706706   MCFG_SPEAKER_STANDARD_MONO("mono")
707707   MCFG_SOUND_ADD("sn76489a", SN76489A, 3579545)   /* 3.579545 MHz */
708708   MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.75)
709   MCFG_SOUND_WAVE_ADD("wave", "cassette")
709   MCFG_SOUND_WAVE_ADD("wave", CASSETTE_TAG)
710710   MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.20)
711711
712712   MCFG_CENTRONICS_ADD("printer", standard_centronics)
713713
714   MCFG_CASSETTE_ADD( "cassette", default_cassette_config )
714   MCFG_CASSETTE_ADD( CASSETTE_TAG, default_cassette_config )
715715
716716   /* cartridge */
717717   MCFG_CARTSLOT_ADD("cart")
src/mess/drivers/trs80.c
r11636r11637
580580   MCFG_SPEAKER_STANDARD_MONO("mono")
581581   MCFG_SOUND_ADD("speaker", SPEAKER_SOUND, 0)
582582   MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.00)
583   MCFG_SOUND_WAVE_ADD("wave", "cassette")
583   MCFG_SOUND_WAVE_ADD("wave", CASSETTE_TAG)
584584   MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.00)
585585
586586   /* devices */
587   MCFG_CASSETTE_ADD( "cassette", default_cassette_config )
587   MCFG_CASSETTE_ADD( CASSETTE_TAG, default_cassette_config )
588588MACHINE_CONFIG_END
589589
590590static MACHINE_CONFIG_DERIVED( model1, trs80 )      // model I, level II
r11636r11637
594594   MCFG_CPU_PERIODIC_INT(trs80_rtc_interrupt, 40)
595595
596596   /* devices */
597   MCFG_CASSETTE_MODIFY( "cassette", trs80l2_cassette_config )
597   MCFG_CASSETTE_MODIFY( CASSETTE_TAG, trs80l2_cassette_config )
598598   MCFG_QUICKLOAD_ADD("quickload", trs80_cmd, "cmd", 0.5)
599599   MCFG_WD179X_ADD("wd179x", trs80_wd17xx_interface )
600600   MCFG_FLOPPY_4_DRIVES_ADD(trs80_floppy_config)
src/mess/drivers/primo.c
r11636r11637
274274
275275   /* sound hardware */
276276   MCFG_SPEAKER_STANDARD_MONO("mono")
277   MCFG_SOUND_WAVE_ADD("wave", "cassette")
277   MCFG_SOUND_WAVE_ADD("wave", CASSETTE_TAG)
278278   MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.50)
279279   MCFG_SOUND_ADD("speaker", SPEAKER_SOUND, 0)
280280   MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.50)
r11636r11637
283283   MCFG_SNAPSHOT_ADD("snapshot", primo, "pss", 0)
284284   MCFG_QUICKLOAD_ADD("quickload", primo, "pp", 0)
285285
286   MCFG_CASSETTE_ADD( "cassette", primo_cassette_config )
286   MCFG_CASSETTE_ADD( CASSETTE_TAG, primo_cassette_config )
287287
288288   /* floppy from serial bus */
289289   /* for some reason machine/primo.c sets up the serial bus
src/mess/drivers/svi318.c
r11636r11637
324324   MCFG_SPEAKER_STANDARD_MONO("mono")
325325   MCFG_SOUND_ADD("dac", DAC, 0)
326326   MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.25)
327   MCFG_SOUND_WAVE_ADD("wave", "cassette")
327   MCFG_SOUND_WAVE_ADD("wave", CASSETTE_TAG)
328328   MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.25)
329329   MCFG_SOUND_ADD("ay8910", AY8910, 1789773)
330330   MCFG_SOUND_CONFIG(svi318_ay8910_interface)
r11636r11637
333333   /* printer */
334334   MCFG_CENTRONICS_ADD("centronics", standard_centronics)
335335
336   MCFG_CASSETTE_ADD( "cassette", svi318_cassette_config )
336   MCFG_CASSETTE_ADD( CASSETTE_TAG, svi318_cassette_config )
337337
338338   MCFG_WD179X_ADD("wd179x", svi_wd17xx_interface )
339339
r11636r11637
451451   MCFG_SPEAKER_STANDARD_MONO("mono")
452452   MCFG_SOUND_ADD("dac", DAC, 0)
453453   MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.25)
454   MCFG_SOUND_WAVE_ADD("wave", "cassette")
454   MCFG_SOUND_WAVE_ADD("wave", CASSETTE_TAG)
455455   MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.25)
456456   MCFG_SOUND_ADD("ay8910", AY8910, 1789773)
457457   MCFG_SOUND_CONFIG(svi318_ay8910_interface)
r11636r11637
460460   /* printer */
461461   MCFG_CENTRONICS_ADD("centronics", standard_centronics)
462462
463   MCFG_CASSETTE_ADD( "cassette", svi318_cassette_config )
463   MCFG_CASSETTE_ADD( CASSETTE_TAG, svi318_cassette_config )
464464
465465   MCFG_WD179X_ADD("wd179x", svi_wd17xx_interface )
466466
src/mess/drivers/fm7.c
r11636r11637
746746   // bit 1: printer error
747747   // bit 0: printer busy
748748   UINT8 ret = 0x00;
749   double data = cassette_input(space->machine().device("cass"));
749   double data = cassette_input(space->machine().device(CASSETTE_TAG));
750750   device_t* printer_dev = space->machine().device("lpt");
751751   UINT8 pdata;
752752   int x;
r11636r11637
754754   if(data > 0.03)
755755      ret |= 0x80;
756756
757   if(cassette_get_state(space->machine().device("cass")) & CASSETTE_MOTOR_DISABLED)
757   if(cassette_get_state(space->machine().device(CASSETTE_TAG)) & CASSETTE_MOTOR_DISABLED)
758758      ret |= 0x80;  // cassette input is high when not in use.
759759
760760   ret |= 0x70;
r11636r11637
801801      // bit 1: cassette motor
802802      // bit 0: cassette output
803803         if((data & 0x01) != (state->m_cp_prev & 0x01))
804            cassette_output(space->machine().device("cass"),(data & 0x01) ? +1.0 : -1.0);
804            cassette_output(space->machine().device(CASSETTE_TAG),(data & 0x01) ? +1.0 : -1.0);
805805         if((data & 0x02) != (state->m_cp_prev & 0x02))
806            cassette_change_state(space->machine().device("cass" ),(data & 0x02) ? CASSETTE_MOTOR_ENABLED : CASSETTE_MOTOR_DISABLED,CASSETTE_MASK_MOTOR);
806            cassette_change_state(space->machine().device(CASSETTE_TAG),(data & 0x02) ? CASSETTE_MOTOR_ENABLED : CASSETTE_MOTOR_DISABLED,CASSETTE_MASK_MOTOR);
807807         centronics_strobe_w(space->machine().device("lpt"),!(data & 0x40));
808808         state->m_cp_prev = data;
809809         break;
r11636r11637
18691869   MCFG_SOUND_ROUTE(ALL_OUTPUTS,"mono",1.0)
18701870   MCFG_SOUND_ADD("beeper", BEEP, 0)
18711871   MCFG_SOUND_ROUTE(ALL_OUTPUTS,"mono",1.0)
1872   MCFG_SOUND_WAVE_ADD("wave","cass")
1872   MCFG_SOUND_WAVE_ADD("wave", CASSETTE_TAG)
18731873   MCFG_SOUND_ROUTE(ALL_OUTPUTS,"mono",0.20)
18741874
18751875   MCFG_MACHINE_START(fm7)
r11636r11637
18901890
18911891   MCFG_VIDEO_START(fm7)
18921892
1893   MCFG_CASSETTE_ADD("cass",fm7_cassette_config)
1893   MCFG_CASSETTE_ADD(CASSETTE_TAG, fm7_cassette_config)
18941894
18951895   MCFG_MB8877_ADD("fdc",fm7_mb8877a_interface)
18961896
r11636r11637
19181918   MCFG_SOUND_ROUTE(ALL_OUTPUTS,"mono",1.0)
19191919   MCFG_SOUND_ADD("beeper", BEEP, 0)
19201920   MCFG_SOUND_ROUTE(ALL_OUTPUTS,"mono",1.0)
1921   MCFG_SOUND_WAVE_ADD("wave","cass")
1921   MCFG_SOUND_WAVE_ADD("wave", CASSETTE_TAG)
19221922   MCFG_SOUND_ROUTE(ALL_OUTPUTS,"mono",0.20)
19231923
19241924   MCFG_MACHINE_START(fm77av)
r11636r11637
19381938
19391939   MCFG_VIDEO_START(fm7)
19401940
1941   MCFG_CASSETTE_ADD("cass",fm7_cassette_config)
1941   MCFG_CASSETTE_ADD(CASSETTE_TAG, fm7_cassette_config)
19421942
19431943   MCFG_MB8877_ADD("fdc",fm7_mb8877a_interface)
19441944
src/mess/drivers/vtech2.c
r11636r11637
450450
451451   /* sound hardware */
452452   MCFG_SPEAKER_STANDARD_MONO("mono")
453   MCFG_SOUND_WAVE_ADD("wave", "cassette")
453   MCFG_SOUND_WAVE_ADD("wave", CASSETTE_TAG)
454454   MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.50)
455455   MCFG_SOUND_ADD("speaker", SPEAKER_SOUND, 0)
456456   MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.75)
457457
458   MCFG_CASSETTE_ADD( "cassette", laser_cassette_config )
458   MCFG_CASSETTE_ADD( CASSETTE_TAG, laser_cassette_config )
459459
460460   /* cartridge */
461461   MCFG_CARTSLOT_ADD("cart")
src/mess/drivers/zx.c
r11636r11637
411411   MCFG_SPEAKER_STANDARD_MONO("mono")
412412   MCFG_SOUND_ADD("speaker", SPEAKER_SOUND, 0)   /* Used by pc8300/lambda/pow3000 */
413413   MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.75)
414   MCFG_SOUND_WAVE_ADD("wave", "cassette")
414   MCFG_SOUND_WAVE_ADD("wave", CASSETTE_TAG)
415415   MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.30)
416416
417   MCFG_CASSETTE_ADD( "cassette", zx80_cassette_config )
417   MCFG_CASSETTE_ADD( CASSETTE_TAG, zx80_cassette_config )
418418
419419   /* internal ram */
420420   MCFG_RAM_ADD(RAM_TAG)
r11636r11637
429429
430430   MCFG_GFXDECODE(zx81)
431431
432   MCFG_CASSETTE_MODIFY( "cassette", zx81_cassette_config )
432   MCFG_CASSETTE_MODIFY( CASSETTE_TAG, zx81_cassette_config )
433433MACHINE_CONFIG_END
434434
435435static MACHINE_CONFIG_DERIVED( ts1000, zx81 )
src/mess/drivers/pk8000.c
r11636r11637
3131
3232static device_t *cassette_device_image(running_machine &machine)
3333{
34   return machine.device("cassette");
34   return machine.device(CASSETTE_TAG);
3535}
3636
3737static void pk8000_set_bank(running_machine &machine,UINT8 data)
r11636r11637
367367   MCFG_SPEAKER_STANDARD_MONO("mono")
368368   MCFG_SOUND_ADD("speaker", SPEAKER_SOUND, 0)
369369   MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.50)
370   MCFG_SOUND_WAVE_ADD("wave", "cassette")
370   MCFG_SOUND_WAVE_ADD("wave", CASSETTE_TAG)
371371   MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.00)
372372
373   MCFG_CASSETTE_ADD( "cassette", pk8000_cassette_config )
373   MCFG_CASSETTE_ADD( CASSETTE_TAG, pk8000_cassette_config )
374374
375375   /* internal ram */
376376   MCFG_RAM_ADD(RAM_TAG)
src/mess/drivers/mz700.c
r11636r11637
349349
350350   /* sound hardware */
351351   MCFG_SPEAKER_STANDARD_MONO("mono")
352   MCFG_SOUND_WAVE_ADD("wave", "cassette")
352   MCFG_SOUND_WAVE_ADD("wave", CASSETTE_TAG)
353353   MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.50)
354354   MCFG_SOUND_ADD("speaker", SPEAKER_SOUND, 0)
355355   MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.50)
r11636r11637
363363   MCFG_I8255_ADD("ppi8255", mz700_ppi8255_interface)
364364   MCFG_TTL74145_ADD("ls145", default_ttl74145)
365365
366   MCFG_CASSETTE_ADD( "cassette", mz700_cassette_config )
366   MCFG_CASSETTE_ADD( CASSETTE_TAG, mz700_cassette_config )
367367
368368   /* internal ram */
369369   MCFG_RAM_ADD(RAM_TAG)
src/mess/drivers/ondra.c
r11636r11637
145145
146146   // sound hardware
147147   MCFG_SPEAKER_STANDARD_MONO("mono")
148   MCFG_SOUND_WAVE_ADD("wave", "cassette")
148   MCFG_SOUND_WAVE_ADD("wave", CASSETTE_TAG)
149149   MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.25)
150150
151   MCFG_CASSETTE_ADD( "cassette", ondra_cassette_config )
151   MCFG_CASSETTE_ADD( CASSETTE_TAG, ondra_cassette_config )
152152
153153   /* internal ram */
154154   MCFG_RAM_ADD(RAM_TAG)
src/mess/drivers/lviv.c
r11636r11637
455455
456456   /* sound hardware */
457457   MCFG_SPEAKER_STANDARD_MONO("mono")
458   MCFG_SOUND_WAVE_ADD("wave", "cassette")
458   MCFG_SOUND_WAVE_ADD("wave", CASSETTE_TAG)
459459   MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.50)
460460   MCFG_SOUND_ADD("speaker", SPEAKER_SOUND, 0)
461461   MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.50)
r11636r11637
463463   /* snapshot */
464464   MCFG_SNAPSHOT_ADD("snapshot", lviv, "sav", 0)
465465
466   MCFG_CASSETTE_ADD( "cassette", lviv_cassette_config )
466   MCFG_CASSETTE_ADD( CASSETTE_TAG, lviv_cassette_config )
467467
468468   /* internal ram */
469469   MCFG_RAM_ADD(RAM_TAG)
src/mess/drivers/pc8801.c
r11636r11637
22432243   #endif
22442244   MCFG_UPD1990A_ADD(UPD1990A_TAG, XTAL_32_768kHz, pc8801_upd1990a_intf)
22452245   //MCFG_CENTRONICS_ADD("centronics", standard_centronics)
2246   //MCFG_CASSETTE_ADD("cassette", pc88_cassette_config)
2246   //MCFG_CASSETTE_ADD(CASSETTE_TAG, pc88_cassette_config)
22472247
22482248   MCFG_FLOPPY_2_DRIVES_ADD(pc88_floppy_config)
22492249   MCFG_SOFTWARE_LIST_ADD("disk_list","pc8801_flop")
src/mess/drivers/apf.c
r11636r11637
246246
247247   data = 0x000;
248248
249   if (cassette_input(device->machine().device("cassette")) > 0.0038)
249   if (cassette_input(device->machine().device(CASSETTE_TAG)) > 0.0038)
250250      data =(1<<7);
251251
252252   return data;
r11636r11637
295295   state->m_keyboard_data = input_port_read(device->machine(), keynames[keyboard_line]);
296296
297297   /* bit 4: cassette motor control */
298   cassette_change_state(device->machine().device("cassette"),
298   cassette_change_state(device->machine().device(CASSETTE_TAG),
299299      (data & 0x10) ? CASSETTE_MOTOR_ENABLED : CASSETTE_MOTOR_DISABLED,
300300      CASSETTE_MASK_MOTOR);
301301
302302   /* bit 6: cassette write */
303   cassette_output(device->machine().device("cassette"),
303   cassette_output(device->machine().device(CASSETTE_TAG),
304304      (data & 0x40) ? -1.0 : 1.0);
305305}
306306
r11636r11637
731731   MCFG_SOUND_ADD("speaker", SPEAKER_SOUND, 0)
732732   MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.00)
733733
734   MCFG_CASSETTE_ADD( "cassette", apf_cassette_config )
734   MCFG_CASSETTE_ADD( CASSETTE_TAG, apf_cassette_config )
735735
736736   MCFG_WD179X_ADD("wd179x", default_wd17xx_interface )
737737
r11636r11637
744744
745745   MCFG_DEVICE_REMOVE( "pia_1" )
746746
747   MCFG_DEVICE_REMOVE( "cassette" )
747   MCFG_DEVICE_REMOVE( CASSETTE_TAG )
748748   MCFG_FLOPPY_2_DRIVES_REMOVE()
749749
750750   MCFG_CARTSLOT_ADD("cart")
src/mess/drivers/rx78.c
r11636r11637
6161   rx78_state(const machine_config &mconfig, device_type type, const char *tag)
6262      : driver_device(mconfig, type, tag),
6363   m_maincpu(*this, "maincpu"),
64   m_cass(*this, "cassette"),
64   m_cass(*this, CASSETTE_TAG),
6565   m_wave(*this, "wave")
6666   { }
6767
r11636r11637
490490   MCFG_RAM_DEFAULT_SIZE("32k")
491491   MCFG_RAM_EXTRA_OPTIONS("16k")
492492
493   MCFG_CASSETTE_ADD( "cassette", default_cassette_config )
493   MCFG_CASSETTE_ADD( CASSETTE_TAG, default_cassette_config )
494494
495495   MCFG_SPEAKER_STANDARD_MONO("mono")
496   MCFG_SOUND_WAVE_ADD("wave", "cassette")
496   MCFG_SOUND_WAVE_ADD("wave", CASSETTE_TAG)
497497   MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.20)
498498   MCFG_SOUND_ADD("sn1", SN76489A, XTAL_28_63636MHz/8) // unknown divider
499499   MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.50)
src/mess/drivers/partner.c
r11636r11637
213213   MCFG_VIDEO_START(generic_bitmapped)
214214
215215   MCFG_SPEAKER_STANDARD_MONO("mono")
216   MCFG_SOUND_WAVE_ADD("wave", "cassette")
216   MCFG_SOUND_WAVE_ADD("wave", CASSETTE_TAG)
217217   MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.25)
218218
219219   MCFG_I8257_ADD("dma8257", XTAL_16MHz / 9, partner_dma)
220220
221   MCFG_CASSETTE_ADD( "cassette", partner_cassette_config )
221   MCFG_CASSETTE_ADD( CASSETTE_TAG, partner_cassette_config )
222222
223223   MCFG_WD1793_ADD("wd1793", partner_wd17xx_interface )
224224
src/mess/drivers/tmc2000e.c
r11636r11637
274274
275275   /* devices */
276276   MCFG_PRINTER_ADD("printer")
277   MCFG_CASSETTE_ADD("cassette", tmc2000_cassette_config)
277   MCFG_CASSETTE_ADD(CASSETTE_TAG, tmc2000_cassette_config)
278278
279279   MCFG_FLOPPY_2_DRIVES_ADD(tmc2000e_floppy_config)
280280
src/mess/drivers/apogee.c
r11636r11637
188188   MCFG_VIDEO_START(generic_bitmapped)
189189
190190   MCFG_SPEAKER_STANDARD_MONO("mono")
191   MCFG_SOUND_WAVE_ADD("wave", "cassette")
191   MCFG_SOUND_WAVE_ADD("wave", CASSETTE_TAG)
192192   MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.25)
193193
194194   MCFG_I8257_ADD("dma8257", XTAL_16MHz / 9, radio86_dma)
195195
196   MCFG_CASSETTE_ADD( "cassette", apogee_cassette_config )
196   MCFG_CASSETTE_ADD( CASSETTE_TAG, apogee_cassette_config )
197197MACHINE_CONFIG_END
198198
199199/* ROM definition */
src/mess/drivers/pegasus.c
r11636r11637
5454   pegasus_state(const machine_config &mconfig, device_type type, const char *tag)
5555      : driver_device(mconfig, type, tag),
5656   m_maincpu(*this, "maincpu"),
57   m_cass(*this, "cassette"),
57   m_cass(*this, CASSETTE_TAG),
5858   m_pia_s(*this, "pia_s"),
5959   m_pia_u(*this, "pia_u")
6060   { }
r11636r11637
527527   MCFG_CARTSLOT_ADD("cart5")
528528   MCFG_CARTSLOT_EXTENSION_LIST("bin")
529529   MCFG_CARTSLOT_LOAD(pegasus_cart_5)
530   MCFG_CASSETTE_ADD( "cassette", pegasus_cassette_config )
530   MCFG_CASSETTE_ADD( CASSETTE_TAG, pegasus_cassette_config )
531531MACHINE_CONFIG_END
532532
533533static MACHINE_CONFIG_DERIVED( pegasusm, pegasus )
src/mess/drivers/vg5k.c
r11636r11637
6767        m_ef9345(*this, "ef9345"),
6868        m_dac(*this, "dac"),
6969        m_printer(*this, "printer"),
70        m_cassette(*this, "cassette")
70        m_cassette(*this, CASSETTE_TAG)
7171      { }
7272
7373   required_device<cpu_device> m_maincpu;
r11636r11637
405405   MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.0)
406406
407407   /* cassette */
408   MCFG_SOUND_WAVE_ADD("wave", "cassette")
408   MCFG_SOUND_WAVE_ADD("wave", CASSETTE_TAG)
409409   MCFG_SOUND_ROUTE(0, "mono", 0.1)
410410
411   MCFG_CASSETTE_ADD( "cassette", vg5k_cassette_config )
411   MCFG_CASSETTE_ADD( CASSETTE_TAG, vg5k_cassette_config )
412412
413413   /* printer */
414414   MCFG_PRINTER_ADD("printer")
src/mess/drivers/special.c
r11636r11637
438438   MCFG_SPEAKER_STANDARD_MONO("mono")
439439   MCFG_SOUND_ADD("dac", DAC, 0)
440440   MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.00)
441   MCFG_SOUND_WAVE_ADD("wave", "cassette")
441   MCFG_SOUND_WAVE_ADD("wave", CASSETTE_TAG)
442442   MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.00)
443443
444   MCFG_CASSETTE_ADD( "cassette", special_cassette_config )
444   MCFG_CASSETTE_ADD( CASSETTE_TAG, special_cassette_config )
445445
446446MACHINE_CONFIG_END
447447
r11636r11637
516516   MCFG_SPEAKER_STANDARD_MONO("mono")
517517   MCFG_SOUND_ADD("dac", DAC, 0)
518518   MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.00)
519   MCFG_SOUND_WAVE_ADD("wave", "cassette")
519   MCFG_SOUND_WAVE_ADD("wave", CASSETTE_TAG)
520520   MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.00)
521521
522   MCFG_CASSETTE_ADD( "cassette", special_cassette_config )
522   MCFG_CASSETTE_ADD( CASSETTE_TAG, special_cassette_config )
523523
524524   MCFG_WD1793_ADD("wd1793", default_wd17xx_interface_2_drives )
525525
src/mess/drivers/pv2000.c
r11636r11637
5757   state->m_cass_conf = data & 0x0f;
5858
5959   if ( state->m_cass_conf & 0x01 )
60      cassette_change_state( space->machine().device("cassette"), CASSETTE_MOTOR_ENABLED, CASSETTE_MASK_MOTOR );
60      cassette_change_state( space->machine().device(CASSETTE_TAG), CASSETTE_MOTOR_ENABLED, CASSETTE_MASK_MOTOR );
6161   else
62      cassette_change_state( space->machine().device("cassette"), CASSETTE_MOTOR_DISABLED, CASSETTE_MASK_MOTOR );
62      cassette_change_state( space->machine().device(CASSETTE_TAG), CASSETTE_MOTOR_DISABLED, CASSETTE_MASK_MOTOR );
6363}
6464
6565
r11636r11637
434434   MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.00)
435435
436436   /* cassette */
437   MCFG_CASSETTE_ADD( "cassette", pv2000_cassette_config )
437   MCFG_CASSETTE_ADD( CASSETTE_TAG, pv2000_cassette_config )
438438
439439   /* cartridge */
440440   MCFG_CARTSLOT_ADD("cart")
src/mess/drivers/mikro80.c
r11636r11637
190190   MCFG_VIDEO_START(mikro80)
191191
192192   MCFG_SPEAKER_STANDARD_MONO("mono")
193   MCFG_SOUND_WAVE_ADD("wave", "cassette")
193   MCFG_SOUND_WAVE_ADD("wave", CASSETTE_TAG)
194194   MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.00)
195195
196   MCFG_CASSETTE_ADD( "cassette", mikro80_cassette_config )
196   MCFG_CASSETTE_ADD( CASSETTE_TAG, mikro80_cassette_config )
197197MACHINE_CONFIG_END
198198
199199static MACHINE_CONFIG_DERIVED( radio99, mikro80 )
src/mess/drivers/mz80.c
r11636r11637
291291   MCFG_PALETTE_INIT(black_and_white)
292292
293293   MCFG_SPEAKER_STANDARD_MONO("mono")
294   MCFG_SOUND_WAVE_ADD("wave", "cassette")
294   MCFG_SOUND_WAVE_ADD("wave", CASSETTE_TAG)
295295   MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.50)
296296   MCFG_SOUND_ADD("speaker", SPEAKER_SOUND, 0)
297297   MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.50)
298298
299299   MCFG_TIMER_ADD_PERIODIC("tempo", ne555_tempo_callback, attotime::from_hz(34)) // 33.5Hz - 34.3Hz
300300
301   MCFG_CASSETTE_ADD( "cassette", mz80k_cassette_config )
301   MCFG_CASSETTE_ADD( CASSETTE_TAG, mz80k_cassette_config )
302302MACHINE_CONFIG_END
303303
304304static MACHINE_CONFIG_DERIVED( mz80kj, mz80k )
src/mess/drivers/ut88.c
r11636r11637
203203   MCFG_SPEAKER_STANDARD_MONO("mono")
204204   MCFG_SOUND_ADD("dac", DAC, 0)
205205   MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.25)
206   MCFG_SOUND_WAVE_ADD("wave", "cassette")
206   MCFG_SOUND_WAVE_ADD("wave", CASSETTE_TAG)
207207   MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.00)
208208
209   MCFG_CASSETTE_ADD( "cassette", ut88_cassette_config )
209   MCFG_CASSETTE_ADD( CASSETTE_TAG, ut88_cassette_config )
210210MACHINE_CONFIG_END
211211
212212static MACHINE_CONFIG_START( ut88mini, ut88_state )
r11636r11637
220220   /* video hardware */
221221   MCFG_DEFAULT_LAYOUT(layout_ut88mini)
222222
223   MCFG_CASSETTE_ADD( "cassette", ut88_cassette_config )
223   MCFG_CASSETTE_ADD( CASSETTE_TAG, ut88_cassette_config )
224224MACHINE_CONFIG_END
225225
226226/* ROM definition */
src/mess/drivers/pcm.c
r11636r11637
8181   m_ctc_s(*this, "z80ctc_s"),
8282   m_ctc_u(*this, "z80ctc_u"),
8383   m_speaker(*this, "speaker"),
84   m_cass(*this, "cassette")
84   m_cass(*this, CASSETTE_TAG)
8585   { }
8686
8787   required_device<cpu_device> m_maincpu;
r11636r11637
347347
348348   /* Sound */
349349   MCFG_SPEAKER_STANDARD_MONO("mono")
350   MCFG_SOUND_WAVE_ADD("wave", "cassette")
350   MCFG_SOUND_WAVE_ADD("wave", CASSETTE_TAG)
351351   MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.25)
352352   MCFG_SOUND_ADD("speaker", SPEAKER_SOUND, 0)
353353   MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.50)
354354
355355   /* Devices */
356356   MCFG_GENERIC_TERMINAL_ADD(TERMINAL_TAG, terminal_intf)
357   MCFG_CASSETTE_ADD( "cassette", default_cassette_config )
357   MCFG_CASSETTE_ADD( CASSETTE_TAG, default_cassette_config )
358358   MCFG_Z80PIO_ADD( "z80pio_u", XTAL_10MHz /4, pio_u_intf )
359359   MCFG_Z80PIO_ADD( "z80pio_s", XTAL_10MHz /4, pio_s_intf )
360360   MCFG_Z80SIO_ADD( "z80sio", 4800, sio_intf ) // clocks come from the system ctc
src/mess/drivers/pk8020.c
r11636r11637
235235   MCFG_SPEAKER_STANDARD_MONO("mono")
236236   MCFG_SOUND_ADD("speaker", SPEAKER_SOUND, 0)
237237   MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.25)
238   MCFG_SOUND_WAVE_ADD("wave", "cassette")
238   MCFG_SOUND_WAVE_ADD("wave", CASSETTE_TAG)
239239   MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.25)
240240
241   MCFG_CASSETTE_ADD( "cassette", pk8020_cassette_config )
241   MCFG_CASSETTE_ADD( CASSETTE_TAG, pk8020_cassette_config )
242242
243243   MCFG_FLOPPY_4_DRIVES_ADD(pk8020_floppy_config)
244244

Previous 15994 Revisions Next


© 1998-2018 The MESS Team