SYSTEMS / Bit lab
Saved on this device>

INTERACTIVE / BIT_LAB

A small laboratory for big ideas.

Toggle a bit. Change an operator. See every representation update together.

Input

Your values. One format.
7
6
5
4
3
2
1
0
7
6
5
4
3
2
1
0

Choose a format and enter your values. In binary, you can also toggle the bits. Results update instantly.

Result

A & B
7 0
6 0
5 1
4 0
3 1
2 0
1 0
0 0
Binary
0b00101000
Decimal
40
Hexadecimal
0x28

Fixed-width word model · values wrap modulo 2^w. C integer promotions and signed-overflow rules are separate concepts.

coffee-bytes / Systems LearningCS:APP + Hacker’s Delight