PCEngine - check if MemoryExecute callbacks exist before calling them, provides a noticeable speedup, also update the cpu generator code
This commit is contained in:
parent
28cc91a0c4
commit
2d2a04f5f9
|
@ -59,7 +59,8 @@ namespace BizHawk.Emulation.Cores.Components.H6280
|
|||
LagIFlag = FlagI;
|
||||
|
||||
if (Debug) Logger(State());
|
||||
Core.MemoryCallbacks.CallExecutes(PC);
|
||||
if (Core.MemoryCallbacks.HasExecutes) { Core.MemoryCallbacks.CallExecutes(PC); }
|
||||
|
||||
if (CDLLoggingActive) CDLOpcode();
|
||||
|
||||
byte opcode = ReadMemory(PC++);
|
||||
|
|
|
@ -494,8 +494,8 @@ namespace HuC6280
|
|||
w.WriteLine(" LagIFlag = FlagI;");
|
||||
w.WriteLine();
|
||||
w.WriteLine(" if (Debug) Logger(State());");
|
||||
w.WriteLine(" CoreComm.MemoryCallbackSystem.CallExecute(PC);");
|
||||
w.WriteLine(" if (CDLLoggingActive) CDLOpcode();");
|
||||
w.WriteLine(" if (Core.MemoryCallbacks.HasExecutes) { Core.MemoryCallbacks.CallExecutes(PC); }");
|
||||
w.WriteLine(" if (CDLLoggingActive) CDLOpcode();");
|
||||
w.WriteLine();
|
||||
w.WriteLine(" byte opcode = ReadMemory(PC++);");
|
||||
w.WriteLine(" switch (opcode)");
|
||||
|
|
Loading…
Reference in New Issue