What are the things that I should be familiar with to make my own computer that can add two numbers, in the same way that happens in a calculator? Can anyone please give me links that teach these things in detail? I know how to program but have never programmed at the root level.
|
closed as off topic by Jonathan Khoo, Walter, Anna Lear♦ Aug 25 '11 at 12:34
Questions on Programmers Stack Exchange are expected to relate to software development within the scope defined in the FAQ. Consider editing the question or leaving comments for improvement if you believe the question can be reworded to fit within the scope. Read more about closed questions here.
|
The "real" answer would be to get a book like Computer Architecture: A Quantitative Approach, read up on binary arithmetic, adders (half, full, ripple carry, etc), understand quite a bit of detail, and then implement everything. That seems like overkill because you don't really want to design a full fledged computer - you want to make a limited system that can mainly add two numbers. So instead, why not implement a computer in a programming language? In intro CS, I had the chance to implement a TC-201 machine using Scheme.
Check out this PDF for more information. This will allow you to put in two variables, issue an ADD instruction, SUB, etc. It's not the same as building a real computer from scratch, but it'll help you understand assembly language (to an extent), and you can implement your own adders, and learn most of the stuff that you'd learn from making your own (aside from the hardware aspects). |
|||
|
|
If you really wish to do this via hardware, I would suggest going out and buying Code by Charles Petzold. The book starts of with a nice explanation of what binary is and how it ties into... well everything and then jumps right into the hardware aspects. If I recall correctly, he even provides the part numbers for what you need (but I do not have my copy of my book with me at the moment so can't say this for sure). |
|||
|
|
|
There are a load of good articles on howstuffworks.com Adders are here. But you probably want to start with Electronic Gates, if you don't know it already. Prepare to follow a lot of links to a lot of text, but it's well-written so will be fun if you are interested (which I assume you are, if you're asking). |
|||
|
|
