X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=cpu%2Fcz80%2Fcz80_op.c;h=f84f8e754f703408e0ba37cb0847a6d532177f25;hb=cd0ace2832b2088e5a973a50ebbab6e57c56b91f;hp=a4a5ef9b82055111ae7b9daf7ca7318cc0ce0921;hpb=170435846c8e2309dc4011f954287f9ea861a6b6;p=picodrive.git diff --git a/cpu/cz80/cz80_op.c b/cpu/cz80/cz80_op.c index a4a5ef9..f84f8e7 100644 --- a/cpu/cz80/cz80_op.c +++ b/cpu/cz80/cz80_op.c @@ -715,13 +715,9 @@ OP_EI: CPU->ExtraCycles += 1 - CPU->ICount; CPU->ICount = 1; } - else if (CPU->ICount <= 0) - { - CPU->ICount = 1; - } } else zIFF2 = (1 << 2); - goto Cz80_Exec; + goto Cz80_Exec_nocheck; /*----------------------------------------- INC r16 @@ -921,7 +917,7 @@ OP_DJNZ: OP(0x18): // JR n OP_JR: adr = (INT8)READ_ARG(); - PC += adr; + PC += (INT8)adr; RET(12) OP(0x20): // JR NZ,n