So in this video, we'll be looking at the Artomatic corporations, mainly addition and subtraction
in this video, and then we'll be taking a look at the multiplication and division.
So let's get started.
So this additional operation is general.
Everyone knows about it.
It's a general day to the life addition operation, just adding to numbers.
But I'll be showing in the binary format, for example, 11 percent is equal to 20.
We all know that.
No, let's forget that point is the result.
And we will drag this 20.
Now, convert this one into binary format, you can do the decision method by two and so on, and you
call it was through windows.
So after that you get like this zero one zero one one or another method.
You simply write the two parts and you can just add those bits, right.
Bencic 11, eight plus two plus one, that's 11.
So you can put the one in these bits and remaining as zero.
So 11 in binary format is, you know, one zero one one.
So this is the binary format of eleven in the same way we can find that binary format four nine, which
is Geto one and one you need to set the bitrate and one and zero.
So on addition you'll get 100 plus one, which is nine in the smaller format.
So you converted these two numbers into one reformats and now let's add this to the numbers.
So here one plus one scenario, one plus one is two, but in binary format.
We must convert that into the binary format, right to in binary format is one zero.
So you put the zero and the one will be the territory to this part.
And here one one again, it results in one zero, which is two, and put it in here.
And then one is the carrier.
So one zero zero on that one.
And in the same one plus one, which is one zero, which means two in the small one.
So you put the zero in here.
You don't hear any one in here and one zero zero uninsured, you get one.
So this is the result of these two numbers.
Now, let's convert that into decimal.
So 16, Bettison and Forbert is on.
So one in the 16, it would be too strong.
So this is how you do the penetration.
Now we will do the subtraction.
There is no separate concept of perfection.
What are you going to do is you.
You take one number and you take another NICTA number and you're going to add those two numbers to get
the result, that is.
So before going to subtraction, I want to tell you one thing called same magnitude.
Let's take this example at night.
If you want to convert that 90 to minus nine.
What are you going to do?
You need to put that into one.
So this is the Amazon.
That is the most significant bit.
And if you put it to one, so that will be the nine.
And this corresponding rally will be going negative, so if I put one here, you get the minus 16,
minus one in 216, plus one eight, press one into one.
It means minus six, minus 16 percent, plus one, which is minus 16, plus nine.
So it is OK.
Sorry, I think this maybe that must be OK if you want to turn into them people, then you need to put
them as reporters, as one to get the news.
But that same magnitude from is very inefficient in the suppression operations because you get the wrong
results.
That's why there is another phone call to inform.
So in this to lose competition from we will do the suppression operations.
So how to get the two's company informants?
We need to find one company and form and how to get the information.
We need to flip the other bits from dealers to want and wants to do so.
If it is, you don't need to flip it on if bit is what you need to flip it to zero.
And after getting the ones we need to add plus one to this one government to get the Tuscumbia.
So let's see an example.
So this is the line in the similar format and this is the binary equivalent eight press one nine zero
zero one zero zero one.
So to get the ones you doing all you want and are one stimulus.
So this is, you know, and I'm turning to one one zero zero two one zero to one one two zero.
So we got our one company and from now we are going to add plus one, add one to do this for all together
to comprehend from.
So, Richard Preston, so it is this is one zero one, so the final minus nine will be one zero one
one one.
In the previous year, if we put them as big as one, we get the wrong answer because that is not.
Correct method for subtraction or addition.
That's why we did this.
This is the must be big and minus one, this one, this one is a minus one minus one to 16, minus 16,
plus four plus two plus one.
So minus 16, plus seven it is minus.
Right.
So this does come in from each character for subtraction operations.
Now, let's see what is the equivalent of 11 plus nine, 11 plus minus nine.
All right.
We already knew that Lavant binary code, this one zero one one.
And minus nine.
We have got from the previous one zero one one one, which is a toothcomb right now, we just simply
add this.
So one plus one is one zero, which means to buy this one.
So you got the zero here and left carry here one will be placed here and this one plus one plus one,
which is three in the very format, which is one one.
Right.
You put the one here and another one here on the carry.
So on putting the one you'll get one zero plus one, which is two which means one zero in binary.
You put the right where you draw here and the one in the carry.
So one plus one plus which used to it use again and again zero one and again one zero one zero one.
So we have got the extra carry and we need to ignore that because we are doing all these particular
five bits and we don't need to include the 32 part here.
We just ignore the tiny.
So our result will be the answer one night is to read that in so only two it is on.
So that's what we need to do, everything zero, which is two.
So this is how you perform subtraction.
Operation subtraction is nothing but adding no one to no and a negative number, and that's it.
Now we will see how to perform these operations using the assembly language.
So there is an ad introduction which you have seen in the basic instructions video.
Now we will see that again.
So you come up to so what this is take the contents of the X and take to where you will add them both
and put that in X, because this is the definition register.
So it's going to into the X is equal to in the same way we can add a particular 16 bits of the X register.
I already mentioned that we can access the relative in between the X and also lawyer a bit using the
ER.
The previous example, X becomes incremental to the queen's arrabbiata and in the same way, operations,
oppression, suppression operations can also be performed.
And there are two one two more operations called increment and decrement operations.
And this Indrawati X increases the very big one so that the default value, it's going to increase the.
So incrementally x x is equal to express one and the current easy, easy, easy X minus one.
So these two are the basic operations of addition and subtraction and also incrementally correct.
And I want to say is if we add further to the center, to the weights and then sometimes for a marker,
and that will further be stored in that UTX resistor and also all of that will be set.
And also, if we subtract two numbers to equal numbers, subtract, then the resultant operation is
zero, then the extended fracks.
Dezhurov, like you said, OK, we will see this in the open to, you know, let's go on to win the
volume and let's write some examples.
So let's know.
I'm going to create to add and subtract some.
Now I'm going to write the Grubert I will start.
No, I'm not going to read the data section because we will directly put the virus in the instructions,
so I'm going to read in that section.
OK, now let's create the year creature so that we can make sure that Jiro is in the expedition.
No, we can add the lower eight bits of year to the only so we can say, yeah, comet.
One, two.
So I just want to say bits and the Elorza with sortation you perform.
Now we will air it to the higher register to.
Three, four.
This one is three for this one.
So the lawyer, it's going to be pressure, but at about three foot and higher, which are I really
want to since we have the full which simply these values, we will proceed here.
Now, up to now, including Star Wars, that one, two, three, four, because these are the heroes
and these are the rebels.
Now, let's add some value to the air conditioner.
OK, up to now, we have got one, two, three for the next four years and we are adding to so the result
will be one, two, three, six.
Now, let's move that very soon to be ex.
Or you can just simply Mortada Buycks.
Now, what I learned with this, I'm going to subtract this X and B X.
Since X and B continue the same values, the resultant operation would be zero and then the growth will
be set.
Now, let's also write some code for incremental increment.
So remember this, this.
OK, I'll be showing another one example.
So like this, we can only move particular value into the particular area, because this is very important
when we are talking about recording, because if we move year zero, we get the null bits when we cannot
add to the circle.
That's why we are particularly eight bit so that we don't get extra Norbert's.
OK, I will cover the topic in detail in the recording section now let's so this file.
Now let's compare notes on.
Now, that link the object for using only.
OK, even if you're on the program, it will exist normally because we did not print anything.
That's why I'm going to open the directory in the GDP.
Now, let's say in four functions.
We had to start functioning, let's put the breakpoint at the.
Now, let's run our program now, as you can see, the U.S. is going to be more U.S. combat zero.
Now, let's add that so is now actually U.S. is Molière zero also the total?
Get that.
OK, yes, he's also diro.
Now we are moving the direct, referring to a bit of resistant.
As you can see do for now, the interesting part is we are moving the hit story well, we are adding
the one to today.
With the contents of the age register, it is and director, what we want to know, the result would
be contagious.
One, two, three, four.
As you can see there, you condense one, two, three, four.
Now we are adding six and zero to.
So eggs contains one, two, three, four, and if we add to it becomes eggs, one, two, three, six,
and that also will be sold in a year.
So as you can see, one, two, three, six.
Now we are going to move the one, two, three, one, two, three, six value into the buycks.
Let's do that.
I'm just hitting enter to that will add my previous comment, which is an exchange action.
OK, now your eggs contains the same values.
Now, if you subtract those two values, this flag will become red color and in character because that
it is a giraffe, like you said.
As you can see here, he said, and also you can because we are scouring the desert and that extra acreage,
which is here and now, I'm going to move the drone into the aesthetics, value each expedition and
contains contents, knowledge.
Increment that to register.
No one saw in front of her that and stuff, and you want the.
And now we're going to recommend that you seek to register one minus one.
It's zero.
So these incremental operations are usually not open sections, group operations.
You'll see that in future videos.
So that's about this addition and subtraction, I hope is understood.