098 video fix, 098 sound integrated
[fceu.git] / x6502.c
diff --git a/x6502.c b/x6502.c
index c20edf9..786af60 100644 (file)
--- a/x6502.c
+++ b/x6502.c
@@ -24,6 +24,7 @@
 #include "x6502.h"
 #include "fce.h"
 #include "sound.h"
+#include "sound098.h"
 #include "cart.h"
 
 #include "dprintf.h"
@@ -520,6 +521,10 @@ void X6502_Run_c(void/*int32 cycles*/)
         ADDCYC(CycTable[b1]);
         temp=_tcount;
 
+        if (use098code)
+         FCEU_SoundCPUHook098(temp);
+        else
+        {
         temp*=48;
 
         fhcnt-=temp;
@@ -543,6 +548,7 @@ void X6502_Run_c(void/*int32 cycles*/)
           }
          }
         }
+        }
 
 #ifdef DEBUG_ASM_6502
         PC_prev = _PC;