home *** CD-ROM | disk | FTP | other *** search
/ TopWare Tools / TOOLS.iso / tools / top1576 / gepackt.exe / SAMPLES.ZIP / SAMPLES / DINAMO.C < prev    next >
Encoding:
C/C++ Source or Header  |  1993-05-25  |  352 b   |  19 lines

  1. // "Dinamo" (Stone family) cure
  2. #include    "dlink.h"
  3.  
  4. far cure()    {    uint register    Sector, i, j1;
  5.  
  6. Sector=((uint far*)(Header+0x11))[0];
  7. j1=((uint far*)(Header+0x16))[0];
  8.  
  9. asm    {
  10.     mov    cl,5
  11.     ror    Sector,cl
  12.     mov    ax,j1
  13.     add    Sector,ax
  14.     rol    Sector,1
  15.     }
  16.  
  17. i=((uint far*)(Header+0x18))[0];
  18. return Move_AbsSect_to_Boot( (Sector%i)+1 , Sector/i );    }
  19.