Mail Archives: djgpp/2000/05/11/10:51:25
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 -