|
|
| version 1.40, 2007/11/03 00:00:20 | version 1.42, 2007/11/11 13:54:14 |
|---|---|
| Line 274 void gdc_work(int id) { | Line 274 void gdc_work(int id) { |
| case CMD_START: | case CMD_START: |
| case CMD_SYNC_ON: | case CMD_SYNC_ON: |
| (*dispflag) |= GDCSCRN_ENABLE | GDCSCRN_ALLDRAW2; | (*dispflag) |= GDCSCRN_ENABLE | GDCSCRN_ALLDRAW2; |
| screenupdate |= 2; | pcstat.screenupdate |= 2; |
| break; | break; |
| case CMD_STOP_: | case CMD_STOP_: |
| Line 282 void gdc_work(int id) { | Line 282 void gdc_work(int id) { |
| case CMD_SYNC_OFF: | case CMD_SYNC_OFF: |
| (*dispflag) &= (~GDCSCRN_ENABLE); | (*dispflag) &= (~GDCSCRN_ENABLE); |
| // (*dispflag) |= GDCSCRN_ALLDRAW2; | // (*dispflag) |= GDCSCRN_ALLDRAW2; |
| screenupdate |= 2; | pcstat.screenupdate |= 2; |
| break; | break; |
| case CMD_VECTE: | case CMD_VECTE: |
| Line 479 static void IOOUTCALL gdc_o68(UINT port, | Line 479 static void IOOUTCALL gdc_o68(UINT port, |
| gdc_restorekacmode(); | gdc_restorekacmode(); |
| } | } |
| else if (bit == 0x80) { | else if (bit == 0x80) { |
| screenupdate |= 2; | pcstat.screenupdate |= 2; |
| } | } |
| gdcs.msw_accessable = gdc.mode1 & 0x40; | gdcs.msw_accessable = gdc.mode1 & 0x40; |
| } | } |
| Line 706 static void IOOUTCALL gdc_oa4(UINT port, | Line 706 static void IOOUTCALL gdc_oa4(UINT port, |
| if ((gdcs.disp ^ dat) & 1) { | if ((gdcs.disp ^ dat) & 1) { |
| gdcs.disp = dat & 1; | gdcs.disp = dat & 1; |
| screenupdate |= 2; | pcstat.screenupdate |= 2; |
| } | } |
| (void)port; | (void)port; |
| } | } |
| Line 1052 void gdc_biosreset(void) { | Line 1052 void gdc_biosreset(void) { |
| UINT8 *pal; | UINT8 *pal; |
| #endif | #endif |
| if (!(np2cfg.dipsw[0] & 0x01)) { | if (!(pccore.dipsw[0] & 0x01)) { |
| gdc.mode1 = 0x98; | gdc.mode1 = 0x98; |
| gdc.m.para[GDC_CSRFORM + 0] = 0x0f; | gdc.m.para[GDC_CSRFORM + 0] = 0x0f; |
| gdc.m.para[GDC_CSRFORM + 1] = 0xc0; | gdc.m.para[GDC_CSRFORM + 1] = 0xc0; |
| Line 1070 void gdc_biosreset(void) { | Line 1070 void gdc_biosreset(void) { |
| CopyMemory(gdc.m.para + GDC_SYNC, defsyncm15, 8); | CopyMemory(gdc.m.para + GDC_SYNC, defsyncm15, 8); |
| CopyMemory(gdc.s.para + GDC_SYNC, defsyncs15, 8); | CopyMemory(gdc.s.para + GDC_SYNC, defsyncs15, 8); |
| } | } |
| if (np2cfg.dipsw[0] & 0x80) { | if (pccore.dipsw[0] & 0x80) { |
| gdc.s.para[GDC_SYNC] = 0x16; | gdc.s.para[GDC_SYNC] = 0x16; |
| } | } |
| gdc_vectreset(&gdc.m); | gdc_vectreset(&gdc.m); |
| Line 1126 void gdc_biosreset(void) { | Line 1126 void gdc_biosreset(void) { |
| gdcs.textdisp = GDCSCRN_ALLDRAW2 | GDCSCRN_EXT; | gdcs.textdisp = GDCSCRN_ALLDRAW2 | GDCSCRN_EXT; |
| gdcs.grphdisp = GDCSCRN_ALLDRAW2 | GDCSCRN_EXT; | gdcs.grphdisp = GDCSCRN_ALLDRAW2 | GDCSCRN_EXT; |
| gdcs.palchange = GDCSCRN_REDRAW; | gdcs.palchange = GDCSCRN_REDRAW; |
| screenupdate |= 2; | pcstat.screenupdate |= 2; |
| } | } |
| void gdc_reset(const NP2CFG *pConfig) { | void gdc_reset(const NP2CFG *pConfig) { |
| Line 1141 void gdc_reset(const NP2CFG *pConfig) { | Line 1141 void gdc_reset(const NP2CFG *pConfig) { |
| gdc.display |= (1 << GDCDISP_ANALOG); | gdc.display |= (1 << GDCDISP_ANALOG); |
| } | } |
| #endif | #endif |
| if (!(np2cfg.dipsw[0] & 0x04)) { // dipsw1-3 on | if (!(pccore.dipsw[0] & 0x04)) { // dipsw1-3 on |
| gdc.display |= (1 << GDCDISP_PLAZMA2); | gdc.display |= (1 << GDCDISP_PLAZMA2); |
| } | } |
| gdc_biosreset(); | gdc_biosreset(); |