How do I preform memory testing in DOS (Assembler or C), and when I have
over 1 MB of memory
Enable the A20 gate, enter 32-bit protected mode, then write 1234h (or
whatever you want) to 2MB, then read it; if it changed successfully then
keep going & stop where it didn't read. Then turn the CACHE bit 20 of the
CR0 back on; and you have the no. of MB available on the present system
(accurite to a single MB.) To be more accurite try smaller blocks.
I use this for my OS and it works quite nicely. Hope I could help...