1 00:00:00,660 --> 00:00:00,930 Hello. 2 00:00:00,930 --> 00:00:02,100 My name is Stefan. 3 00:00:02,160 --> 00:00:06,900 In this lecture, you will learn about the G and E, which is jump if not equal. 4 00:00:07,110 --> 00:00:15,210 On the flip side of G, jump If equal, we encounter G and E, This is a compelling command that translates 5 00:00:15,210 --> 00:00:17,160 to jump if not equal. 6 00:00:17,160 --> 00:00:25,830 So diametrically opposed to the G instruction G and M jump if not equal, rests on the zero flag as 7 00:00:25,830 --> 00:00:26,340 well. 8 00:00:26,370 --> 00:00:35,640 However, this time it recognizes whether z f is zero, indicating a departure from equality, whether 9 00:00:35,640 --> 00:00:38,760 we are handling signed or unsigned values. 10 00:00:38,790 --> 00:00:48,410 The G and E Directive empowers us to greet program execution along the virgin path when values are unequal. 11 00:00:48,420 --> 00:00:51,930 So here again we will add another example as well. 12 00:00:52,500 --> 00:00:54,210 Let's create a section here. 13 00:00:56,280 --> 00:00:58,320 Election data. 14 00:01:00,720 --> 00:01:02,430 And here we will create it. 15 00:01:02,550 --> 00:01:05,010 We will define two values. 16 00:01:05,010 --> 00:01:11,460 We will define a byte with a value ten, and we will define another byte with a value of 20. 17 00:01:12,530 --> 00:01:14,060 So value one. 18 00:01:15,540 --> 00:01:20,430 DB and ten value to DB. 19 00:01:21,630 --> 00:01:22,920 20 here. 20 00:01:22,920 --> 00:01:26,430 And we will also create a section text. 21 00:01:26,610 --> 00:01:30,030 This is the global start here. 22 00:01:33,830 --> 00:01:35,660 And after that we will. 23 00:01:41,080 --> 00:01:41,530 Move. 24 00:01:41,530 --> 00:01:48,880 So we will move the value of the move, the value of one into a register. 25 00:01:49,390 --> 00:01:53,890 So move a byte. 26 00:01:55,560 --> 00:01:57,660 And value one. 27 00:01:58,410 --> 00:02:02,310 And we will move the bell register. 28 00:02:02,520 --> 00:02:07,530 So we will move the value of value two into the bell register. 29 00:02:07,550 --> 00:02:10,020 So bite and. 30 00:02:13,690 --> 00:02:16,650 And value you. 31 00:02:17,540 --> 00:02:18,200 Here. 32 00:02:20,500 --> 00:02:23,890 And after that we will add the CMP. 33 00:02:23,920 --> 00:02:30,940 We will compare the values in Al and BL cmp Al and B. 34 00:02:33,650 --> 00:02:41,510 And here after that, we will use this jump, if not equal, here. 35 00:02:41,630 --> 00:02:45,550 D and E is not equal. 36 00:02:45,560 --> 00:02:46,460 So. 37 00:02:48,400 --> 00:02:53,440 We will jump to not equal label if they are not equal. 38 00:02:53,440 --> 00:02:58,480 So here we will develop our labels here equal. 39 00:02:58,690 --> 00:03:06,640 So you will write your code here for an equal case. 40 00:03:06,640 --> 00:03:18,730 And we also have not not equal here and in this label your code here for not equal case. 41 00:03:18,730 --> 00:03:25,240 And after that we will done so your exit code here. 42 00:03:25,240 --> 00:03:29,500 And after that we will need to Siskel for Siskel number for exit. 43 00:03:29,590 --> 00:03:30,400 Move. 44 00:03:31,230 --> 00:03:33,420 Tracks 60. 45 00:03:34,710 --> 00:03:36,060 And XOR. 46 00:03:37,440 --> 00:03:38,430 Are the eye? 47 00:03:39,060 --> 00:03:39,750 Are the eye. 48 00:03:39,780 --> 00:03:41,160 This is the exit status. 49 00:03:41,190 --> 00:03:43,910 Zero and ksql here. 50 00:03:43,920 --> 00:03:46,500 And that's it with our. 51 00:03:47,950 --> 00:03:48,700 Here. 52 00:03:49,180 --> 00:03:52,510 We done for jump if not equal example. 53 00:03:52,510 --> 00:03:58,330 So if we run this, we might get an error here because this is not fully functional yet. 54 00:03:59,200 --> 00:04:03,970 But this is the basic logic of the jump, if not equal. 55 00:04:04,000 --> 00:04:04,330 Here. 56 00:04:04,330 --> 00:04:06,190 So I'm waiting you in next lecture.