1 00:00:00,500 --> 00:00:06,500 So in this video, we'll be looking at the Artomatic corporations, mainly addition and subtraction 2 00:00:06,500 --> 00:00:11,010 in this video, and then we'll be taking a look at the multiplication and division. 3 00:00:11,630 --> 00:00:12,770 So let's get started. 4 00:00:13,370 --> 00:00:15,910 So this additional operation is general. 5 00:00:16,130 --> 00:00:17,710 Everyone knows about it. 6 00:00:17,960 --> 00:00:23,060 It's a general day to the life addition operation, just adding to numbers. 7 00:00:23,330 --> 00:00:30,600 But I'll be showing in the binary format, for example, 11 percent is equal to 20. 8 00:00:30,620 --> 00:00:31,360 We all know that. 9 00:00:31,790 --> 00:00:35,330 No, let's forget that point is the result. 10 00:00:35,330 --> 00:00:36,890 And we will drag this 20. 11 00:00:38,200 --> 00:00:46,270 Now, convert this one into binary format, you can do the decision method by two and so on, and you 12 00:00:46,270 --> 00:00:48,240 call it was through windows. 13 00:00:49,300 --> 00:00:54,040 So after that you get like this zero one zero one one or another method. 14 00:00:54,220 --> 00:01:00,790 You simply write the two parts and you can just add those bits, right. 15 00:01:00,820 --> 00:01:04,840 Bencic 11, eight plus two plus one, that's 11. 16 00:01:04,840 --> 00:01:09,170 So you can put the one in these bits and remaining as zero. 17 00:01:09,550 --> 00:01:13,480 So 11 in binary format is, you know, one zero one one. 18 00:01:14,560 --> 00:01:20,860 So this is the binary format of eleven in the same way we can find that binary format four nine, which 19 00:01:20,860 --> 00:01:27,040 is Geto one and one you need to set the bitrate and one and zero. 20 00:01:27,310 --> 00:01:32,170 So on addition you'll get 100 plus one, which is nine in the smaller format. 21 00:01:33,350 --> 00:01:39,370 So you converted these two numbers into one reformats and now let's add this to the numbers. 22 00:01:40,430 --> 00:01:46,730 So here one plus one scenario, one plus one is two, but in binary format. 23 00:01:47,910 --> 00:01:54,100 We must convert that into the binary format, right to in binary format is one zero. 24 00:01:54,480 --> 00:01:58,370 So you put the zero and the one will be the territory to this part. 25 00:01:58,740 --> 00:02:05,180 And here one one again, it results in one zero, which is two, and put it in here. 26 00:02:06,150 --> 00:02:07,600 And then one is the carrier. 27 00:02:07,860 --> 00:02:10,940 So one zero zero on that one. 28 00:02:11,850 --> 00:02:17,100 And in the same one plus one, which is one zero, which means two in the small one. 29 00:02:17,880 --> 00:02:19,680 So you put the zero in here. 30 00:02:21,070 --> 00:02:27,030 You don't hear any one in here and one zero zero uninsured, you get one. 31 00:02:27,570 --> 00:02:31,470 So this is the result of these two numbers. 32 00:02:31,860 --> 00:02:34,120 Now, let's convert that into decimal. 33 00:02:34,410 --> 00:02:37,290 So 16, Bettison and Forbert is on. 34 00:02:37,950 --> 00:02:40,530 So one in the 16, it would be too strong. 35 00:02:41,280 --> 00:02:43,470 So this is how you do the penetration. 36 00:02:43,890 --> 00:02:46,530 Now we will do the subtraction. 37 00:02:48,120 --> 00:02:50,590 There is no separate concept of perfection. 38 00:02:50,610 --> 00:02:52,450 What are you going to do is you. 39 00:02:53,580 --> 00:03:00,030 You take one number and you take another NICTA number and you're going to add those two numbers to get 40 00:03:00,030 --> 00:03:00,900 the result, that is. 41 00:03:02,190 --> 00:03:07,060 So before going to subtraction, I want to tell you one thing called same magnitude. 42 00:03:08,460 --> 00:03:10,170 Let's take this example at night. 43 00:03:10,440 --> 00:03:13,170 If you want to convert that 90 to minus nine. 44 00:03:13,440 --> 00:03:14,370 What are you going to do? 45 00:03:14,540 --> 00:03:17,230 You need to put that into one. 46 00:03:17,670 --> 00:03:18,710 So this is the Amazon. 47 00:03:19,140 --> 00:03:21,330 That is the most significant bit. 48 00:03:21,780 --> 00:03:25,410 And if you put it to one, so that will be the nine. 49 00:03:26,970 --> 00:03:33,250 And this corresponding rally will be going negative, so if I put one here, you get the minus 16, 50 00:03:33,390 --> 00:03:37,770 minus one in 216, plus one eight, press one into one. 51 00:03:39,010 --> 00:03:44,620 It means minus six, minus 16 percent, plus one, which is minus 16, plus nine. 52 00:03:46,740 --> 00:03:48,310 So it is OK. 53 00:03:48,330 --> 00:03:57,390 Sorry, I think this maybe that must be OK if you want to turn into them people, then you need to put 54 00:03:57,390 --> 00:03:59,340 them as reporters, as one to get the news. 55 00:04:00,300 --> 00:04:07,170 But that same magnitude from is very inefficient in the suppression operations because you get the wrong 56 00:04:07,170 --> 00:04:07,590 results. 57 00:04:08,550 --> 00:04:12,370 That's why there is another phone call to inform. 58 00:04:13,860 --> 00:04:19,280 So in this to lose competition from we will do the suppression operations. 59 00:04:19,710 --> 00:04:21,860 So how to get the two's company informants? 60 00:04:21,870 --> 00:04:27,000 We need to find one company and form and how to get the information. 61 00:04:27,030 --> 00:04:32,520 We need to flip the other bits from dealers to want and wants to do so. 62 00:04:32,520 --> 00:04:37,080 If it is, you don't need to flip it on if bit is what you need to flip it to zero. 63 00:04:37,740 --> 00:04:43,810 And after getting the ones we need to add plus one to this one government to get the Tuscumbia. 64 00:04:44,280 --> 00:04:45,700 So let's see an example. 65 00:04:46,380 --> 00:04:53,130 So this is the line in the similar format and this is the binary equivalent eight press one nine zero 66 00:04:53,190 --> 00:04:54,380 zero one zero zero one. 67 00:04:54,600 --> 00:04:59,200 So to get the ones you doing all you want and are one stimulus. 68 00:04:59,370 --> 00:05:04,860 So this is, you know, and I'm turning to one one zero zero two one zero to one one two zero. 69 00:05:05,100 --> 00:05:13,050 So we got our one company and from now we are going to add plus one, add one to do this for all together 70 00:05:13,050 --> 00:05:14,070 to comprehend from. 71 00:05:15,290 --> 00:05:24,530 So, Richard Preston, so it is this is one zero one, so the final minus nine will be one zero one 72 00:05:24,530 --> 00:05:25,010 one one. 73 00:05:26,590 --> 00:05:33,670 In the previous year, if we put them as big as one, we get the wrong answer because that is not. 74 00:05:35,040 --> 00:05:37,630 Correct method for subtraction or addition. 75 00:05:38,190 --> 00:05:39,750 That's why we did this. 76 00:05:41,310 --> 00:05:47,820 This is the must be big and minus one, this one, this one is a minus one minus one to 16, minus 16, 77 00:05:47,820 --> 00:05:51,270 plus four plus two plus one. 78 00:05:51,870 --> 00:05:54,810 So minus 16, plus seven it is minus. 79 00:05:54,810 --> 00:05:55,050 Right. 80 00:05:55,260 --> 00:05:59,490 So this does come in from each character for subtraction operations. 81 00:06:01,160 --> 00:06:06,740 Now, let's see what is the equivalent of 11 plus nine, 11 plus minus nine. 82 00:06:07,370 --> 00:06:07,810 All right. 83 00:06:08,060 --> 00:06:12,650 We already knew that Lavant binary code, this one zero one one. 84 00:06:16,060 --> 00:06:17,060 And minus nine. 85 00:06:17,080 --> 00:06:23,050 We have got from the previous one zero one one one, which is a toothcomb right now, we just simply 86 00:06:23,050 --> 00:06:23,710 add this. 87 00:06:25,540 --> 00:06:29,990 So one plus one is one zero, which means to buy this one. 88 00:06:30,340 --> 00:06:38,320 So you got the zero here and left carry here one will be placed here and this one plus one plus one, 89 00:06:38,320 --> 00:06:42,790 which is three in the very format, which is one one. 90 00:06:43,060 --> 00:06:43,480 Right. 91 00:06:43,720 --> 00:06:47,680 You put the one here and another one here on the carry. 92 00:06:48,550 --> 00:06:54,640 So on putting the one you'll get one zero plus one, which is two which means one zero in binary. 93 00:06:54,680 --> 00:06:58,450 You put the right where you draw here and the one in the carry. 94 00:06:58,780 --> 00:07:07,950 So one plus one plus which used to it use again and again zero one and again one zero one zero one. 95 00:07:08,140 --> 00:07:15,280 So we have got the extra carry and we need to ignore that because we are doing all these particular 96 00:07:15,280 --> 00:07:19,240 five bits and we don't need to include the 32 part here. 97 00:07:19,570 --> 00:07:20,770 We just ignore the tiny. 98 00:07:22,000 --> 00:07:29,380 So our result will be the answer one night is to read that in so only two it is on. 99 00:07:29,410 --> 00:07:32,430 So that's what we need to do, everything zero, which is two. 100 00:07:33,160 --> 00:07:35,140 So this is how you perform subtraction. 101 00:07:35,140 --> 00:07:41,130 Operation subtraction is nothing but adding no one to no and a negative number, and that's it. 102 00:07:42,830 --> 00:07:49,500 Now we will see how to perform these operations using the assembly language. 103 00:07:50,680 --> 00:07:54,870 So there is an ad introduction which you have seen in the basic instructions video. 104 00:07:55,210 --> 00:07:56,460 Now we will see that again. 105 00:07:56,980 --> 00:08:04,170 So you come up to so what this is take the contents of the X and take to where you will add them both 106 00:08:04,240 --> 00:08:08,600 and put that in X, because this is the definition register. 107 00:08:09,220 --> 00:08:19,580 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. 108 00:08:20,170 --> 00:08:26,340 I already mentioned that we can access the relative in between the X and also lawyer a bit using the 109 00:08:26,340 --> 00:08:26,740 ER. 110 00:08:28,760 --> 00:08:40,900 The previous example, X becomes incremental to the queen's arrabbiata and in the same way, operations, 111 00:08:40,900 --> 00:08:43,230 oppression, suppression operations can also be performed. 112 00:08:43,870 --> 00:08:48,910 And there are two one two more operations called increment and decrement operations. 113 00:08:49,660 --> 00:08:58,000 And this Indrawati X increases the very big one so that the default value, it's going to increase the. 114 00:08:59,560 --> 00:09:07,010 So incrementally x x is equal to express one and the current easy, easy, easy X minus one. 115 00:09:08,440 --> 00:09:15,620 So these two are the basic operations of addition and subtraction and also incrementally correct. 116 00:09:16,420 --> 00:09:25,120 And I want to say is if we add further to the center, to the weights and then sometimes for a marker, 117 00:09:25,540 --> 00:09:31,350 and that will further be stored in that UTX resistor and also all of that will be set. 118 00:09:32,380 --> 00:09:41,140 And also, if we subtract two numbers to equal numbers, subtract, then the resultant operation is 119 00:09:41,140 --> 00:09:43,510 zero, then the extended fracks. 120 00:09:43,810 --> 00:09:50,900 Dezhurov, like you said, OK, we will see this in the open to, you know, let's go on to win the 121 00:09:50,900 --> 00:09:54,030 volume and let's write some examples. 122 00:09:55,180 --> 00:09:56,050 So let's know. 123 00:09:56,050 --> 00:10:01,210 I'm going to create to add and subtract some. 124 00:10:05,850 --> 00:10:10,590 Now I'm going to write the Grubert I will start. 125 00:10:15,260 --> 00:10:22,790 No, I'm not going to read the data section because we will directly put the virus in the instructions, 126 00:10:23,000 --> 00:10:25,250 so I'm going to read in that section. 127 00:10:32,870 --> 00:10:39,990 OK, now let's create the year creature so that we can make sure that Jiro is in the expedition. 128 00:10:43,530 --> 00:10:54,700 No, we can add the lower eight bits of year to the only so we can say, yeah, comet. 129 00:10:56,980 --> 00:10:57,580 One, two. 130 00:10:58,740 --> 00:11:05,130 So I just want to say bits and the Elorza with sortation you perform. 131 00:11:07,450 --> 00:11:13,390 Now we will air it to the higher register to. 132 00:11:15,360 --> 00:11:15,900 Three, four. 133 00:11:18,200 --> 00:11:19,730 This one is three for this one. 134 00:11:21,590 --> 00:11:28,780 So the lawyer, it's going to be pressure, but at about three foot and higher, which are I really 135 00:11:28,790 --> 00:11:34,460 want to since we have the full which simply these values, we will proceed here. 136 00:11:37,050 --> 00:11:43,070 Now, up to now, including Star Wars, that one, two, three, four, because these are the heroes 137 00:11:43,080 --> 00:11:44,330 and these are the rebels. 138 00:11:46,430 --> 00:11:49,200 Now, let's add some value to the air conditioner. 139 00:11:56,000 --> 00:12:03,170 OK, up to now, we have got one, two, three for the next four years and we are adding to so the result 140 00:12:03,170 --> 00:12:04,600 will be one, two, three, six. 141 00:12:05,360 --> 00:12:07,880 Now, let's move that very soon to be ex. 142 00:12:11,280 --> 00:12:14,290 Or you can just simply Mortada Buycks. 143 00:12:16,250 --> 00:12:20,330 Now, what I learned with this, I'm going to subtract this X and B X. 144 00:12:23,220 --> 00:12:31,230 Since X and B continue the same values, the resultant operation would be zero and then the growth will 145 00:12:31,230 --> 00:12:31,710 be set. 146 00:12:37,050 --> 00:12:40,060 Now, let's also write some code for incremental increment. 147 00:12:51,060 --> 00:12:53,010 So remember this, this. 148 00:12:55,060 --> 00:12:57,820 OK, I'll be showing another one example. 149 00:13:01,360 --> 00:13:08,460 So like this, we can only move particular value into the particular area, because this is very important 150 00:13:08,470 --> 00:13:18,040 when we are talking about recording, because if we move year zero, we get the null bits when we cannot 151 00:13:18,040 --> 00:13:18,880 add to the circle. 152 00:13:19,300 --> 00:13:24,000 That's why we are particularly eight bit so that we don't get extra Norbert's. 153 00:13:26,650 --> 00:13:33,430 OK, I will cover the topic in detail in the recording section now let's so this file. 154 00:13:34,090 --> 00:13:35,560 Now let's compare notes on. 155 00:13:47,290 --> 00:13:50,680 Now, that link the object for using only. 156 00:14:01,580 --> 00:14:07,240 OK, even if you're on the program, it will exist normally because we did not print anything. 157 00:14:07,280 --> 00:14:10,780 That's why I'm going to open the directory in the GDP. 158 00:14:15,530 --> 00:14:16,970 Now, let's say in four functions. 159 00:14:19,180 --> 00:14:22,640 We had to start functioning, let's put the breakpoint at the. 160 00:14:27,040 --> 00:14:34,050 Now, let's run our program now, as you can see, the U.S. is going to be more U.S. combat zero. 161 00:14:34,650 --> 00:14:45,870 Now, let's add that so is now actually U.S. is Molière zero also the total? 162 00:14:46,030 --> 00:14:46,450 Get that. 163 00:14:48,600 --> 00:14:51,600 OK, yes, he's also diro. 164 00:14:53,410 --> 00:14:58,830 Now we are moving the direct, referring to a bit of resistant. 165 00:15:00,910 --> 00:15:10,300 As you can see do for now, the interesting part is we are moving the hit story well, we are adding 166 00:15:10,300 --> 00:15:12,180 the one to today. 167 00:15:15,040 --> 00:15:24,970 With the contents of the age register, it is and director, what we want to know, the result would 168 00:15:24,970 --> 00:15:26,120 be contagious. 169 00:15:26,150 --> 00:15:27,190 One, two, three, four. 170 00:15:31,040 --> 00:15:33,480 As you can see there, you condense one, two, three, four. 171 00:15:33,680 --> 00:15:37,220 Now we are adding six and zero to. 172 00:15:40,620 --> 00:15:47,960 So eggs contains one, two, three, four, and if we add to it becomes eggs, one, two, three, six, 173 00:15:47,970 --> 00:15:50,130 and that also will be sold in a year. 174 00:15:51,990 --> 00:15:54,740 So as you can see, one, two, three, six. 175 00:15:55,170 --> 00:16:00,820 Now we are going to move the one, two, three, one, two, three, six value into the buycks. 176 00:16:01,170 --> 00:16:01,950 Let's do that. 177 00:16:02,730 --> 00:16:08,690 I'm just hitting enter to that will add my previous comment, which is an exchange action. 178 00:16:09,570 --> 00:16:13,530 OK, now your eggs contains the same values. 179 00:16:13,780 --> 00:16:20,850 Now, if you subtract those two values, this flag will become red color and in character because that 180 00:16:21,240 --> 00:16:22,890 it is a giraffe, like you said. 181 00:16:25,430 --> 00:16:33,080 As you can see here, he said, and also you can because we are scouring the desert and that extra acreage, 182 00:16:33,260 --> 00:16:40,470 which is here and now, I'm going to move the drone into the aesthetics, value each expedition and 183 00:16:40,970 --> 00:16:42,350 contains contents, knowledge. 184 00:16:42,350 --> 00:16:44,060 Increment that to register. 185 00:16:46,630 --> 00:16:53,830 No one saw in front of her that and stuff, and you want the. 186 00:16:54,880 --> 00:16:59,760 And now we're going to recommend that you seek to register one minus one. 187 00:16:59,770 --> 00:17:00,540 It's zero. 188 00:17:01,480 --> 00:17:06,910 So these incremental operations are usually not open sections, group operations. 189 00:17:07,570 --> 00:17:09,800 You'll see that in future videos. 190 00:17:10,390 --> 00:17:13,590 So that's about this addition and subtraction, I hope is understood.