Binary Decoder Race

Tap the bits to build a byte, add two bytes with a ripple-carry adder, or race the clock decoding 8-bit numbers.

0Decimal
0x00Hex
00000000Binary
0Score
60Seconds
00000000

Each correct answer adds 5 seconds (capped at 60). Press Enter to submit.

The science

A byte holds eight bits; bit k has weight 2k, so the value is the sum of the weights of the lit bits. The adder is a chain of full adders: sum = a XOR b XOR carry-in, carry-out = (a AND b) OR (carry-in AND (a XOR b)). An 8-bit result wraps modulo 256, so the ninth bit is shown as an overflow carry. This is a teaching model of integer arithmetic; real CPUs add wider words and use faster carry-lookahead circuits.

Decoder race idea adapted from the CS Mini Games project (MIT licence).