X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=cpu%2Fsh2mame%2Fsh2pico.c;h=e77329c76dc4a9b59c6c8d29968e8da9e95a6545;hb=3cf9570bacd8952713106a2a2e3176852d811d18;hp=c6f87eaa31ddf56123a46a0181b7099ba18417f6;hpb=266c6afa84bde8d77a54d61ced8f227480247e24;p=picodrive.git diff --git a/cpu/sh2mame/sh2pico.c b/cpu/sh2mame/sh2pico.c index c6f87ea..e77329c 100644 --- a/cpu/sh2mame/sh2pico.c +++ b/cpu/sh2mame/sh2pico.c @@ -69,7 +69,13 @@ int sh2_execute(SH2 *sh2_, int cycles) { UINT32 opcode; - opcode = RW(sh2->pc); + if (sh2->delay) + { + opcode = RW(sh2->delay); + sh2->pc -= 2; + } + else + opcode = RW(sh2->pc); sh2->delay = 0; sh2->pc += 2;