Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Programming > Assembly x86 > How to determin...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 1 of 8 Topic 4483 of 4826
Post > Topic >>

How to determine the total size of the RAM in pure assembly language?

by xmllmx <spamtrap@[EMAIL PROTECTED] > Jan 9, 2008 at 11:11 PM

I'm curious to know how to check the RAM size installed on the machine
in x86 assembly language.

In addition, there is a related question in my mind: Must the physical
addresses of the RAM be contiguous? For example, provided that I have
two RAM chips and the size of each is 16M, my PC's mainboard has 3
slots to install RAM chips, let me number them as slot 0, slot 1, and
slot 2. Assuming the addressing hardware numbers the address space
from slot0 through slot2 (i.e. physical address 0 will be allocated to
slot0 if it is equipped with a RAM chip). If I plug the two RAM chips
into slot0 and slot2, and let slot1 empty. In this case, is the first
32M of the physical address space contiguous?

I guess (am not very sure) the addressing hardware will guarantee the
physical address space to be contiguous. For example, if the total RAM
size is 32M, then the physical addresses from 0 to 32M are always
addressable, no matter which slots the RAM chips occupy. Am I correct?

Any help will be highly appreciated. Thanks in advance!
 




 8 Posts in Topic:
How to determine the total size of the RAM in pure assembly lang
xmllmx <spamtrap@[EMA  2008-01-09 23:11:55 
Re: How to determine the total size of the RAM in pure assembly
"Benjamin David Lunt  2008-01-10 14:17:49 
Re: How to determine the total size of the RAM in pure assembly
Bjarni Juliusson <spa  2008-01-10 15:31:30 
Re: How to determine the total size of the RAM in pure assembly
s_dubrovich <spamtrap@  2008-01-10 11:59:54 
Re: How to determine the total size of the RAM in pure assembly
xmllmx <spamtrap@[EMA  2008-01-10 18:08:25 
Re: How to determine the total size of the RAM in pure assembly
Tim Roberts <spamtrap  2008-01-12 04:22:35 
Re: How to determine the total size of the RAM in pure assembly
"Alexei A. Frounze&q  2008-01-13 01:03:48 
Re: How to determine the total size of the RAM in pure assembly
Tim Roberts <spamtrap  2008-01-13 22:59:47 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Wed Oct 15 22:18:30 CDT 2008.