Diff for /xmil/fdd/fdd_mtr.c between versions 1.5 and 1.8

version 1.5, 2004/08/03 13:08:10 version 1.8, 2004/08/13 04:08:33
Line 39  void fddmtr_init(void) { Line 39  void fddmtr_init(void) {
         FillMemory(fddmtr.head, sizeof(fddmtr.head), 24);          FillMemory(fddmtr.head, sizeof(fddmtr.head), 24);
 }  }
   
 void fddmtr_callback(DWORD time) {  void fddmtr_callback(UINT32 time) {
   
         if ((fddmtr.curevent) && (time >= fddmtr.nextevent)) {          if ((fddmtr.curevent) && (time >= fddmtr.nextevent)) {
                 fddmtr_event();                  fddmtr_event();
Line 48  void fddmtr_callback(DWORD time) { Line 48  void fddmtr_callback(DWORD time) {
   
 void fddmtr_drvset(void) {  void fddmtr_drvset(void) {
   
         fddmtr.curdrv = fdc.drv;          fddmtr.curdrv = fdc.s.drv;
         if ((!fddmtr.eventtime[fddmtr.curdrv]) && (!fdc.motor)) {          if ((!fddmtr.eventtime[fddmtr.curdrv]) && (!fdc.s.motor)) {
                 fddmtr.eventtime[fddmtr.curdrv] = GETTICK() + 5000;                  fddmtr.eventtime[fddmtr.curdrv] = GETTICK() + 5000;
         }          }
         else if ((fddmtr.eventtime[fddmtr.curdrv]) && (fdc.motor)) {          else if ((fddmtr.eventtime[fddmtr.curdrv]) && (fdc.s.motor)) {
                 if (fddmtr.eventtime[fddmtr.curdrv] < GETTICK()) {                  if (fddmtr.eventtime[fddmtr.curdrv] < GETTICK()) {
                         fddmtr.head[fddmtr.curdrv] = 24;                          fddmtr.head[fddmtr.curdrv] = 24;
                 }                  }
Line 64  void fddmtr_motormove(void) { Line 64  void fddmtr_motormove(void) {
   
         int             regmove;          int             regmove;
   
         regmove = fddmtr.head[fddmtr.curdrv] - fdc.c;          regmove = fddmtr.head[fddmtr.curdrv] - fdc.s.c;
         fddmtr.head[fddmtr.curdrv] = fdc.c;          fddmtr.head[fddmtr.curdrv] = fdc.s.c;
         if ((!xmilcfg.MOTOR) || (xmilcfg.NOWAIT)) {          if (!xmilcfg.MOTOR) {
                 return;                  return;
         }          }
         if (regmove < 0) {          if (regmove < 0) {
Line 90  void fddmtr_motormove(void) { Line 90  void fddmtr_motormove(void) {
         }          }
 }  }
   
 void fddmtr_waitsec(BYTE value) {  void fddmtr_waitsec(UINT8 value) {
   
         if ((!xmilcfg.MOTOR) || (xmilcfg.NOWAIT)) {          if (!xmilcfg.MOTOR) {
                 return;                  return;
         }          }
         if ((fdc.r != value) && (fddmtr.curevent < 1)) {          if ((fdc.s.r != value) && (fddmtr.curevent < 1)) {
                 fddmtr_event();                  fddmtr_event();
                 fddmtr.curevent = 1;                  fddmtr.curevent = 1;
                 fddmtr.nextevent = GETTICK() + SEKSEC_MS;                  fddmtr.nextevent = GETTICK() + SEKSEC_MS;

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


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