Discrete math · Boolean algebra and logic circuits
Every processor adds with circuits like these; you build the pieces from gates and test them row by row against the arithmetic.