delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1999/11/04/06:07:44

Date: Thu, 4 Nov 1999 09:12:17 +0200 (IST)
From: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
X-Sender: eliz AT is
To: Tim Updegrove <tupdegrove AT lucent DOT com>
cc: djgpp AT delorie DOT com
Subject: Re: Allocating DOS memory in Windows
In-Reply-To: <38205BE6.B7CF872B@lucent.com>
Message-ID: <Pine.SUN.3.91.991104091153.9537P-100000@is>
MIME-Version: 1.0
Reply-To: djgpp AT delorie DOT com
X-Mailing-List: djgpp AT delorie DOT com
X-Unsubscribes-To: listserv AT delorie DOT com

On Wed, 3 Nov 1999, Tim Updegrove wrote:

> This is a followup to a question on 10/15/99.  I'm trying to get a
> program which allocates DOS memory for a DMA buffer to work when booting
> to MS-DOS and also work in a MS-DOS box under Windows 98.  I can get
> each to work in a separate program but I'm hoping to find a solution
> that works both places in a single program.

Please describe the problems that you are facing.  15 Oct was a month
ago, and I don't expect anybody to remember; I certainly don't.  Many
news feeds would not hold articles for such a long time.

> Booting to MS-DOS:
> 1. Allocate DOS memory and use the returned segment*16 for the physical
> DMA address and use the returned selector with _farpeekl and _farpookl.
> 
> In a MS-DOS box with Windows 98:
> 1. Allocate DOS memory and use the returned segment*16 for the physical
> DMA address.

Why is step 1 alone insufficient to make your program work on Windows?

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019