ABSTRACT

ADDITION AND SUBTRACTION  e fundamental numeric encodings for integers supported by most microprocessors are unsigned and two’s complement.  e circuits for performing addition and subtraction on numbers encoded in these formats are the same. All that is needed is an adder component. We will explore the structure of a simple adder that might be incorporated in the ALU unit of the AVR processor. Ultimately, the ALU can only perform Boolean operations, so addition and subtraction must be accomplished using logical formulas.