new acc mode timing, VDP FIFO code
[picodrive.git] / Pico / Sek.c
index 8ce0bd8..1f2316e 100644 (file)
@@ -46,17 +46,15 @@ static int (*ResetCallback)()=DoReset;
 static int SekIntAck(int level)\r
 {\r
   // try to emulate VDP's reaction to 68000 int ack\r
-  if     (level == 4) Pico.video.pending_ints  =  0;\r
-  else if(level == 6) Pico.video.pending_ints &= ~0x20;\r
+  if     (level == 4) { Pico.video.pending_ints  =  0;    elprintf(EL_INTS, "hack: @ %06x [%i]", SekPc, SekCycleCnt); }\r
+  else if(level == 6) { Pico.video.pending_ints &= ~0x20; elprintf(EL_INTS, "vack: @ %06x [%i]", SekPc, SekCycleCnt); }\r
   PicoCpu.irq = 0;\r
   return CYCLONE_INT_ACK_AUTOVECTOR;\r
 }\r
 \r
-static void SekResetAck()\r
+static void SekResetAck(void)\r
 {\r
-#if defined(__DEBUG_PRINT) || defined(WIN32)\r
-  dprintf("Reset encountered @ %06x", SekPc);\r
-#endif\r
+  elprintf(EL_ANOMALY, "Reset encountered @ %06x", SekPc);\r
 }\r
 \r
 static int SekUnrecognizedOpcode()\r
@@ -64,9 +62,7 @@ static int SekUnrecognizedOpcode()
   unsigned int pc, op;\r
   pc = SekPc;\r
   op = PicoCpu.read16(pc);\r
-#if defined(__DEBUG_PRINT) || defined(WIN32)\r
-  dprintf("Unrecognized Opcode %04x @ %06x", op, pc);\r
-#endif\r
+  elprintf(EL_ANOMALY, "Unrecognized Opcode %04x @ %06x", op, pc);\r
   // see if we are not executing trash\r
   if (pc < 0x200 || (pc > Pico.romsize+4 && (pc&0xe00000)!=0xe00000)) {\r
     PicoCpu.cycles = 0;\r
@@ -88,8 +84,8 @@ static int SekUnrecognizedOpcode()
 #ifdef EMU_M68K\r
 static int SekIntAckM68K(int level)\r
 {\r
-  if     (level == 4) { Pico.video.pending_ints  =  0;    dprintf("hack: [%i|%i]", Pico.m.scanline, SekCyclesDone()); }\r
-  else if(level == 6) { Pico.video.pending_ints &= ~0x20; dprintf("vack: [%i|%i]", Pico.m.scanline, SekCyclesDone()); }\r
+  if     (level == 4) { Pico.video.pending_ints  =  0;    elprintf(EL_INTS, "hack: @ %06x [%i]", SekPc, SekCycleCnt); }\r
+  else if(level == 6) { Pico.video.pending_ints &= ~0x20; elprintf(EL_INTS, "vack: @ %06x [%i]", SekPc, SekCycleCnt); }\r
   CPU_INT_LEVEL = 0;\r
   return M68K_INT_ACK_AUTOVECTOR;\r
 }\r