summaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
author smf- <smf-@users.noreply.github.com>2009-03-08 09:19:49 +0000
committer smf- <smf-@users.noreply.github.com>2009-03-08 09:19:49 +0000
commit8e2173e06ebe7df3a1fda81b695500fe55ed4b48 (patch)
treeb9c97fa4bad55440087f4a01c31f1e9335b6b693
parenta0197dfa4ff7dbfdf840faf40d5e705cc22c428a (diff)
fixed disassembly of -$8000, it was showing up as -$0
-rw-r--r--src/emu/cpu/mips/psxdasm.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/emu/cpu/mips/psxdasm.c b/src/emu/cpu/mips/psxdasm.c
index 6026a69e047..4c2ffe872bf 100644
--- a/src/emu/cpu/mips/psxdasm.c
+++ b/src/emu/cpu/mips/psxdasm.c
@@ -10,15 +10,15 @@ static char *make_signed_hex_str_16( UINT32 value )
{
static char s_hex[ 20 ];
- value &= 0xffff;
if( value & 0x8000 )
{
- sprintf( s_hex, "-$%x", ( 0 - value ) & 0x7fff );
+ sprintf( s_hex, "-$%x", -value & 0xffff );
}
else
{
- sprintf( s_hex, "$%x", value & 0x7fff );
+ sprintf( s_hex, "$%x", value & 0xffff );
}
+
return s_hex;
}