Hello everyone,
Can any one tell me how to get the memory size in the real mode?
Regards
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.
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.
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.
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.
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 (http://msdn.microsoft.com/library/default.asp?url=/library/en-us/memory/base/globalmemorystatusex.asp).