1.2.12 Worked Examples: Two's Complement Addition

preview_player
Показать описание
MIT 6.004 Computation Structures, Spring 2017
Instructor: Silvina Hanono

1.2.12 Worked Examples: Two's Complement Addition

License: Creative Commons BY-NC-SA
Рекомендации по теме
Комментарии
Автор

Two's Complement Addition's first number "1" actually means '-1', but we just tacitly approve the minus and regard it as minus -2^n.
so when the carry bit happens, we should calculate it as '-1' and recognize the overflow when the answer becomes '-2' and '1'.

andersony
Автор

Excellent explanation. Covered all the basic aspects succinctly.

Hajjmusic_
Автор

Easy to understand. I want to add something. In the example 001111+101110=111101. Since 111101 has 1 as the first number, the result 3 will be negative (-3). In reverse if 111101 start with 0 instead, the result will be positive. Hope this helps someone.

JiggyJiggy
Автор

I asked about addition, not subtraction...

TruthSeekerYoutube
Автор

title says addition, video shows subtraction. Nice one

gregoryporter-gaming
Автор

My stupid textbook did not explain the 1+1 = 0 and carry 1 and I was so confused. Thanks!!!

AnalystQ