WEBVTT

00:01.470 --> 00:06.430
Now let's discuss how bitwise exclusive art works in assembly.

00:07.080 --> 00:11.040
I'm going to create a new program called Gardot Nazan.

00:17.210 --> 00:27.050
Once again, we are going to start with global director of global underscored start and then let's set

00:27.050 --> 00:39.680
up an entry point here, which is start and let us type move Torex Kharma 20 and let us do our IREX

00:40.130 --> 00:41.420
come up IREX.

00:42.440 --> 00:50.750
As you can see, we have moved the value 20 into the Register X and then we are doing ADR operation

00:50.750 --> 00:52.730
on our eggs with itself.

00:53.330 --> 00:55.610
Now let's understand what happens here.

00:56.120 --> 01:04.460
Each bit in the oryx register is going to go through a bitwise exclusive or operation with each beat

01:04.460 --> 01:05.220
in itself.

01:05.780 --> 01:13.160
So essentially this is going to produce value zero and then it's going to be stored in Artex register.

01:13.640 --> 01:18.440
So this instruction is essentially used to save zero in Durex.

01:18.920 --> 01:29.310
Leapster started using GDP and going to assemble and link this using Nazeem and Early Nazem Gardot,

01:29.360 --> 01:36.860
Nazan and Tzar dot o dash f l 64.

01:38.630 --> 01:44.360
Now let's link it using the dart of Lashko.

01:45.020 --> 01:45.480
Gah.

01:47.000 --> 01:52.760
Now let's open this file using GDP gdp dot slash za.

01:54.770 --> 02:00.250
And let's set up a breakpoint at the entry point of the program and let's type are.

02:04.780 --> 02:07.410
I'm just typing run to run this program.

02:10.220 --> 02:16.070
If you look at the disassembly, these are the two instructions that we have written, once again,

02:16.080 --> 02:18.890
RDX is replaced with X here.

02:19.370 --> 02:20.690
Now, let's say.

02:23.700 --> 02:27.850
And that register should now have exfoliant.

02:30.720 --> 02:36.750
Now the next instruction to be executed is Artex Cuma IREX.

02:37.770 --> 02:43.210
After executing this bizarre instruction, Arrigo's Register should contain zero.

02:43.600 --> 02:49.890
Let's check that I'm typing Essi once again and let's scroll up.

02:51.800 --> 02:56.640
And looking back, Alex is now holding zero, right?

02:56.780 --> 03:04.040
That's how our operation works when we specify exact operation, each bit in the register is going to

03:04.040 --> 03:10.490
go through a bitwise exclusive on operation in each bid, in the second register, and the result will

03:10.490 --> 03:12.050
be stored in the second register.

03:12.470 --> 03:15.500
That's how bitwise exclusive our works.
