Date: Thu, 11 May 2000 20:05:00 +0500 (MVT) From: Prashant TR X-Sender: tr AT vsnl DOT net DOT in To: joe tujillo cc: djgpp AT delorie DOT com Subject: Re: crazy question! In-Reply-To: <20000511054522.20185.qmail@web1101.mail.yahoo.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII 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 Precedence: bulk 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