www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1998/10/08/19:36:16

Date: Thu, 1 Oct 1998 21:39:41 +0300 (IDT)
From: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
X-Sender: eliz AT is
To: "Miles F. Bintz Ii" <bintzimf AT clarkson DOT edu>
cc: djgpp AT delorie DOT com
Subject: Re: Access phys. mem above 1 meg
In-Reply-To: <Pine.A41.3.96.981001110642.79082A-100000@polaris.clarkson.edu>
Message-ID: <Pine.SUN.3.91.981001213745.18395d-100000@is>
MIME-Version: 1.0

On Thu, 1 Oct 1998, Miles F. Bintz Ii wrote:

> Well, what do I do with a selector?  I don't want to use the near/far ptr
> hacks.

Why not?  farptr is very fast, as the FAQ describes.

You need to understand that there's no way for you to access that address 
without using the selector with nearptr or farptr, since that address is 
not mapped into your DS selector.

> I would like to be able to say
> 
>  char *myptr = 0xda000000
>  myptr[0] = 0xab;

This is exactly what nearptr allows you to do.  So what's the problem?

- Raw text -


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