![]() |
|
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 | ||
|
Newbie
Join Date: Aug 2007
Posts: 7
Rep Power: 0
![]() |
the cpu's memory addressing
hi all
i am little confused about memory addressing the 8080 processor can address 64k but it can only process 1byte Quote:
there is no relation between the number of address lines in a memory system and the size of the data stored at each location and still has 16 address lines?? Quote:
like i said before it can address 64k but it can process 8bit(1byte) ? so what is the difference ? thanks in advance |
||
|
|
|
|
|
#2 |
|
Professional Programmer
|
Addressing and processing are two entirely different things. Addressing is the location of the data and processing is, well what you do to the data.
__________________
JG-Webdesign |
|
|
|
|
|
#3 | |
|
Newbie
Join Date: Aug 2007
Posts: 7
Rep Power: 0
![]() |
that was fast
Quote:
does it take allot of time to address 8bits ? i know that 1bit takes 70nano second so i guess 1 byte will take 70*8=560 nanosecond am i thinking wrong ? thanks for your replay any way |
|
|
|
|
|
|
#4 |
|
Newbie
Join Date: Aug 2007
Posts: 7
Rep Power: 0
![]() |
one more thing
what if a program require more than 64k of memory :s fuzzy :s |
|
|
|
|
|
#5 | |
|
Newbie
Join Date: Aug 2007
Posts: 7
Rep Power: 0
![]() |
it takes more time if the processor address 1byt each time to fetch 1byt each time
instate it address 64k and reading from it each time using the ip(instruction pointer) but wait doesn't the ip save the address of the next place to fetch from the address ? so it will address this memory again :-| Quote:
|
|
|
|
|
|
|
#6 |
|
Resident Grouch
![]() ![]() ![]() ![]() ![]() ![]() Join Date: Jun 2005
Posts: 6,453
Rep Power: 10
![]() |
Odin, you are being a little bit dumb here. I may build a post office that serves 2000 people. Each post office box is designed to hold only one letter. If I work with the contents of one PO Box, I have only one letter. I can still choose to operate on any one of 2000 PO boxes. Therefore, I can operate on up to 2000 different letters (values).
The ip is one thing. It addresses instructions in sequence, unless instructed to jump. Memory addresses are another thing entirely. They are not instructions, but operands. I don't know if you are unwilling to apply serious thought to tutorial materials, or if you are incapable of understanding simple precepts. If it takes actual experience to make you understand, then you need to learn about hardware logic and build a microprocessor from scratch. You'll either figure it out, or go have your hand fitted for a mop and settle for janitorial duties.
__________________
Abstraction doesn't make it impossible to write bad code; it makes it possible to write superior code. Contributor's Corner: Grumpy on C++ Exceptions DaWei on Pointers |
|
|
|
|
|
#7 | |
|
Newbie
Join Date: Aug 2007
Posts: 7
Rep Power: 0
![]() |
thanks for let me know i am dump
i am just jokingsorry for bothering you post office that serves 2000 --> processor serves 2000 bit of memory post office box is designed to hold only one letter --> the address line that contain the address of the bit can still choose to operate on any one of 2000 PO boxes --> bits of the memory i am trying to organize my mind ![]() first of all 16bit address lines can serve 64k bit how ? i searched on googlde and i found http://www.pcguide.com/vb/archive/in...p/t-30381.html this man says that Quote:
that's one step so when the book says address lines address 64k of memory means that it can access it and fetch from it so that's why also the cpu can put more than 8bit in one location because it can access 64k of memory that's another step thanks allot and i hope if there is something wrong you will tell me |
|
|
|
|
|
|
#8 | |
|
Newbie
Join Date: Aug 2007
Posts: 7
Rep Power: 0
![]() |
Quote:
or maybe give me some keywords and i will search can i ask you a favor ? can you tell me where i can find a place i can start in electronics from 0 so that i can understand this much better ? thanks in advance Last edited by odin; Aug 13th, 2007 at 5:58 PM. |
|
|
|
|
|
|
#9 |
|
Professional Programmer
|
__________________
JG-Webdesign |
|
|
|
|
|
#10 |
|
Caffeinated Neural Net
Join Date: Jun 2005
Location: Wet west coast of Canada
Posts: 887
Rep Power: 4
![]() |
Think of it this way. Imagine you have one of those CD players that can hold 200 discs. Thus, you can say that it has an addressing range of 200 units (discs, in this case). The unit can, however, only play (process) one disc at a time, much as the 8-bit processor can only process byte values.
The data bus dictates the size of operands, ie memory quantities (and often, but not always, register width). The address bus dictates the number of memory operands that can be accessed- not how many can be accessed at once, but how many can be accessed, period. Remember that the data bus determiens the size, in bits, but the address bus determines the number of locations. Each location is typically several bits (often eight), and called a byte. A byte is the smallest quantity that you can address directly; if you want to access an individual bit within that byte, you must use bit-fiddling instructions (bit-shifting, AND/OR/XOR, etc). One last thing: learn to edit your posts when you want to add content three minutes after your last post. It's much better that seeing five posts in the same thread from the same person in a five-minute span.
__________________
A man's knowledge is like an expanding sphere, the surface corresponding to the boundary between the known and the unknown. As the sphere grows, so does its surface; the more a man learns, the more he realizes how much he does not know. Hence, the most ignorant man thinks he knows it all. - L. Sprague de Camp |
|
|
|
![]() |
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Hexadecimal Memory Address Question | 357mag | C++ | 1 | Jul 8th, 2007 9:19 PM |
| Heap vs. Stack memory | Eric the Red | C++ | 11 | Oct 24th, 2006 6:18 PM |
| When to use the new keyword in C++? | titaniumdecoy | C++ | 28 | Mar 16th, 2006 12:36 PM |
| Pointers in C (Part II) | Stack Overflow | C | 2 | Apr 29th, 2005 10:39 AM |
| Pointers in C (Part I) | Stack Overflow | C | 4 | Apr 28th, 2005 7:03 PM |