home *** CD-ROM | disk | FTP | other *** search
- Inline(
- {;****************************************************************************;}
- {; S T A Y R S T R . I N C ;}
- {; ;}
- {; This is the StayRstr.Inc file included above ;}
- {;****************************************************************************;}
- {;Version 4.00}
- { ; Inline Code to restore the stack and regs moved}
- { ; to the Turbo Resident Stack which allows}
- { ; Turbo Terminate & Stay Resident programs.}
- { ; Copr. 1985, 1986}
- { ; Author: Lane Ferris}
- { ; - The Hunter's Helper -}
- { ; Distributed to the Public Domain for use without profit.}
- { ; Original Version 5.15.85}
- {;----------------------------------------------------------------------;}
- {; Restore the Dos (or interrupted pgm) Regs and Stack ;}
- {;----------------------------------------------------------------------;}
- $FA { CLI}
- /$07 { Pop Es}
- /$5F { Pop Di}
- /$5E { Pop Si}
- /$5A { Pop Dx}
- /$59 { Pop Cx}
- /$5B { Pop Bx}
- /$58 { Pop Ax}
- /$2E { CS:}
- /$80/$26/>STATUS/<FOXS-INUSE-HOTKEY_ON{ And by [<Status],<Foxs-Inuse-HotKey_on ; Clear INUSE flag}
- /$2E { CS: ; .. and HotKey}
- /$8E/$1E/>DOSDSEG { Mov DS,[<DosDSeg]}
- /$2E { CS:}
- /$8E/$16/>DOSSSEG { Mov SS,[<DosSSeg]}
- /$2E { CS:}
- /$8B/$26/>DOSSPTR { Mov SP,[<DosSPtr]}
- /$5D { Pop Bp ; Remove Bp,Sp from Procedure entry}
- /$5D { Pop Bp}
- /$FB { STI ; enable interrupts}
- /$C3 { RET}
- {;.......................................................................}
- );
-