/TRAINING

Binary Trainer

Binary stops being scary once you watch the place values light up. Flip bits, run the logic, see the number.

one byte, eight switches

A byte is eight bits, each a switch that is either 0 or 1. Every column has a fixed place value128 64 32 16 8 4 2 1. Flip a bit on and you add its place value to the total. Click the switches, or type a number, and watch it happen.

bitwise logic: AND · OR · XOR · NOT

The same switches drive the logic operators routers and firewalls run millions of times a second. Pick an operation, set the two operands, and read the result column by column.

EOF