# HG changeset patch # User Michael Pavone # Date 1489763155 25200 # Node ID 82838d4c84d94a15dae83712fa1adb7487657c47 # Parent 188a60def81f2230ce786d9a8b1f475e43906c5a Minor fix to timing of "early" overflow case in divs when the dividend is negative diff -r 188a60def81f -r 82838d4c84d9 m68k_core_x86.c --- a/m68k_core_x86.c Fri Mar 17 08:02:03 2017 -0700 +++ b/m68k_core_x86.c Fri Mar 17 08:05:55 2017 -0700 @@ -1736,8 +1736,8 @@ context->flags[FLAG_V] = 1; context->flags[FLAG_N] = 1; context->flags[FLAG_Z] = 0; - //TODO: FIXME - this cycle count probably changes based on whether the dividend is negative - context->current_cycle += 16 * context->options->gen.clock_divider; + cycles += 2; + context->current_cycle += cycles * context->options->gen.clock_divider; return orig_dividend; } uint16_t quotient = 0;