#include "video.h"
#include "input.h"
-#ifdef GP2X
-#include "drivers/gp2x/asmutils.h"
+#ifdef __arm__
+#include "drivers/arm/asmutils.h"
#endif
#define Pal (PALRAM)
}
}
-#if defined(ASM_6502) && !defined(DEBUG_ASM_6502)
-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
-
extern int ppudead;
extern int kook;
void MMC5_hb(int); /* Ugh ugh ugh. */
static void DoLine(void)
{
-#ifndef GP2X
+#ifndef __arm__
int x;
#endif
uint8 *target=XBuf+scanline*320+32;
if(SpriteON)
CopySprites098(target);
-#ifdef GP2X
+#ifdef __arm__
if(ScreenON || SpriteON) // Yes, very el-cheapo.
{
if(PPU[1]&0x01)