src/mess/machine/ti99_4x.c
| r8087 | r8088 | |
| 1262 | 1262 | if (! (offset & 1)) |
| 1263 | 1263 | { |
| 1264 | 1264 | cpu_adjust_icount(devtag_get_device(space->machine, "maincpu"),-16*4); /* this is just a minimum, it can be more */ |
| 1265 | | reply = tms5220_status_r(devtag_get_device(space->machine, "tmc0285"), 0); |
| 1265 | reply = tms5220_status_r(devtag_get_device(space->machine, "tms5220"), 0); |
| 1266 | 1266 | } |
| 1267 | 1267 | break; |
| 1268 | 1268 | |
| r8087 | r8088 | |
| 1428 | 1428 | there are 15 bytes in FIFO. It should be 16. Of course, if it were the |
| 1429 | 1429 | case, we would need to store the value on the bus, which would be more |
| 1430 | 1430 | complex. */ |
| 1431 | | if (! tms5220_readyq_r(devtag_get_device(space->machine, "tmc0285"))) |
| 1431 | if (! tms5220_readyq_r(devtag_get_device(space->machine, "tms5220"))) |
| 1432 | 1432 | { |
| 1433 | | attotime time_to_ready = double_to_attotime(tms5220_time_to_ready(devtag_get_device(space->machine, "tmc0285"))); |
| 1433 | attotime time_to_ready = double_to_attotime(tms5220_time_to_ready(devtag_get_device(space->machine, "tms5220"))); |
| 1434 | 1434 | double d = cputag_attotime_to_clocks(space->machine, "maincpu", time_to_ready); |
| 1435 | 1435 | int cycles_to_ready = ((int) (d + 3)) & ~3; |
| 1436 | 1436 | |
| r8087 | r8088 | |
| 1441 | 1441 | timer_set(space->machine, attotime_zero, NULL, 0, /*speech_kludge_callback*/NULL); |
| 1442 | 1442 | } |
| 1443 | 1443 | |
| 1444 | | tms5220_data_w(devtag_get_device(space->machine, "tmc0285"), offset, data); |
| 1444 | tms5220_data_w(devtag_get_device(space->machine, "tms5220"), offset, data); |
| 1445 | 1445 | } |
| 1446 | 1446 | break; |
| 1447 | 1447 | |