X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=cpu%2Fsh2mame%2Fsh2pico.c;h=463261ec5940dcfa9aa4075fd457162cd4d773b5;hb=be20816c4c487c4b114aa444b1a5819d5785b118;hp=414985c48da6fcca941657973d4325ca6553ea16;hpb=b78efee2b2213cf62a1b8a3b7a5adf05e39b4e4e;p=picodrive.git diff --git a/cpu/sh2mame/sh2pico.c b/cpu/sh2mame/sh2pico.c index 414985c..463261e 100644 --- a/cpu/sh2mame/sh2pico.c +++ b/cpu/sh2mame/sh2pico.c @@ -71,15 +71,18 @@ int sh2_execute(SH2 *sh2_, int cycles) if (sh2->delay) { + sh2->ppc = sh2->delay; opcode = RW(sh2->delay); sh2->pc -= 2; } else + { + sh2->ppc = sh2->pc; opcode = RW(sh2->pc); + } sh2->delay = 0; sh2->pc += 2; - sh2->ppc = sh2->pc; switch (opcode & ( 15 << 12)) {