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

src/emu/machine/z80ctc.c
r7412r7413
302302      VPRINTF(("CTC clock %f\n",ATTOSECONDS_TO_HZ(period.attoseconds)));
303303
304304      if (channel->timer != NULL)
305         return ((int)(attotime_to_double(timer_timeleft(channel->timer)) * attotime_to_double(period)) + 1) & 0xff;
305         return ((int)(attotime_to_double(timer_timeleft(channel->timer)) / attotime_to_double(period)) + 1) & 0xff;
306306      else
307307         return 0;
308308   }

Previous 15994 Revisions Next


© 1998-2018 The MESS Team