home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #19 / NN_1992_19.iso / spool / comp / os / msdos / programm / 8850 < prev    next >
Encoding:
Internet Message Format  |  1992-08-27  |  1.2 KB

  1. Path: sparky!uunet!zaphod.mps.ohio-state.edu!uakari.primate.wisc.edu!caen!news.cs.indiana.edu!umn.edu!EDP15.mndly.umn.edu!wagner
  2. From: wagner@main.mndly.umn.edu (Rick Wagner)
  3. Newsgroups: comp.os.msdos.programmer
  4. Subject: Borland C++ calling XMS Driver
  5. Message-ID: <wagner.814.714964209@main.mndly.umn.edu>
  6. Date: 28 Aug 92 01:10:09 GMT
  7. Sender: news@news2.cis.umn.edu (Usenet News Administration)
  8. Organization: the Minnesota Daily (U of MN Student Newspaper)
  9. Lines: 19
  10. Nntp-Posting-Host: edp15.mndly.umn.edu
  11.  
  12.  
  13. I'm using Borland C++ v3.1 and I'm trying to interface to the XMS driver.  
  14. Straight from the interrupt list this is what I have to do.
  15.  
  16. Set AX=4310h and INT 2F.  This will return the address of the XMS
  17. driver in ES:BX.  I can call this function with an INT86x and get the 
  18. address returned (confirmed) but I can't figure out how to call the XMS 
  19. driver at ES:BX.  I read the longjump stuff in the manual and I'm now 
  20. totally confused.
  21.  
  22. If anybody can give me some hints how to call this when ES and BX are stored 
  23. in seperate variables it would be most appreciated.
  24.  
  25. BTW: before the call to the XMS driver, BL must be set to 0, and AH is set 
  26. to 08h.  The function returns the amount of XMS in AX.
  27.  
  28. Thanks.
  29. Rick Wagner
  30. wagner@main.mndly.umn.edu
  31.