delorie.com/archives/browse.cgi | search |
X-Authentication-Warning: | delorie.com: mail set sender to djgpp-bounces using -f |
Date: | Tue, 18 Apr 2006 22:49:06 -0400 |
Message-Id: | <200604190249.k3J2n60s013817@envy.delorie.com> |
From: | DJ Delorie <dj AT delorie DOT com> |
To: | djgpp AT delorie DOT com |
In-reply-to: | <A8adnbpWz9FuPdjZnZ2dnUVZ_sednZ2d@comcast.com> (message from Eric |
on Tue, 18 Apr 2006 19:31:15 -0700) | |
Subject: | Re: dos buffer |
References: | <A8adnbpWz9FuPdjZnZ2dnUVZ_sednZ2d AT comcast DOT com> |
Errors-To: | nobody AT delorie DOT com |
X-Mailing-List: | djgpp AT delorie DOT com |
X-Unsubscribes-To: | listserv AT delorie DOT com |
> I looked at __dpmi_allocate_dos_memory but it gets you a selector > and I dont know what to do to convert that to a pointer You do exactly what you do with the tb - either use farptr/nearptr, or dosmemput/dosmemget. DOS memory is *not* part of your regular memory, you can't just "convert" such selectors to pointers. You have to go through the same tricks to switch from the virtual memory your program uses to the physical memory DOS uses, both for the transfer buffer and for any other DOS memory you allocate (low memory, high memory, or XMS memory).
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |