Eli5 hiw do computers understand binary

258 views

I was always fascinated by how computers work and i know that its basically just a bunch of 1 and 0s called binary code hut how do you even get a computer to even understand that in the first place

In: 0

10 Answers

Anonymous 0 Comments

Think of a merry-go-round. The horses bob up and down as it goes around and around. Imagine if there were turtles under the merry-go-round and the horses were jumping over them. You can’t see where the turtles are under the floor but your horsey goes jumps when it does find one. When the horse jumps up you yell “wee” every time it does. Your parents off to the side are recording your “weee”‘s while your high and your “awe”‘s while on the ground. Your 2 brothers, tin and frank, have a bet with your parents. Tim thinks you’ll say weee, weee, awe, wee. Frank thinks you’ll go awe, awe, wee, wee. Your parents are recording your ups and downs and tim is the winner. This causes their friends to make bets but they all want a different combination. How many combinations of 4 yells can we get? Your first yell had 2 choices, and the second yell had 2 choices, so 2*2 is 4. Another yell had 2 choices, so 8 combinations so far. Lastly your 4th yell brings us up to 16 different choices between your brothers and friends. Your parents can’t keep up with all their names so they just call them kid 0, kid 1… and lastly kid 15. You get done with a set of 4 yells and this time kid 7 won the bet. He goes down and tells his mom and dad that he got picked. There is someone recording all of this and he sees kid 7 won the bet, then kid 0, then kid 15, and then kid 2, or what he writes down 70f2. He wrote f instead of 15 because he was using graph paper and using letters (a-f) for (10, 11, 12, 13, 14, 15) was just easier. This 70f2 represented 32 of your yells. That is a 32 bit integer. The festival people have bets going on their own and 70f2 has a special meaning to them. That means Suzy needs to go trade places with marge at the front desk, Marge is needed at the main office.

All your “weee”‘s and “awe”‘s are simply strong or weak magnets on a really small magnet like the one on your fridge. They use another magnet to measure if that spot is pushing the horsey magnet up or pulling it down. They’ve even figured out how to measure not just pushing or pulling, but nearly pulling and nearly pushing, thus bundling 2 of your yells I to one recording. These bits get read off and bundled together into 32 bits and sent to some registers, like that guy in the office was doing writing down 70f2. Some of these are used in the CPU and each bit gets routed to different digital machines that control how the CPU works. You might have one machine that adds 2 numbers together, and another machine that is subtracting them. Both of their outputs can be used, but one of the bits from the 32 bits is telling it pick the addition and throw away the subtraction. All the instructions are simply routing specific bits to different machines so that the right path gets picked and the CPU does the instruction right.

You are viewing 1 out of 10 answers, click here to view all answers.