Message-ID: <001901c0d577$954622c0$cb099d3e@iron> From: "Thomas Schachtner" To: "Eli Zaretskii" Cc: 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> Subject: Re: read a specific memory address Date: Sat, 5 May 2001 17:25:13 +0200 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.50.4133.2400 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4133.2400 Reply-To: djgpp AT delorie DOT com ----- Original Message ----- From: "Eli Zaretskii" To: "Thomas Schachtner" Cc: Sent: Saturday, May 05, 2001 4:58 PM Subject: Re: read a specific memory address > > From: "Thomas Schachtner" > > 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