X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=cpu%2Fmusashi%2Fm68kcpu.c;fp=cpu%2Fmusashi%2Fm68kcpu.c;h=14a6cad48b92dbcf7af2b90301265ee8ff654c21;hb=d9153729685381acb0559d8a4fdca47cb839427a;hp=e4212a8a8e3ba3ec8404ccba789bcdade6e5faa0;hpb=2433f409129279095926eb00cf8ab429738f80dd;p=picodrive.git diff --git a/cpu/musashi/m68kcpu.c b/cpu/musashi/m68kcpu.c index e4212a8..14a6cad 100644 --- a/cpu/musashi/m68kcpu.c +++ b/cpu/musashi/m68kcpu.c @@ -788,7 +788,7 @@ int m68k_execute(int num_cycles) m68ki_set_address_error_trap(); /* auto-disable (see m68kcpu.h) */ /* Main loop. Keep going until we run out of clock cycles */ - while(GET_CYCLES() > 0) + while(GET_CYCLES() >= 0) { /* Set tracing accodring to T1. (T0 is done inside instruction) */ m68ki_trace_t1(); /* auto-disable (see m68kcpu.h) */