home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #16 / NN_1992_16.iso / spool / comp / os / msdos / programm / 8163 < prev    next >
Encoding:
Internet Message Format  |  1992-07-29  |  1.1 KB

  1. Path: sparky!uunet!zaphod.mps.ohio-state.edu!malgudi.oar.net!uoft02.utoledo.edu!jupiter!billp
  2. Newsgroups: comp.os.msdos.programmer
  3. Subject: Re: TSR novice
  4. Message-ID: <1992Jul29.220353.9050@uoft02.utoledo.edu>
  5. From: billp@jupiter.cse.utoledo.edu (bill parquet)
  6. Date: 29 Jul 92 22:03:53 EST
  7. References: <1992Jul12.220728.25971@vela.acs.oakland.edu>
  8. Nntp-Posting-Host: jupiter.cse.utoledo.edu
  9. Lines: 13
  10.  
  11. I don't see why it would be any different.  There are a couple of things
  12. that you should be careful about when linking more than one module:
  13.  
  14. 1) Foremost ... Make sure that your program knows how big it is.  You could
  15. hardcode it into the program (this makes things a real pain when modifying)
  16. or you could make the program autodetect its size.  I prefer the latter
  17. approach.  When you do it that way, pay particular attention to the way
  18. your modules are linked (If you have a "lastbyte" variable in one module,
  19. make sure this module occurss last when you link)
  20.  
  21. 2) Beside the point ... Be careful about using DOS functions.  Unless you
  22. really MUST use a dos function (e.g. file i/o) try to avoid it.
  23.  
  24.