What are address lines?

Question about which tools to use, bugs, the best way to implement a function, etc should go here. Don't forget to see if your question is answered in the wiki first! When in doubt post here.
Post Reply
Isaac
Member
Member
Posts: 66
Joined: Sat Dec 07, 2013 7:08 pm

What are address lines?

Post by Isaac »

Hi,

I understand that the ancient processors only had 20 address lines and later Intel added a 21st address line. But how much memory do I gain by enabling the A20 line? And what are address lines anyway?
User avatar
dmatlack
Posts: 12
Joined: Tue Dec 17, 2013 12:32 am

Re: What are address lines?

Post by dmatlack »

When a computer needs to access memory, it needs to communicate what address it wants to access. This communication is done via the address lines. There is one address line for each bit of an address. If you want use 32-bit addresses, you need 32 address lines.

If you have 20-bits for an address, that's 2^20 possible address = 2^20 bytes = 1MB
If you enable the A20 line on a 32-bit computer, you will have 2^32 possible addresses = 2^32 bytes = 4GB.

Of course, this is all about *addressable* memory. Your physical memory limits (how much RAM you have) may obviously be different.
User avatar
VolTeK
Member
Member
Posts: 815
Joined: Sat Nov 15, 2008 2:37 pm
Location: The Fire Nation

Re: What are address lines?

Post by VolTeK »

Just in case.. you really are blind. Save your self the trouble and thousand question filled posts, and get reading.

http://wiki.osdev.org/Main_Page
User avatar
Love4Boobies
Member
Member
Posts: 2111
Joined: Fri Mar 07, 2008 5:36 pm
Location: Bucharest, Romania

Re: What are address lines?

Post by Love4Boobies »

dmatlack wrote:If you enable the A20 line on a 32-bit computer, you will have 2^32 possible addresses = 2^32 bytes = 4GB.
And if you don't, you will have 2 GiB since that's how much 2^31 is (you're only disabling one address line).
"Computers in the future may weigh no more than 1.5 tons.", Popular Mechanics (1949)
[ Project UDI ]
Post Reply