Convert `GenericDebugger.DisasmOp` to a struct
This commit is contained in:
parent
70bd081a93
commit
9cbd238997
|
@ -15,8 +15,14 @@ namespace BizHawk.Client.EmuHawk
|
||||||
private int _pcRegisterSize = 4;
|
private int _pcRegisterSize = 4;
|
||||||
private uint _currentDisassemblerAddress;
|
private uint _currentDisassemblerAddress;
|
||||||
|
|
||||||
private class DisasmOp
|
private readonly struct DisasmOp
|
||||||
{
|
{
|
||||||
|
public readonly uint Address;
|
||||||
|
|
||||||
|
public readonly string Mnemonic;
|
||||||
|
|
||||||
|
public readonly int Size;
|
||||||
|
|
||||||
public DisasmOp(uint address, int size, string mnemonic)
|
public DisasmOp(uint address, int size, string mnemonic)
|
||||||
{
|
{
|
||||||
Address = address;
|
Address = address;
|
||||||
|
@ -24,9 +30,8 @@ namespace BizHawk.Client.EmuHawk
|
||||||
Mnemonic = mnemonic;
|
Mnemonic = mnemonic;
|
||||||
}
|
}
|
||||||
|
|
||||||
public uint Address { get; }
|
public override string ToString()
|
||||||
public int Size { get; }
|
=> Mnemonic;
|
||||||
public string Mnemonic { get; }
|
|
||||||
}
|
}
|
||||||
|
|
||||||
private long BusMaxValue => MemoryDomains.SystemBus.Size;
|
private long BusMaxValue => MemoryDomains.SystemBus.Size;
|
||||||
|
|
Loading…
Reference in New Issue