Diff for /np2/fdd/sxsi.c between versions 1.1.1.1 and 1.3

version 1.1.1.1, 2003/10/16 17:58:31 version 1.3, 2003/10/19 14:56:15
Line 1 Line 1
 #include        "compiler.h"  #include        "compiler.h"
 #include        "dosio.h"  #include        "dosio.h"
   #include        "i286.h"
 #include        "pccore.h"  #include        "pccore.h"
 #include        "sxsi.h"  #include        "sxsi.h"
   
Line 141  const char  *ext; Line 142  const char  *ext;
                         sxsi->size = LOADINTELWORD(v98.sectorsize);                          sxsi->size = LOADINTELWORD(v98.sectorsize);
                         sxsi->sectors = v98.sectors;                          sxsi->sectors = v98.sectors;
                         sxsi->surfaces = v98.surfaces;                          sxsi->surfaces = v98.surfaces;
                         milstr_ncpy(sxsi->fname, file, sizeof(sxsi->fname));                          file_cpyname(sxsi->fname, file, sizeof(sxsi->fname));
                         sxsi->fh = (void *)fh;                          sxsi->fh = (void *)fh;
                         return(SUCCESS);                          return(SUCCESS);
                 }                  }
Line 243  const _SXSIHDD *sxsi; Line 244  const _SXSIHDD *sxsi;
         }          }
         while(size) {          while(size) {
                 rsize = min(size, sxsi->size);                  rsize = min(size, sxsi->size);
                 nevent.remainclock -= rsize;                  I286_REMCLOCK -= rsize;
                 if (file_read((FILEH)sxsi->fh, buf, rsize) != rsize) {                  if (file_read((FILEH)sxsi->fh, buf, rsize) != rsize) {
                         return(0xd0);                          return(0xd0);
                 }                  }
Line 273  const _SXSIHDD *sxsi; Line 274  const _SXSIHDD *sxsi;
         }          }
         while(size) {          while(size) {
                 wsize = min(size, sxsi->size);                  wsize = min(size, sxsi->size);
                 nevent.remainclock -= wsize;                  I286_REMCLOCK -= wsize;
                 if (file_write((FILEH)sxsi->fh, buf, wsize) != wsize) {                  if (file_write((FILEH)sxsi->fh, buf, wsize) != wsize) {
                         return(0x70);                          return(0x70);
                 }                  }
Line 310  const _SXSIHDD *sxsi; Line 311  const _SXSIHDD *sxsi;
                 while(size) {                  while(size) {
                         wsize = min(size, sizeof(work));                          wsize = min(size, sizeof(work));
                         size -= wsize;                          size -= wsize;
                         nevent.remainclock -= wsize;                          I286_REMCLOCK -= wsize;
                         if (file_write((FILEH)sxsi->fh, work, wsize) != wsize) {                          if (file_write((FILEH)sxsi->fh, work, wsize) != wsize) {
                                 return(0x70);                                  return(0x70);
                         }                          }

Removed from v.1.1.1.1  
changed lines
  Added in v.1.3


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