| Previous | 15994 Revisions | Next |
| r7413 Thursday 18th February, 2010 at 08:43:17 UTC by Fabio Priuli |
|---|
| Imported from MAME: Fixed Z80CTC read handler [Tim Schuerewegen] This should fix SordM5 cassettes |
| [src/emu/machine] | z80ctc.c |
| r7412 | r7413 | |
|---|---|---|
| 302 | 302 | VPRINTF(("CTC clock %f\n",ATTOSECONDS_TO_HZ(period.attoseconds))); |
| 303 | 303 | |
| 304 | 304 | if (channel->timer != NULL) |
| 305 | return ((int)(attotime_to_double(timer_timeleft(channel->timer)) | |
| 305 | return ((int)(attotime_to_double(timer_timeleft(channel->timer)) / attotime_to_double(period)) + 1) & 0xff; | |
| 306 | 306 | else |
| 307 | 307 | return 0; |
| 308 | 308 | } |
| Previous | 15994 Revisions | Next |