--- np2/io/crtc.c 2005/03/06 10:41:50 1.8 +++ np2/io/crtc.c 2007/11/11 13:54:14 1.11 @@ -27,7 +27,7 @@ static void IOOUTCALL crtc_o7c(UINT port if (grcg.chip >= 2) { grcg.gdcwithgrcg = (dat >> 4) & 0x0c; } - i286_vram_dispatch(vramop.operate); + MEMM_VRAM(vramop.operate); } (void)port; } @@ -63,7 +63,7 @@ static const IOINP crtci70[8] = { void crtc_biosreset(void) { - if (!(np2cfg.dipsw[0] & 0x01)) { + if (!(pccore.dipsw[0] & 0x01)) { crtc.reg.pl = 0; crtc.reg.bl = 0x0f; crtc.reg.cl = 0x10; @@ -82,17 +82,17 @@ void crtc_biosreset(void) { vramop.operate &= ~(3 << VOPBIT_GRCG); grcg.gdcwithgrcg = 0; ZeroMemory(grcg.tile, sizeof(grcg.tile)); - i286_vram_dispatch(vramop.operate); + MEMM_VRAM(vramop.operate); } -void crtc_reset(void) { +void crtc_reset(const NP2CFG *pConfig) { ZeroMemory(&grcg, sizeof(grcg)); ZeroMemory(&crtc, sizeof(crtc)); #if defined(SUPPORT_PC9821) grcg.chip = 3; // PC-9821は EGC必須 #else - grcg.chip = np2cfg.grcg & 3; // GRCG動作のコピー + grcg.chip = pConfig->grcg & 3; // GRCG動作のコピー #endif crtc_biosreset(); }