#define _S X.S
#define _P X.P
#define _PI X.mooPI
-#define _PZ X.PZ
+#define _PZ X.PZ // unused?
#define _DB X.DB
#define _count X.count
#define _tcount X.tcount
timestamp+=x;
}
-void FASTAPASS(1) X6502_AddCycles(int x)
+void FASTAPASS(1) X6502_AddCycles_c(int x)
{
ADDCYC(x);
}
/*0xF0*/ 2,5,2,8,4,4,6,6,2,4,2,7,4,4,7,7,
};
-void FASTAPASS(1) X6502_IRQBegin(int w)
+void FASTAPASS(1) X6502_IRQBegin_c(int w)
{
_IRQlow|=w;
}
-void FASTAPASS(1) X6502_IRQEnd(int w)
+void FASTAPASS(1) X6502_IRQEnd_c(int w)
{
_IRQlow&=~w;
}
-void TriggerIRQ(void) /* This function should probably be phased out. */
+void TriggerIRQ_c(void) /* This function should probably be phased out. */
{
_IRQlow|=FCEU_IQTEMP;
}
-void TriggerNMINSF(void)
+void TriggerNMINSF_c(void)
{
ADDCYC(7);
PUSH(_PC>>8);
_PC=0x3800;
}
-void TriggerNMI(void)
+void TriggerNMI_c(void)
{
_IRQlow|=FCEU_IQNMI;
}
}
}
-void X6502_Reset(void)
+void X6502_Reset_c(void)
{
_PC=RdMem(0xFFFC);
_PC|=RdMem(0xFFFD)<<8;
_PI=_P=I_FLAG;
}
-void X6502_Power(void)
+void X6502_Power_c(void)
{
memset((void *)&X,0,sizeof(X));
timestamp=0;
- X6502_Reset();
+ X6502_Reset_c();
}
//int asdc = 0;
-void X6502_Run_(void/*int32 cycles*/)
+void X6502_Run_c(void/*int32 cycles*/)
{
/*
if(PAL)
ADDCYC(temp);
//temp=_tcount;
//_tcount=0;
+/*
if(MapIRQHook) MapIRQHook(temp);
temp*=48;
{
extern uint8 SIRQStat;
SIRQStat|=0x80;
- X6502_IRQBegin(FCEU_IQDPCM);
+ X6502_IRQBegin_c(FCEU_IQDPCM);
}
}
}
+*/
//printf("$%04x:$%02x\n",_PC,b1);
//_PC++;
//printf("$%02x\n",b1);
{
#include "ops.h"
}
+
+#ifdef DEBUG_ASM_6502
+ _PI=_P;
+#endif
}
}