🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.os.msdos.programmer
Article #1013

Borland C++ calling XMS Driver

#1013
From: Rick Wagner
Date: Fri, 28 Aug 1992 01:10
19 lines
1284 bytes
I'm using Borland C++ v3.1 and I'm trying to interface to the XMS driver.  
Straight from the interrupt list this is what I have to do.

Set AX=4310h and INT 2F.  This will return the address of the XMS
driver in ES:BX.  I can call this function with an INT86x and get the 
address returned (confirmed) but I can't figure out how to call the XMS 
driver at ES:BX.  I read the longjump stuff in the manual and I'm now 
totally confused.

If anybody can give me some hints how to call this when ES and BX are stored 
in seperate variables it would be most appreciated.

BTW: before the call to the XMS driver, BL must be set to 0, and AH is set 
to 08h.  The function returns the amount of XMS in AX.

Thanks.
Rick Wagner
wagner@main.mndly.umn.edu
Technical Details
Message-ID: <wagner.814.714964209@main.mndly.umn.edu>
Path: arc1-ca.pugleaf.net!sparky!uunet!zaphod.mps.ohio-state.edu!uakari.primate.wisc.edu!caen!news.cs.indiana.edu!umn.edu!EDP15.mndly.umn.edu!wagner

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!sparky!uunet!zaphod.mps.ohio-state.edu!uakari.primate.wisc.edu!caen!news.cs.indiana.edu!umn.edu!EDP15.mndly.umn.edu!wagner
From: wagner@main.mndly.umn.edu (Rick Wagner)
Newsgroups: comp.os.msdos.programmer
Subject: Borland C++ calling XMS Driver
Message-ID: <wagner.814.714964209@main.mndly.umn.edu>
Date: 28 Aug 92 01:10:09 GMT
Sender: news@news2.cis.umn.edu (Usenet News Administration)
Organization: the Minnesota Daily (U of MN Student Newspaper)
Lines: 19
Nntp-Posting-Host: edp15.mndly.umn.edu