delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2001/05/08/10:53:37

From: "Thomas Schachtner" <thomas DOT schachtner AT gmx DOT de>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: read a specific memory address
Date: Tue, 8 May 2001 15:46:04 +0200
Organization: Deutsche Telekom AG
Lines: 29
Message-ID: <9d8src$9kc$1@news2.dtag.de>
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> <1659-Sat05May2001211357+0300-eliz AT is DOT elta DOT co DOT il>
NNTP-Posting-Host: masked-user.toshiba-tro.de
X-Trace: news2.dtag.de 989329068 9868 194.25.188.1 (8 May 2001 13:37:48 GMT)
X-Complaints-To: usenet AT news DOT dtag DOT de
NNTP-Posting-Date: 8 May 2001 13:37:48 GMT
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 5.50.4522.1200
X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4522.1200
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

"Eli Zaretskii" <eliz AT is DOT elta DOT co DOT il> wrote in message
news:1659-Sat05May2001211357+0300-eliz AT is DOT elta DOT co DOT il...
> > 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.

I read the FAQ and the program works fine - with Windows 98 and Windows Me!
On Windows 2000 it just reads the values i get via the _dos_ds selector.
When I want to allocate a selector in the high address space the program
stops without any error messages or warnings...

strange...

Best regars
Tom


- Raw text -


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