Menu
Coddy logo textTech

Why Binary?

Part of the Fundamentals section of Coddy's Assembly journey — lesson 7 of 45.

Computers use electricity. But electricity is not perfect — voltage fluctuates and there is noise.

If computers tried to use 10 different voltage levels (0V, 1V, 2V... 9V) to represent digits 0-9, they would constantly make mistakes.

The solution: use only two voltage levels.

  • Off (0 volts) = 0
  • On (5V, 3.3V, or 1.8V) = 1

This is called binary. Only two symbols: 0 and 1.

Basic terms:

  • Bit = one binary digit (0 or 1)
  • Byte = 8 bits

Everything in a computer is binary:

  • The letter 'A' = 01000001
  • The number 42 = 00101010
  • An instruction like mov = some binary pattern

Try it yourself

This lesson doesn't include a code challenge.

quiz iconTest yourself

This lesson includes a short quiz. Start the lesson to answer it and track your progress.

All lessons in Fundamentals