From 0066437b12bb870cab4f7965bba3f4b2159d0fce Mon Sep 17 00:00:00 2001 From: notaz Date: Tue, 5 Sep 2023 22:03:32 +0300 Subject: [PATCH] psxbios: don't overwrite ra --- libpcsxcore/psxbios.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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]); -- 2.39.5