WEBVTT

1
00:03.040 --> 00:05.230
Hello and welcome to a new section.

2
00:05.560 --> 00:09.280
In this new section, we are going to learn about branching.

3
00:09.760 --> 00:15.340
The way to implement branching in assembly is by using jumps.

4
00:15.670 --> 00:21.580
After this stage, so far, the code that we have written is all executed sequentially.

5
00:21.580 --> 00:25.720
But now we learn how to do branching.

6
00:26.780 --> 00:29.570
So there are two kinds of jumps.

7
00:30.430 --> 00:32.920
The first is unconditional jumps.

8
00:33.550 --> 00:39.130
Unconditional jumps use the JMP instruction. In unconditional jumps,

9
00:39.160 --> 00:42.970
the jump will take place irrespective of any conditions.

10
00:43.600 --> 00:50.590
In conditional jumps, the jump will take place depending on the values in the - register.

11
00:50.620 --> 00:55.150
Two examples of conditional jumps are JZ and JNZ.

12
00:57.810 --> 01:01.740
So conditional jumps are based on values inside the - register.

13
01:02.010 --> 01:07.800
There are other types of conditional jumps as well, besides JZ and JNZ, which we may take a look at in the

14
01:07.800 --> 01:08.850
coming lessons.

15
01:09.360 --> 01:11.190
So that's all for this video.

16
01:11.190 --> 01:12.480
See you in the next one.

17
01:12.930 --> 01:14.220
Thank you for watching.