delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2001/05/05/14:14:28

Date: Sat, 05 May 2001 21:13:58 +0300
From: "Eli Zaretskii" <eliz AT is DOT elta DOT co DOT il>
Sender: halo1 AT zahav DOT net DOT il
To: "Thomas Schachtner" <thomas DOT schachtner AT gmx DOT de>
Message-Id: <1659-Sat05May2001211357+0300-eliz@is.elta.co.il>
X-Mailer: Emacs 20.6 (via feedmail 8.3.emacs20_6 I) and Blat ver 1.8.9
CC: djgpp AT delorie DOT com
In-reply-to: <001901c0d577$954622c0$cb099d3e@iron> (thomas.schachtner@gmx.de)
Subject: Re: read a specific memory address
References: <9cp464$ju8$1 AT news2 DOT dtag DOT de> <9cp8nj$ap6$1 AT nets3 DOT rz DOT RWTH-Aachen DOT DE> <9cu780$5rr$1 AT news2 DOT dtag DOT de> <3028-Fri04May2001183719+0300-eliz AT is DOT elta DOT co DOT il> <000c01c0d56e$77a9a7e0$cb099d3e AT iron> <9003-Sat05May2001175837+0300-eliz AT is DOT elta DOT co DOT il> <001901c0d577$954622c0$cb099d3e AT iron>
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

> From: "Thomas Schachtner" <thomas DOT schachtner AT gmx DOT de>
> Date: Sat, 5 May 2001 17:25:13 +0200
>
> There was a address (32 bit format) which was 0x0BFF0000.
> Then I just used _dos_ds as selector and used 0x0BFF0000 as offset. As I
> wanted to access (read) this memory value I got an error.
> So I think that I need another selector, because this memory area is beyond
> DOS's 1MB border...

Yes, _dos_ds is defined to span the first 1MB (plus 64KB).  If you
need to read memory above 1MB mark, you will have to create your own
selector and use it instead of _dos_ds in the call to _farpeekb.  The
two sections of the FAQ I cited explain how to do that, and show
examples of working code.

- Raw text -


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