| CodeGuru Home | VC++ / MFC / C++ | .NET / C# | Visual Basic | Newsletters | VB Forums | Developer.com |
|
|||||||
| Assembly Questions and Answers for Assembly here! |
![]() |
|
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
Read the Total System RAM
Hi
i am facing a problem like how to read system physical RAM size from the BIOS. can anyone please suggest me. regards vamsi.k |
|
#2
|
|||
|
|||
|
Re: Read the Total System RAM
use
int 15h, ax=e820h or (for older bioses): int 15h, ax=e801h for details see RBIL |
|
#3
|
|||
|
|||
|
Hi
ok fine but the problem is for 16 bit i got Total Memory Size using following program. outportbyte(0X70,0X15); MEMORYSIZE = inportbyte(0x71); //retrieve low byte outportbyte(0X70,0X16); MEMORYSIZE += inportbyte(0x71) << 8; //retrive high byte but problem is i want to read 32 bit Total ram size what is meaning of RBIL |
|
#4
|
||||
|
||||
|
Re: Read the Total System RAM
'RBIL' stands for Ralph Brown's Intterupt List, great resource for all assembly programmers.
For 32-bit Windows program use GlobalMemoryStatus or GlobalMemoryStatusEx API function Hob
__________________
B+! 'There is no cat' - A. Einstein Use [code] [/code] tags! Did YOU share your photo with us at CG Members photo gallery ? |
|
#5
|
|||
|
|||
|
Re: Read the Total System RAM
I attached an (old) source (MASM) showing how to use int 15, ax=e801h
it wont compile since the includes are missing, but you may get the idea. |
![]() |
| Bookmarks |
|
||||||
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|