How Can we Determin Memory Size?

Started by HATEM, December 31, 2004, 10:23:50 PM

Previous topic - Next topic

HATEM


Hello everyone,

Can any one tell me how to get the memory size in the real mode?


Regards

MichaelW

You can download an example program from the old forum:

http://www.masmforum.com/viewtopic.php?t=3388

But as I noted in your "I need help" thread, this will not work under Windows 2000 or XP.

eschew obfuscation

HATEM

Thank you for your reply. But as u said Interrupt 15h, Function E820h is not supported under Windows 2000/XP.So i dont think that this will help.

masmer


Microsoft Windows stores the size of the memory in offset 040:0413h but i am not very sure that it works all the time.I hope that i gave you some help.

masmer

Sorry i didnt mention that you must get a word size and convert the hex value to decimal which will give you the memory size in MB.

MichaelW

Quote from: HATEM on January 01, 2005, 09:28:05 AM
Thank you for your reply. But as u said Interrupt 15h, Function E820h is not supported under Windows 2000/XP.So i dont think that this will help.

For 2000/XP try here.
eschew obfuscation