|
|
| version 1.10, 2004/08/12 20:09:42 | version 1.12, 2004/08/13 02:16:33 |
|---|---|
| Line 1 | Line 1 |
| #include "compiler.h" | #include "compiler.h" |
| #include "scrnmng.h" | #include "scrnmng.h" |
| #include "z80core.h" | |
| #include "pccore.h" | #include "pccore.h" |
| #include "iocore.h" | #include "iocore.h" |
| #include "vram.h" | #include "vram.h" |
| Line 171 void crtc_regupdate(void) { | Line 172 void crtc_regupdate(void) { |
| fontyclock = fonty * RASTER_CLOCK; | fontyclock = fonty * RASTER_CLOCK; |
| crtc.e.dispclock = fontyclock * crtc.e.yl; | 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.vsyncstart = fontyclock * ((crtc.s.reg[CRTCREG_VSYNC] & 0x7f) + 1); |
| crtc.e.vpulseclock = (crtc.s.reg[CRTCREG_PULSE] >> 4) * RASTER_CLOCK; | crtc.e.vpulseclock = (crtc.s.reg[CRTCREG_PULSE] >> 4) * RASTER_CLOCK; |
| crtc.e.vl = fonty * ((crtc.s.reg[CRTCREG_VSIZE] & 0x7f) + 1) | crtc.e.vl = fonty * ((crtc.s.reg[CRTCREG_VSIZE] & 0x7f) + 1) |