static __inline void SekRunPS(int cyc_m68k, int cyc_s68k)
{
int cycn, cycn_s68k, cyc_do;
- int d_cm = 0, d_cs = 0, ex;
+ int ex;
SekCycleAim+=cyc_m68k;
SekCycleAimS68k+=cyc_s68k;
{
ex = 0;
cycn_s68k = (cycn + cycn/2 + cycn/8) >> 16;
-//fprintf(stderr, "%3i/%3i: ", cycn>>16, cycn_s68k);
if ((cyc_do = SekCycleAim-SekCycleCnt-(cycn>>16)) > 0) {
#if defined(EMU_C68K)
PicoCpu.cycles = cyc_do;
SekCycleCnt += (ex = m68k_execute(cyc_do));
#endif
}
-//fprintf(stderr, "%3i ", ex); d_cm += ex; ex = 0;
if ((cyc_do = SekCycleAimS68k-SekCycleCntS68k-cycn_s68k) > 0) {
#if defined(EMU_C68K)
PicoCpuS68k.cycles = cyc_do;
SekCycleCntS68k += (ex = m68k_execute(cyc_do));
#endif
}
-//fprintf(stderr, "%3i\n", ex); d_cs += ex;
}
-
-//fprintf(stderr, "== end %3i/%3i ==\n", d_cm, d_cs);
}
#endif
# faked asm
#DEFINC += -D_ASM_DRAW_C
-#DEFINC += -D_ASM_MEMORY_C
-#DEFINC += -D_ASM_YM2612_C
-OBJS += fakedasm.o
+#OBJS += fakedasm.o
all: PicoDrive
@$(GCC) $(COPT_COMMON) $(DEFINC) -c $< -o $@ # -mtune=arm940t -DEXTERNAL_YM2612
# faked asm
-../../Pico/Draw.o : ../../Pico/Draw.c
- @echo $<
- @$(GCC) $(COPT) $(DEFINC) -D_ASM_DRAW_C -c $< -o $@
+#../../Pico/Draw.o : ../../Pico/Draw.c
+# @echo $<
+# @$(GCC) $(COPT) $(DEFINC) -D_ASM_DRAW_C -c $< -o $@
struct TileStrip
{
int nametab; // Position in VRAM of name table (for this tile line)
- int line; // Line number in pixels 0x000-0x3ff within the virtual tilemap
+ int line; // Line number in pixels 0x000-0x3ff within the virtual tilemap
int hscroll; // Horizontal scroll value in pixels for the line
int xmask; // X-Mask (0x1f - 0x7f) for horizontal wraparound in the tilemap
int *hc; // cache for high tile codes and their positions
*ts->hc++ = cval; // cache it
continue;
}
-
+continue;
if (code!=oldcode) {
oldcode = code;
// Get tile address/2: