summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/cpuexec.c12
1 files changed, 11 insertions, 1 deletions
diff --git a/src/cpuexec.c b/src/cpuexec.c
index 7102ade..950b7b9 100644
--- a/src/cpuexec.c
+++ b/src/cpuexec.c
@@ -384,6 +384,7 @@ S9xMainLoop(void)
if (!finishedFrame)
{
#endif
+#ifndef LAGFIX
Registers.PC = CPU.PC - CPU.PCBase;
#ifndef ASMCPU
@@ -391,7 +392,7 @@ S9xMainLoop(void)
#endif
S9xAPUPackStatus();
-
+#endif
//if (CPU.Flags & SCAN_KEYS_FLAG)
// {
@@ -409,6 +410,15 @@ S9xMainLoop(void)
else
{
finishedFrame = false;
+
+ Registers.PC = CPU.PC - CPU.PCBase;
+
+#ifndef ASMCPU
+ S9xPackStatus();
+#endif
+
+ S9xAPUPackStatus();
+
break;
}
} while (!finishedFrame);