+ // preliminary FIFO emulation for Chaos Engine, The (E)\r
+ if(!(pvid->status&8) && (pvid->reg[1]&0x40) && Pico.m.scanline!=-1) // active display, accurate mode?\r
+ {\r
+ pvid->status&=~0x200; // FIFO no longer empty\r
+ pvid->lwrite_cnt++;\r
+ if (pvid->lwrite_cnt >= 4) pvid->status|=0x100; // FIFO full\r
+ if (pvid->lwrite_cnt > 4) {\r
+ SekCyclesBurn(32); // penalty // 488/12-8\r
+ if (SekCycleCnt>=SekCycleAim) SekEndRun(0);\r
+ }\r
+ elprintf(EL_ASVDP, "VDP data write: %04x {%i} #%i @ %06x", d, Pico.video.type, pvid->lwrite_cnt, SekPc);\r
+ }\r