Tutorials 2+3 Addition and Subtraction

January 11, 2017

In the second and third tutorial we explore how a computer adds and subtracts binary numbers. Adding sits at the heart of most if not all computations - algorithms cleverly decompose higher mathematics into addition. Subtraction is achieved by forming the binary complement of the subtrahend and then adding it. Multiplication, is a sequence of additions. Division is a sequence of subtractions. 

 

The Blueberry4 Adder and Inverter modules form, what we call, the computer's Arithmetic Logical Unit.

 

Addition:

 

Subtraction:

 

 

Share on Facebook
Share on Twitter
Please reload

Featured Posts

Introduction to Logic: New Free Course

April 22, 2020

1/10
Please reload

Recent Posts

February 19, 2020

December 4, 2019

September 18, 2019