answersLogoWhite

0


Best Answer

The core of computing is binary encoding. The premise is that each of the transistor switches is either on of off, represented by 1 or 0. Each bit is a BInary digiT.

Each of these switches is more-or-less useless on its own. However, you can arrange them in a sequence to get some logic.

Humans use hexadecimal representation as a form of shorthand for binary. That's a 16-base number system that goes from 0-9 then a-f, then rolls over from 0f to 10.

When you write a computer program, the compiler converts your code into opcode, a hex representation of the binary stream. The CPU interprets the opcodes and follows the program, manipulating bits in the accumulator section. In other words, it reads the binary code and uses that code to switch bits on and off in its "brain". The outgoing data is then sent to various locations in the computer, such as to the sound card, video card, hard disk, RAM, etc. You can do this by mapping each location to a virtual location in the computer. For example, you could set the address 0x2000 to be the sound card, and when you write the data 0x5e41 to 0x2000, the sound card will interpret that data and put out an analog signal to the speakers. You could also read the data at location 0x3000 to see what's on that location in the hard drive. (for example)

The exact details require several years of study. The CPU does not "interpret opcodes" binary codes of 0's and 1's is just a DISPLAY for humans that tells them what is on and what is off for a particular instruction, transistors being switched on and off determine what happens inside a computer.

User Avatar

Wiki User

14y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: How do computers use binary coding?
Write your answer...
Submit
Still have questions?
magnify glass
imp