delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2000/04/02/10:50:38

Date: Sun, 2 Apr 2000 10:44:20 +0200 (IST)
From: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
X-Sender: eliz AT is
To: djgpp AT delorie DOT com
Subject: Re: VBE question
In-Reply-To: <054a4830.80e90c42@usw-ex0105-036.remarq.com>
Message-ID: <Pine.SUN.3.91.1000402104406.9367g-100000@is>
MIME-Version: 1.0
Reply-To: djgpp AT delorie 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

On Wed, 29 Mar 2000, batchex wrote:

> LFBPtr = the mapped address returned by int 31h func. 800h
>          ((ebx << 16) + (ecx & 0xFFFF))
> for(i=0;i<width;i++)
>   LFBPtr[i] = some value
> 
> This approach crash my program.

As expected: mapping the memory with function 0800h doesn't allocate
a descriptor for accessing that memory.

> I've read somewhere that I have to allocate a descriptor for use
> with the mapped address. But at what base address? limit?

I think section 18.7 of the DJGPP FAQ answers this and other related
questions, and includes a code example that shows how to do this.

- Raw text -


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