|
|
| version 1.8, 2005/03/06 10:41:50 | version 1.10, 2007/11/03 00:00:20 |
|---|---|
| Line 27 static void IOOUTCALL crtc_o7c(UINT port | Line 27 static void IOOUTCALL crtc_o7c(UINT port |
| if (grcg.chip >= 2) { | if (grcg.chip >= 2) { |
| grcg.gdcwithgrcg = (dat >> 4) & 0x0c; | grcg.gdcwithgrcg = (dat >> 4) & 0x0c; |
| } | } |
| i286_vram_dispatch(vramop.operate); | MEMM_VRAM(vramop.operate); |
| } | } |
| (void)port; | (void)port; |
| } | } |
| Line 82 void crtc_biosreset(void) { | Line 82 void crtc_biosreset(void) { |
| vramop.operate &= ~(3 << VOPBIT_GRCG); | vramop.operate &= ~(3 << VOPBIT_GRCG); |
| grcg.gdcwithgrcg = 0; | grcg.gdcwithgrcg = 0; |
| ZeroMemory(grcg.tile, sizeof(grcg.tile)); | 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(&grcg, sizeof(grcg)); |
| ZeroMemory(&crtc, sizeof(crtc)); | ZeroMemory(&crtc, sizeof(crtc)); |
| #if defined(SUPPORT_PC9821) | #if defined(SUPPORT_PC9821) |
| grcg.chip = 3; // PC-9821は EGC必須 | grcg.chip = 3; // PC-9821は EGC必須 |
| #else | #else |
| grcg.chip = np2cfg.grcg & 3; // GRCG動作のコピー | grcg.chip = pConfig->grcg & 3; // GRCG動作のコピー |
| #endif | #endif |
| crtc_biosreset(); | crtc_biosreset(); |
| } | } |