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