Use ToHexString extension
This commit is contained in:
parent
a2a5ec7566
commit
a6c1e69630
|
@ -5,6 +5,8 @@ using System.Linq;
|
|||
using System.Text;
|
||||
using System.Windows.Forms;
|
||||
|
||||
using BizHawk.Common.NumberExtensions;
|
||||
|
||||
namespace BizHawk.Client.EmuHawk
|
||||
{
|
||||
public partial class GenericDebugger
|
||||
|
@ -75,7 +77,7 @@ namespace BizHawk.Client.EmuHawk
|
|||
{
|
||||
if (column == 0)
|
||||
{
|
||||
text = string.Format($"{{0:X{_pcRegisterSize}}}", _disassemblyLines[index].Address);
|
||||
text = _disassemblyLines[index].Address.ToHexString(_pcRegisterSize);
|
||||
}
|
||||
else if (column == 1)
|
||||
{
|
||||
|
@ -235,7 +237,7 @@ namespace BizHawk.Client.EmuHawk
|
|||
blob.AppendLine();
|
||||
}
|
||||
|
||||
blob.Append(string.Format($"{{0:X{_pcRegisterSize}}}", _disassemblyLines[index].Address))
|
||||
blob.Append(_disassemblyLines[index].Address.ToHexString(_pcRegisterSize))
|
||||
.Append(" ")
|
||||
.Append(_disassemblyLines[index].Mnemonic);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue