From: notaz Date: Tue, 5 Sep 2023 19:03:32 +0000 (+0300) Subject: psxbios: don't overwrite ra X-Git-Tag: r24l~195 X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0066437b12bb870cab4f7965bba3f4b2159d0fce;p=pcsx_rearmed.git psxbios: don't overwrite ra --- diff --git a/libpcsxcore/psxbios.c b/libpcsxcore/psxbios.c index c899ed80..5214d9a8 100644 --- a/libpcsxcore/psxbios.c +++ b/libpcsxcore/psxbios.c @@ -3964,8 +3964,8 @@ void psxBiosException() { int i; // save the regs - // $at, $v0, $v1 already saved by the mips code at A_EXCEPTION - for (i = 4; i < 32; i++) { + // $at, $v0, $v1, $ra already saved by the mips code at A_EXCEPTION + for (i = 4; i < 31; i++) { if (i == 26) // $k0 continue; tcb->reg[i] = SWAP32(psxRegs.GPR.r[i]);