|
|
| version 1.7, 2003/12/08 00:55:30 | version 1.9, 2004/01/22 01:10:03 |
|---|---|
| Line 1 | Line 1 |
| #include "compiler.h" | #include "compiler.h" |
| #include "cpucore.h" | #include "cpucore.h" |
| #include "memory.h" | |
| #include "pccore.h" | #include "pccore.h" |
| #include "iocore.h" | #include "iocore.h" |
| #include "bios.h" | #include "bios.h" |
| Line 265 void bios0x18(void) { | Line 264 void bios0x18(void) { |
| break; | break; |
| case 0x0a: // CRTモードの設定 | case 0x0a: // CRTモードの設定 |
| #if 1 | |
| mem[MEMB_CRT_STS_FLAG] = 0x80 | (CPU_AL & 0x0f); | mem[MEMB_CRT_STS_FLAG] = 0x80 | (CPU_AL & 0x0f); |
| // GDCバッファを空に | // GDCバッファを空に |
| if (gdc.m.cnt) { | if (gdc.m.cnt) { |
| Line 305 void bios0x18(void) { | Line 303 void bios0x18(void) { |
| gdcs.textdisp |= GDCSCRN_ALLDRAW2; | gdcs.textdisp |= GDCSCRN_ALLDRAW2; |
| gdc_restorekacmode(); | gdc_restorekacmode(); |
| break; | break; |
| #else | |
| // GDCバッファを空に | |
| if (gdc.m.cnt) { | |
| gdc_work(GDCWORK_MASTER); | |
| } | |
| gdc_forceready(&gdc.m); | |
| mem[MEMB_CRT_STS_FLAG] = CPU_AL; | |
| if (systemport_r(0x33) & 0x08) { | |
| mem[MEMB_CRT_STS_FLAG] |= 0x80; | |
| } | |
| #endif | |
| case 0x0b: // CRTモードのセンス | case 0x0b: // CRTモードのセンス |
| CPU_AL = mem[MEMB_CRT_STS_FLAG]; | CPU_AL = mem[MEMB_CRT_STS_FLAG]; |