From: notaz Date: Tue, 5 Sep 2023 19:03:32 +0000 (+0300) Subject: psxbios: don't overwrite ra X-Git-Tag: r24~163 X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=825757532f4b9a30f25c491267d544e02730e2e8;p=pcsx_rearmed.git psxbios: don't overwrite ra --- diff --git a/libpcsxcore/psxbios.c b/libpcsxcore/psxbios.c index 19e0fe41..00b5d76b 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]);