Ignore:
Timestamp:
Jul 3, 2010, 7:48:26 PM (15 years ago)
Author:
David Azarewicz
Message:

added debug counters

File:
1 edited

Legend:

Unmodified
Added
Removed
  • OCO/trunk/drv16/strategy.cpp

    r478 r497  
    436436#pragma aux StrategyHandler parm [es bx];
    437437
     438#ifdef DEBUG
     439unsigned long DbgU16StrategyCnt = 0;
     440#endif
     441
    438442extern "C" void __far StrategyHandler(PREQPACKET prp)
    439443{
     
    446450   }
    447451
     452#ifdef DEBUG
     453        DbgU16StrategyCnt++;
     454#endif
     455
    448456   switch (prp->bCommand) {
    449457      case STRATEGY_INIT:
     
    472480         prp->usStatus = RPDONE | RPERR | RPGENFAIL;
    473481   }
     482#ifdef DEBUG
     483        DbgU16StrategyCnt--;
     484#endif
    474485}
    475486
     
    489500       return;
    490501   }
     502
     503#ifdef DEBUG
     504        DbgU16StrategyCnt++;
     505#endif
     506
    491507   switch (prp->bCommand) {
    492508      case STRATEGY_INIT:
     
    513529         prp->usStatus = RPDONE | RPERR | RPGENFAIL;
    514530   }
    515 }
     531#ifdef DEBUG
     532        DbgU16StrategyCnt--;
     533#endif
     534}
Note: See TracChangeset for help on using the changeset viewer.