src/mess/drivers/super80.c
| r2345 | r2346 | |
| 372 | 372 | return image_from_devtype_and_index(IO_CASSETTE, 0); |
| 373 | 373 | } |
| 374 | 374 | |
| 375 | | static void cassette_motor( UINT8 data ) |
| 375 | static void cassette_motor( running_machine *machine, UINT8 data ) |
| 376 | 376 | { |
| 377 | 377 | if (data) |
| 378 | 378 | cassette_change_state(image_from_devtype_and_index(IO_CASSETTE, 0), CASSETTE_MOTOR_DISABLED, CASSETTE_MASK_MOTOR); |
| r2345 | r2346 | |
| 380 | 380 | cassette_change_state(image_from_devtype_and_index(IO_CASSETTE, 0), CASSETTE_MOTOR_ENABLED, CASSETTE_MASK_MOTOR); |
| 381 | 381 | |
| 382 | 382 | /* does user want to hear the sound? */ |
| 383 | | if (input_port_read(Machine, "CONFIG") & 8) |
| 383 | if (input_port_read(machine, "CONFIG") & 8) |
| 384 | 384 | cassette_change_state(image_from_devtype_and_index(IO_CASSETTE, 0), CASSETTE_SPEAKER_ENABLED, CASSETTE_MASK_SPEAKER); |
| 385 | 385 | else |
| 386 | 386 | cassette_change_state(image_from_devtype_and_index(IO_CASSETTE, 0), CASSETTE_SPEAKER_MUTED, CASSETTE_MASK_SPEAKER); |
| r2345 | r2346 | |
| 467 | 467 | if (bits & 0x20) set_led_status(2,(data & 32) ? 0 : 1); /* bit 5 - LED - scroll lock led is used */ |
| 468 | 468 | speaker_level_w(0, (data & 8) ? 0 : 1); /* bit 3 - speaker */ |
| 469 | 469 | 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 */ |
| 471 | 471 | if (bits & 0x01) cassette_output(cassette_device_image(), (data & 1) ? -1.0 : +1.0); /* bit 0 - cass out */ |
| 472 | 472 | |
| 473 | 473 | last_data = data; |
| r2345 | r2346 | |
| 481 | 481 | super80v_rom_pcg = data & 0x10; /* bit 4 - bankswitch gfx rom or pcg */ |
| 482 | 482 | speaker_level_w(0, (data & 8) ? 0 : 1); /* bit 3 - speaker */ |
| 483 | 483 | 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 */ |
| 485 | 485 | if (bits & 0x01) cassette_output(cassette_device_image(), (data & 1) ? -1.0 : +1.0); /* bit 0 - cass out */ |
| 486 | 486 | |
| 487 | 487 | last_data = data; |