Cheat sheets

DL-02Cheat sheet1 pageIn a paid pack

Number Systems and Base Conversion

Positional value of a base-r numeral, the valid digit set, integer conversion by repeated division and fraction conversion by repeated multiplication, when a fraction terminates in a base, grouping between binary, octal and hex (including fractional parts), unknown-base equations and counting their solutions, digits needed for a number, and quick powers of two. Every value checked by script.

Diagrams from DL-02

DL-03Cheat sheet1 pageIn a paid pack

Signed Integers and Complements

Unsigned, sign-magnitude, 1's complement, 2's complement and excess-K (biased) integers: ranges for n bits, number of zeros, reading one pattern in every form, negation rules and the 2's complement weight formula, sign extension, r's and (r-1)'s complements in any base, subtraction by complement addition with and without end carry, and byte order (endianness). Every value checked by script.

DL-04Cheat sheet1 pageIn a paid pack

Codes: BCD, Excess-3, 2421 and Gray

Weighted and unweighted decimal codes: 8421 BCD with its invalid patterns and bit cost, BCD addition with the +6 correction and its detection function, excess-3 and 2421 as self-complementing codes, excess-3 addition, Gray code construction and both conversions, the unit-distance property and its link to K-map order, parity bits and Hamming distance rules. Every code table and sum checked by script.