WEBVTT

00:00.660 --> 00:00.930
Hello.

00:00.930 --> 00:02.100
My name is Stefan.

00:02.160 --> 00:06.900
In this lecture, you will learn about the G and E, which is jump if not equal.

00:07.110 --> 00:15.210
On the flip side of G, jump If equal, we encounter G and E, This is a compelling command that translates

00:15.210 --> 00:17.160
to jump if not equal.

00:17.160 --> 00:25.830
So diametrically opposed to the G instruction G and M jump if not equal, rests on the zero flag as

00:25.830 --> 00:26.340
well.

00:26.370 --> 00:35.640
However, this time it recognizes whether z f is zero, indicating a departure from equality, whether

00:35.640 --> 00:38.760
we are handling signed or unsigned values.

00:38.790 --> 00:48.410
The G and E Directive empowers us to greet program execution along the virgin path when values are unequal.

00:48.420 --> 00:51.930
So here again we will add another example as well.

00:52.500 --> 00:54.210
Let's create a section here.

00:56.280 --> 00:58.320
Election data.

01:00.720 --> 01:02.430
And here we will create it.

01:02.550 --> 01:05.010
We will define two values.

01:05.010 --> 01:11.460
We will define a byte with a value ten, and we will define another byte with a value of 20.

01:12.530 --> 01:14.060
So value one.

01:15.540 --> 01:20.430
DB and ten value to DB.

01:21.630 --> 01:22.920
20 here.

01:22.920 --> 01:26.430
And we will also create a section text.

01:26.610 --> 01:30.030
This is the global start here.

01:33.830 --> 01:35.660
And after that we will.

01:41.080 --> 01:41.530
Move.

01:41.530 --> 01:48.880
So we will move the value of the move, the value of one into a register.

01:49.390 --> 01:53.890
So move a byte.

01:55.560 --> 01:57.660
And value one.

01:58.410 --> 02:02.310
And we will move the bell register.

02:02.520 --> 02:07.530
So we will move the value of value two into the bell register.

02:07.550 --> 02:10.020
So bite and.

02:13.690 --> 02:16.650
And value you.

02:17.540 --> 02:18.200
Here.

02:20.500 --> 02:23.890
And after that we will add the CMP.

02:23.920 --> 02:30.940
We will compare the values in Al and BL cmp Al and B.

02:33.650 --> 02:41.510
And here after that, we will use this jump, if not equal, here.

02:41.630 --> 02:45.550
D and E is not equal.

02:45.560 --> 02:46.460
So.

02:48.400 --> 02:53.440
We will jump to not equal label if they are not equal.

02:53.440 --> 02:58.480
So here we will develop our labels here equal.

02:58.690 --> 03:06.640
So you will write your code here for an equal case.

03:06.640 --> 03:18.730
And we also have not not equal here and in this label your code here for not equal case.

03:18.730 --> 03:25.240
And after that we will done so your exit code here.

03:25.240 --> 03:29.500
And after that we will need to Siskel for Siskel number for exit.

03:29.590 --> 03:30.400
Move.

03:31.230 --> 03:33.420
Tracks 60.

03:34.710 --> 03:36.060
And XOR.

03:37.440 --> 03:38.420
Are the eye?

03:39.060 --> 03:39.750
Are the eye.

03:39.780 --> 03:41.160
This is the exit status.

03:41.190 --> 03:43.910
Zero and ksql here.

03:43.920 --> 03:46.500
And that's it with our.

03:47.950 --> 03:48.700
Here.

03:49.180 --> 03:52.510
We done for jump if not equal example.

03:52.510 --> 03:58.330
So if we run this, we might get an error here because this is not fully functional yet.

03:59.200 --> 04:03.970
But this is the basic logic of the jump, if not equal.

04:04.000 --> 04:04.330
Here.

04:04.330 --> 04:06.190
So I'm waiting you in next lecture.
