X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?p=fceu.git;a=blobdiff_plain;f=x6502.c;h=786af607083aae743c42dafd5cca2c675f72b3ac;hp=c20edf9dc7a65ac3526f9b73dea9f5572c69665b;hb=a384bf449483e62637ce05a60ff4b06730a19934;hpb=6244011fd85a10400accd6d8e7d941144f92aa5b diff --git a/x6502.c b/x6502.c index c20edf9..786af60 100644 --- 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;