Simplify `IDisassemblable.AvailableCpus` implementations
This commit is contained in:
parent
da06dae80c
commit
18bc51f5e7
|
@ -322,10 +322,7 @@ namespace BizHawk.Emulation.Cores.Components.FairchildF8
|
|||
|
||||
public string PCRegisterName => "PC";
|
||||
|
||||
public IEnumerable<string> AvailableCpus
|
||||
{
|
||||
get { yield return "F3850"; }
|
||||
}
|
||||
public IEnumerable<string> AvailableCpus { get; } = [ "F3850" ];
|
||||
|
||||
public string Disassemble(MemoryDomain m, uint addr, out int length)
|
||||
{
|
||||
|
|
|
@ -13,10 +13,7 @@ namespace BizHawk.Emulation.Cores.Components.H6280
|
|||
|
||||
public string PCRegisterName => "PC";
|
||||
|
||||
public IEnumerable<string> AvailableCpus
|
||||
{
|
||||
get { yield return "6280"; }
|
||||
}
|
||||
public IEnumerable<string> AvailableCpus { get; } = [ "6280" ];
|
||||
|
||||
public string Disassemble(MemoryDomain m, uint addr, out int length)
|
||||
{
|
||||
|
|
|
@ -20,10 +20,7 @@ namespace BizHawk.Emulation.Cores.Components.M6502
|
|||
|
||||
public string PCRegisterName => "PC";
|
||||
|
||||
public IEnumerable<string> AvailableCpus
|
||||
{
|
||||
get { yield return "6502"; }
|
||||
}
|
||||
public IEnumerable<string> AvailableCpus { get; } = [ "6502" ];
|
||||
|
||||
public string Disassemble(MemoryDomain m, uint addr, out int length)
|
||||
{
|
||||
|
|
|
@ -11,10 +11,7 @@ namespace BizHawk.Emulation.Cores.Components.W65816
|
|||
|
||||
private readonly W65816 disassemblerCpu = new W65816();
|
||||
|
||||
public IEnumerable<string> AvailableCpus
|
||||
{
|
||||
get { yield return "W65816"; }
|
||||
}
|
||||
public IEnumerable<string> AvailableCpus { get; } = [ "W65816" ];
|
||||
|
||||
public string PCRegisterName => "PC";
|
||||
|
||||
|
|
|
@ -439,10 +439,7 @@ namespace BizHawk.Emulation.Cores.Components.Z80A
|
|||
|
||||
public string PCRegisterName => "PC";
|
||||
|
||||
public IEnumerable<string> AvailableCpus
|
||||
{
|
||||
get { yield return "Z80"; }
|
||||
}
|
||||
public IEnumerable<string> AvailableCpus { get; } = [ "Z80" ];
|
||||
|
||||
public string Disassemble(MemoryDomain m, uint addr, out int length)
|
||||
{
|
||||
|
|
|
@ -17,10 +17,7 @@ namespace BizHawk.Emulation.Cores.Computers.AppleII
|
|||
|
||||
public string PCRegisterName => "PC";
|
||||
|
||||
public IEnumerable<string> AvailableCpus
|
||||
{
|
||||
get { yield return "6502"; }
|
||||
}
|
||||
public IEnumerable<string> AvailableCpus { get; } = [ "6502" ];
|
||||
|
||||
public string Disassemble(MemoryDomain m, uint addr, out int length)
|
||||
{
|
||||
|
|
|
@ -6,10 +6,7 @@ namespace BizHawk.Emulation.Cores.Computers.Commodore64.MOS
|
|||
{
|
||||
public sealed partial class Chip6510 : IDisassemblable
|
||||
{
|
||||
public IEnumerable<string> AvailableCpus
|
||||
{
|
||||
get { yield return "6510"; }
|
||||
}
|
||||
public IEnumerable<string> AvailableCpus { get; } = [ "6510" ];
|
||||
|
||||
public string Cpu
|
||||
{
|
||||
|
|
|
@ -5,10 +5,7 @@ namespace BizHawk.Emulation.Cores.Computers.Commodore64.Serial
|
|||
{
|
||||
public sealed partial class Drive1541 : IDisassemblable
|
||||
{
|
||||
IEnumerable<string> IDisassemblable.AvailableCpus
|
||||
{
|
||||
get { yield return "Disk Drive 6502"; }
|
||||
}
|
||||
public IEnumerable<string> AvailableCpus { get; } = [ "Disk Drive 6502" ];
|
||||
|
||||
string IDisassemblable.Cpu
|
||||
{
|
||||
|
|
|
@ -13,10 +13,7 @@ namespace BizHawk.Emulation.Cores.Intellivision
|
|||
|
||||
public string PCRegisterName => "PC";
|
||||
|
||||
public IEnumerable<string> AvailableCpus
|
||||
{
|
||||
get { yield return "CP1610"; }
|
||||
}
|
||||
public IEnumerable<string> AvailableCpus { get; } = [ "CP1610" ];
|
||||
|
||||
public string Disassemble(MemoryDomain m, uint addr, out int length)
|
||||
{
|
||||
|
|
|
@ -13,13 +13,7 @@ namespace BizHawk.Emulation.Cores.Nintendo.N64
|
|||
set { }
|
||||
}
|
||||
|
||||
public IEnumerable<string> AvailableCpus
|
||||
{
|
||||
get
|
||||
{
|
||||
yield return "R4300";
|
||||
}
|
||||
}
|
||||
public IEnumerable<string> AvailableCpus { get; } = [ "R4300" ];
|
||||
|
||||
public string PCRegisterName => "PC";
|
||||
|
||||
|
|
|
@ -16,10 +16,7 @@ namespace BizHawk.Emulation.Cores.Consoles.Nintendo.QuickNES
|
|||
|
||||
public string PCRegisterName => "PC";
|
||||
|
||||
public IEnumerable<string> AvailableCpus
|
||||
{
|
||||
get { yield return "6502"; }
|
||||
}
|
||||
public IEnumerable<string> AvailableCpus { get; } = [ "6502" ];
|
||||
|
||||
public string Disassemble(MemoryDomain m, uint addr, out int length)
|
||||
{
|
||||
|
|
|
@ -17,10 +17,7 @@ namespace BizHawk.Emulation.Cores.Consoles.Sega.gpgx
|
|||
|
||||
public string PCRegisterName => "M68K PC";
|
||||
|
||||
public IEnumerable<string> AvailableCpus
|
||||
{
|
||||
get { yield return "M68000"; }
|
||||
}
|
||||
public IEnumerable<string> AvailableCpus { get; } = [ "M68000" ];
|
||||
|
||||
public string Disassemble(MemoryDomain m, uint addr, out int length)
|
||||
{
|
||||
|
|
|
@ -12,13 +12,7 @@ namespace BizHawk.Emulation.Cores.Sony.PSX
|
|||
set { }
|
||||
}
|
||||
|
||||
public IEnumerable<string> AvailableCpus
|
||||
{
|
||||
get
|
||||
{
|
||||
yield return "R3000A";
|
||||
}
|
||||
}
|
||||
public IEnumerable<string> AvailableCpus { get; } = [ "R3000A" ];
|
||||
|
||||
public string PCRegisterName => "pc";
|
||||
|
||||
|
|
Loading…
Reference in New Issue