www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2000/05/11/10:51:25

Date: Thu, 11 May 2000 20:05:00 +0500 (MVT)
From: Prashant TR <prashant_tr AT yahoo DOT com>
X-Sender: tr AT vsnl DOT net DOT in
To: joe tujillo <wakko_fr AT yahoo DOT com>
cc: djgpp AT delorie DOT com
Subject: Re: crazy question!
In-Reply-To: <20000511054522.20185.qmail@web1101.mail.yahoo.com>
Message-ID: <Pine.LNX.4.10.10005111924090.799-100000@vsnl.net.in>
MIME-Version: 1.0
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

On Wed, 10 May 2000, joe tujillo wrote:

>     How could I read each byte of my RAM?
>     (from 0x00000 to finish)
>     is this possible from a aplication program?

It is possible. Use something like this:

for(i = 0; i <= end_of_ram; i++)
	_farpeekb(_dos_ds, i);

It would be better to use assembly code.
Also note that you'll have problems doing this.

You'll have to first use __djgpp_map_physical_memory
on the entire extended memory so that you overcome
protection problems.

You'll also have to identify memory holes if any.

And of course, this is possible only on plain DOS
with CWSDPMI.

So it really isn't as simple as it sounds :-(.

Prashant

- Raw text -


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