From cd7435d11f2d0d74b905b5fcd0b4048792b8ff41 Mon Sep 17 00:00:00 2001 From: adelikat Date: Tue, 12 Nov 2013 16:11:29 +0000 Subject: [PATCH] Lua - event.onmemoryexec() - add support for the A2600 core --- BizHawk.Emulation/Consoles/Atari/2600/Atari2600.Core.cs | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/BizHawk.Emulation/Consoles/Atari/2600/Atari2600.Core.cs b/BizHawk.Emulation/Consoles/Atari/2600/Atari2600.Core.cs index 1640bf60a7..07fe043fcf 100644 --- a/BizHawk.Emulation/Consoles/Atari/2600/Atari2600.Core.cs +++ b/BizHawk.Emulation/Consoles/Atari/2600/Atari2600.Core.cs @@ -132,6 +132,11 @@ namespace BizHawk CoreComm.MemoryCallbackSystem.CallWrite((uint)addr); } + public void ExecFetch(ushort addr) + { + CoreComm.MemoryCallbackSystem.CallExecute(addr); + } + public void HardReset() { //regenerate mapper here to make sure its state is entirely clean @@ -174,7 +179,7 @@ namespace BizHawk cpu.WriteMemory = WriteMemory; cpu.PeekMemory = PeekMemory; cpu.DummyReadMemory = ReadMemory; - + cpu.OnExecFetch = ExecFetch; // Setup TIA //tia = new TIA(this, frameBuffer); tia = new TIA(this);