X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?p=mupen64plus-pandora.git;a=blobdiff_plain;f=source%2Fmupen64plus-core%2Fsrc%2Fr4300%2Fr4300.c;h=5b57ce694d17aaabe18e864eef379f2e024c396d;hp=7f58def5fd15993665077a0e04e63f59b71b1200;hb=2d26287291331f2b1793a8e76ede08c75654fb7c;hpb=587ca588c980303151df54eb8ae9a317996a7914 diff --git a/source/mupen64plus-core/src/r4300/r4300.c b/source/mupen64plus-core/src/r4300/r4300.c index 7f58def..5b57ce6 100755 --- a/source/mupen64plus-core/src/r4300/r4300.c +++ b/source/mupen64plus-core/src/r4300/r4300.c @@ -45,6 +45,7 @@ unsigned int r4300emu = 0; int no_compiled_jump = 0; +unsigned int count_per_op = 2; int llbit, rompause; #if NEW_DYNAREC != NEW_DYNAREC_ARM int stop; @@ -704,7 +705,7 @@ void update_count(void) if (r4300emu != CORE_DYNAREC) { #endif - Count = Count + (PC->addr - last_addr)/2; + Count += ((PC->addr - last_addr) >> 2) * count_per_op; last_addr = PC->addr; #ifdef NEW_DYNAREC }