--- xmil/io/crtc.c 2004/08/12 20:09:42 1.10 +++ xmil/io/crtc.c 2004/08/13 02:16:33 1.12 @@ -1,5 +1,6 @@ #include "compiler.h" #include "scrnmng.h" +#include "z80core.h" #include "pccore.h" #include "iocore.h" #include "vram.h" @@ -171,6 +172,10 @@ void crtc_regupdate(void) { fontyclock = fonty * RASTER_CLOCK; crtc.e.dispclock = fontyclock * crtc.e.yl; + // YsIIIが yl==0で disp信号見る…なんで? + if (!crtc.e.dispclock) { + crtc.e.dispclock = fontyclock; + } crtc.e.vsyncstart = fontyclock * ((crtc.s.reg[CRTCREG_VSYNC] & 0x7f) + 1); crtc.e.vpulseclock = (crtc.s.reg[CRTCREG_PULSE] >> 4) * RASTER_CLOCK; crtc.e.vl = fonty * ((crtc.s.reg[CRTCREG_VSIZE] & 0x7f) + 1)