hi i would like to write a simple memory test program. to start with one that just tests the first base 640k. any ideas / help /code???
thanks,
ed.
memory test
RE:memory test
usually you go through every memory location. you write a bitpattern
(like 0x55) then you write the inverted bitpattern (in that case 0xAA) and read that written value back. then that memory location sould contain 0xAA - now, do this for every location (the whole physical memory).
but that pattern is not the only one. as the bits of the memory on the silicon chips somehow influence each other, the memory-error might only happen with a special bit-combination. so, you should test all bitpatterns. so, write 0x00, then 0xff, read it and compare to 0xff. same with 0x01 and 0xfe and so on.
finally you could optimize it and use dwords for testing (or qwords on a 64bit machine).
greets, hartyl
(like 0x55) then you write the inverted bitpattern (in that case 0xAA) and read that written value back. then that memory location sould contain 0xAA - now, do this for every location (the whole physical memory).
but that pattern is not the only one. as the bits of the memory on the silicon chips somehow influence each other, the memory-error might only happen with a special bit-combination. so, you should test all bitpatterns. so, write 0x00, then 0xff, read it and compare to 0xff. same with 0x01 and 0xfe and so on.
finally you could optimize it and use dwords for testing (or qwords on a 64bit machine).
greets, hartyl