Diff for /np2/io/artic.c between versions 1.4 and 1.8

version 1.4, 2004/01/13 05:30:58 version 1.8, 2007/11/03 00:00:20
Line 10  void artic_callback(void) { Line 10  void artic_callback(void) {
         SINT32  leng;          SINT32  leng;
   
         mul = pccore.multiple;          mul = pccore.multiple;
         if (pccore.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 32  static UINT32 artic_getcnt(void) { Line 32  static UINT32 artic_getcnt(void) {
         SINT32  leng;          SINT32  leng;
   
         mul = pccore.multiple;          mul = pccore.multiple;
         if (pccore.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 79  static REG8 IOINPCALL artic_i5f(UINT por Line 79  static REG8 IOINPCALL artic_i5f(UINT por
   
 // ---- I/F  // ---- I/F
   
 void artic_reset(void) {  void artic_reset(const NP2CFG *pConfig) {
   
         ZeroMemory(&artic, sizeof(artic));          ZeroMemory(&artic, sizeof(artic));
   
           (void)pConfig;
 }  }
   
 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);

Removed from v.1.4  
changed lines
  Added in v.1.8


RetroPC.NET-CVS <cvs@retropc.net>