From 74cf700210cd1b38f6dea32a8629645529b9ed1d Mon Sep 17 00:00:00 2001 From: "SND\\weimingzhi_cp" Date: Fri, 9 Oct 2009 14:01:57 +0000 Subject: git-svn-id: https://pcsxr.svn.codeplex.com/svn/pcsxr@31480 e17a0e51-4ae3-4d35-97c3-1a29b211df97 --- libpcsxcore/debug.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'libpcsxcore/debug.c') diff --git a/libpcsxcore/debug.c b/libpcsxcore/debug.c index 61bc5d85..307a0020 100644 --- a/libpcsxcore/debug.c +++ b/libpcsxcore/debug.c @@ -437,7 +437,7 @@ static void ProcessCommands() { if (*arguments == '\0') arguments = NULL; - dumping = NULL; + dumping = 0; save = NULL; switch (code) { @@ -477,7 +477,7 @@ static void ProcessCommands() { } break; case 0x112: - sprintf(reply, "212 LO=%08X HI=%08X\r\n", psxRegs.GPR.r[33], psxRegs.GPR.r[34]); + sprintf(reply, "212 LO=%08X HI=%08X\r\n", psxRegs.GPR.n.lo, psxRegs.GPR.n.hi); break; case 0x113: if (arguments) { @@ -566,9 +566,9 @@ static void ProcessCommands() { break; case 0x122: if (!arguments || strncmp(arguments, "HI=", 3) == 0) { - reg = 34; - } else if (arguments && strncmp(arguments, "LO=", 3) == 0) { reg = 33; + } else if (arguments && strncmp(arguments, "LO=", 3) == 0) { + reg = 32; } else { arguments[2] = 0; sprintf(reply, "512 Invalid LO/HI register: '%s'\r\n", arguments); @@ -579,7 +579,7 @@ static void ProcessCommands() { sprintf(reply, "500 Malformed 122 command '%s'\r\n", arguments); } else { psxRegs.GPR.r[reg] = value; - sprintf(reply, "222 LO=%08X HI=%08X\r\n", psxRegs.GPR.r[33], psxRegs.GPR.r[34]); + sprintf(reply, "222 LO=%08X HI=%08X\r\n", psxRegs.GPR.n.lo, psxRegs.GPR.n.hi); } break; case 0x123: -- cgit v1.2.3