|
|
| version 1.1.1.1, 2003/10/16 17:57:50 | version 1.3, 2003/12/08 00:55:32 |
|---|---|
| Line 3 | Line 3 |
| #include "pccore.h" | #include "pccore.h" |
| #include "iocore.h" | #include "iocore.h" |
| #include "vram.h" | #include "vram.h" |
| #include "maketext.h" | |
| // ---- I/O | // ---- I/O |
| static void IOOUTCALL crtc_o70(UINT port, BYTE dat) { | static void IOOUTCALL crtc_o70(UINT port, REG8 dat) { |
| port = (port & 0x0e) >> 1; | port = (port & 0x0e) >> 1; |
| dat &= 0x1f; | dat &= 0x1f; |
| if (crtc.b[port] != dat) { | if (crtc.b[port] != dat) { |
| crtc.b[port] = dat; | crtc.b[port] = (UINT8)dat; |
| gdcs.textdisp |= GDCSCRN_ALLDRAW; | gdcs.textdisp |= GDCSCRN_ALLDRAW; |
| } | } |
| } | } |
| static void IOOUTCALL crtc_o7c(UINT port, BYTE dat) { | static void IOOUTCALL crtc_o7c(UINT port, REG8 dat) { |
| if (grcg.chip) { | if (grcg.chip) { |
| grcg.modereg = dat; | grcg.modereg = (UINT8)dat; |
| grcg.counter = 0; | grcg.counter = 0; |
| vramop.operate &= VOP_GRCGMASK; | vramop.operate &= VOP_GRCGMASK; |
| vramop.operate |= ((dat & 0xc0) >> 4); | vramop.operate |= ((dat & 0xc0) >> 4); |
| Line 33 static void IOOUTCALL crtc_o7c(UINT port | Line 32 static void IOOUTCALL crtc_o7c(UINT port |
| (void)port; | (void)port; |
| } | } |
| static void IOOUTCALL crtc_o7e(UINT port, BYTE dat) { | static void IOOUTCALL crtc_o7e(UINT port, REG8 dat) { |
| int cnt; | int cnt; |
| cnt = grcg.counter; | cnt = grcg.counter; |
| grcg.tile[cnt].b[0] = dat; | grcg.tile[cnt].b[0] = (UINT8)dat; |
| grcg.tile[cnt].b[1] = dat; | grcg.tile[cnt].b[1] = (UINT8)dat; |
| grcg.counter = (cnt + 1) & 3; | grcg.counter = (cnt + 1) & 3; |
| (void)port; | (void)port; |
| } | } |
| static BYTE IOINPCALL crtc_i7c(UINT port) { | static REG8 IOINPCALL crtc_i7c(UINT port) { |
| (void)port; | (void)port; |
| return(grcg.modereg); | return(grcg.modereg); |