Previous 15994 Revisions Next

r2346 Wednesday 9th April, 2008 at 12:54:58 UTC by Robbbert
[SUPER80] Changed a Machine -> machine.
[src/mess/drivers]super80.c

src/mess/drivers/super80.c
r2345r2346
372372   return image_from_devtype_and_index(IO_CASSETTE, 0);
373373}
374374
375static void cassette_motor( UINT8 data )
375static void cassette_motor( running_machine *machine, UINT8 data )
376376{
377377   if (data)
378378      cassette_change_state(image_from_devtype_and_index(IO_CASSETTE, 0), CASSETTE_MOTOR_DISABLED, CASSETTE_MASK_MOTOR);
r2345r2346
380380      cassette_change_state(image_from_devtype_and_index(IO_CASSETTE, 0), CASSETTE_MOTOR_ENABLED, CASSETTE_MASK_MOTOR);
381381
382382   /* does user want to hear the sound? */
383   if (input_port_read(Machine, "CONFIG") & 8)
383   if (input_port_read(machine, "CONFIG") & 8)
384384      cassette_change_state(image_from_devtype_and_index(IO_CASSETTE, 0), CASSETTE_SPEAKER_ENABLED, CASSETTE_MASK_SPEAKER);
385385   else
386386      cassette_change_state(image_from_devtype_and_index(IO_CASSETTE, 0), CASSETTE_SPEAKER_MUTED, CASSETTE_MASK_SPEAKER);
r2345r2346
467467   if (bits & 0x20) set_led_status(2,(data & 32) ? 0 : 1);      /* bit 5 - LED - scroll lock led is used */
468468   speaker_level_w(0, (data & 8) ? 0 : 1);            /* bit 3 - speaker */
469469   super80_mhz = (data & 4) ? 1 : 2;            /* bit 2 - video on/off */
470   if (bits & 0x02) cassette_motor( data & 2 ? 1 : 0);      /* bit 1 - cassette motor */
470   if (bits & 0x02) cassette_motor( machine, data & 2 ? 1 : 0);      /* bit 1 - cassette motor */
471471   if (bits & 0x01) cassette_output(cassette_device_image(), (data & 1) ? -1.0 : +1.0);   /* bit 0 - cass out */
472472
473473   last_data = data;
r2345r2346
481481   super80v_rom_pcg = data & 0x10;               /* bit 4 - bankswitch gfx rom or pcg */
482482   speaker_level_w(0, (data & 8) ? 0 : 1);            /* bit 3 - speaker */
483483   super80v_vid_col = data & 4;               /* bit 2 - bankswitch video or colour ram */
484   if (bits & 0x02) cassette_motor( data & 2 ? 1 : 0);      /* bit 1 - cassette motor */
484   if (bits & 0x02) cassette_motor( machine, data & 2 ? 1 : 0);      /* bit 1 - cassette motor */
485485   if (bits & 0x01) cassette_output(cassette_device_image(), (data & 1) ? -1.0 : +1.0);   /* bit 0 - cass out */
486486
487487   last_data = data;

Previous 15994 Revisions Next


© 1998-2018 The MESS Team