--- np2/io/crtc.c 2003/12/08 00:55:32 1.3 +++ np2/io/crtc.c 2004/03/14 23:45:44 1.5 @@ -60,14 +60,30 @@ static const IOINP crtci70[8] = { NULL, NULL, NULL, NULL, NULL, NULL, crtc_i7c, NULL}; + +void crtc_biosreset(void) { + + if (!(np2cfg.dipsw[0] & 0x01)) { + crtc.reg.pl = 0; + crtc.reg.bl = 0x0f; + crtc.reg.cl = 0x10; + crtc.reg.ssl = 0; + } + else { + crtc.reg.pl = 0; + crtc.reg.bl = 0x07; + crtc.reg.cl = 0x08; + crtc.reg.ssl = 0; + } + gdcs.textdisp |= GDCSCRN_ALLDRAW; +} + void crtc_reset(void) { ZeroMemory(&grcg, sizeof(grcg)); ZeroMemory(&crtc, sizeof(crtc)); - crtc.reg.pl = 0x00; - crtc.reg.bl = 0x0f; - crtc.reg.cl = 0x10; grcg.chip = np2cfg.grcg & 3; // GRCG動作のコピー + crtc_biosreset(); } void crtc_bind(void) {