Help the PSP 3D community grow! Vote for us below:


| | Off Topic - Topics not of/relating to the PSP. |
Welcome to PSP3D.com - Sony PlayStation Portable News, Homebrew, Hacks, Reviews, Videos, Mods, Forums!
You are currently viewing our website as a guest, which gives you limited access to reply and interact to discussions and other members. By joining our free community, you will be able to post topics in the forums, communicate privately with other members, vote in polls, and access many other special features.
Registration is fast, simple, and absolutely free so join our community today!
| 
06-14-2006, 06:09 PM
| | | | hey! what is wrong with windows 3.1, i used to run that lol. i even had dos and a sinclair spectrum.
__________________ Do you want a gmail account? just PM me with your current email and i will send you an invite. | 
06-14-2006, 07:12 PM
| | Member | | Join Date: Feb 2006
Posts: 63
Points: 52.83 Donate | | | Well a simple say one function calculator is very easy. Transistors are what make it all work. A transistor has 3 leads on it, if a current is going through the center lead, then it connects the other 2 leads allowing a current to pass through them. It is possible to link transistors in such a way that we can obtain AND, OR, XOR operations as well as the negations of these operations, these are called gates. Alright now a little rundown of gates. Each gate can have many inputs but produce one output. An input or output is a 1 or a 0, 1 being that a current is flowing and 0 being that no current is flowing. Here are truth tables for the above gates:
AND
A | B | Out
0 | 0 | 0
0 | 1 | 0
1 | 0 | 0
1 | 1 | 1
OR
A | B | Out
0 | 0 | 0
0 | 1 | 1
1 | 0 | 1
1 | 1 | 1
XOR(exclusive or)
A | B |Out
0 | 0 | 0
0 | 1 | 1
1 | 0 | 1
1 | 1 | 1
Ok, those are the truth tables in the simplst form, consisting of 2 inputs (A and B) and an output (Out). Alright for the AND gate we see that the only time we get an output of 1 is when both of the inputs are one (when A 'AND' B both have currents). Otherwise we get an output of 0. Witht he OR gate we get an output when either A 'OR' B has a current going through it. Exclusive OR is a bit different. XOR gives an output of 1 when either A or B has a current, but the catch is that it can't include the other inputs. In otherwords if there are 3 inputs in order to get an output of 1 A would need a current but at the same time B and C would have to have no current, or B would need a current and A and C would have no current or C would need a current with A and B no current.
Ok now that I have explained the AND, OR, and XOR gates (rather badly...) how do we use these to add 2 binary numbers together? Simple lets take 2 numbers, 2 and 3. Added together we would obviously get 5. Lets see how this works:
2 = 0010 in binary
3 = 0011 in binary
Alright in binary there are only 2 numbers, 1 and 0 addition works the same way as it does with decimal numbers. For example 1 + 0 = 1, 0 + 0 = 0, 1 + 1 = 0. The last one might be a little confusing and I'll try to explain it. In decimal you have the numbers 0-9 so when you add 1 to 9 you get a 0 with a 1 carried over. This concept works the same way with binary since there is no number 2 in binary (only working with 0 and 1) when 1 and 1 is added together we put down a 0 and carry a 1 to the next column.
Back to the problem so we have 0010 and 0011 and we want to add them together. To do this we use an XOR gate. Take a look at the truth table again for an XOR gate, notice anything? Put a + sign between A and B and an equal sign after B and it will look like this:
0 + 0 = 0
0 + 1 = 1
1 + 0 = 1
1 + 1 = 0
notice the 1 + 1 = 0, this gate produces the correct outputs for binary addition. So in order to add our numbers together we XOR each column of the problem
0010
0011
First we have A = 0 B = 1
XOR those for an output of 1 and no value for the carry (the only time we will get a carry value is with a 1 + 1 setup)
next we have:
0010
0011
XOR 1 and 1 to get an output of 0 and a value of 1 for the carry
next is :
00+1 (from carry)10
0011
XOR 1 and 0 (we get the one because of the previous carry value) for an output of 1 with no carry value.
next we have: 0010 0011
XOR 0 and 0 to get an output of 0.
So our final answer is:
0101
which just so happens to be 5 in binary.
So there you have it a simple one function calculator. Remember the AND, OR, and XOR gates are just composed of transistors, so we have this calculator without having to write any software for it, the hardware does it all. Subtraction is the same way, but it involves adding the negative of a number. For example we want to subtract 2 from 3 (3 - 2) so really what we are doing is adding 3 to -2. So using that other gates we are able to obtain -2 in binary and we go through the steps of adding 2 numbers. Sorry for the long explanation I don't know how clear I was but I was trying to type this in a hurry. | 
06-14-2006, 07:53 PM
| | Member
My Mood: | | Join Date: Dec 2005 Location: PSP 1.5 hell! | | Quote: |
Originally Posted by pj1115 ok, but how was the calculator programmed, if
-you couldn't write the files and transfer the files from another device?
-you couldn't write code into the device, if the device couldn't support input?
-you couldn't feed code onto another device, unless another device was programmed to? | What came first, the chicken or the egg?
Need I say more lmao
Andy | 
06-14-2006, 08:03 PM
| | Junior Member | | Join Date: Jan 2006 Age: 24 | | | @w15hb0n3:
for me it's clear, but you made a mistake:
XOR(exclusive or)
A | B |Out
0 | 0 | 0
0 | 1 | 1
1 | 0 | 1
1 | 1 | 1 --> 1 | 1 | 0
but it's a very good explanation | 
06-15-2006, 01:09 AM
| | Teh h4x0r admin
My Mood: | | Join Date: Feb 2006 Location: New York Age: 26
Posts: 961
Points: 9,999,500,274.22 Donate | | | Oh God... I just had a geekgasm. | 
06-15-2006, 01:26 AM
| | Member | | Join Date: Feb 2006
Posts: 63
Points: 52.83 Donate | | | Ah crap, yea that was a typo on my part. | 
06-15-2006, 04:00 AM
| | Member | | | | | Bill Gates found the original DOS in a cave in south america,
the incas used to worship it, but he took it and incorporated it in to a computer
__________________ Xbox live? Gamertag: wilcox3
3.02 OE-B
GTA:LCS
Tony hawks
Tomb raider legends
Pro evo
Final fantasy 7   Dark_Alex rules! | 
06-16-2006, 12:40 AM
| | Senior Member | | Join Date: Nov 2005
Posts: 391
Points: 41.83 Donate | | | ok the first programs ever were typed into a flash card like thingy, this was put into a machine and was read by the machine using the batch processing thing. This was the first. It developed more from there however. Read the wiki its good. | 
06-16-2006, 01:57 AM
| | Senior Member | | Join Date: Nov 2005
Posts: 139
Points: 13.18 Donate | | | I had a PC with win 3.1 back in the day. It was an old Compaq. I never upgraded it until 2003 LOL when my family bought a new computer. I was so happy to finally have the Internet like everybody else :P
__________________ My PSP stuff Firmware:1 2.81 PSP, 1 1.5 PSP Memory Sticks:Sony 1GB, Sandisk 128 MB, Sony 32 MB UMD Games:GTA Liberty City Stories, SOCOM US Navy Seals FTB, Smackdown Versus RAW 2006, The Sims 2, Syphon Filter: Dark Mirror,Fight Night Round 3, Gretzky NHL(Don't know why everyone hates it, I like it)Tomb Raider,Tekken Dark Resserection, Me and My Katamari UMD Movies:Family Guy Volume 1, Team America: World Police,Spiderman 2 Homebrew:AFKIM,TVPSP,Devhook,SNESTYL,NesterJ,DAXZISO loader,IR Shell
| 
06-16-2006, 02:02 AM
| | Senior Member
My Mood: | | Join Date: Dec 2005 Location: Sioux Falls, SD Age: 20
Posts: 275
Points: 14.40 Donate | | | Yah I've always wonder this too. | |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | | | | Thread Tools | | | | Display Modes | Linear Mode |
Posting Rules
| You may not post new threads You may not post replies You may not post attachments You may not edit your posts HTML code is Off Points Per Thread View: 0.00 Points Per Thread: 1.00 Points Per Reply: 0.10 | | | | |