1 00:00:00,810 --> 00:00:04,660 In this, we are going to talk about the types in the assembly language. 2 00:00:05,670 --> 00:00:12,240 So the first thing you're going to encounter is but by no means a collection of eight bits. 3 00:00:13,610 --> 00:00:18,650 And the word means 16 words and the word stands for the word. 4 00:00:18,680 --> 00:00:29,780 The word and that little bits and Q are the code word means 64 bits, as you can see by it is the group 5 00:00:29,780 --> 00:00:32,430 of eight bits and the word is the word of the baby. 6 00:00:32,720 --> 00:00:34,880 So you can do it in the world. 7 00:00:35,570 --> 00:00:42,600 And in the similar way that they were also called double, what is the problems of war? 8 00:00:42,620 --> 00:00:44,810 And you can put two words and forwards. 9 00:00:47,420 --> 00:00:55,430 So actually, in order to do with some level, most maximum, we deal with the rewards and because the 10 00:00:55,430 --> 00:00:56,940 quiet words cannot fit into the. 11 00:00:57,770 --> 00:01:05,040 So if we want to operate the quiet word, then we'll press for that to it's in the 80s and the next 12 00:01:05,100 --> 00:01:06,370 30 years. 13 00:01:07,220 --> 00:01:12,600 So let's see how we declare a variable with the memory allocation. 14 00:01:14,240 --> 00:01:16,600 So first, we need to set variable name. 15 00:01:17,000 --> 00:01:22,460 I'm going to say variable one word one, and we need to put the current the previous model. 16 00:01:22,490 --> 00:01:26,850 We have seen the message variables to use the word string. 17 00:01:28,130 --> 00:01:31,520 This assembly language in this has some language. 18 00:01:31,820 --> 00:01:34,640 We don't this be the string or like that. 19 00:01:34,670 --> 00:01:38,090 We just define the memory and then we allocate the value. 20 00:01:38,840 --> 00:01:43,190 So the first thing you need to do is because the variable and put the semicolon. 21 00:01:43,490 --> 00:01:45,950 So these are not actually variable names. 22 00:01:45,980 --> 00:01:47,090 These are the labels. 23 00:01:49,010 --> 00:02:00,750 Its purpose is just to refer this memory location by this name and then you to define by C D, which 24 00:02:00,800 --> 00:02:04,150 stands for define the memory that directly. 25 00:02:05,120 --> 00:02:13,410 And if you go to the previous state and if we define the W defined, what do we define the word? 26 00:02:13,670 --> 00:02:18,750 And they could define quite what we're not seeing code words here. 27 00:02:18,770 --> 00:02:20,870 We will be seeing a double word. 28 00:02:22,040 --> 00:02:30,800 So D stands for double you define word defined by it and then we need to set the actual value to be 29 00:02:31,130 --> 00:02:32,560 conferred with a variable one. 30 00:02:33,140 --> 00:02:39,230 So where one defined word and one note, the word one holds the value one. 31 00:02:40,130 --> 00:02:42,970 As you can see, this is the common in a similar way. 32 00:02:43,220 --> 00:02:49,250 Coming to the word two, we are going to define a bite which holds the value of hexadecimal 41. 33 00:02:50,570 --> 00:02:57,590 And the word three was the value of year, but it's also what it means to bite. 34 00:02:57,950 --> 00:03:07,660 So since there is one bite and the extra weight is going to be another weight and a variable for we 35 00:03:07,660 --> 00:03:11,400 are going to define bite and we are going to say hello world. 36 00:03:12,020 --> 00:03:19,330 So this where for host the continuous bites of whatever it means, it stirs each bite. 37 00:03:19,850 --> 00:03:25,660 Just memory allocation, memory error in the similar way. 38 00:03:25,670 --> 00:03:27,150 Variable five different. 39 00:03:27,290 --> 00:03:30,020 We going to define word and this is the. 40 00:03:32,180 --> 00:03:33,920 Sorry, this is 16. 41 00:03:34,940 --> 00:03:35,590 So sorry. 42 00:03:37,640 --> 00:03:39,740 And the value is one, two, three, four. 43 00:03:39,740 --> 00:03:42,980 The next are this one and the variable six is different. 44 00:03:42,980 --> 00:03:48,450 Our word and this is the title of our four bites and this where it was exposed the value. 45 00:03:48,470 --> 00:03:50,150 One, two, three, four, five, six, seven, eight. 46 00:03:51,630 --> 00:03:59,940 Up to now, it's so simple, but if you want to write this introduction so many times and we knew we 47 00:03:59,940 --> 00:04:02,550 cannot copy paste, it takes so much time. 48 00:04:02,580 --> 00:04:06,950 That's why there is another instruction called Time's instruction. 49 00:04:07,530 --> 00:04:16,510 As you can see where it was seven and the Times Co. and the far right gender, the finding of variable 50 00:04:16,920 --> 00:04:18,300 defined by Dirac's. 51 00:04:19,170 --> 00:04:29,300 So what this means is this Biji is going to be repeated 20 times or this define what is going to be 52 00:04:29,770 --> 00:04:30,290 two times. 53 00:04:30,780 --> 00:04:35,970 So the word was an array of continuous in hexadecimal. 54 00:04:37,250 --> 00:04:43,940 So if you want to declare X. Yeah, yeah, yeah, I've gotten the names, you know, reiterate your 55 00:04:43,940 --> 00:04:50,750 candidates who just six times twenty the number of times you need to repeat and then you just simply 56 00:04:50,750 --> 00:04:52,520 declare the very different. 57 00:04:52,760 --> 00:04:59,540 And yet so don't confuse guys now will be willing to do it. 58 00:05:00,170 --> 00:05:04,470 And then we will inspect the variable values under the debugger. 59 00:05:05,840 --> 00:05:09,470 So now know, I'm going to create a file called data types. 60 00:05:14,670 --> 00:05:18,550 And then, as usual, I'm going to say, Grober underscore. 61 00:05:21,520 --> 00:05:23,860 And now we are going to define the data section. 62 00:05:29,380 --> 00:05:37,420 And no, we will declare some variables, so where one can't define, but we are going to define. 63 00:05:39,310 --> 00:05:39,700 One. 64 00:05:41,950 --> 00:05:43,180 And then where to? 65 00:05:44,880 --> 00:05:49,290 Defined world said one, two. 66 00:05:53,110 --> 00:05:53,830 Three, four. 67 00:05:55,180 --> 00:06:00,400 It's closer to whites and they're three different our world. 68 00:06:01,930 --> 00:06:04,080 One, two, three, four, five, six, seven, eight. 69 00:06:04,900 --> 00:06:12,430 Now, in the previous video, we have to create the message which contains or so in a similar way, 70 00:06:12,430 --> 00:06:15,010 we define message. 71 00:06:16,180 --> 00:06:19,630 And it shows the whites of her world. 72 00:06:26,280 --> 00:06:31,160 Now, in the like in the previous year, we will also be creating not Lenta.ru available. 73 00:06:35,740 --> 00:06:47,290 Darwin's current injections, minus the message so it gives the message not discuss this matter, will 74 00:06:47,290 --> 00:06:50,930 only works if these two instructions are next. 75 00:06:51,180 --> 00:06:51,570 Next. 76 00:06:52,870 --> 00:06:53,550 One by one. 77 00:06:54,850 --> 00:07:01,580 So if there is another instructions in between these two, then this land will not be correct. 78 00:07:04,800 --> 00:07:17,370 And then we had variable four times as let's say, I'm going to create the debates of the debates of 79 00:07:17,370 --> 00:07:18,260 zero X yet. 80 00:07:20,000 --> 00:07:26,300 So we have created our data section and declared somewhere it was not just for. 81 00:07:30,310 --> 00:07:36,760 Now, I'm going to create the text section and I'm going to start the start function. 82 00:07:38,950 --> 00:07:40,600 Since the start of our program. 83 00:07:43,040 --> 00:07:53,000 And just we are not going to write any code here, but we will be writing all you system, that is a 84 00:07:53,300 --> 00:07:53,990 system called. 85 00:07:56,690 --> 00:08:08,020 Now we need to put the exact number in your eggs, which is one, and then the exit of the euro in the 86 00:08:08,030 --> 00:08:13,100 works, and then finally Karda in software. 87 00:08:13,120 --> 00:08:15,590 And so let me save this file. 88 00:08:17,660 --> 00:08:19,850 Now, let's compare this using nasal. 89 00:08:31,220 --> 00:08:33,730 Now wielding the object for using only. 90 00:08:44,220 --> 00:08:53,040 So let's now let's run our program so it does not print anything because we did not write the code for 91 00:08:53,040 --> 00:08:56,340 printing something, it's just a glitch. 92 00:08:56,340 --> 00:09:00,150 Normally not we will load this binary into the GDP. 93 00:09:06,130 --> 00:09:12,880 Now, as you can see, I have already read the purple again, if you skip the previous video, just 94 00:09:12,880 --> 00:09:16,640 watch that I haven't showed the proper recognition for the YouTube. 95 00:09:17,350 --> 00:09:19,410 Now I'm going to say it in four functions. 96 00:09:22,500 --> 00:09:26,850 Now, as you can see, there is a stark function now let's try to disassemble. 97 00:09:32,720 --> 00:09:39,490 Now, it contains only three injections because the yogurt section and we are going to run this story, 98 00:09:39,650 --> 00:09:42,140 Heidi, I have to put the break point break. 99 00:09:42,140 --> 00:09:44,860 It underscores the article. 100 00:09:45,200 --> 00:09:47,950 It automatically puts the breakpoint at this address. 101 00:09:48,350 --> 00:09:52,010 No, we to run the program. 102 00:09:53,900 --> 00:09:56,420 As you can see, the next section are the AP. 103 00:09:56,420 --> 00:09:57,870 That is going to be this one. 104 00:09:59,210 --> 00:10:02,530 Now, our where it was has already been defined. 105 00:10:03,080 --> 00:10:07,940 Now to review variables are the variables, let's say, in four variables. 106 00:10:11,810 --> 00:10:17,950 Now, as you can see, these are these are different variables where one, two, three and four. 107 00:10:23,840 --> 00:10:33,710 No, we use the examiner to examine these variables, condense further, examine this exercise, and 108 00:10:33,710 --> 00:10:36,720 we need to do three types of format. 109 00:10:37,680 --> 00:10:40,080 First, we need to see how many bites. 110 00:10:40,100 --> 00:10:49,070 I want to print that one bite so no number of contents you want to print and in which that you want 111 00:10:49,070 --> 00:10:52,010 to, like, bite or what else bite. 112 00:10:52,400 --> 00:11:01,210 And then third format is we need to print in which format during the summer or spring or even binary. 113 00:11:01,640 --> 00:11:11,420 So let's hexadecimal and then no, we need to create space for memory location from which we should 114 00:11:11,420 --> 00:11:12,470 examine the memory. 115 00:11:14,140 --> 00:11:21,850 They want to silver one, so now it does matter where one has unknown cash to declare to know what to 116 00:11:21,850 --> 00:11:27,670 do is really to put the ampersands symbol because unperson defines the address of this world. 117 00:11:28,240 --> 00:11:31,320 So it automatically puts this address here. 118 00:11:31,720 --> 00:11:37,930 And if we run this one, we get our popularity open. 119 00:11:37,940 --> 00:11:38,610 New terminal. 120 00:11:59,270 --> 00:12:00,710 OK, now I will. 121 00:12:01,210 --> 00:12:12,670 You can see where one contains the value one, because we have to ask for one number of bytes and then 122 00:12:13,570 --> 00:12:16,630 I want to show you it hexadecimal. 123 00:12:19,170 --> 00:12:24,210 That's why it has put it at the hexadecimal, if I want to say to Bite's. 124 00:12:27,850 --> 00:12:33,790 To wait, so we have got the one and we have got the three four, so from where this three, four has 125 00:12:33,970 --> 00:12:41,050 come, it means that this report belongs to the world, to where it will to at least one, two, three, 126 00:12:41,050 --> 00:12:41,350 four. 127 00:12:41,440 --> 00:12:44,780 But it Malorie, it will be a little Runion order. 128 00:12:45,010 --> 00:12:48,320 So this one, two, three, four, three, four to one. 129 00:12:48,640 --> 00:12:56,840 So after the verbal one zero one, the next bit going to be is that three, four and one, two. 130 00:12:57,640 --> 00:13:05,500 Now, I will show you that also, as I said, three bytes from the memory location of where we get this 131 00:13:05,500 --> 00:13:10,900 variable one and also the next bite of where will do. 132 00:13:10,930 --> 00:13:14,590 And then also remaining Batoff variable, too. 133 00:13:15,040 --> 00:13:21,690 So if we can combine this and we we can flip that, we get one, two, three, four. 134 00:13:22,750 --> 00:13:25,420 It's just written in the case you need to worry about. 135 00:13:26,110 --> 00:13:29,080 I have already explained that, beginning with orders. 136 00:13:30,870 --> 00:13:35,220 So as you can see this be one, two, three and so on, are. 137 00:13:36,700 --> 00:13:44,700 Are in the memory lane resort of Nazi ice, I want to print. 138 00:13:46,620 --> 00:13:49,960 Two bites in hexadecimal of to. 139 00:13:51,990 --> 00:13:56,280 As you can see, guys, we have got three, four, one, two, one, two, three, four, because it's 140 00:13:56,280 --> 00:14:00,930 in and right now in the similar way we can. 141 00:14:04,740 --> 00:14:11,490 We can ask for three, which is for whites, for whites in hexadecimal and. 142 00:14:13,070 --> 00:14:16,080 The rest of the world will do what we can see. 143 00:14:16,100 --> 00:14:18,610 We got the one, two, three, four, five, six, seven, eight. 144 00:14:21,790 --> 00:14:30,190 And if we don't know the value, that means if we don't know the length of the variable, we can just 145 00:14:30,190 --> 00:14:35,260 set X and bytes and then Mixu where three. 146 00:14:37,210 --> 00:14:39,280 OK, we have got only one sorry. 147 00:14:43,700 --> 00:14:47,360 Of yes, we have got the only one right now. 148 00:14:47,390 --> 00:14:50,610 We need to bring that message not to do that. 149 00:14:50,810 --> 00:14:54,080 You say it to slash as it stands for strength. 150 00:14:54,290 --> 00:14:59,060 And what they're going to lose is a message and person message. 151 00:15:03,460 --> 00:15:11,110 As you can see, there is hollow water and then there is repeat 30 times, so this repeatedly belongs 152 00:15:11,110 --> 00:15:17,170 to this variable and then the variable for contents 30 years. 153 00:15:17,560 --> 00:15:20,230 We will look into that in a few seconds. 154 00:15:22,300 --> 00:15:27,100 So what if I want to bring each and every bite in a hexadecimal format? 155 00:15:27,850 --> 00:15:29,580 Now I want to see. 156 00:15:32,160 --> 00:15:42,260 Love bites in hugs and message, so I want everybody to be represented in hugs, so as you can see, 157 00:15:42,570 --> 00:15:50,980 it is represented in state index and 1865 and 1868 and 60 and so on, up to 64. 158 00:15:56,170 --> 00:15:58,640 Now we need to fire. 159 00:15:58,660 --> 00:16:07,790 We need you to see the way we fought to do that type exercise and then very well for that debate, Sophia. 160 00:16:08,170 --> 00:16:16,480 So if we see any bites in Heggs, I want and then unperson where we get eNews. 161 00:16:18,340 --> 00:16:27,670 And if we second debate of this, I need from the location, where will I get that 20 years? 162 00:16:28,240 --> 00:16:32,350 And if I say that be I get the 30 years. 163 00:16:33,100 --> 00:16:34,560 So what is it that we want? 164 00:16:35,170 --> 00:16:36,970 We get the way because. 165 00:16:38,450 --> 00:16:44,240 So you can see we got the inaugural address because there is no way it was declared and that that section. 166 00:16:45,380 --> 00:16:49,190 Has filled with knowledge of the world was witnessing. 167 00:16:51,340 --> 00:16:54,070 So this is all about the data types. 168 00:16:55,980 --> 00:16:58,650 So I hope you have understood clearly.