| Previous | 15994 Revisions | Next |
| r4051 Friday 2nd January, 2009 at 19:38:41 UTC by Nathan Woods |
|---|
| 1. Bug fix from MAME; fixed Parsec under TI/99 2. Removed extraneous ceil() call |
| [src/emu] | cpuexec.c |
| [src/mess/machine] | ti99_4x.c |
| r4050 | r4051 | |
|---|---|---|
| 872 | 872 | UINT64 cpu_attotime_to_clocks(const device_config *device, attotime duration) |
| 873 | 873 | { |
| 874 | 874 | cpu_class_data *classdata = get_class_data(device); |
| 875 | return mulu_32x32(duration.seconds, classdata->cycles_per_second) + (UINT64)duration.attoseconds | |
| 875 | return mulu_32x32(duration.seconds, classdata->cycles_per_second) + (UINT64)duration.attoseconds / (UINT64)classdata->attoseconds_per_cycle; | |
| 876 | 876 | } |
| 877 | 877 | |
| 878 | 878 |
| r4050 | r4051 | |
|---|---|---|
| 1179 | 1179 | if (! tms5220_ready_r()) |
| 1180 | 1180 | { |
| 1181 | 1181 | attotime time_to_ready = double_to_attotime(tms5220_time_to_ready()); |
| 1182 | int cycles_to_ready = c | |
| 1182 | int cycles_to_ready = c | |
| 1183 | 1183 | |
| 1184 | 1184 | logerror("time to ready: %f -> %d\n", attotime_to_double(time_to_ready), (int) cycles_to_ready); |
| 1185 | 1185 |
| Previous | 15994 Revisions | Next |