Thread: TSR's in dos ????

  1. #1
    Registered User
    Join Date
    Dec 2001
    Posts
    11

    Question TSR's in dos ????

    Hi,

    id like to know how to turn a reboot program of mine into a TSR for dos thats called when the user presses "CTRL-R"

    Optional: if you what just tell me and maybe i could mail you the source for the reboot program (in "non-TSR" form)

    note: you can email me at [email protected]

  2. #2
    Registered User VirtualAce's Avatar
    Join Date
    Aug 2001
    Posts
    9,607
    In C you have to use the keep() function or use the DOS Terminate and Stay Resident function via int 21h. You will want to write your TSR in assembly. It is very hard to determine the length of your code in C. In assembly you just create a dummy segment and everything is relative to it.

    Check out Randall Hyde's art of assembly language programming book for info on TSRs. The concept is very simple but there is a lot involved: DOS re-entrancy issues, safe/correct loading/unloading, and much more.

    His book is on the net - look it up on search engine to find the site.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. File systems?? (Winxp -> DOS)
    By Shadow in forum Tech Board
    Replies: 4
    Last Post: 01-06-2003, 09:08 PM
  2. winver, winminor, winmajor can it be found from dos?
    By ronin in forum A Brief History of Cprogramming.com
    Replies: 2
    Last Post: 10-02-2002, 10:32 AM
  3. real mode dos & win dos
    By scott27349 in forum A Brief History of Cprogramming.com
    Replies: 26
    Last Post: 08-19-2002, 06:15 AM
  4. DOS program versus DOS console program
    By scromer in forum A Brief History of Cprogramming.com
    Replies: 4
    Last Post: 01-10-2002, 01:42 PM
  5. Shut off DOS screen automatically to Windows
    By Unregistered in forum A Brief History of Cprogramming.com
    Replies: 2
    Last Post: 11-08-2001, 07:14 PM