X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?p=pcsx_rearmed.git;a=blobdiff_plain;f=libpcsxcore%2Fr3000a.c;h=cccfa602994a9829d08f4979fce286db9d337885;hp=1e8d0b0e4eb6aea81dd698fbce212d75d4008fbd;hb=62656449abd4cc364e2a87608efb12a97ce26a3d;hpb=eaa11918b84c8486618b597489537043eeaccbe0 diff --git a/libpcsxcore/r3000a.c b/libpcsxcore/r3000a.c index 1e8d0b0e..cccfa602 100644 --- a/libpcsxcore/r3000a.c +++ b/libpcsxcore/r3000a.c @@ -79,13 +79,13 @@ void psxShutdown() { } void psxException(u32 code, u32 bd) { - if (!Config.HLE && (((PSXMu32(psxRegs.pc) >> 24) & 0xfe) == 0x4a)) { + if (!Config.HLE && ((((psxRegs.code = PSXMu32(psxRegs.pc)) >> 24) & 0xfe) == 0x4a)) { // "hokuto no ken" / "Crash Bandicot 2" ... // BIOS does not allow to return to GTE instructions // (just skips it, supposedly because it's scheduled already) - // so we step over it with the interpreter - extern void execI(); - execI(); + // so we execute it here + extern void (*psxCP2[64])(void *cp2regs); + psxCP2[psxRegs.code & 0x3f](&psxRegs.CP2D); } // Set the Cause