Colecovision - implement the disassembler and memory read/write/execute callbacks
This commit is contained in:
parent
8c12c5cbff
commit
c9cbac7021
|
@ -121,11 +121,7 @@ namespace BizHawk.Emulation.Cores.ColecoVision
|
|||
}
|
||||
}
|
||||
|
||||
public IMemoryCallbackSystem MemoryCallbacks
|
||||
{
|
||||
[FeatureNotImplemented]
|
||||
get { throw new NotImplementedException(); }
|
||||
}
|
||||
public IMemoryCallbackSystem MemoryCallbacks { get; private set; }
|
||||
|
||||
public bool CanStep(StepType type) { return false; }
|
||||
|
||||
|
|
|
@ -36,6 +36,7 @@ namespace BizHawk.Emulation.Cores.ColecoVision
|
|||
public ColecoVision(CoreComm comm, GameInfo game, byte[] rom, object SyncSettings)
|
||||
{
|
||||
ServiceProvider = new BasicServiceProvider(this);
|
||||
MemoryCallbacks = new MemoryCallbackSystem();
|
||||
CoreComm = comm;
|
||||
_syncSettings = (ColecoSyncSettings)SyncSettings ?? new ColecoSyncSettings();
|
||||
bool skipbios = this._syncSettings.SkipBiosIntro;
|
||||
|
@ -45,6 +46,7 @@ namespace BizHawk.Emulation.Cores.ColecoVision
|
|||
Cpu.WriteMemory = WriteMemory;
|
||||
Cpu.ReadHardware = ReadPort;
|
||||
Cpu.WriteHardware = WritePort;
|
||||
Cpu.MemoryCallbacks = MemoryCallbacks;
|
||||
|
||||
VDP = new TMS9918A(Cpu);
|
||||
(ServiceProvider as BasicServiceProvider).Register<IVideoProvider>(VDP);
|
||||
|
@ -60,6 +62,7 @@ namespace BizHawk.Emulation.Cores.ColecoVision
|
|||
LoadRom(rom, skipbios);
|
||||
this.game = game;
|
||||
SetupMemoryDomains();
|
||||
(ServiceProvider as BasicServiceProvider).Register<IDisassemblable>(new Disassembler());
|
||||
}
|
||||
|
||||
public IEmulatorServiceProvider ServiceProvider { get; private set; }
|
||||
|
|
Loading…
Reference in New Issue