From d831d1c2183d41d8679ad81f9a503aab5433215a Mon Sep 17 00:00:00 2001 From: adelikat Date: Sat, 24 Jan 2015 15:16:53 +0000 Subject: [PATCH] PCE - add memory read/write callbacks --- BizHawk.Emulation.Cores/CPUs/HuC6280/HuC6280.cs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/BizHawk.Emulation.Cores/CPUs/HuC6280/HuC6280.cs b/BizHawk.Emulation.Cores/CPUs/HuC6280/HuC6280.cs index a94e56130b..5f99ee53ef 100644 --- a/BizHawk.Emulation.Cores/CPUs/HuC6280/HuC6280.cs +++ b/BizHawk.Emulation.Cores/CPUs/HuC6280/HuC6280.cs @@ -229,13 +229,16 @@ namespace BizHawk.Emulation.Cores.Components.H6280 public byte ReadMemory(ushort address) { byte page = MPR[address >> 13]; - return ReadMemory21((page << 13) | (address & 0x1FFF)); + var result = ReadMemory21((page << 13) | (address & 0x1FFF)); + MemoryCallbacks.CallReads(address); + return result; } public void WriteMemory(ushort address, byte value) { byte page = MPR[address >> 13]; WriteMemory21((page << 13) | (address & 0x1FFF), value); + MemoryCallbacks.CallWrites(address); } private ushort ReadWord(ushort address)