Diff for /np2/io/np2sysp.c between versions 1.17 and 1.18

version 1.17, 2005/02/14 06:25:31 version 1.18, 2005/02/15 18:42:20
Line 119  static void np2sysp_hwreset(const void * Line 119  static void np2sysp_hwreset(const void *
 // ----  // ----
   
 static const char cmd_np2[] = "NP2";  static const char cmd_np2[] = "NP2";
   static const OEMCHAR rep_np2[] = OEMTEXT("NP2");
   
 static const char cmd_ver[] = "ver";  static const char cmd_ver[] = "ver";
 static const char cmd_poweroff[] = "poweroff";  static const char cmd_poweroff[] = "poweroff";
 static const char cmd_credit[] = "credit";  static const char cmd_credit[] = "credit";
Line 138  static const char cmd_hdrvcheck[] = "che Line 140  static const char cmd_hdrvcheck[] = "che
 static const char cmd_hdrvopen[] = "open_hostdrv";  static const char cmd_hdrvopen[] = "open_hostdrv";
 static const char cmd_hdrvclose[] = "close_hostdrv";  static const char cmd_hdrvclose[] = "close_hostdrv";
 static const char cmd_hdrvintr[] = "intr_hostdrv";  static const char cmd_hdrvintr[] = "intr_hostdrv";
   static const OEMCHAR rep_hdrvcheck[] = OEMTEXT("0.74");
 #endif  #endif
   
 #if defined(NP2SYSP_VER)  #if defined(NP2SYSP_VER)
Line 154  static const OEMCHAR str_syspcredit[] =  Line 157  static const OEMCHAR str_syspcredit[] = 
   
   
 static const SYSPCMD np2spcmd[] = {  static const SYSPCMD np2spcmd[] = {
                         {cmd_np2,               np2sysp_outstr,         str_np2,                0},                          {cmd_np2,               np2sysp_outstr,         rep_np2,                0},
                         {cmd_ver,               np2sysp_outstr,         str_syspver,    0},                          {cmd_ver,               np2sysp_outstr,         str_syspver,    0},
   
 // version:A  // version:A
Line 179  static const SYSPCMD np2spcmd[] = { Line 182  static const SYSPCMD np2spcmd[] = {
 #endif  #endif
   
 #if defined(SUPPORT_HOSTDRV)  #if defined(SUPPORT_HOSTDRV)
                         {cmd_hdrvcheck, np2sysp_outstr,         OEMTEXT("0.74"),0},                          {cmd_hdrvcheck, np2sysp_outstr,         rep_hdrvcheck,  0},
                         {cmd_hdrvopen,  hostdrv_mount,          NULL,                   0},                          {cmd_hdrvopen,  hostdrv_mount,          NULL,                   0},
                         {cmd_hdrvclose, hostdrv_unmount,        NULL,                   0},                          {cmd_hdrvclose, hostdrv_unmount,        NULL,                   0},
                         {cmd_hdrvintr,  hostdrv_intr,           NULL,                   0},                          {cmd_hdrvintr,  hostdrv_intr,           NULL,                   0},
Line 187  static const SYSPCMD np2spcmd[] = { Line 190  static const SYSPCMD np2spcmd[] = {
 };  };
   
   
 static BOOL np2syspcmp(const char *p) {  static BRESULT np2syspcmp(const char *p) {
   
         int             len;          int             len;
         int             pos;          int             pos;
   
         len = strlen(p);          len = STRLEN(p);
         if (!len) {          if (!len) {
                 return(TRUE);                  return(FAILURE);
         }          }
         pos = np2sysp.strpos;          pos = np2sysp.strpos;
         while(len--) {          while(len--) {
                 if (p[len] != np2sysp.substr[pos]) {                  if (p[len] != np2sysp.substr[pos]) {
                         return(TRUE);                          return(FAILURE);
                 }                  }
                 pos--;                  pos--;
                 pos &= NP2SYSP_MASK;                  pos &= NP2SYSP_MASK;
         }          }
         return(FALSE);          return(SUCCESS);
 }  }
   
 static void IOOUTCALL np2sysp_o7ed(UINT port, REG8 dat) {  static void IOOUTCALL np2sysp_o7ed(UINT port, REG8 dat) {
Line 256  static REG8 IOINPCALL np2sysp_i7ef(UINT  Line 259  static REG8 IOINPCALL np2sysp_i7ef(UINT 
         return(ret);          return(ret);
 }  }
   
   #if defined(NP2APPDEV)
   static void IOOUTCALL np2sysp_o0e9(UINT port, REG8 dat) {
   
           APPDEVOUT(dat);
           (void)port;
   }
   #endif
   
   
 // ---- I/F  // ---- I/F
   
Line 270  void np2sysp_bind(void) { Line 281  void np2sysp_bind(void) {
         iocore_attachout(0x07ef, np2sysp_o7ef);          iocore_attachout(0x07ef, np2sysp_o7ef);
         iocore_attachinp(0x07ef, np2sysp_i7ed);          iocore_attachinp(0x07ef, np2sysp_i7ed);
         iocore_attachinp(0x07ef, np2sysp_i7ef);          iocore_attachinp(0x07ef, np2sysp_i7ef);
   
   #if defined(NP2APPDEV)
           iocore_attachout(0x00e9, np2sysp_o0e9);
   #endif
 }  }
   

Removed from v.1.17  
changed lines
  Added in v.1.18


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