PSP3D Left Header
PSP3D Header Right
PSP3D Logo CraveOnline Logo
Help the PSP 3D community grow!
Vote for us below:


Vote on the PSP Top 200
PSP Top 200 - Games, Videos, Wallpapers, Files, Hacks, Homebrew

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!

Go Back PSP3D.com - Sony PlayStation Portable News, Homebrew, Hacks, Reviews, Videos, Mods, Forums > Main > Off Topic

Reply
 
LinkBack Thread Tools Display Modes
  #11 (permalink)  
Old 06-14-2006, 05:09 PM
mattmanslim mattmanslim is offline
Member
 
Join Date: Nov 2005
Posts: 57
Points: 1.11
Donate
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.
Reply With Quote
  #12 (permalink)  
Old 06-14-2006, 06:12 PM
w15hb0n3's Avatar
w15hb0n3 w15hb0n3 is offline
Member
 
Join Date: Feb 2006
Posts: 63
Points: 52.47
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.
Reply With Quote
  #13 (permalink)  
Old 06-14-2006, 06:53 PM
dtrmad2004's Avatar
dtrmad2004 dtrmad2004 is offline
Member
My Mood:
 
Join Date: Dec 2005
Location: PSP 1.5 hell!
Posts: 50
Points: 2.03
Donate
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
Reply With Quote
  #14 (permalink)  
Old 06-14-2006, 07:03 PM
Cascade Cascade is offline
Junior Member
 
Join Date: Jan 2006
Age: 23
Posts: 27
Points: 0.04
Donate
@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
Reply With Quote
  #15 (permalink)  
Old 06-15-2006, 12:09 AM
Michael M.'s Avatar
Michael M. Michael M. is offline
Teh h4x0r admin
My Mood:
 
Join Date: Feb 2006
Location: New York
Age: 25
Posts: 961
Points: 9,999,500,270.28
Donate
Send a message via AIM to Michael M. Send a message via MSN to Michael M.
Oh God... I just had a geekgasm.
Reply With Quote
  #16 (permalink)  
Old 06-15-2006, 12:26 AM
w15hb0n3's Avatar
w15hb0n3 w15hb0n3 is offline
Member
 
Join Date: Feb 2006
Posts: 63
Points: 52.47
Donate
Ah crap, yea that was a typo on my part.
Reply With Quote
  #17 (permalink)  
Old 06-15-2006, 03:00 AM
natie_rules's Avatar
natie_rules natie_rules is offline
Member
 
Join Date: Jan 2006
Posts: 32
Points: 2.02
Donate
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!
Reply With Quote
  #18 (permalink)  
Old 06-15-2006, 11:40 PM
mfaheypride's Avatar
mfaheypride mfaheypride is offline
Senior Member
 
Join Date: Nov 2005
Posts: 391
Points: 39.65
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.
__________________
Reply With Quote
  #19 (permalink)  
Old 06-16-2006, 12:57 AM
Christen Christen is offline
Senior Member
 
Join Date: Nov 2005
Posts: 139
Points: 12.64
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
Reply With Quote
  #20 (permalink)  
Old 06-16-2006, 01:02 AM
nashsclay's Avatar
nashsclay nashsclay is offline
Senior Member
My Mood:
 
Join Date: Dec 2005
Location: Sioux Falls, SD
Age: 19
Posts: 275
Points: 12.01
Donate
Send a message via AIM to nashsclay Send a message via MSN to nashsclay Send a message via Yahoo to nashsclay
Yah I've always wonder this too.
__________________

+Field Commander
+Lord of the Rings: Tactics
+Daxter
+World Tour Soccer
http://sio.midco.net/inash/numa/Numa%20Nate_2005.wmv

MY NUMA NUMA VIDEO! WATCH IT!
Reply With Quote
Reply

« force pixel shader to 2.0? | Firefox »



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Points Per Thread View: 0.00
Points Per Thread: 1.00
Points Per Reply: 0.10





Crave Partner Sites: CraveOnline.com | DVDFile.com | PSP3D.com | ComingSoon.net | SuperHeroHype.com | RedBalcony.com | ActionTrip.com | CraveLyrics.com
Soundtrack.net | CraveFix.com | SpikedHumor.com | RPGamer.com | TattooNow.com | ImpactWrestling.com | SeekLyrics.com | PedalBMX.com | WildKO.com
vidKing.com | StrategyInformer.com | HHdb.com | RapLeagues.com | HipHop-Lyrics.com | Cravecocktails.com | ThePhatPhree.com | RideJudge.com | HottieSpots.com

PSP3D Footer Left Powered by Custom vB Version 5.1.0 for Crave Online Media, LLC.
Copyright © 2000 - 2007, Jelsoft Enterprises Ltd. and PSP3D.com.
LinkBacks Enabled by vBSEO 3.0.0 RC8

All times are GMT -4. The time now is 02:37 PM.
PSP3D Footer Right