From 825757532f4b9a30f25c491267d544e02730e2e8 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 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]); -- 2.39.2