Free2Code
 
Time: 2008-12-04, 08:32pm
How do I determine the RAM size directly
Subject: How do I determine the RAM size directly  ·  Posted: 2004-07-20, 05:41pm
Rank: Unregistered
Hi! Could you tell me how to determine the Memory size without using BIOS? Thanks.
 
  Reply to this ·  Post link ·  Top
Subject: Re: How do I determine the RAM size dire  ·  Posted: 2004-08-03, 04:52pm
Rank: ? (200)
Member #: 9404
You could just try writing on the memory sequentially. When you get an error, it does not exist!

ie:
write on the last bit of the 128th MB. if error then machine has less than 128 MB ram.
write on last bit of 64th MB. if error then machine has less than 64 MB ram.

write on last bit of 32nd MB. if not error then machine has MORE than 32 MB ram.
write on last bit of 48th MB

. . . etc

Creepy and crappy round about way, no doubt, but it's all I can think of right now!

:-o :-o :-o Don't judge me !
 
  Reply to this ·  Post link ·  Top
Subject: Re: How do I determine the RAM size directly  ·  Posted: 2005-08-03, 04:02pm
Rank: ? (1)
Member #: 24918
Yes,just that.But in protected mode,you should define the system GDT data limit as 4G.
or you will get a general protection exception.

 
  Reply to this ·  Post link ·  Top

Pages: 1

Please login or register to post a reply.

icons