From c80ce699417ccf2d4db742ad12f7c0d880fb7412 Mon Sep 17 00:00:00 2001 From: unknown Date: Sat, 12 Sep 2015 18:18:59 -0400 Subject: [PATCH] [RSP] Scalar memory load/stores show signed hex offset. --- Source/RSP/RSP Command.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Source/RSP/RSP Command.c b/Source/RSP/RSP Command.c index e83178bfa..7297dc795 100644 --- a/Source/RSP/RSP Command.c +++ b/Source/RSP/RSP Command.c @@ -1228,10 +1228,11 @@ char * RSPOpcodeName ( DWORD OpCode, DWORD PC ) case RSP_SB: case RSP_SH: case RSP_SW: - sprintf(CommandName, "%s\t%s, 0x%04X(%s)", + sprintf(CommandName, "%s\t%s, %c0x%04X(%s)", mnemonics_primary[command.op], GPR_Name(command.rt), - command.offset, + ((int16_t)command.offset < 0) ? '-' : '+', + abs((int16_t)command.offset), GPR_Name(command.base) ); break;