home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #30 / NN_1992_30.iso / spool / comp / os / msdos / programm / 11340 < prev    next >
Encoding:
Internet Message Format  |  1992-12-11  |  920 b 

  1. Path: sparky!uunet!elroy.jpl.nasa.gov!swrinde!emory!wa4mei!nanovx!mycro!scott
  2. From: scott@mycro.UUCP (Scott C. Sadow)
  3. Newsgroups: comp.os.msdos.programmer
  4. Subject: Re: sub to calc free RAM
  5. Message-ID: <1992Dec10.235957@mycro.UUCP>
  6. Date: Thu, 10 Dec 92 23:59:57 EST
  7. References: <1992Dec8.154229.9434@infonode.ingr.com> 
  8. Lines: 18
  9.  
  10. In article <1992Dec8.154229.9434@infonode.ingr.com>, fordke@infonode.ingr.com (Keith Ford) writes:
  11. >
  12. >I'm trying to calculate the amount of free RAM that is available
  13. >for a task to spawn into.  I pieced together the following subroutine
  14. >based upon a "mem" program.  This is going into a Borland library
  15. >using the small memory model.  I get a warning on the line "MOV AX,ES:[3]"
  16. >saying "Pointer expression needs brackets."
  17. >
  18. > (stuff deleted)
  19. >
  20.  
  21.  
  22.    In IDEAL mode in TASM, you need to type "MOV AX,[ES:3]" instead"
  23.  
  24.  
  25.    Scott C. Sadow
  26.    scott@mycro.UUCP
  27.    ...gatech!nanovx!mycro!scott
  28.