X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?p=fceu.git;a=blobdiff_plain;f=fce.c;h=f3d5abb5f420263aec337478ee7bed28ee57bb3a;hp=282a26413864fab7684e7e880604075914c0d4b0;hb=3ac1cc0b221c10cd9a82ba3c12d111597dc554e7;hpb=0d6a66c2a80f50ae51327cd406f9df14d99ad02e diff --git a/fce.c b/fce.c index 282a264..f3d5abb 100644 --- a/fce.c +++ b/fce.c @@ -115,32 +115,6 @@ static int RWWrap=0; #ifdef ASM_6502 #ifdef DEBUG_ASM_6502 extern uint8 nes_internal_ram[0x800]; -#else -static void asmcpu_update(int32 cycles) -{ - // some code from x6502.c - fhcnt-=cycles; - if(fhcnt<=0) - { - FrameSoundUpdate(); - fhcnt+=fhinc; - } - - if(PCMIRQCount>0) - { - PCMIRQCount-=cycles; - if(PCMIRQCount<=0) - { - vdis=1; - if((PSG[0x10]&0x80) && !(PSG[0x10]&0x40)) - { - extern uint8 SIRQStat; - SIRQStat|=0x80; - X6502_IRQBegin(FCEU_IQDPCM); - } - } - } -} #endif void asmcpu_unpack(void) @@ -1263,6 +1237,8 @@ int FCEUI_Initialize(void) FCEUI_Initialize098(); FCEUI_SetEmuMode(0); + X6502_Init(); + return 1; }