From f8b0262742594ea206e2838bac36a9cf5c943009 Mon Sep 17 00:00:00 2001 From: zeromus Date: Thu, 18 Dec 2014 08:21:48 +0000 Subject: [PATCH] psx - add some forgotten registers --- .../Consoles/Sony/PSX/Octoshock.cs | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/BizHawk.Emulation.Cores/Consoles/Sony/PSX/Octoshock.cs b/BizHawk.Emulation.Cores/Consoles/Sony/PSX/Octoshock.cs index cb86eb7dd3..61215be2e2 100644 --- a/BizHawk.Emulation.Cores/Consoles/Sony/PSX/Octoshock.cs +++ b/BizHawk.Emulation.Cores/Consoles/Sony/PSX/Octoshock.cs @@ -892,6 +892,13 @@ namespace BizHawk.Emulation.Cores.Sony.PSX ret["fp"] = (int)regs.GPR[30]; ret["ra"] = (int)regs.GPR[31]; + ret["pc"] = (int)regs.PC; + ret["lo"] = (int)regs.LO; + ret["hi"] = (int)regs.HI; + ret["sr"] = (int)regs.HI; + ret["cause"] = (int)regs.HI; + ret["epc"] = (int)regs.HI; + return ret; } @@ -908,7 +915,15 @@ namespace BizHawk.Emulation.Cores.Sony.PSX {"s4",20},{"s5",21},{"s6",22},{"s7",23}, {"t8",24},{"t9",25}, {"k0",26},{"k1",27}, - {"gp",28},{"sp",29},{"fp",30},{"ra",31} + {"gp",28},{"sp",29},{"fp",30},{"ra",31}, + {"pc",32}, + //33 - PC_NEXT + //34 - IN_BD_SLOT + {"lo",35}, + {"hi",36}, + {"sr",37}, + {"cause",38}, + {"epc",39}, }; public void SetCpuRegister(string register, int value)