fixed disassembly of -$8000, it was showing up as -$0

This commit is contained in:
smf- 2009-03-08 09:19:49 +00:00
parent a0197dfa4f
commit 8e2173e06e

View File

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