Previous 15994 Revisions Next

r11639 Monday 23rd May, 2011 at 15:14:14 UTC by Robbbert
More conversions from "cassette" to CASSETTE_TAG (nw)
[src/mess/drivers]apple1.c apple2.c aquarius.c bk.c bmjr.c cgenie.c dai.c electron.c elwro800.c galaxy.c hec2hrp.c ibmpc.c interact.c jr100.c kc.c kim1.c mc10.c microtan.c msx.c pc.c samcoupe.c
[src/mess/machine]amstrad.c apple1.c apple2.c bk.c cgenie.c dai.c electron.c genpc.c hec2hrp.c kc.c microtan.c msx.c svi318.c

src/mess/machine/dai.c
r11638r11639
197197      data |= 0x08;         // serial ready
198198      if (space->machine().rand()&0x01)
199199         data |= 0x40;      // random number generator
200      if (cassette_input(space->machine().device("cassette")) > 0.01)
200      if (cassette_input(space->machine().device(CASSETTE_TAG)) > 0.01)
201201         data |= 0x80;      // tape input
202202      break;
203203
r11638r11639
231231      state->m_paddle_enable = (data&0x08)>>3;
232232      state->m_cassette_motor[0] = (data&0x10)>>4;
233233      state->m_cassette_motor[1] = (data&0x20)>>5;
234      cassette_change_state(space->machine().device("cassette"), state->m_cassette_motor[0]?CASSETTE_MOTOR_DISABLED:CASSETTE_MOTOR_ENABLED, CASSETTE_MASK_MOTOR);
235      cassette_output(space->machine().device("cassette"), (data & 0x01) ? -1.0 : 1.0);
234      cassette_change_state(space->machine().device(CASSETTE_TAG), state->m_cassette_motor[0]?CASSETTE_MOTOR_DISABLED:CASSETTE_MOTOR_ENABLED, CASSETTE_MASK_MOTOR);
235      cassette_output(space->machine().device(CASSETTE_TAG), (data & 0x01) ? -1.0 : 1.0);
236236      dai_update_memory (space->machine(), (data&0xc0)>>6);
237237      LOG_DAI_PORT_W (offset, (data&0x06)>>2, "discrete devices - paddle select");
238238      LOG_DAI_PORT_W (offset, (data&0x08)>>3, "discrete devices - paddle enable");
src/mess/machine/genpc.c
r11638r11639
690690static MACHINE_CONFIG_FRAGMENT( ibm5150_mb_config )
691691   MCFG_FRAGMENT_ADD(ibm5160_mb_config)
692692
693   MCFG_CASSETTE_ADD( "cassette", ibm5150_cassette_config )
693   MCFG_CASSETTE_ADD( CASSETTE_TAG, ibm5150_cassette_config )
694694MACHINE_CONFIG_END
695695
696696
r11638r11639
714714
715715ibm5150_mb_device::ibm5150_mb_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
716716   : ibm5160_mb_device(mconfig, tag, owner, clock),
717     m_cassette(*this, "cassette")
717     m_cassette(*this, CASSETTE_TAG)
718718{
719719}
720720
src/mess/machine/electron.c
r11638r11639
1515
1616static device_t *cassette_device_image( running_machine &machine )
1717{
18   return machine.device("cassette");
18   return machine.device(CASSETTE_TAG);
1919}
2020
2121static void electron_tape_start( electron_state *state )
src/mess/machine/bk.c
r11638r11639
108108READ16_HANDLER (bk_key_press_r)
109109{
110110   bk_state *state = space->machine().driver_data<bk_state>();
111   double level = cassette_input(space->machine().device("cassette"));
111   double level = cassette_input(space->machine().device(CASSETTE_TAG));
112112   UINT16 cas;
113113   if (level < 0)
114114   {
src/mess/machine/microtan.c
r11638r11639
155155
156156static device_t *cassette_device_image(running_machine &machine)
157157{
158   return machine.device("cassette");
158   return machine.device(CASSETTE_TAG);
159159}
160160
161161/**************************************************************
src/mess/machine/amstrad.c
r11638r11639
27442744/* Set b7 with cassette tape input */
27452745   if(state->m_system_type != SYSTEM_GX4000)
27462746   {
2747      if (cassette_input(device->machine().device("cassette" )) > 0.03)
2747      if (cassette_input(device->machine().device(CASSETTE_TAG)) > 0.03)
27482748      {
27492749         data |= (1<<7);
27502750      }
r11638r11639
28162816   {
28172817      if ((changed_data & 0x20) != 0)
28182818      {
2819         cassette_output(device->machine().device("cassette" ),
2819         cassette_output(device->machine().device(CASSETTE_TAG),
28202820            ((data & 0x20) ? -1.0 : +1.0));
28212821      }
28222822   }
r11638r11639
28262826   {
28272827      if ((changed_data & 0x10) != 0)
28282828      {
2829         cassette_change_state(device->machine().device("cassette" ),
2829         cassette_change_state(device->machine().device(CASSETTE_TAG),
28302830            ((data & 0x10) ? CASSETTE_MOTOR_ENABLED : CASSETTE_MOTOR_DISABLED),
28312831            CASSETTE_MASK_MOTOR);
28322832      }
src/mess/machine/svi318.c
r11638r11639
146146{
147147   int data = 0x0f;
148148
149   if (cassette_input(device->machine().device("cassette")) > 0.0038)
149   if (cassette_input(device->machine().device(CASSETTE_TAG)) > 0.0038)
150150      data |= 0x80;
151151   if (!svi318_cassette_present(device->machine(), 0))
152152      data |= 0x40;
r11638r11639
211211   if (svi318_cassette_present(device->machine(), 0))
212212   {
213213      cassette_change_state(
214         device->machine().device("cassette"),
214         device->machine().device(CASSETTE_TAG),
215215         (data & 0x10) ? CASSETTE_MOTOR_DISABLED : CASSETTE_MOTOR_ENABLED,
216216         CASSETTE_MOTOR_DISABLED);
217217   }
218218
219219   /* cassette signal write */
220   cassette_output(device->machine().device("cassette"), (data & 0x20) ? -1.0 : +1.0);
220   cassette_output(device->machine().device(CASSETTE_TAG), (data & 0x20) ? -1.0 : +1.0);
221221
222222   state->m_svi.keyboard_row = data & 0x0F;
223223}
r11638r11639
808808
809809int svi318_cassette_present(running_machine &machine, int id)
810810{
811   device_image_interface *image = dynamic_cast<device_image_interface *>(machine.device("cassette"));
811   device_image_interface *image = dynamic_cast<device_image_interface *>(machine.device(CASSETTE_TAG));
812812
813813   if ( image == NULL )
814814      return FALSE;
src/mess/machine/msx.c
r11638r11639
522522
523523static device_t *cassette_device_image(running_machine &machine)
524524{
525   return machine.device("cassette");
525   return machine.device(CASSETTE_TAG);
526526}
527527
528528READ8_HANDLER ( msx_psg_port_a_r )
src/mess/machine/cgenie.c
r11638r11639
3535static TIMER_CALLBACK( handle_cassette_input )
3636{
3737   cgenie_state *state = machine.driver_data<cgenie_state>();
38   UINT8 new_level = ( cassette_input( machine.device("cassette") ) > 0.0 ) ? 1 : 0;
38   UINT8 new_level = ( cassette_input( machine.device(CASSETTE_TAG) ) > 0.0 ) ? 1 : 0;
3939
4040   if ( new_level != state->m_cass_level )
4141   {
r11638r11639
178178   cgenie_state *state = space->machine().driver_data<cgenie_state>();
179179   int port_ff_changed = state->m_port_ff ^ data;
180180
181   cassette_output ( space->machine().device("cassette"), data & 0x01 ? -1.0 : 1.0 );
181   cassette_output ( space->machine().device(CASSETTE_TAG), data & 0x01 ? -1.0 : 1.0 );
182182
183183   /* background bits changed ? */
184184   if( port_ff_changed & FF_BGD )
src/mess/machine/apple1.c
r11638r11639
493493
494494static device_t *cassette_device_image(running_machine &machine)
495495{
496   return machine.device("cassette");
496   return machine.device(CASSETTE_TAG);
497497}
498498
499499/* The cassette output signal for writing tapes is generated by a
src/mess/machine/hec2hrp.c
r11638r11639
307307
308308static device_t *cassette_device_image(running_machine &machine)
309309{
310   return machine.device("cassette");
310   return machine.device(CASSETTE_TAG);
311311}
312312
313313
src/mess/machine/apple2.c
r11638r11639
13621362
13631363static device_t *cassette_device_image(running_machine &machine)
13641364{
1365   return machine.device("cassette");
1365   return machine.device(CASSETTE_TAG);
13661366}
13671367
13681368READ8_HANDLER ( apple2_c06x_r )
src/mess/machine/kc.c
r11638r11639
393393   bit = 0;
394394
395395   /* get data from cassette */
396   if (cassette_input(machine.device("cassette")) > 0.0038)
396   if (cassette_input(machine.device(CASSETTE_TAG)) > 0.0038)
397397      bit = 1;
398398
399399   /* update astb with bit */
r11638r11639
413413   if (((state->m_cassette_motor_state^motor_state)&0x01)!=0)
414414   {
415415      /* set new motor state in cassette device */
416      cassette_change_state(machine.device("cassette"),
416      cassette_change_state(machine.device(CASSETTE_TAG),
417417         motor_state ? CASSETTE_MOTOR_ENABLED : CASSETTE_MOTOR_DISABLED,
418418         CASSETTE_MASK_MOTOR);
419419
src/mess/drivers/dai.c
r11638r11639
232232
233233   /* sound hardware */
234234   MCFG_SPEAKER_STANDARD_MONO("mono")
235   MCFG_SOUND_WAVE_ADD("wave", "cassette")
235   MCFG_SOUND_WAVE_ADD("wave", CASSETTE_TAG)
236236   MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.50)
237237   MCFG_SPEAKER_STANDARD_STEREO("lspeaker", "rspeaker")
238238   MCFG_SOUND_ADD("custom", DAI, 0)
r11638r11639
240240   MCFG_SOUND_ROUTE(1, "rspeaker", 0.50)
241241
242242   /* cassette */
243   MCFG_CASSETTE_ADD( "cassette", dai_cassette_config )
243   MCFG_CASSETTE_ADD( CASSETTE_TAG, dai_cassette_config )
244244
245245   /* tms5501 */
246246   MCFG_TMS5501_ADD( "tms5501", dai_tms5501_interface )
src/mess/drivers/kim1.c
r11638r11639
221221   if ( data & 0x20 )
222222   {
223223      /* cassette write/speaker update */
224      cassette_output( device->machine().device("cassette"), ( data & 0x80 ) ? -1.0 : 1.0 );
224      cassette_output( device->machine().device(CASSETTE_TAG), ( data & 0x80 ) ? -1.0 : 1.0 );
225225   }
226226
227227   /* Set IRQ when bit 7 is cleared */
r11638r11639
248248static TIMER_DEVICE_CALLBACK( kim1_cassette_input )
249249{
250250   kim1_state *state = timer.machine().driver_data<kim1_state>();
251   double tap_val = cassette_input( timer.machine().device("cassette") );
251   double tap_val = cassette_input( timer.machine().device(CASSETTE_TAG) );
252252
253253   if ( tap_val <= 0 )
254254   {
r11638r11639
333333   MCFG_SOUND_ADD("dac", DAC, 0)
334334   MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.00)
335335
336   MCFG_CASSETTE_ADD( "cassette", kim1_cassette_config )
336   MCFG_CASSETTE_ADD( CASSETTE_TAG, kim1_cassette_config )
337337
338338   /* video */
339339   MCFG_DEFAULT_LAYOUT( layout_kim1 )
src/mess/drivers/electron.c
r11638r11639
198198   MCFG_SOUND_ADD( "beep", BEEP, 0 )
199199   MCFG_SOUND_ROUTE( ALL_OUTPUTS, "mono", 1.00 )
200200
201   MCFG_CASSETTE_ADD( "cassette", electron_cassette_config )
201   MCFG_CASSETTE_ADD( CASSETTE_TAG, electron_cassette_config )
202202MACHINE_CONFIG_END
203203
204204
src/mess/drivers/bk.c
r11638r11639
193193   MCFG_VIDEO_START(bk0010)
194194
195195   MCFG_SPEAKER_STANDARD_MONO("mono")
196   MCFG_SOUND_WAVE_ADD("wave", "cassette")
196   MCFG_SOUND_WAVE_ADD("wave", CASSETTE_TAG)
197197   MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.00)
198198
199   MCFG_CASSETTE_ADD( "cassette", bk0010_cassette_config )
199   MCFG_CASSETTE_ADD( CASSETTE_TAG, bk0010_cassette_config )
200200MACHINE_CONFIG_END
201201
202202static MACHINE_CONFIG_START( bk0010fd, bk_state )
r11638r11639
223223   MCFG_VIDEO_START(bk0010)
224224
225225   MCFG_SPEAKER_STANDARD_MONO("mono")
226   MCFG_SOUND_WAVE_ADD("wave", "cassette")
226   MCFG_SOUND_WAVE_ADD("wave", CASSETTE_TAG)
227227   MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.00)
228228
229   MCFG_CASSETTE_ADD( "cassette", bk0010_cassette_config )
229   MCFG_CASSETTE_ADD( CASSETTE_TAG, bk0010_cassette_config )
230230MACHINE_CONFIG_END
231231
232232
src/mess/drivers/microtan.c
r11638r11639
242242   MCFG_SPEAKER_STANDARD_MONO("mono")
243243   MCFG_SOUND_ADD("dac", DAC, 0)
244244   MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.00)
245   MCFG_SOUND_WAVE_ADD("wave", "cassette")
245   MCFG_SOUND_WAVE_ADD("wave", CASSETTE_TAG)
246246   MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.25)
247247   MCFG_SOUND_ADD("ay8910.1", AY8910, 1000000)
248248   MCFG_SOUND_CONFIG(microtan_ay8910_interface)
r11638r11639
256256   MCFG_QUICKLOAD_ADD("quickload", microtan, "hex", 0.5)
257257
258258   /* cassette */
259   MCFG_CASSETTE_ADD( "cassette", default_cassette_config )
259   MCFG_CASSETTE_ADD( CASSETTE_TAG, default_cassette_config )
260260
261261   /* acia */
262262   MCFG_ACIA6551_ADD("acia")
src/mess/drivers/samcoupe.c
r11638r11639
212212
213213static READ8_HANDLER( samcoupe_keyboard_r )
214214{
215   device_t *cassette = space->machine().device("cassette");
215   device_t *cassette = space->machine().device(CASSETTE_TAG);
216216   UINT8 data = 0x1f;
217217
218218   /* bit 0-4, keyboard input */
r11638r11639
248248
249249static WRITE8_HANDLER( samcoupe_border_w )
250250{
251   device_t *cassette = space->machine().device("cassette");
251   device_t *cassette = space->machine().device(CASSETTE_TAG);
252252   device_t *speaker = space->machine().device("speaker");
253253   samcoupe_state *state = space->machine().driver_data<samcoupe_state>();
254254
r11638r11639
580580   MCFG_CENTRONICS_ADD("lpt2", standard_centronics)
581581   MCFG_MSM6242_ADD("sambus_clock")
582582   MCFG_WD1772_ADD("wd1772", samcoupe_wd17xx_intf)
583   MCFG_CASSETTE_ADD("cassette", samcoupe_cassette_config)
583   MCFG_CASSETTE_ADD(CASSETTE_TAG, samcoupe_cassette_config)
584584
585585   /* sound hardware */
586586   MCFG_SPEAKER_STANDARD_MONO("mono")
src/mess/drivers/interact.c
r11638r11639
158158   MCFG_VIDEO_START(hec2hrp)
159159      /* sound hardware */
160160   MCFG_SPEAKER_STANDARD_MONO("mono")
161   MCFG_SOUND_WAVE_ADD("wave", "cassette")
161   MCFG_SOUND_WAVE_ADD("wave", CASSETTE_TAG)
162162   MCFG_SOUND_ROUTE(0, "mono", 0.1)  /* Sound level for cassette, as it is in mono => output channel=0*/
163163
164164   MCFG_SOUND_ADD("sn76477", SN76477, 0)
r11638r11639
169169   MCFG_SOUND_CONFIG_DISCRETE( hec2hrp )
170170   MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.0)
171171
172   MCFG_CASSETTE_ADD( "cassette", interact_cassette_config )
172   MCFG_CASSETTE_ADD( CASSETTE_TAG, interact_cassette_config )
173173
174174   /* printer */
175175   MCFG_PRINTER_ADD("printer")
r11638r11639
200200   MCFG_VIDEO_START(hec2hrp)
201201      /* sound hardware */
202202   MCFG_SPEAKER_STANDARD_MONO("mono")
203   MCFG_SOUND_WAVE_ADD("wave", "cassette")
203   MCFG_SOUND_WAVE_ADD("wave", CASSETTE_TAG)
204204   MCFG_SOUND_ROUTE(0, "mono", 0.1)/* Sound level for cassette, as it is in mono => output channel=0*/
205205
206206   MCFG_SOUND_ADD("sn76477", SN76477, 0)
r11638r11639
211211   MCFG_SOUND_CONFIG_DISCRETE( hec2hrp )
212212   MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.0)
213213
214   MCFG_CASSETTE_ADD( "cassette", interact_cassette_config )
214   MCFG_CASSETTE_ADD( CASSETTE_TAG, interact_cassette_config )
215215
216216   /* printer */
217217   MCFG_PRINTER_ADD("printer")
src/mess/drivers/galaxy.c
r11638r11639
208208   MCFG_SNAPSHOT_ADD("snapshot", galaxy, "gal", 0)
209209
210210   MCFG_SPEAKER_STANDARD_MONO("mono")
211   MCFG_SOUND_WAVE_ADD("wave", "cassette")
211   MCFG_SOUND_WAVE_ADD("wave", CASSETTE_TAG)
212212   MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.0)
213213
214   MCFG_CASSETTE_ADD( "cassette", galaxy_cassette_config )
214   MCFG_CASSETTE_ADD( CASSETTE_TAG, galaxy_cassette_config )
215215
216216   /* internal ram */
217217   MCFG_RAM_ADD(RAM_TAG)
r11638r11639
248248   MCFG_SPEAKER_STANDARD_MONO("mono")
249249   MCFG_SOUND_ADD("ay8910", AY8910, XTAL/4)
250250   MCFG_SOUND_CONFIG(galaxy_ay_interface)
251   MCFG_SOUND_WAVE_ADD("wave", "cassette")
251   MCFG_SOUND_WAVE_ADD("wave", CASSETTE_TAG)
252252   MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.00)
253253
254   MCFG_CASSETTE_ADD( "cassette", galaxy_cassette_config )
254   MCFG_CASSETTE_ADD( CASSETTE_TAG, galaxy_cassette_config )
255255
256256   /* internal ram */
257257   MCFG_RAM_ADD(RAM_TAG)
src/mess/drivers/jr100.c
r11638r11639
246246
247247static WRITE_LINE_DEVICE_HANDLER(jr100_via_write_cb2)
248248{
249   cassette_output(device->machine().device("cassette"), state ? -1.0 : +1.0);
249   cassette_output(device->machine().device(CASSETTE_TAG), state ? -1.0 : +1.0);
250250}
251251static const via6522_interface jr100_via_intf =
252252{
r11638r11639
280280   state->m_speaker = 0;
281281
282282   via6522_device *via = timer.machine().device<via6522_device>("via");
283   double level = cassette_input(timer.machine().device("cassette"));
283   double level = cassette_input(timer.machine().device(CASSETTE_TAG));
284284   if (level > 0.0) {
285285      via->write_ca1(0);
286286      via->write_cb1(0);
r11638r11639
372372   MCFG_VIA6522_ADD("via", XTAL_14_31818MHz / 16, jr100_via_intf)
373373
374374   MCFG_SPEAKER_STANDARD_MONO("mono")
375   MCFG_SOUND_WAVE_ADD("wave", "cassette")
375   MCFG_SOUND_WAVE_ADD("wave", CASSETTE_TAG)
376376   MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.00)
377377   MCFG_SOUND_ADD("speaker", SPEAKER_SOUND, 0)
378378   MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.00)
r11638r11639
380380   MCFG_SOUND_ADD("beeper", BEEP, 0)
381381   MCFG_SOUND_ROUTE(ALL_OUTPUTS,"mono",0.50)
382382
383   MCFG_CASSETTE_ADD( "cassette", jr100_cassette_config )
383   MCFG_CASSETTE_ADD( CASSETTE_TAG, jr100_cassette_config )
384384
385385   MCFG_TIMER_ADD_PERIODIC("sound_tick", sound_tick, attotime::from_hz(XTAL_14_31818MHz / 16))
386386
src/mess/drivers/msx.c
r11638r11639
10691069   MCFG_SPEAKER_STANDARD_MONO("mono")
10701070   MCFG_SOUND_ADD("dac", DAC, 0)
10711071   MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.10)
1072   MCFG_SOUND_WAVE_ADD("wave", "cassette")
1072   MCFG_SOUND_WAVE_ADD("wave", CASSETTE_TAG)
10731073   MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.25)
10741074   MCFG_SOUND_ADD("ay8910", AY8910, 1789773)
10751075   MCFG_SOUND_CONFIG(msx_ay8910_interface)
r11638r11639
10821082   /* printer */
10831083   MCFG_CENTRONICS_ADD("centronics", standard_centronics)
10841084
1085   MCFG_CASSETTE_ADD( "cassette", msx_cassette_config )
1085   MCFG_CASSETTE_ADD( CASSETTE_TAG, msx_cassette_config )
10861086
10871087   MCFG_WD179X_ADD("wd179x", msx_wd17xx_interface )
10881088
r11638r11639
11411141   MCFG_SPEAKER_STANDARD_MONO("mono")
11421142   MCFG_SOUND_ADD("dac", DAC, 0)
11431143   MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.10)
1144   MCFG_SOUND_WAVE_ADD("wave", "cassette")
1144   MCFG_SOUND_WAVE_ADD("wave", CASSETTE_TAG)
11451145   MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.25)
11461146   MCFG_SOUND_ADD("ay8910", AY8910, 1789773)
11471147   MCFG_SOUND_CONFIG(msx_ay8910_interface)
r11638r11639
11551155   MCFG_CENTRONICS_ADD("centronics", standard_centronics)
11561156
11571157   /* cassette */
1158   MCFG_CASSETTE_ADD( "cassette", msx_cassette_config )
1158   MCFG_CASSETTE_ADD( CASSETTE_TAG, msx_cassette_config )
11591159
11601160   /* real time clock */
11611161   MCFG_RP5C01_ADD("rtc", XTAL_32_768kHz, rtc_intf)
src/mess/drivers/aquarius.c
r11638r11639
6161*/
6262static READ8_HANDLER( cassette_r )
6363{
64   device_t *cassette = space->machine().device("cassette");
64   device_t *cassette = space->machine().device(CASSETTE_TAG);
6565   return (cassette_input(cassette) < +0.0) ? 0 : 1;
6666}
6767
r11638r11639
7474static WRITE8_HANDLER( cassette_w )
7575{
7676   device_t *speaker = space->machine().device("speaker");
77   device_t *cassette = space->machine().device("cassette");
77   device_t *cassette = space->machine().device(CASSETTE_TAG);
7878
7979   speaker_level_w(speaker, BIT(data, 0));
8080   cassette_output(cassette, BIT(data, 0) ? +1.0 : -1.0);
r11638r11639
428428   MCFG_PRINTER_ADD("printer")
429429
430430   /* cassette */
431   MCFG_CASSETTE_ADD( "cassette", aquarius_cassette_config )
431   MCFG_CASSETTE_ADD( CASSETTE_TAG, aquarius_cassette_config )
432432
433433   /* cartridge */
434434   MCFG_CARTSLOT_ADD("cart")
src/mess/drivers/cgenie.c
r11638r11639
551551   MCFG_SOUND_CONFIG(cgenie_ay8910_interface)
552552   MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.75)
553553
554   MCFG_CASSETTE_ADD( "cassette", cgenie_cassette_config )
554   MCFG_CASSETTE_ADD( CASSETTE_TAG, cgenie_cassette_config )
555555
556556   MCFG_WD179X_ADD("wd179x", cgenie_wd17xx_interface )
557557
src/mess/drivers/mc10.c
r11638r11639
4444        m_ef9345(*this, "ef9345"),
4545        m_dac(*this, "dac"),
4646        m_ram(*this, RAM_TAG),
47        m_cassette(*this, "cassette"),
47        m_cassette(*this, CASSETTE_TAG),
4848        m_printer(*this, "printer")
4949      { }
5050
r11638r11639
525525   MCFG_SOUND_ADD("dac", DAC, 0)
526526   MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.00)
527527
528   MCFG_CASSETTE_ADD("cassette", mc10_cassette_config)
528   MCFG_CASSETTE_ADD(CASSETTE_TAG, mc10_cassette_config)
529529
530530   /* printer */
531531   MCFG_PRINTER_ADD("printer")
r11638r11639
564564   MCFG_SOUND_ADD("dac", DAC, 0)
565565   MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.00)
566566
567   MCFG_CASSETTE_ADD("cassette", alice32_cassette_config)
567   MCFG_CASSETTE_ADD(CASSETTE_TAG, alice32_cassette_config)
568568
569569   /* printer */
570570   MCFG_PRINTER_ADD("printer")
src/mess/drivers/apple1.c
r11638r11639
255255   /* snapshot */
256256   MCFG_SNAPSHOT_ADD("snapshot", apple1, "snp", 0)
257257
258   MCFG_CASSETTE_ADD( "cassette", apple1_cassette_config )
258   MCFG_CASSETTE_ADD( CASSETTE_TAG, apple1_cassette_config )
259259
260260   /* Note that because we always include 4K of RAM at $E000-$EFFF,
261261       the RAM amounts listed here will be 4K below the actual RAM
src/mess/drivers/ibmpc.c
r11638r11639
347347   /* keyboard */
348348   MCFG_KB_KEYTRONIC_ADD("keyboard", pc_keytronic_intf)
349349
350   //MCFG_CASSETTE_ADD( "cassette", ibm5150_cassette_config )
350   //MCFG_CASSETTE_ADD( CASSETTE_TAG, ibm5150_cassette_config )
351351
352352   /* internal ram */
353353   MCFG_RAM_ADD(RAM_TAG)
src/mess/drivers/hec2hrp.c
r11638r11639
387387
388388   /* sound hardware */
389389   MCFG_SPEAKER_STANDARD_MONO("mono")
390   MCFG_SOUND_WAVE_ADD("wave", "cassette")
390   MCFG_SOUND_WAVE_ADD("wave", CASSETTE_TAG)
391391   MCFG_SOUND_ROUTE(0, "mono", 0.1)
392392
393393   MCFG_SOUND_ADD("sn76477", SN76477, 0)
r11638r11639
399399   MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.0)
400400
401401   /* Gestion cassette*/
402   MCFG_CASSETTE_ADD( "cassette", hector_cassette_config )
402   MCFG_CASSETTE_ADD( CASSETTE_TAG, hector_cassette_config )
403403
404404   /* printer */
405405   MCFG_PRINTER_ADD("printer")
r11638r11639
431431
432432   /* sound hardware */
433433   MCFG_SPEAKER_STANDARD_MONO("mono")
434   MCFG_SOUND_WAVE_ADD("wave", "cassette")
434   MCFG_SOUND_WAVE_ADD("wave", CASSETTE_TAG)
435435   MCFG_SOUND_ROUTE(0, "mono", 0.1)// Sound level for cassette, as it is in mono => output channel=0
436436
437437   MCFG_SOUND_ADD("sn76477", SN76477, 0)
r11638r11639
443443   MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.0)
444444
445445   /* Gestion cassette*/
446   MCFG_CASSETTE_ADD( "cassette", hector_cassette_config )
446   MCFG_CASSETTE_ADD( CASSETTE_TAG, hector_cassette_config )
447447
448448   /* printer */
449449   MCFG_PRINTER_ADD("printer")
r11638r11639
482482
483483   /* sound hardware */
484484   MCFG_SPEAKER_STANDARD_MONO("mono")
485   MCFG_SOUND_WAVE_ADD("wave", "cassette")
485   MCFG_SOUND_WAVE_ADD("wave", CASSETTE_TAG)
486486   MCFG_SOUND_ROUTE(0, "mono", 0.1)// Sound level for cassette, as it is in mono => output channel=0
487487
488488   MCFG_SOUND_ADD("sn76477", SN76477, 0)
r11638r11639
494494   MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.0)
495495
496496   /* Gestion cassette*/
497   MCFG_CASSETTE_ADD( "cassette", hector_cassette_config )
497   MCFG_CASSETTE_ADD( CASSETTE_TAG, hector_cassette_config )
498498
499499   /* printer */
500500   MCFG_PRINTER_ADD("printer")
r11638r11639
533533
534534   /* sound hardware */
535535   MCFG_SPEAKER_STANDARD_MONO("mono")
536   MCFG_SOUND_WAVE_ADD("wave", "cassette")
536   MCFG_SOUND_WAVE_ADD("wave", CASSETTE_TAG)
537537   MCFG_SOUND_ROUTE(0, "mono", 0.1)// Sound level for cassette, as it is in mono => output channel=0
538538
539539   MCFG_SOUND_ADD("sn76477", SN76477, 0)
r11638r11639
545545   MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.0)
546546
547547   // Gestion cassette
548   MCFG_CASSETTE_ADD( "cassette", hector_cassette_config )
548   MCFG_CASSETTE_ADD( CASSETTE_TAG, hector_cassette_config )
549549
550550   /* printer */
551551   MCFG_PRINTER_ADD("printer")
r11638r11639
583583
584584   /* sound hardware */
585585   MCFG_SPEAKER_STANDARD_MONO("mono")
586   MCFG_SOUND_WAVE_ADD("wave", "cassette")
586   MCFG_SOUND_WAVE_ADD("wave", CASSETTE_TAG)
587587   MCFG_SOUND_ROUTE(0, "mono", 0.1)// Sound level for cassette, as it is in mono => output channel=0
588588
589589   MCFG_SOUND_ADD("sn76477", SN76477, 0)
r11638r11639
595595   MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.0)
596596
597597   /* Gestion cassette*/
598   MCFG_CASSETTE_ADD( "cassette", hector_cassette_config )
598   MCFG_CASSETTE_ADD( CASSETTE_TAG, hector_cassette_config )
599599
600600   /* printer */
601601   MCFG_PRINTER_ADD("printer")
src/mess/drivers/elwro800.c
r11638r11639
258258         }
259259
260260         /* cassette input from wav */
261         if (cassette_input(space->machine().device("cassette")) > 0.0038 )
261         if (cassette_input(space->machine().device(CASSETTE_TAG)) > 0.0038 )
262262         {
263263            data &= ~0x40;
264264         }
r11638r11639
604604
605605   /* sound hardware */
606606   MCFG_SPEAKER_STANDARD_MONO("mono")
607   MCFG_SOUND_WAVE_ADD("wave", "cassette")
607   MCFG_SOUND_WAVE_ADD("wave", CASSETTE_TAG)
608608   MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.25)
609609   MCFG_SOUND_ADD("speaker", SPEAKER_SOUND, 0)
610610   MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.50)
611611
612   MCFG_CASSETTE_ADD( "cassette", elwro800jr_cassette_config )
612   MCFG_CASSETTE_ADD( CASSETTE_TAG, elwro800jr_cassette_config )
613613
614614   MCFG_FLOPPY_2_DRIVES_ADD(elwro800jr_floppy_config)
615615
src/mess/drivers/apple2.c
r11638r11639
640640   /* At the moment the RAM bank $C000-$FFFF is available only if you choose   */
641641   /* default configuration: on real machine is present also in configurations */
642642   /* with less memory, provided that the language card is installed           */
643   MCFG_CASSETTE_ADD( "cassette", apple2_cassette_config )
643   MCFG_CASSETTE_ADD( CASSETTE_TAG, apple2_cassette_config )
644644MACHINE_CONFIG_END
645645
646646static MACHINE_CONFIG_DERIVED( apple2p, apple2_common )
r11638r11639
654654   /* At the moment the RAM bank $C000-$FFFF is available only if you choose   */
655655   /* default configuration: on real machine is present also in configurations */
656656   /* with less memory, provided that the language card is installed           */
657   MCFG_CASSETTE_ADD( "cassette", apple2_cassette_config )
657   MCFG_CASSETTE_ADD( CASSETTE_TAG, apple2_cassette_config )
658658MACHINE_CONFIG_END
659659
660660ROM_START(las3000)
r11638r11639
673673   MCFG_RAM_DEFAULT_SIZE("128K")
674674   MCFG_RAM_EXTRA_OPTIONS("64K")
675675   MCFG_RAM_DEFAULT_VALUE(0x00)
676   MCFG_CASSETTE_ADD( "cassette", apple2_cassette_config )
676   MCFG_CASSETTE_ADD( CASSETTE_TAG, apple2_cassette_config )
677677MACHINE_CONFIG_END
678678#if 0
679679MACHINE_CONFIG_DERIVED( apple2e_z80, apple2_common )
src/mess/drivers/pc.c
r11638r11639
16831683   MCFG_PC_LPT_ADD("lpt_2", pc_lpt_config)
16841684
16851685   /* cassette */
1686   MCFG_CASSETTE_ADD( "cassette", ibm5150_cassette_config )
1686   MCFG_CASSETTE_ADD( CASSETTE_TAG, ibm5150_cassette_config )
16871687
16881688   MCFG_UPD765A_ADD("upd765", pc_fdc_upd765_not_connected_interface)
16891689
src/mess/drivers/bmjr.c
r11638r11639
329329{
330330   bmjr_state *state = machine.driver_data<bmjr_state>();
331331   state->m_tape_switch = 0;
332   state->m_cassette = machine.device("cassette");
332   state->m_cassette = machine.device(CASSETTE_TAG);
333333   cassette_change_state(state->m_cassette,CASSETTE_MOTOR_DISABLED,CASSETTE_MASK_MOTOR);
334334}
335335
r11638r11639
358358
359359    MCFG_VIDEO_START(bmjr)
360360
361   MCFG_CASSETTE_ADD( "cassette", default_cassette_config )
361   MCFG_CASSETTE_ADD( CASSETTE_TAG, default_cassette_config )
362362
363363   MCFG_SPEAKER_STANDARD_MONO("mono")
364364
365365   MCFG_SOUND_ADD("beeper", BEEP, 0)
366366   MCFG_SOUND_ROUTE(ALL_OUTPUTS,"mono",0.50)
367367
368   MCFG_SOUND_WAVE_ADD("wave", "cassette")
368   MCFG_SOUND_WAVE_ADD("wave", CASSETTE_TAG)
369369   MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.20)
370370MACHINE_CONFIG_END
371371
src/mess/drivers/kc.c
r11638r11639
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.25)
414414   MCFG_SOUND_ADD("speaker", SPEAKER_SOUND, 0)
415415   MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.50)
r11638r11639
417417   /* devices */
418418   MCFG_QUICKLOAD_ADD("quickload", kc, "kcc", 0)
419419
420   MCFG_CASSETTE_ADD( "cassette", default_cassette_config )
420   MCFG_CASSETTE_ADD( CASSETTE_TAG, default_cassette_config )
421421
422422   /* internal ram */
423423   MCFG_RAM_ADD(RAM_TAG)

Previous 15994 Revisions Next


© 1998-2018 The MESS Team