Unsigned 8-bit
0 through 2N − 1 · N = 8
0 through 2N − 1 · N = 8
−2N−1 through 2N−1 − 1 · N = 8
Schematic tracks · spacing carries no numeric scale.
0 through 2N − 1 · N = 8
255 + 1 → beyond 255
↶ modulo 28 → 0
255 + 1 → hold at 255
−2N−1 through 2N−1 − 1 · N = 8
127 + 1 → beyond 127
↶ explicit signed wrap policy → −128
Overflow of a signed expression is undefined in C. Narrow integer operands may be promoted, so check the expression’s type before interpreting a C addition as a fixed-width field operation. In C11/C17, converting an out-of-range value to a signed integer type produces an implementation-defined result or raises an implementation-defined signal.
0 through 216 − 1
65535 + 1 → beyond 65535
↶ modulo 216 → 0
255 + 1 → 0 in the fixed-width field
255 + 1 → beyond 255
↶ modulo 28 → 0
127 + 1 → beyond 127
↶ explicit signed wrap policy → −128
Counter appears to reset
Timer jumps backward
Accumulator turns negative
Width and signedness · derive the limits
Headroom · check expected values
Boundary policy · what happens out of range, and how would you test it?
Width gives both fields the same pattern budget. Signedness changes where the range starts and ends.
Technical boundaries. The track spacing has no numeric scale. The signed wrap result assumes an explicit field policy. In C, narrow operands can be promoted, signed expression overflow is undefined, and C11 and C17 leave out-of-range conversion to a signed integer type implementation-defined.