Mail Archives: djgpp/2001/05/05/13:00:46
----- Original Message -----
From: "Eli Zaretskii" <eliz AT is DOT elta DOT co DOT il>
To: "Thomas Schachtner" <thomas DOT schachtner AT gmx DOT de>
Cc: <djgpp AT delorie DOT com>
Sent: Saturday, May 05, 2001 4:58 PM
Subject: Re: read a specific memory address
> > From: "Thomas Schachtner" <thomas DOT schachtner AT gmx DOT de>
> > Date: Sat, 5 May 2001 16:19:57 +0200
> >
> > sorry to write via mail, but at the moment I don't have a News server
> > connection.
>
> The mailing list djgpp AT delorie DOT com is 2-way gated into the news group
> (the mail reflector runs on DJ Delorie's server). So you may use
> djgpp AT delorie DOT com whenever you cannot access the news, and don't need
> to apologize for that.
cool!
> > I tried the _farpeekb() function and it worked fine for memory in the
"DOS
> > memory space". But outside this area it didn't work.
>
> What do you mean by ``outside this area''? Please tell what address
> did you try to access, and how did you get that address.
As Selector (or descriptor?) I used _dos_ds which returned a selector to the
real mode memory space ...
then I read bytes from F000:0000 to F000:FFFF (phys. 0x000F0000 to
0x000FFFFF)
this worked fine. 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...
Best regards
Thomas
- Raw text -