Now we're going to talk about the BINYA operations, meaning we're going to see how we can add and subtract
numbers or binary numbers.
We have already learned that zero zero zero zero plus one is one and one plus one is one zero zero and
one in the carry rate, one zero means zero and one if you count.
Let us take example, how can we add these two numbers?
Well, first, we are zero zero right here, zero zero plus one is one and zero zero.
Now, if you remember from the previous lecture, this is actually four and this is two and the result
is six.
Next, let us add zero one one zero one one, which is actually a three plus three.
Right.
So we're going to have one plus one is zero and one in the country, right?
Correct.
Now we have one plus one plus one.
One plus one is zero and one in the carrier here.
Plus one.
Well, this zero here is going to turn one and we have one in the Carrie.
Right now, one plus zero zero is actually one.
Let me repeat this step for you.
If you didn't understand, we have one indico, one plus one is zero and one in the carry rate.
So we will write you zero and we have one in the carry.
Now, we have written here zero, but we still have one here.
One plus zero is actually a one.
And that's it, so we have a six.
No, let's say that I want to add some numbers.
So if I have one one one zero one one, but the system is signed, so it's like adding minus one.
And here I have 011 with which is the plus three, so I have minus one, plus three.
So it is minus one again, plus three.
Well there is nothing actually to subtract, right.
Because we already have a representation for minus one and we are saying plus the three.
So we just add these as usual.