This commit is contained in:
beirich 2012-11-23 00:38:24 +00:00
parent 84a4a8544b
commit 5bd29d5d80
1 changed files with 5 additions and 3 deletions

View File

@ -47,10 +47,12 @@ namespace BizHawk.Emulation.CPUs.Z80
public Func<ushort, byte> ReadMemory; public Func<ushort, byte> ReadMemory;
public Action<ushort, byte> WriteMemory; public Action<ushort, byte> WriteMemory;
public void UnregisterMemoryMapper() // Utility function, not used by core
public ushort ReadWord(ushort addr)
{ {
ReadMemory = null; ushort value = ReadMemory(addr++);
WriteMemory = null; value |= (ushort) (ReadMemory(addr) << 8);
return value;
} }
// Hardware I/O Port Access // Hardware I/O Port Access