#include "input.h"
#include "movie.h"
+#ifdef DEBUG_ASM_6502
+extern int cpu_repeat;
+extern int cpu_lastval;
+#endif
+
extern INPUTC *FCEU_InitZapper(int w);
extern INPUTC *FCEU_InitPowerpad(int w);
extern INPUTC *FCEU_InitArkanoid(int w);
{
uint8 ret=0;
+#ifdef DEBUG_ASM_6502
+ if (cpu_repeat) return cpu_lastval;
+#endif
if(JPorts[A&1]->Read)
ret|=JPorts[A&1]->Read(A&1);
ret=FCExp->Read(A&1,ret);
ret|=X.DB&0xC0;
+#ifdef DEBUG_ASM_6502
+// cpu_lastval=ret;
+#endif
return(ret);
}