--- np2/io/gdc.c 2003/12/08 00:55:32 1.8 +++ np2/io/gdc.c 2004/01/30 14:33:27 1.12 @@ -1,7 +1,6 @@ #include "compiler.h" #include "scrnmng.h" #include "cpucore.h" -#include "memory.h" #include "pccore.h" #include "iocore.h" #include "vram.h" @@ -174,6 +173,7 @@ void gdc_work(int id) { screenupdate |= 2; // ver0.28 break; + case CMD_STOP_: case CMD_STOP: case CMD_SYNC_OFF: (*dispflag) &= (~GDCSCRN_ENABLE); @@ -336,11 +336,13 @@ static void IOOUTCALL gdc_o6a(UINT port, else { switch(dat) { case 0x40: + case 0x80: // EPSON? gdc.display &= ~1; gdcs.textdisp |= GDCSCRN_EXT; break; case 0x41: + case 0x81: // EPSON? gdc.display |= 1; gdcs.textdisp |= GDCSCRN_EXT; break; @@ -377,7 +379,7 @@ static REG8 IOINPCALL gdc_i60(UINT port) ret = 0x80 | gdc.vsync; // | m_drawing; remain = nevent_getremain(NEVENT_FLAMES); if (remain >= 0) { - if ((remain % pc.raster) < pc.hsync) { + if ((remain % pccore.raster) < pccore.hsync) { ret |= 0x40; } } @@ -544,7 +546,7 @@ static REG8 IOINPCALL gdc_ia0(UINT port) ret = 0x80 | gdc.vsync | gdc.s_drawing; remain = nevent_getremain(NEVENT_FLAMES); if (remain >= 0) { - if ((remain % pc.raster) < (pc.hsync)) { + if ((remain % pccore.raster) < (pccore.hsync)) { ret |= 0x40; } }