Merge pull request #596 from cxd4/moar_signed_offsets

[RSP] Scalar memory load/stores show signed hex offset.
This commit is contained in:
zilmar 2015-09-14 10:43:03 +10:00
commit 2bf1ccf637
1 changed files with 3 additions and 2 deletions

View File

@ -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;