|
|
| version 1.3, 2003/12/08 00:55:32 | version 1.7, 2005/04/05 18:43:52 |
|---|---|
| Line 9 void artic_callback(void) { | Line 9 void artic_callback(void) { |
| SINT32 mul; | SINT32 mul; |
| SINT32 leng; | SINT32 leng; |
| mul = pc.multiple; | mul = pccore.multiple; |
| if (pc.baseclock == PCBASECLOCK25) { | if (pccore.cpumode & CPUMODE_8MHZ) { |
| mul *= 16; | mul *= 13; |
| } | } |
| else { | else { |
| mul *= 13; | mul *= 16; |
| } | } |
| leng = CPU_CLOCK + CPU_BASECLOCK + CPU_REMCLOCK; | leng = CPU_CLOCK + CPU_BASECLOCK - CPU_REMCLOCK; |
| leng *= 2; | leng *= 2; |
| leng -= artic.lastclk2; | leng -= artic.lastclk2; |
| if (leng > 0) { | if (leng > 0) { |
| Line 31 static UINT32 artic_getcnt(void) { | Line 31 static UINT32 artic_getcnt(void) { |
| SINT32 mul; | SINT32 mul; |
| SINT32 leng; | SINT32 leng; |
| mul = pc.multiple; | mul = pccore.multiple; |
| if (pc.baseclock != PCBASECLOCK20) { | if (pccore.cpumode & CPUMODE_8MHZ) { |
| mul *= 16; | mul *= 13; |
| } | } |
| else { | else { |
| mul *= 13; | mul *= 16; |
| } | } |
| leng = CPU_CLOCK + CPU_BASECLOCK + CPU_REMCLOCK; | leng = CPU_CLOCK + CPU_BASECLOCK - CPU_REMCLOCK; |
| leng *= 2; | leng *= 2; |
| leng -= artic.lastclk2; | leng -= artic.lastclk2; |
| if (leng > 0) { | if (leng > 0) { |
| Line 51 static UINT32 artic_getcnt(void) { | Line 51 static UINT32 artic_getcnt(void) { |
| // ---- I/O | // ---- I/O |
| static void IOOUTCALL artic_o5c(UINT port, REG8 dat) { | static void IOOUTCALL artic_o5f(UINT port, REG8 dat) { |
| (void)port; | (void)port; |
| (void)dat; | (void)dat; |
| Line 86 void artic_reset(void) { | Line 86 void artic_reset(void) { |
| void artic_bind(void) { | void artic_bind(void) { |
| iocore_attachout(0x005c, artic_o5c); | iocore_attachout(0x005f, artic_o5f); |
| iocore_attachinp(0x005c, artic_i5c); | iocore_attachinp(0x005c, artic_i5c); |
| iocore_attachinp(0x005d, artic_i5d); | iocore_attachinp(0x005d, artic_i5d); |
| iocore_attachinp(0x005e, artic_i5d); | iocore_attachinp(0x005e, artic_i5d); |