src/mess/machine/ti99_4x.c
| r3279 | r3280 | |
| 2314 | 2314 | } |
| 2315 | 2315 | |
| 2316 | 2316 | /* we don't take CS2 into account, as CS2 is a write-only unit */ |
| 2317 | | /*if (cassette_input(device_list_find_by_tag( machine->config->devicelist, CASSETTE, "cassette" )) > 0) |
| 2317 | /*if (cassette_input(device_list_find_by_tag( machine->config->devicelist, CASSETTE, "cassette1" )) > 0) |
| 2318 | 2318 | answer |= 8;*/ |
| 2319 | 2319 | |
| 2320 | 2320 | return answer; |
| r3279 | r3280 | |
| 2347 | 2347 | answer = 4; /* on systems without handset, the pin is pulled up to avoid spurious interrupts */ |
| 2348 | 2348 | |
| 2349 | 2349 | /* we don't take CS2 into account, as CS2 is a write-only unit */ |
| 2350 | | if (cassette_input(device_list_find_by_tag( machine->config->devicelist, CASSETTE, "cassette" )) > 0) |
| 2351 | | answer |= 8; |
| 2350 | if ( ti99_model != model_99_8 ) |
| 2351 | { |
| 2352 | if (cassette_input(device_list_find_by_tag( machine->config->devicelist, CASSETTE, "cassette1" )) > 0) |
| 2353 | answer |= 8; |
| 2354 | } |
| 2355 | else |
| 2356 | { |
| 2357 | if (cassette_input(device_list_find_by_tag( machine->config->devicelist, CASSETTE, "cassette" )) > 0) |
| 2358 | answer |= 8; |
| 2359 | } |
| 2352 | 2360 | |
| 2353 | 2361 | return answer; |
| 2354 | 2362 | } |
| r3279 | r3280 | |
| 2481 | 2489 | static void ti99_CS_motor(int offset, int data) |
| 2482 | 2490 | { |
| 2483 | 2491 | running_machine *machine = Machine; |
| 2492 | const device_config *img; |
| 2484 | 2493 | |
| 2485 | | const device_config *img = device_list_find_by_tag( machine->config->devicelist, CASSETTE, ( offset-6 ) ? "cassette2" : "cassette1" ); |
| 2494 | if ( ti99_model != model_99_8 ) |
| 2495 | { |
| 2496 | img = device_list_find_by_tag( machine->config->devicelist, CASSETTE, ( offset-6 ) ? "cassette2" : "cassette1" ); |
| 2497 | } |
| 2498 | else |
| 2499 | { |
| 2500 | img = device_list_find_by_tag( machine->config->devicelist, CASSETTE, "cassette" ); |
| 2501 | } |
| 2486 | 2502 | cassette_change_state(img, data ? CASSETTE_MOTOR_ENABLED : CASSETTE_MOTOR_DISABLED, CASSETTE_MASK_MOTOR); |
| 2487 | 2503 | } |
| 2488 | 2504 | |