fix bug in ramwatch signed value printing, and probably unsigned 32bit value printing as well
This commit is contained in:
parent
a25699fb89
commit
dec7183e73
|
@ -267,10 +267,31 @@ namespace BizHawk.MultiClient
|
||||||
return String.Format("{0:X8}", value);
|
return String.Format("{0:X8}", value);
|
||||||
}
|
}
|
||||||
case asigned.SIGNED:
|
case asigned.SIGNED:
|
||||||
return ((sbyte)value).ToString();
|
switch (type)
|
||||||
|
{
|
||||||
|
default:
|
||||||
|
case atype.BYTE:
|
||||||
|
return ((sbyte)value).ToString();
|
||||||
|
case atype.WORD:
|
||||||
|
return ((short)value).ToString();
|
||||||
|
case atype.DWORD:
|
||||||
|
return ((int)value).ToString();
|
||||||
|
}
|
||||||
|
break;
|
||||||
|
|
||||||
default:
|
default:
|
||||||
case asigned.UNSIGNED:
|
case asigned.UNSIGNED:
|
||||||
return value.ToString();
|
switch (type)
|
||||||
|
{
|
||||||
|
default:
|
||||||
|
case atype.BYTE:
|
||||||
|
return ((byte)value).ToString();
|
||||||
|
case atype.WORD:
|
||||||
|
return ((ushort)value).ToString();
|
||||||
|
case atype.DWORD:
|
||||||
|
return ((uint)value).ToString();
|
||||||
|
}
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue