WEBVTT
Kind: captions
Language: en

00:00:00.000 --> 00:00:03.990 align:start position:0%
 
so<00:00:00.120><c> let's</c><00:00:00.280><c> run</c><00:00:00.920><c> this</c><00:00:01.920><c> and</c><00:00:02.120><c> here</c><00:00:02.240><c> we</c><00:00:02.440><c> go</c><00:00:03.120><c> our</c><00:00:03.320><c> gcd</c>

00:00:03.990 --> 00:00:04.000 align:start position:0%
so let's run this and here we go our gcd
 

00:00:04.000 --> 00:00:05.570 align:start position:0%
so let's run this and here we go our gcd
is

00:00:05.570 --> 00:00:05.580 align:start position:0%
is
 

00:00:05.580 --> 00:00:13.430 align:start position:0%
is
[Music]

00:00:13.430 --> 00:00:13.440 align:start position:0%
[Music]
 

00:00:13.440 --> 00:00:15.549 align:start position:0%
[Music]
seven<00:00:14.440><c> Hi</c><00:00:14.599><c> everyone</c><00:00:15.040><c> thanks</c><00:00:15.200><c> for</c><00:00:15.360><c> watching</c>

00:00:15.549 --> 00:00:15.559 align:start position:0%
seven Hi everyone thanks for watching
 

00:00:15.559 --> 00:00:17.429 align:start position:0%
seven Hi everyone thanks for watching
Lori<00:00:15.879><c> wired</c><00:00:16.560><c> and</c><00:00:16.680><c> in</c><00:00:16.840><c> this</c><00:00:17.000><c> video</c><00:00:17.199><c> we're</c><00:00:17.320><c> going</c>

00:00:17.429 --> 00:00:17.439 align:start position:0%
Lori wired and in this video we're going
 

00:00:17.439 --> 00:00:19.670 align:start position:0%
Lori wired and in this video we're going
to<00:00:17.520><c> be</c><00:00:17.680><c> translating</c><00:00:18.199><c> C++</c><00:00:18.960><c> code</c><00:00:19.240><c> over</c><00:00:19.439><c> to</c>

00:00:19.670 --> 00:00:19.680 align:start position:0%
to be translating C++ code over to
 

00:00:19.680 --> 00:00:22.950 align:start position:0%
to be translating C++ code over to
assembly<00:00:20.160><c> to</c><00:00:20.359><c> compute</c><00:00:20.840><c> the</c><00:00:21.039><c> gcd</c><00:00:22.039><c> now</c><00:00:22.160><c> the</c><00:00:22.279><c> gcd</c>

00:00:22.950 --> 00:00:22.960 align:start position:0%
assembly to compute the gcd now the gcd
 

00:00:22.960 --> 00:00:25.230 align:start position:0%
assembly to compute the gcd now the gcd
is<00:00:23.080><c> the</c><00:00:23.320><c> greatest</c><00:00:23.720><c> common</c><00:00:24.160><c> diviser</c><00:00:24.840><c> or</c><00:00:25.039><c> the</c>

00:00:25.230 --> 00:00:25.240 align:start position:0%
is the greatest common diviser or the
 

00:00:25.240 --> 00:00:27.470 align:start position:0%
is the greatest common diviser or the
largest<00:00:25.680><c> number</c><00:00:26.080><c> that</c><00:00:26.279><c> divides</c><00:00:26.760><c> evenly</c><00:00:27.240><c> into</c>

00:00:27.470 --> 00:00:27.480 align:start position:0%
largest number that divides evenly into
 

00:00:27.480 --> 00:00:29.710 align:start position:0%
largest number that divides evenly into
two<00:00:27.760><c> different</c><00:00:28.119><c> operan</c><00:00:29.119><c> now</c><00:00:29.279><c> this</c><00:00:29.400><c> is</c><00:00:29.519><c> also</c>

00:00:29.710 --> 00:00:29.720 align:start position:0%
two different operan now this is also
 

00:00:29.720 --> 00:00:31.990 align:start position:0%
two different operan now this is also
known<00:00:30.160><c> as</c><00:00:30.279><c> the</c><00:00:30.400><c> ukian</c><00:00:30.960><c> algorithm</c><00:00:31.679><c> so</c><00:00:31.840><c> at</c><00:00:31.920><c> the</c>

00:00:31.990 --> 00:00:32.000 align:start position:0%
known as the ukian algorithm so at the
 

00:00:32.000 --> 00:00:33.709 align:start position:0%
known as the ukian algorithm so at the
end<00:00:32.160><c> of</c><00:00:32.279><c> this</c><00:00:32.480><c> video</c><00:00:32.759><c> our</c><00:00:32.920><c> friend</c><00:00:33.160><c> uid</c><00:00:33.600><c> is</c>

00:00:33.709 --> 00:00:33.719 align:start position:0%
end of this video our friend uid is
 

00:00:33.719 --> 00:00:36.069 align:start position:0%
end of this video our friend uid is
going<00:00:33.920><c> to</c><00:00:34.200><c> display</c><00:00:35.000><c> what</c><00:00:35.160><c> gcd</c><00:00:35.760><c> we</c><00:00:35.879><c> have</c>

00:00:36.069 --> 00:00:36.079 align:start position:0%
going to display what gcd we have
 

00:00:36.079 --> 00:00:38.510 align:start position:0%
going to display what gcd we have
successfully<00:00:36.719><c> computed</c><00:00:37.320><c> inside</c><00:00:37.640><c> of</c><00:00:37.840><c> assembly</c>

00:00:38.510 --> 00:00:38.520 align:start position:0%
successfully computed inside of assembly
 

00:00:38.520 --> 00:00:39.990 align:start position:0%
successfully computed inside of assembly
so<00:00:38.680><c> let's</c><00:00:38.879><c> get</c><00:00:39.040><c> right</c><00:00:39.200><c> into</c><00:00:39.399><c> it</c><00:00:39.520><c> and</c><00:00:39.680><c> let's</c><00:00:39.840><c> see</c>

00:00:39.990 --> 00:00:40.000 align:start position:0%
so let's get right into it and let's see
 

00:00:40.000 --> 00:00:42.350 align:start position:0%
so let's get right into it and let's see
what<00:00:40.120><c> that</c><00:00:40.280><c> looks</c><00:00:40.760><c> like</c><00:00:41.760><c> now</c><00:00:41.960><c> I'm</c><00:00:42.079><c> going</c><00:00:42.160><c> to</c>

00:00:42.350 --> 00:00:42.360 align:start position:0%
what that looks like now I'm going to
 

00:00:42.360 --> 00:00:45.590 align:start position:0%
what that looks like now I'm going to
open<00:00:42.600><c> up</c><00:00:42.879><c> the</c><00:00:43.239><c> algorithm</c><00:00:43.800><c> in</c><00:00:44.399><c> C++</c><00:00:45.399><c> and</c>

00:00:45.590 --> 00:00:45.600 align:start position:0%
open up the algorithm in C++ and
 

00:00:45.600 --> 00:00:47.150 align:start position:0%
open up the algorithm in C++ and
generally<00:00:46.079><c> what</c><00:00:46.199><c> I</c><00:00:46.320><c> like</c><00:00:46.480><c> to</c><00:00:46.640><c> do</c><00:00:46.879><c> if</c><00:00:47.039><c> I'm</c>

00:00:47.150 --> 00:00:47.160 align:start position:0%
generally what I like to do if I'm
 

00:00:47.160 --> 00:00:49.189 align:start position:0%
generally what I like to do if I'm
trying<00:00:47.399><c> to</c><00:00:47.640><c> work</c><00:00:47.840><c> on</c><00:00:48.079><c> assembly</c><00:00:48.520><c> code</c><00:00:48.879><c> is</c>

00:00:49.189 --> 00:00:49.199 align:start position:0%
trying to work on assembly code is
 

00:00:49.199 --> 00:00:51.950 align:start position:0%
trying to work on assembly code is
basically<00:00:49.840><c> implement</c><00:00:50.399><c> the</c><00:00:50.520><c> algorithm</c><00:00:51.160><c> first</c>

00:00:51.950 --> 00:00:51.960 align:start position:0%
basically implement the algorithm first
 

00:00:51.960 --> 00:00:54.910 align:start position:0%
basically implement the algorithm first
in<00:00:52.160><c> a</c><00:00:52.359><c> higher</c><00:00:52.640><c> level</c><00:00:52.920><c> language</c><00:00:53.359><c> like</c><00:00:53.480><c> C</c><00:00:53.800><c> or</c><00:00:54.000><c> C++</c>

00:00:54.910 --> 00:00:54.920 align:start position:0%
in a higher level language like C or C++
 

00:00:54.920 --> 00:00:57.549 align:start position:0%
in a higher level language like C or C++
that<00:00:55.079><c> is</c><00:00:55.719><c> fairly</c><00:00:56.120><c> easy</c><00:00:56.399><c> to</c><00:00:56.640><c> translate</c>

00:00:57.549 --> 00:00:57.559 align:start position:0%
that is fairly easy to translate
 

00:00:57.559 --> 00:00:59.310 align:start position:0%
that is fairly easy to translate
basically<00:00:58.039><c> line</c><00:00:58.320><c> by</c><00:00:58.559><c> line</c><00:00:58.879><c> over</c><00:00:59.079><c> to</c>

00:00:59.310 --> 00:00:59.320 align:start position:0%
basically line by line over to
 

00:00:59.320 --> 00:01:01.270 align:start position:0%
basically line by line over to
equivalent<00:00:59.960><c> assembly</c><00:01:00.320><c> code</c><00:01:00.840><c> and</c><00:01:01.000><c> this</c><00:01:01.160><c> kind</c>

00:01:01.270 --> 00:01:01.280 align:start position:0%
equivalent assembly code and this kind
 

00:01:01.280 --> 00:01:03.310 align:start position:0%
equivalent assembly code and this kind
of<00:01:01.440><c> just</c><00:01:01.559><c> helps</c><00:01:01.840><c> me</c><00:01:02.120><c> think</c><00:01:02.440><c> through</c><00:01:02.879><c> how</c><00:01:03.160><c> I'm</c>

00:01:03.310 --> 00:01:03.320 align:start position:0%
of just helps me think through how I'm
 

00:01:03.320 --> 00:01:05.350 align:start position:0%
of just helps me think through how I'm
trying<00:01:03.640><c> to</c><00:01:03.840><c> implement</c><00:01:04.360><c> this</c><00:01:04.760><c> and</c><00:01:04.879><c> get</c><00:01:05.080><c> the</c>

00:01:05.350 --> 00:01:05.360 align:start position:0%
trying to implement this and get the
 

00:01:05.360 --> 00:01:07.390 align:start position:0%
trying to implement this and get the
overall<00:01:05.920><c> goal</c><00:01:06.280><c> of</c><00:01:06.479><c> what</c><00:01:06.640><c> this</c><00:01:06.760><c> is</c><00:01:06.960><c> going</c><00:01:07.159><c> to</c>

00:01:07.390 --> 00:01:07.400 align:start position:0%
overall goal of what this is going to
 

00:01:07.400 --> 00:01:09.469 align:start position:0%
overall goal of what this is going to
look<00:01:07.640><c> like</c><00:01:08.439><c> now</c><00:01:08.640><c> this</c><00:01:08.759><c> is</c><00:01:08.840><c> a</c><00:01:09.000><c> really</c><00:01:09.240><c> nice</c>

00:01:09.469 --> 00:01:09.479 align:start position:0%
look like now this is a really nice
 

00:01:09.479 --> 00:01:11.950 align:start position:0%
look like now this is a really nice
recursive<00:01:10.080><c> approach</c><00:01:10.560><c> so</c><00:01:10.720><c> we</c><00:01:10.880><c> have</c><00:01:11.080><c> the</c><00:01:11.240><c> gcd</c>

00:01:11.950 --> 00:01:11.960 align:start position:0%
recursive approach so we have the gcd
 

00:01:11.960 --> 00:01:14.429 align:start position:0%
recursive approach so we have the gcd
function<00:01:12.360><c> called</c><00:01:12.799><c> from</c><00:01:13.040><c> inside</c><00:01:13.400><c> of</c><00:01:13.600><c> itself</c>

00:01:14.429 --> 00:01:14.439 align:start position:0%
function called from inside of itself
 

00:01:14.439 --> 00:01:16.429 align:start position:0%
function called from inside of itself
you<00:01:14.640><c> have</c><00:01:14.840><c> an</c><00:01:14.960><c> iterative</c><00:01:15.560><c> and</c><00:01:15.720><c> a</c><00:01:15.920><c> recursive</c>

00:01:16.429 --> 00:01:16.439 align:start position:0%
you have an iterative and a recursive
 

00:01:16.439 --> 00:01:18.030 align:start position:0%
you have an iterative and a recursive
option<00:01:16.720><c> for</c><00:01:16.920><c> this</c><00:01:17.159><c> but</c><00:01:17.280><c> they'll</c><00:01:17.520><c> both</c><00:01:17.720><c> do</c><00:01:17.920><c> the</c>

00:01:18.030 --> 00:01:18.040 align:start position:0%
option for this but they'll both do the
 

00:01:18.040 --> 00:01:19.950 align:start position:0%
option for this but they'll both do the
same<00:01:18.320><c> thing</c><00:01:18.920><c> I</c><00:01:19.040><c> personally</c><00:01:19.439><c> think</c><00:01:19.680><c> that</c><00:01:19.799><c> the</c>

00:01:19.950 --> 00:01:19.960 align:start position:0%
same thing I personally think that the
 

00:01:19.960 --> 00:01:21.870 align:start position:0%
same thing I personally think that the
recursive<00:01:20.560><c> approach</c><00:01:20.880><c> is</c><00:01:21.000><c> a</c><00:01:21.119><c> lot</c><00:01:21.320><c> easier</c><00:01:21.680><c> to</c>

00:01:21.870 --> 00:01:21.880 align:start position:0%
recursive approach is a lot easier to
 

00:01:21.880 --> 00:01:24.749 align:start position:0%
recursive approach is a lot easier to
implement<00:01:22.600><c> and</c><00:01:22.720><c> it</c><00:01:22.880><c> just</c><00:01:23.159><c> looks</c><00:01:23.439><c> really</c><00:01:23.759><c> nice</c>

00:01:24.749 --> 00:01:24.759 align:start position:0%
implement and it just looks really nice
 

00:01:24.759 --> 00:01:25.830 align:start position:0%
implement and it just looks really nice
so<00:01:24.920><c> what</c><00:01:25.040><c> we're</c><00:01:25.159><c> going</c><00:01:25.240><c> to</c><00:01:25.360><c> do</c><00:01:25.520><c> is</c><00:01:25.640><c> we're</c><00:01:25.759><c> going</c>

00:01:25.830 --> 00:01:25.840 align:start position:0%
so what we're going to do is we're going
 

00:01:25.840 --> 00:01:27.230 align:start position:0%
so what we're going to do is we're going
to<00:01:25.960><c> go</c><00:01:26.159><c> line</c><00:01:26.400><c> by</c><00:01:26.600><c> line</c><00:01:26.799><c> through</c><00:01:27.000><c> this</c><00:01:27.119><c> and</c>

00:01:27.230 --> 00:01:27.240 align:start position:0%
to go line by line through this and
 

00:01:27.240 --> 00:01:28.870 align:start position:0%
to go line by line through this and
we're<00:01:27.400><c> going</c><00:01:27.560><c> to</c><00:01:27.720><c> translate</c><00:01:28.240><c> this</c><00:01:28.479><c> over</c><00:01:28.680><c> to</c>

00:01:28.870 --> 00:01:28.880 align:start position:0%
we're going to translate this over to
 

00:01:28.880 --> 00:01:31.069 align:start position:0%
we're going to translate this over to
our<00:01:29.040><c> assembly</c><00:01:29.400><c> code</c><00:01:29.920><c> now</c><00:01:30.040><c> I</c><00:01:30.159><c> already</c><00:01:30.600><c> have</c><00:01:30.840><c> a</c>

00:01:31.069 --> 00:01:31.079 align:start position:0%
our assembly code now I already have a
 

00:01:31.079 --> 00:01:33.109 align:start position:0%
our assembly code now I already have a
repository<00:01:31.759><c> that</c><00:01:31.920><c> contains</c><00:01:32.360><c> the</c><00:01:32.520><c> associated</c>

00:01:33.109 --> 00:01:33.119 align:start position:0%
repository that contains the associated
 

00:01:33.119 --> 00:01:35.030 align:start position:0%
repository that contains the associated
code<00:01:33.360><c> for</c><00:01:33.600><c> computing</c><00:01:34.000><c> the</c><00:01:34.119><c> gcd</c><00:01:34.680><c> if</c><00:01:34.759><c> you</c><00:01:34.880><c> would</c>

00:01:35.030 --> 00:01:35.040 align:start position:0%
code for computing the gcd if you would
 

00:01:35.040 --> 00:01:37.550 align:start position:0%
code for computing the gcd if you would
like<00:01:35.159><c> to</c><00:01:35.439><c> follow</c><00:01:35.799><c> along</c><00:01:36.560><c> you</c><00:01:36.759><c> have</c><00:01:36.920><c> a</c><00:01:37.079><c> fillable</c>

00:01:37.550 --> 00:01:37.560 align:start position:0%
like to follow along you have a fillable
 

00:01:37.560 --> 00:01:39.910 align:start position:0%
like to follow along you have a fillable
version<00:01:38.399><c> as</c><00:01:38.520><c> well</c><00:01:38.680><c> as</c><00:01:38.799><c> a</c><00:01:39.000><c> completely</c><00:01:39.439><c> finished</c>

00:01:39.910 --> 00:01:39.920 align:start position:0%
version as well as a completely finished
 

00:01:39.920 --> 00:01:41.429 align:start position:0%
version as well as a completely finished
version<00:01:40.520><c> but</c><00:01:40.640><c> we're</c><00:01:40.759><c> going</c><00:01:40.880><c> to</c><00:01:40.960><c> be</c><00:01:41.079><c> working</c><00:01:41.320><c> on</c>

00:01:41.429 --> 00:01:41.439 align:start position:0%
version but we're going to be working on
 

00:01:41.439 --> 00:01:43.630 align:start position:0%
version but we're going to be working on
the<00:01:41.560><c> fillable</c><00:01:42.040><c> version</c><00:01:42.360><c> today</c><00:01:43.000><c> and</c><00:01:43.240><c> simply</c>

00:01:43.630 --> 00:01:43.640 align:start position:0%
the fillable version today and simply
 

00:01:43.640 --> 00:01:45.149 align:start position:0%
the fillable version today and simply
implement<00:01:44.119><c> the</c><00:01:44.280><c> function</c><00:01:44.600><c> that's</c><00:01:44.920><c> actually</c>

00:01:45.149 --> 00:01:45.159 align:start position:0%
implement the function that's actually
 

00:01:45.159 --> 00:01:47.310 align:start position:0%
implement the function that's actually
doing<00:01:45.439><c> the</c><00:01:45.600><c> recursive</c><00:01:46.240><c> computation</c><00:01:46.920><c> of</c><00:01:47.079><c> the</c>

00:01:47.310 --> 00:01:47.320 align:start position:0%
doing the recursive computation of the
 

00:01:47.320 --> 00:01:50.030 align:start position:0%
doing the recursive computation of the
gcd<00:01:48.320><c> so</c><00:01:48.439><c> I'm</c><00:01:48.520><c> going</c><00:01:48.640><c> to</c><00:01:48.759><c> pull</c><00:01:48.960><c> up</c><00:01:49.200><c> my</c><00:01:49.399><c> Raspberry</c>

00:01:50.030 --> 00:01:50.040 align:start position:0%
gcd so I'm going to pull up my Raspberry
 

00:01:50.040 --> 00:01:51.670 align:start position:0%
gcd so I'm going to pull up my Raspberry
Pi<00:01:50.360><c> where</c><00:01:50.520><c> we're</c><00:01:50.759><c> going</c><00:01:50.840><c> to</c><00:01:50.960><c> be</c><00:01:51.079><c> running</c><00:01:51.439><c> this</c>

00:01:51.670 --> 00:01:51.680 align:start position:0%
Pi where we're going to be running this
 

00:01:51.680 --> 00:01:55.350 align:start position:0%
Pi where we're going to be running this
on<00:01:52.680><c> and</c><00:01:53.040><c> let's</c><00:01:53.240><c> start</c><00:01:53.479><c> doing</c><00:01:54.000><c> this</c><00:01:55.000><c> so</c><00:01:55.200><c> first</c>

00:01:55.350 --> 00:01:55.360 align:start position:0%
on and let's start doing this so first
 

00:01:55.360 --> 00:01:57.149 align:start position:0%
on and let's start doing this so first
of<00:01:55.439><c> all</c><00:01:55.600><c> I</c><00:01:55.719><c> have</c><00:01:55.840><c> a</c><00:01:55.920><c> few</c><00:01:56.119><c> different</c><00:01:56.399><c> files</c><00:01:56.840><c> here</c>

00:01:57.149 --> 00:01:57.159 align:start position:0%
of all I have a few different files here
 

00:01:57.159 --> 00:01:59.109 align:start position:0%
of all I have a few different files here
one<00:01:57.399><c> is</c><00:01:57.560><c> going</c><00:01:57.719><c> to</c><00:01:57.920><c> be</c><00:01:58.200><c> a</c><00:01:58.439><c> python</c><00:01:58.759><c> script</c>

00:01:59.109 --> 00:01:59.119 align:start position:0%
one is going to be a python script
 

00:01:59.119 --> 00:02:01.109 align:start position:0%
one is going to be a python script
that's<00:01:59.280><c> going</c><00:01:59.439><c> to</c><00:01:59.840><c> demonstrate</c><00:02:00.320><c> the</c><00:02:00.439><c> gcd</c><00:02:01.000><c> that</c>

00:02:01.109 --> 00:02:01.119 align:start position:0%
that's going to demonstrate the gcd that
 

00:02:01.119 --> 00:02:02.950 align:start position:0%
that's going to demonstrate the gcd that
we're<00:02:01.320><c> Computing</c><00:02:02.159><c> I</c><00:02:02.240><c> also</c><00:02:02.439><c> have</c><00:02:02.560><c> this</c><00:02:02.680><c> shell</c>

00:02:02.950 --> 00:02:02.960 align:start position:0%
we're Computing I also have this shell
 

00:02:02.960 --> 00:02:05.630 align:start position:0%
we're Computing I also have this shell
script<00:02:03.320><c> which</c><00:02:03.399><c> is</c><00:02:03.560><c> going</c><00:02:03.759><c> to</c><00:02:04.119><c> trigger</c><00:02:04.799><c> our</c><00:02:05.000><c> gcd</c>

00:02:05.630 --> 00:02:05.640 align:start position:0%
script which is going to trigger our gcd
 

00:02:05.640 --> 00:02:08.350 align:start position:0%
script which is going to trigger our gcd
executable<00:02:06.399><c> as</c><00:02:06.520><c> well</c><00:02:06.640><c> as</c><00:02:06.759><c> our</c><00:02:07.000><c> python</c><00:02:07.360><c> gcd</c>

00:02:08.350 --> 00:02:08.360 align:start position:0%
executable as well as our python gcd
 

00:02:08.360 --> 00:02:10.669 align:start position:0%
executable as well as our python gcd
computation<00:02:09.360><c> so</c><00:02:09.520><c> let's</c><00:02:09.720><c> take</c><00:02:09.840><c> a</c><00:02:10.000><c> look</c><00:02:10.239><c> at</c><00:02:10.399><c> our</c>

00:02:10.669 --> 00:02:10.679 align:start position:0%
computation so let's take a look at our
 

00:02:10.679 --> 00:02:14.270 align:start position:0%
computation so let's take a look at our
assembly<00:02:11.239><c> file</c><00:02:11.959><c> and</c><00:02:12.560><c> let's</c><00:02:12.760><c> start</c>

00:02:14.270 --> 00:02:14.280 align:start position:0%
assembly file and let's start
 

00:02:14.280 --> 00:02:17.390 align:start position:0%
assembly file and let's start
editing<00:02:15.280><c> now</c><00:02:15.480><c> I</c><00:02:15.640><c> have</c><00:02:16.160><c> my</c><00:02:16.400><c> main</c><00:02:16.760><c> function</c>

00:02:17.390 --> 00:02:17.400 align:start position:0%
editing now I have my main function
 

00:02:17.400 --> 00:02:19.630 align:start position:0%
editing now I have my main function
already<00:02:17.959><c> completed</c><00:02:18.720><c> and</c><00:02:18.920><c> this</c><00:02:19.040><c> is</c><00:02:19.280><c> completed</c>

00:02:19.630 --> 00:02:19.640 align:start position:0%
already completed and this is completed
 

00:02:19.640 --> 00:02:22.470 align:start position:0%
already completed and this is completed
for<00:02:19.840><c> you</c><00:02:20.080><c> as</c><00:02:20.239><c> well</c><00:02:20.879><c> so</c><00:02:21.040><c> let's</c><00:02:21.280><c> go</c><00:02:21.519><c> over</c><00:02:21.800><c> to</c><00:02:22.120><c> our</c>

00:02:22.470 --> 00:02:22.480 align:start position:0%
for you as well so let's go over to our
 

00:02:22.480 --> 00:02:24.750 align:start position:0%
for you as well so let's go over to our
actual<00:02:23.080><c> GCB</c><00:02:23.640><c> function</c><00:02:24.080><c> which</c><00:02:24.160><c> is</c><00:02:24.280><c> of</c><00:02:24.480><c> interest</c>

00:02:24.750 --> 00:02:24.760 align:start position:0%
actual GCB function which is of interest
 

00:02:24.760 --> 00:02:26.350 align:start position:0%
actual GCB function which is of interest
to

00:02:26.350 --> 00:02:26.360 align:start position:0%
to
 

00:02:26.360 --> 00:02:27.949 align:start position:0%
to
us

00:02:27.949 --> 00:02:27.959 align:start position:0%
us
 

00:02:27.959 --> 00:02:30.390 align:start position:0%
us
okay<00:02:28.959><c> let's</c><00:02:29.200><c> just</c><00:02:29.319><c> get</c><00:02:29.440><c> rid</c><00:02:29.560><c> of</c><00:02:29.879><c> this</c><00:02:30.040><c> default</c>

00:02:30.390 --> 00:02:30.400 align:start position:0%
okay let's just get rid of this default
 

00:02:30.400 --> 00:02:31.990 align:start position:0%
okay let's just get rid of this default
code<00:02:30.680><c> here</c><00:02:30.920><c> and</c><00:02:31.040><c> let's</c><00:02:31.200><c> start</c><00:02:31.400><c> filling</c><00:02:31.720><c> in</c><00:02:31.840><c> our</c>

00:02:31.990 --> 00:02:32.000 align:start position:0%
code here and let's start filling in our
 

00:02:32.000 --> 00:02:35.710 align:start position:0%
code here and let's start filling in our
own<00:02:32.599><c> code</c><00:02:33.599><c> now</c><00:02:33.800><c> I'm</c><00:02:33.959><c> going</c><00:02:34.160><c> to</c><00:02:34.519><c> go</c><00:02:34.879><c> back</c><00:02:35.319><c> to</c><00:02:35.560><c> my</c>

00:02:35.710 --> 00:02:35.720 align:start position:0%
own code now I'm going to go back to my
 

00:02:35.720 --> 00:02:37.990 align:start position:0%
own code now I'm going to go back to my
C++<00:02:36.560><c> implementation</c><00:02:37.400><c> and</c><00:02:37.480><c> let's</c><00:02:37.640><c> start</c>

00:02:37.990 --> 00:02:38.000 align:start position:0%
C++ implementation and let's start
 

00:02:38.000 --> 00:02:39.630 align:start position:0%
C++ implementation and let's start
copying<00:02:38.400><c> over</c><00:02:38.680><c> a</c><00:02:38.800><c> few</c><00:02:39.000><c> of</c><00:02:39.120><c> the</c><00:02:39.280><c> different</c>

00:02:39.630 --> 00:02:39.640 align:start position:0%
copying over a few of the different
 

00:02:39.640 --> 00:02:42.350 align:start position:0%
copying over a few of the different
lines<00:02:40.440><c> so</c><00:02:40.640><c> that</c><00:02:40.840><c> we</c><00:02:41.000><c> can</c><00:02:41.360><c> kind</c><00:02:41.480><c> of</c><00:02:41.640><c> get</c><00:02:41.760><c> an</c><00:02:41.959><c> idea</c>

00:02:42.350 --> 00:02:42.360 align:start position:0%
lines so that we can kind of get an idea
 

00:02:42.360 --> 00:02:44.910 align:start position:0%
lines so that we can kind of get an idea
of<00:02:42.599><c> what</c><00:02:42.800><c> direction</c><00:02:43.280><c> this</c><00:02:43.480><c> function</c><00:02:43.800><c> is</c><00:02:44.000><c> going</c>

00:02:44.910 --> 00:02:44.920 align:start position:0%
of what direction this function is going
 

00:02:44.920 --> 00:02:47.710 align:start position:0%
of what direction this function is going
so<00:02:45.080><c> we</c><00:02:45.280><c> already</c><00:02:45.680><c> know</c><00:02:46.159><c> our</c><00:02:46.440><c> base</c><00:02:46.840><c> case</c><00:02:47.560><c> so</c>

00:02:47.710 --> 00:02:47.720 align:start position:0%
so we already know our base case so
 

00:02:47.720 --> 00:02:51.030 align:start position:0%
so we already know our base case so
let's<00:02:48.040><c> copy</c><00:02:48.959><c> that</c><00:02:49.959><c> and</c><00:02:50.159><c> put</c><00:02:50.360><c> this</c><00:02:50.480><c> in</c><00:02:50.720><c> as</c><00:02:50.840><c> a</c>

00:02:51.030 --> 00:02:51.040 align:start position:0%
let's copy that and put this in as a
 

00:02:51.040 --> 00:02:52.949 align:start position:0%
let's copy that and put this in as a
comment<00:02:51.440><c> so</c><00:02:51.640><c> we</c><00:02:51.760><c> can</c><00:02:51.959><c> see</c><00:02:52.440><c> where</c><00:02:52.680><c> this</c><00:02:52.800><c> is</c>

00:02:52.949 --> 00:02:52.959 align:start position:0%
comment so we can see where this is
 

00:02:52.959 --> 00:02:55.509 align:start position:0%
comment so we can see where this is
going<00:02:53.120><c> to</c><00:02:53.239><c> be</c><00:02:53.440><c> taking</c><00:02:53.800><c> us</c><00:02:54.800><c> so</c><00:02:54.959><c> I'm</c><00:02:55.000><c> going</c><00:02:55.120><c> to</c><00:02:55.239><c> do</c>

00:02:55.509 --> 00:02:55.519 align:start position:0%
going to be taking us so I'm going to do
 

00:02:55.519 --> 00:02:57.670 align:start position:0%
going to be taking us so I'm going to do
this<00:02:56.200><c> copy</c><00:02:56.720><c> we'll</c>

00:02:57.670 --> 00:02:57.680 align:start position:0%
this copy we'll
 

00:02:57.680 --> 00:03:00.949 align:start position:0%
this copy we'll
insert<00:02:58.680><c> a</c><00:02:58.879><c> new</c><00:02:59.120><c> comment</c>

00:03:00.949 --> 00:03:00.959 align:start position:0%
insert a new comment
 

00:03:00.959 --> 00:03:02.550 align:start position:0%
insert a new comment
and<00:03:01.200><c> we'll</c><00:03:01.400><c> just</c><00:03:01.560><c> put</c><00:03:01.720><c> the</c><00:03:01.879><c> entire</c><00:03:02.200><c> thing</c><00:03:02.360><c> on</c>

00:03:02.550 --> 00:03:02.560 align:start position:0%
and we'll just put the entire thing on
 

00:03:02.560 --> 00:03:04.470 align:start position:0%
and we'll just put the entire thing on
one<00:03:02.800><c> line</c><00:03:03.080><c> I</c><00:03:03.159><c> think</c><00:03:03.319><c> that's</c><00:03:03.519><c> easier</c><00:03:04.239><c> so</c><00:03:04.360><c> we're</c>

00:03:04.470 --> 00:03:04.480 align:start position:0%
one line I think that's easier so we're
 

00:03:04.480 --> 00:03:06.990 align:start position:0%
one line I think that's easier so we're
going<00:03:04.560><c> to</c><00:03:04.680><c> be</c><00:03:04.799><c> returning</c><00:03:05.360><c> a</c><00:03:05.760><c> if</c><00:03:05.959><c> B</c><00:03:06.239><c> equals</c><00:03:06.640><c> z</c>

00:03:06.990 --> 00:03:07.000 align:start position:0%
going to be returning a if B equals z
 

00:03:07.000 --> 00:03:09.789 align:start position:0%
going to be returning a if B equals z
and<00:03:07.159><c> we'll</c><00:03:07.519><c> return</c>

00:03:09.789 --> 00:03:09.799 align:start position:0%
and we'll return
 

00:03:09.799 --> 00:03:12.149 align:start position:0%
and we'll return
a<00:03:10.799><c> and</c><00:03:10.920><c> that's</c><00:03:11.080><c> going</c><00:03:11.200><c> to</c><00:03:11.319><c> be</c><00:03:11.560><c> inside</c><00:03:11.840><c> of</c><00:03:12.000><c> our</c>

00:03:12.149 --> 00:03:12.159 align:start position:0%
a and that's going to be inside of our
 

00:03:12.159 --> 00:03:13.229 align:start position:0%
a and that's going to be inside of our
if

00:03:13.229 --> 00:03:13.239 align:start position:0%
if
 

00:03:13.239 --> 00:03:15.630 align:start position:0%
if
statement<00:03:14.239><c> very</c><00:03:14.480><c> nice</c><00:03:15.000><c> so</c><00:03:15.200><c> this</c><00:03:15.319><c> is</c><00:03:15.440><c> going</c><00:03:15.519><c> to</c>

00:03:15.630 --> 00:03:15.640 align:start position:0%
statement very nice so this is going to
 

00:03:15.640 --> 00:03:18.910 align:start position:0%
statement very nice so this is going to
be<00:03:15.920><c> our</c><00:03:16.239><c> base</c><00:03:16.599><c> case</c><00:03:17.080><c> let</c><00:03:17.200><c> me</c><00:03:17.440><c> just</c><00:03:18.400><c> add</c><00:03:18.640><c> that</c><00:03:18.760><c> in</c>

00:03:18.910 --> 00:03:18.920 align:start position:0%
be our base case let me just add that in
 

00:03:18.920 --> 00:03:22.390 align:start position:0%
be our base case let me just add that in
as<00:03:19.040><c> a</c><00:03:19.200><c> comment</c><00:03:19.640><c> as</c>

00:03:22.390 --> 00:03:22.400 align:start position:0%
 
 

00:03:22.400 --> 00:03:24.869 align:start position:0%
 
well<00:03:23.400><c> so</c><00:03:23.599><c> that</c><00:03:23.799><c> looks</c><00:03:24.040><c> good</c><00:03:24.200><c> and</c><00:03:24.360><c> that</c><00:03:24.640><c> should</c>

00:03:24.869 --> 00:03:24.879 align:start position:0%
well so that looks good and that should
 

00:03:24.879 --> 00:03:26.869 align:start position:0%
well so that looks good and that should
make<00:03:25.200><c> a</c><00:03:25.319><c> decent</c><00:03:25.599><c> amount</c><00:03:25.799><c> of</c><00:03:25.959><c> sense</c><00:03:26.239><c> inside</c><00:03:26.519><c> of</c>

00:03:26.869 --> 00:03:26.879 align:start position:0%
make a decent amount of sense inside of
 

00:03:26.879 --> 00:03:29.910 align:start position:0%
make a decent amount of sense inside of
C++<00:03:27.879><c> and</c><00:03:28.080><c> this</c><00:03:28.200><c> is</c><00:03:28.760><c> pretty</c><00:03:29.080><c> straightforward</c>

00:03:29.910 --> 00:03:29.920 align:start position:0%
C++ and this is pretty straightforward
 

00:03:29.920 --> 00:03:31.869 align:start position:0%
C++ and this is pretty straightforward
to<00:03:30.040><c> translate</c><00:03:30.599><c> directly</c><00:03:31.080><c> over</c><00:03:31.280><c> to</c><00:03:31.560><c> Raw</c>

00:03:31.869 --> 00:03:31.879 align:start position:0%
to translate directly over to Raw
 

00:03:31.879 --> 00:03:34.710 align:start position:0%
to translate directly over to Raw
assembly<00:03:32.360><c> code</c><00:03:33.360><c> so</c><00:03:33.519><c> let's</c><00:03:33.680><c> input</c><00:03:33.920><c> a</c><00:03:34.040><c> new</c><00:03:34.480><c> new</c>

00:03:34.710 --> 00:03:34.720 align:start position:0%
assembly code so let's input a new new
 

00:03:34.720 --> 00:03:36.190 align:start position:0%
assembly code so let's input a new new
line<00:03:35.000><c> and</c><00:03:35.159><c> let's</c><00:03:35.480><c> just</c><00:03:35.720><c> go</c><00:03:35.879><c> ahead</c><00:03:36.040><c> and</c>

00:03:36.190 --> 00:03:36.200 align:start position:0%
line and let's just go ahead and
 

00:03:36.200 --> 00:03:38.630 align:start position:0%
line and let's just go ahead and
translate<00:03:36.720><c> that</c><00:03:37.360><c> now</c><00:03:37.480><c> the</c><00:03:37.640><c> first</c><00:03:37.959><c> comparison</c>

00:03:38.630 --> 00:03:38.640 align:start position:0%
translate that now the first comparison
 

00:03:38.640 --> 00:03:40.509 align:start position:0%
translate that now the first comparison
our<00:03:38.840><c> if</c><00:03:39.080><c> statement</c><00:03:39.560><c> can</c><00:03:39.680><c> be</c><00:03:39.879><c> translated</c>

00:03:40.509 --> 00:03:40.519 align:start position:0%
our if statement can be translated
 

00:03:40.519 --> 00:03:43.589 align:start position:0%
our if statement can be translated
directly<00:03:41.000><c> over</c><00:03:41.200><c> to</c><00:03:41.360><c> the</c><00:03:41.519><c> CMP</c><00:03:42.400><c> operator</c><00:03:43.400><c> now</c><00:03:43.519><c> if</c>

00:03:43.589 --> 00:03:43.599 align:start position:0%
directly over to the CMP operator now if
 

00:03:43.599 --> 00:03:45.429 align:start position:0%
directly over to the CMP operator now if
we<00:03:43.799><c> take</c><00:03:43.959><c> a</c><00:03:44.159><c> look</c><00:03:44.319><c> at</c><00:03:44.519><c> how</c><00:03:44.760><c> this</c><00:03:44.959><c> function</c><00:03:45.280><c> is</c>

00:03:45.429 --> 00:03:45.439 align:start position:0%
we take a look at how this function is
 

00:03:45.439 --> 00:03:47.949 align:start position:0%
we take a look at how this function is
being<00:03:45.840><c> called</c><00:03:46.519><c> we're</c><00:03:46.799><c> passing</c><00:03:47.200><c> over</c><00:03:47.560><c> two</c>

00:03:47.949 --> 00:03:47.959 align:start position:0%
being called we're passing over two
 

00:03:47.959 --> 00:03:51.429 align:start position:0%
being called we're passing over two
operan<00:03:48.760><c> to</c><00:03:49.080><c> this</c><00:03:49.280><c> gcd</c><00:03:49.959><c> function</c><00:03:50.959><c> so</c><00:03:51.080><c> if</c><00:03:51.159><c> we</c><00:03:51.319><c> go</c>

00:03:51.429 --> 00:03:51.439 align:start position:0%
operan to this gcd function so if we go
 

00:03:51.439 --> 00:03:53.069 align:start position:0%
operan to this gcd function so if we go
over<00:03:51.599><c> to</c><00:03:51.760><c> our</c><00:03:51.879><c> main</c><00:03:52.200><c> function</c><00:03:52.640><c> you</c><00:03:52.720><c> can</c><00:03:52.840><c> see</c>

00:03:53.069 --> 00:03:53.079 align:start position:0%
over to our main function you can see
 

00:03:53.079 --> 00:03:55.910 align:start position:0%
over to our main function you can see
we're<00:03:53.360><c> expecting</c><00:03:54.360><c> two</c><00:03:54.760><c> operands</c><00:03:55.480><c> to</c><00:03:55.599><c> be</c>

00:03:55.910 --> 00:03:55.920 align:start position:0%
we're expecting two operands to be
 

00:03:55.920 --> 00:03:58.630 align:start position:0%
we're expecting two operands to be
passed<00:03:56.439><c> over</c><00:03:56.640><c> to</c><00:03:56.879><c> this</c><00:03:57.040><c> gcd</c><00:03:57.640><c> function</c><00:03:58.519><c> the</c>

00:03:58.630 --> 00:03:58.640 align:start position:0%
passed over to this gcd function the
 

00:03:58.640 --> 00:04:00.069 align:start position:0%
passed over to this gcd function the
first<00:03:58.920><c> is</c><00:03:59.040><c> going</c><00:03:59.200><c> to</c><00:03:59.319><c> be</c><00:03:59.480><c> of</c><00:03:59.680><c> of</c><00:03:59.760><c> course</c><00:03:59.959><c> the</c>

00:04:00.069 --> 00:04:00.079 align:start position:0%
first is going to be of of course the
 

00:04:00.079 --> 00:04:02.270 align:start position:0%
first is going to be of of course the
first<00:04:00.319><c> operand</c><00:04:00.920><c> that</c><00:04:01.000><c> we're</c><00:04:01.200><c> dividing</c><00:04:01.560><c> into</c>

00:04:02.270 --> 00:04:02.280 align:start position:0%
first operand that we're dividing into
 

00:04:02.280 --> 00:04:04.110 align:start position:0%
first operand that we're dividing into
then<00:04:02.439><c> the</c><00:04:02.560><c> second</c><00:04:02.840><c> is</c><00:04:03.000><c> the</c><00:04:03.159><c> second</c><00:04:03.599><c> operand</c>

00:04:04.110 --> 00:04:04.120 align:start position:0%
then the second is the second operand
 

00:04:04.120 --> 00:04:06.429 align:start position:0%
then the second is the second operand
that<00:04:04.239><c> we're</c><00:04:04.400><c> dividing</c><00:04:04.720><c> into</c><00:04:05.200><c> to</c><00:04:05.360><c> find</c><00:04:05.760><c> the</c><00:04:05.879><c> gcd</c>

00:04:06.429 --> 00:04:06.439 align:start position:0%
that we're dividing into to find the gcd
 

00:04:06.439 --> 00:04:08.789 align:start position:0%
that we're dividing into to find the gcd
of<00:04:06.680><c> both</c><00:04:06.879><c> of</c><00:04:07.000><c> these</c><00:04:07.239><c> operand</c><00:04:08.239><c> now</c><00:04:08.400><c> these</c><00:04:08.519><c> are</c>

00:04:08.789 --> 00:04:08.799 align:start position:0%
of both of these operand now these are
 

00:04:08.799 --> 00:04:11.830 align:start position:0%
of both of these operand now these are
passed<00:04:09.200><c> inside</c><00:04:09.480><c> of</c><00:04:09.599><c> our</c><00:04:09.760><c> r0</c><00:04:10.360><c> and</c><00:04:10.519><c> R1</c><00:04:10.959><c> registers</c>

00:04:11.830 --> 00:04:11.840 align:start position:0%
passed inside of our r0 and R1 registers
 

00:04:11.840 --> 00:04:13.429 align:start position:0%
passed inside of our r0 and R1 registers
which<00:04:11.959><c> is</c><00:04:12.120><c> kind</c><00:04:12.280><c> of</c><00:04:12.400><c> the</c><00:04:12.519><c> standard</c><00:04:12.959><c> practice</c>

00:04:13.429 --> 00:04:13.439 align:start position:0%
which is kind of the standard practice
 

00:04:13.439 --> 00:04:14.990 align:start position:0%
which is kind of the standard practice
if<00:04:13.560><c> you're</c><00:04:13.760><c> passing</c><00:04:14.120><c> arguments</c><00:04:14.640><c> to</c><00:04:14.840><c> a</c>

00:04:14.990 --> 00:04:15.000 align:start position:0%
if you're passing arguments to a
 

00:04:15.000 --> 00:04:17.270 align:start position:0%
if you're passing arguments to a
function<00:04:15.400><c> inside</c><00:04:15.720><c> of</c><00:04:15.840><c> armv7</c>

00:04:17.270 --> 00:04:17.280 align:start position:0%
function inside of armv7
 

00:04:17.280 --> 00:04:19.469 align:start position:0%
function inside of armv7
assembly<00:04:18.280><c> so</c><00:04:18.479><c> now</c><00:04:18.600><c> we</c><00:04:18.720><c> know</c><00:04:18.919><c> where</c><00:04:19.040><c> our</c><00:04:19.199><c> two</c>

00:04:19.469 --> 00:04:19.479 align:start position:0%
assembly so now we know where our two
 

00:04:19.479 --> 00:04:22.469 align:start position:0%
assembly so now we know where our two
arguments<00:04:20.000><c> are</c><00:04:20.440><c> so</c><00:04:20.680><c> R</c><00:04:21.239><c> r0</c><00:04:21.799><c> is</c><00:04:21.959><c> going</c><00:04:22.079><c> to</c><00:04:22.240><c> be</c>

00:04:22.469 --> 00:04:22.479 align:start position:0%
arguments are so R r0 is going to be
 

00:04:22.479 --> 00:04:25.390 align:start position:0%
arguments are so R r0 is going to be
equal<00:04:22.720><c> to</c><00:04:22.919><c> our</c><00:04:23.080><c> a</c><00:04:23.440><c> value</c><00:04:24.440><c> and</c><00:04:24.560><c> then</c><00:04:24.720><c> R1</c><00:04:25.240><c> is</c>

00:04:25.390 --> 00:04:25.400 align:start position:0%
equal to our a value and then R1 is
 

00:04:25.400 --> 00:04:27.909 align:start position:0%
equal to our a value and then R1 is
going<00:04:25.520><c> to</c><00:04:25.720><c> be</c><00:04:25.880><c> equal</c><00:04:26.120><c> to</c><00:04:26.360><c> our</c><00:04:26.680><c> B</c><00:04:27.120><c> value</c><00:04:27.680><c> so</c><00:04:27.800><c> we</c>

00:04:27.909 --> 00:04:27.919 align:start position:0%
going to be equal to our B value so we
 

00:04:27.919 --> 00:04:30.710 align:start position:0%
going to be equal to our B value so we
have<00:04:28.040><c> our</c><00:04:28.199><c> two</c><00:04:28.600><c> operands</c>

00:04:30.710 --> 00:04:30.720 align:start position:0%
have our two operands
 

00:04:30.720 --> 00:04:33.029 align:start position:0%
have our two operands
now<00:04:31.000><c> let's</c><00:04:31.240><c> go</c><00:04:31.400><c> ahead</c><00:04:32.320><c> and</c><00:04:32.560><c> let's</c><00:04:32.759><c> do</c><00:04:32.880><c> our</c>

00:04:33.029 --> 00:04:33.039 align:start position:0%
now let's go ahead and let's do our
 

00:04:33.039 --> 00:04:35.150 align:start position:0%
now let's go ahead and let's do our
comparison<00:04:33.680><c> so</c><00:04:33.840><c> let's</c><00:04:34.000><c> do</c>

00:04:35.150 --> 00:04:35.160 align:start position:0%
comparison so let's do
 

00:04:35.160 --> 00:04:37.590 align:start position:0%
comparison so let's do
CMP<00:04:36.160><c> and</c><00:04:36.280><c> we're</c><00:04:36.479><c> trying</c><00:04:36.720><c> to</c><00:04:36.919><c> compare</c><00:04:37.360><c> the</c>

00:04:37.590 --> 00:04:37.600 align:start position:0%
CMP and we're trying to compare the
 

00:04:37.600 --> 00:04:39.550 align:start position:0%
CMP and we're trying to compare the
value<00:04:37.880><c> of</c><00:04:38.080><c> B</c><00:04:38.560><c> currently</c><00:04:39.120><c> so</c><00:04:39.280><c> that's</c><00:04:39.400><c> going</c><00:04:39.479><c> to</c>

00:04:39.550 --> 00:04:39.560 align:start position:0%
value of B currently so that's going to
 

00:04:39.560 --> 00:04:41.990 align:start position:0%
value of B currently so that's going to
be<00:04:39.639><c> our</c><00:04:39.800><c> R1</c><00:04:40.400><c> register</c><00:04:41.400><c> and</c><00:04:41.520><c> then</c><00:04:41.639><c> what</c><00:04:41.759><c> are</c><00:04:41.880><c> we</c>

00:04:41.990 --> 00:04:42.000 align:start position:0%
be our R1 register and then what are we
 

00:04:42.000 --> 00:04:43.550 align:start position:0%
be our R1 register and then what are we
trying<00:04:42.199><c> to</c><00:04:42.400><c> compare</c><00:04:42.759><c> to</c><00:04:43.000><c> we're</c><00:04:43.160><c> trying</c><00:04:43.400><c> to</c>

00:04:43.550 --> 00:04:43.560 align:start position:0%
trying to compare to we're trying to
 

00:04:43.560 --> 00:04:47.070 align:start position:0%
trying to compare to we're trying to
compare<00:04:44.280><c> to</c><00:04:44.479><c> the</c><00:04:44.639><c> immediate</c><00:04:45.199><c> value</c><00:04:45.880><c> Zer</c><00:04:46.840><c> and</c>

00:04:47.070 --> 00:04:47.080 align:start position:0%
compare to the immediate value Zer and
 

00:04:47.080 --> 00:04:50.230 align:start position:0%
compare to the immediate value Zer and
if<00:04:47.400><c> B</c><00:04:47.800><c> is</c><00:04:48.080><c> equal</c><00:04:48.400><c> to</c><00:04:48.680><c> zero</c><00:04:49.520><c> then</c><00:04:49.680><c> we're</c><00:04:49.880><c> simply</c>

00:04:50.230 --> 00:04:50.240 align:start position:0%
if B is equal to zero then we're simply
 

00:04:50.240 --> 00:04:52.990 align:start position:0%
if B is equal to zero then we're simply
going<00:04:50.400><c> to</c><00:04:50.759><c> return</c><00:04:51.120><c> a</c><00:04:51.759><c> which</c><00:04:52.000><c> already</c><00:04:52.400><c> resides</c>

00:04:52.990 --> 00:04:53.000 align:start position:0%
going to return a which already resides
 

00:04:53.000 --> 00:04:54.790 align:start position:0%
going to return a which already resides
inside<00:04:53.320><c> of</c><00:04:53.440><c> our</c><00:04:53.639><c> R</c><00:04:53.919><c> zero</c>

00:04:54.790 --> 00:04:54.800 align:start position:0%
inside of our R zero
 

00:04:54.800 --> 00:04:57.830 align:start position:0%
inside of our R zero
register<00:04:55.800><c> so</c><00:04:55.960><c> all</c><00:04:56.120><c> we</c><00:04:56.240><c> need</c><00:04:56.360><c> to</c><00:04:56.560><c> do</c><00:04:57.120><c> is</c><00:04:57.320><c> Branch</c>

00:04:57.830 --> 00:04:57.840 align:start position:0%
register so all we need to do is Branch
 

00:04:57.840 --> 00:05:00.070 align:start position:0%
register so all we need to do is Branch
over<00:04:58.120><c> to</c><00:04:58.360><c> this</c><00:04:58.520><c> end</c><00:04:58.840><c> gcd</c>

00:05:00.070 --> 00:05:00.080 align:start position:0%
over to this end gcd
 

00:05:00.080 --> 00:05:02.749 align:start position:0%
over to this end gcd
now<00:05:00.440><c> if</c><00:05:00.800><c> that</c><00:05:01.080><c> is</c><00:05:01.360><c> indeed</c><00:05:01.759><c> equal</c><00:05:02.039><c> to</c><00:05:02.240><c> zero</c><00:05:02.639><c> all</c>

00:05:02.749 --> 00:05:02.759 align:start position:0%
now if that is indeed equal to zero all
 

00:05:02.759 --> 00:05:06.590 align:start position:0%
now if that is indeed equal to zero all
we<00:05:02.880><c> need</c><00:05:03.039><c> to</c><00:05:03.280><c> do</c><00:05:04.280><c> is</c><00:05:04.479><c> Branch</c><00:05:05.160><c> if</c><00:05:05.440><c> equal</c><00:05:06.240><c> over</c><00:05:06.440><c> to</c>

00:05:06.590 --> 00:05:06.600 align:start position:0%
we need to do is Branch if equal over to
 

00:05:06.600 --> 00:05:09.990 align:start position:0%
we need to do is Branch if equal over to
our<00:05:06.840><c> end</c><00:05:07.240><c> gcd</c><00:05:07.960><c> label</c><00:05:08.919><c> so</c><00:05:09.080><c> we'll</c><00:05:09.240><c> do</c>

00:05:09.990 --> 00:05:10.000 align:start position:0%
our end gcd label so we'll do
 

00:05:10.000 --> 00:05:12.110 align:start position:0%
our end gcd label so we'll do
end

00:05:12.110 --> 00:05:12.120 align:start position:0%
end
 

00:05:12.120 --> 00:05:14.590 align:start position:0%
end
gcd<00:05:13.120><c> and</c><00:05:13.320><c> this</c><00:05:13.520><c> has</c><00:05:13.680><c> successfully</c><00:05:14.160><c> taken</c><00:05:14.440><c> care</c>

00:05:14.590 --> 00:05:14.600 align:start position:0%
gcd and this has successfully taken care
 

00:05:14.600 --> 00:05:16.469 align:start position:0%
gcd and this has successfully taken care
of<00:05:14.759><c> the</c><00:05:14.880><c> entire</c><00:05:15.280><c> base</c><00:05:15.680><c> case</c><00:05:16.000><c> so</c><00:05:16.160><c> that</c><00:05:16.280><c> was</c>

00:05:16.469 --> 00:05:16.479 align:start position:0%
of the entire base case so that was
 

00:05:16.479 --> 00:05:18.670 align:start position:0%
of the entire base case so that was
really<00:05:16.759><c> simple</c><00:05:17.080><c> to</c><00:05:17.280><c> implement</c><00:05:18.199><c> so</c><00:05:18.360><c> now</c><00:05:18.520><c> let's</c>

00:05:18.670 --> 00:05:18.680 align:start position:0%
really simple to implement so now let's
 

00:05:18.680 --> 00:05:20.629 align:start position:0%
really simple to implement so now let's
move<00:05:18.840><c> on</c><00:05:19.000><c> to</c><00:05:19.160><c> our</c><00:05:19.360><c> recursive</c><00:05:19.919><c> case</c><00:05:20.319><c> let</c><00:05:20.400><c> me</c><00:05:20.520><c> add</c>

00:05:20.629 --> 00:05:20.639 align:start position:0%
move on to our recursive case let me add
 

00:05:20.639 --> 00:05:23.749 align:start position:0%
move on to our recursive case let me add
a<00:05:20.800><c> comment</c><00:05:21.160><c> here</c><00:05:22.000><c> we'll</c><00:05:22.199><c> say</c>

00:05:23.749 --> 00:05:23.759 align:start position:0%
a comment here we'll say
 

00:05:23.759 --> 00:05:25.670 align:start position:0%
a comment here we'll say
recursive

00:05:25.670 --> 00:05:25.680 align:start position:0%
recursive
 

00:05:25.680 --> 00:05:28.629 align:start position:0%
recursive
case<00:05:26.680><c> and</c><00:05:26.840><c> then</c><00:05:27.039><c> let's</c><00:05:27.360><c> take</c><00:05:27.840><c> our</c><00:05:28.080><c> recursive</c>

00:05:28.629 --> 00:05:28.639 align:start position:0%
case and then let's take our recursive
 

00:05:28.639 --> 00:05:30.830 align:start position:0%
case and then let's take our recursive
case<00:05:29.000><c> code</c><00:05:29.280><c> and</c><00:05:29.560><c> let's</c><00:05:29.720><c> just</c><00:05:29.880><c> paste</c><00:05:30.080><c> it</c><00:05:30.199><c> in</c><00:05:30.639><c> so</c>

00:05:30.830 --> 00:05:30.840 align:start position:0%
case code and let's just paste it in so
 

00:05:30.840 --> 00:05:32.230 align:start position:0%
case code and let's just paste it in so
we<00:05:30.919><c> can</c><00:05:31.080><c> get</c><00:05:31.240><c> the</c><00:05:31.440><c> second</c><00:05:31.759><c> half</c><00:05:31.960><c> of</c><00:05:32.080><c> the</c>

00:05:32.230 --> 00:05:32.240 align:start position:0%
we can get the second half of the
 

00:05:32.240 --> 00:05:33.870 align:start position:0%
we can get the second half of the
algorithm<00:05:33.000><c> and</c><00:05:33.160><c> make</c><00:05:33.319><c> sure</c><00:05:33.560><c> that</c><00:05:33.680><c> we're</c>

00:05:33.870 --> 00:05:33.880 align:start position:0%
algorithm and make sure that we're
 

00:05:33.880 --> 00:05:36.029 align:start position:0%
algorithm and make sure that we're
following<00:05:34.319><c> this</c>

00:05:36.029 --> 00:05:36.039 align:start position:0%
following this
 

00:05:36.039 --> 00:05:38.309 align:start position:0%
following this
properly<00:05:37.039><c> so</c><00:05:37.280><c> the</c><00:05:37.440><c> recursive</c><00:05:37.919><c> case</c><00:05:38.120><c> is</c><00:05:38.240><c> going</c>

00:05:38.309 --> 00:05:38.319 align:start position:0%
properly so the recursive case is going
 

00:05:38.319 --> 00:05:43.029 align:start position:0%
properly so the recursive case is going
to<00:05:38.400><c> be</c><00:05:38.639><c> return</c><00:05:38.880><c> gcd</c><00:05:39.560><c> of</c><00:05:39.759><c> b</c><00:05:40.400><c> a</c><00:05:40.680><c> mod</c>

00:05:43.029 --> 00:05:43.039 align:start position:0%
 
 

00:05:43.039 --> 00:05:46.830 align:start position:0%
 
b<00:05:44.039><c> so</c><00:05:44.199><c> let's</c><00:05:44.400><c> paste</c><00:05:44.720><c> that</c><00:05:44.840><c> in</c><00:05:45.080><c> that</c><00:05:45.199><c> looks</c>

00:05:46.830 --> 00:05:46.840 align:start position:0%
b so let's paste that in that looks
 

00:05:46.840 --> 00:05:49.029 align:start position:0%
b so let's paste that in that looks
good<00:05:47.840><c> and</c><00:05:48.039><c> let's</c><00:05:48.280><c> actually</c><00:05:48.479><c> start</c><00:05:48.720><c> filling</c>

00:05:49.029 --> 00:05:49.039 align:start position:0%
good and let's actually start filling
 

00:05:49.039 --> 00:05:51.150 align:start position:0%
good and let's actually start filling
that<00:05:49.199><c> out</c><00:05:50.039><c> now</c><00:05:50.199><c> one</c><00:05:50.400><c> interesting</c><00:05:50.840><c> thing</c><00:05:51.000><c> to</c>

00:05:51.150 --> 00:05:51.160 align:start position:0%
that out now one interesting thing to
 

00:05:51.160 --> 00:05:53.230 align:start position:0%
that out now one interesting thing to
note<00:05:51.440><c> is</c><00:05:51.520><c> that</c><00:05:51.680><c> armv7</c><00:05:52.440><c> assembly</c><00:05:52.880><c> does</c><00:05:53.039><c> not</c>

00:05:53.230 --> 00:05:53.240 align:start position:0%
note is that armv7 assembly does not
 

00:05:53.240 --> 00:05:55.670 align:start position:0%
note is that armv7 assembly does not
have<00:05:53.400><c> a</c><00:05:53.600><c> built-in</c><00:05:54.080><c> modulus</c><00:05:54.680><c> operator</c><00:05:55.479><c> so</c>

00:05:55.670 --> 00:05:55.680 align:start position:0%
have a built-in modulus operator so
 

00:05:55.680 --> 00:05:57.590 align:start position:0%
have a built-in modulus operator so
that's<00:05:55.840><c> going</c><00:05:55.919><c> to</c><00:05:56.039><c> be</c><00:05:56.360><c> this</c><00:05:56.759><c> operator</c><00:05:57.400><c> right</c>

00:05:57.590 --> 00:05:57.600 align:start position:0%
that's going to be this operator right
 

00:05:57.600 --> 00:06:00.110 align:start position:0%
that's going to be this operator right
here<00:05:57.919><c> which</c><00:05:58.039><c> is</c><00:05:58.199><c> the</c><00:05:58.600><c> remainder</c><00:05:59.520><c> if</c><00:05:59.680><c> B</c><00:05:59.919><c> is</c>

00:06:00.110 --> 00:06:00.120 align:start position:0%
here which is the remainder if B is
 

00:06:00.120 --> 00:06:02.670 align:start position:0%
here which is the remainder if B is
divided<00:06:00.600><c> into</c><00:06:00.960><c> a</c><00:06:01.600><c> so</c><00:06:01.759><c> we</c><00:06:01.919><c> kind</c><00:06:02.039><c> of</c><00:06:02.199><c> have</c><00:06:02.319><c> to</c><00:06:02.479><c> do</c>

00:06:02.670 --> 00:06:02.680 align:start position:0%
divided into a so we kind of have to do
 

00:06:02.680 --> 00:06:04.909 align:start position:0%
divided into a so we kind of have to do
this<00:06:02.960><c> manually</c><00:06:03.880><c> but</c><00:06:04.080><c> again</c><00:06:04.319><c> let's</c><00:06:04.520><c> go</c><00:06:04.680><c> back</c><00:06:04.800><c> to</c>

00:06:04.909 --> 00:06:04.919 align:start position:0%
this manually but again let's go back to
 

00:06:04.919 --> 00:06:07.430 align:start position:0%
this manually but again let's go back to
our<00:06:05.039><c> C++</c><00:06:05.800><c> code</c><00:06:06.039><c> and</c><00:06:06.199><c> Implement</c><00:06:06.680><c> that</c><00:06:07.120><c> inside</c>

00:06:07.430 --> 00:06:07.440 align:start position:0%
our C++ code and Implement that inside
 

00:06:07.440 --> 00:06:09.870 align:start position:0%
our C++ code and Implement that inside
of<00:06:07.599><c> C++</c><00:06:08.479><c> first</c><00:06:08.840><c> and</c><00:06:08.919><c> then</c><00:06:09.080><c> translate</c><00:06:09.639><c> that</c>

00:06:09.870 --> 00:06:09.880 align:start position:0%
of C++ first and then translate that
 

00:06:09.880 --> 00:06:12.550 align:start position:0%
of C++ first and then translate that
directly<00:06:10.360><c> over</c><00:06:10.599><c> to</c><00:06:11.080><c> assembly</c><00:06:12.080><c> so</c><00:06:12.199><c> I</c><00:06:12.319><c> already</c>

00:06:12.550 --> 00:06:12.560 align:start position:0%
directly over to assembly so I already
 

00:06:12.560 --> 00:06:14.790 align:start position:0%
directly over to assembly so I already
have<00:06:12.759><c> this</c><00:06:12.919><c> implemented</c><00:06:13.520><c> right</c><00:06:13.720><c> here</c><00:06:14.360><c> this</c><00:06:14.440><c> is</c>

00:06:14.790 --> 00:06:14.800 align:start position:0%
have this implemented right here this is
 

00:06:14.800 --> 00:06:17.830 align:start position:0%
have this implemented right here this is
equivalent<00:06:15.479><c> to</c><00:06:15.680><c> doing</c><00:06:16.120><c> a</c><00:06:16.440><c> mod</c><00:06:16.759><c> b</c><00:06:17.560><c> but</c><00:06:17.720><c> just</c>

00:06:17.830 --> 00:06:17.840 align:start position:0%
equivalent to doing a mod b but just
 

00:06:17.840 --> 00:06:19.790 align:start position:0%
equivalent to doing a mod b but just
taking<00:06:18.120><c> a</c><00:06:18.240><c> little</c><00:06:18.360><c> bit</c><00:06:18.520><c> of</c><00:06:18.599><c> a</c><00:06:18.720><c> roundabout</c><00:06:19.280><c> way</c>

00:06:19.790 --> 00:06:19.800 align:start position:0%
taking a little bit of a roundabout way
 

00:06:19.800 --> 00:06:22.110 align:start position:0%
taking a little bit of a roundabout way
so<00:06:20.000><c> let's</c><00:06:20.240><c> take</c><00:06:20.599><c> this</c><00:06:21.000><c> and</c><00:06:21.160><c> then</c><00:06:21.479><c> let's</c><00:06:21.800><c> paste</c>

00:06:22.110 --> 00:06:22.120 align:start position:0%
so let's take this and then let's paste
 

00:06:22.120 --> 00:06:23.909 align:start position:0%
so let's take this and then let's paste
that<00:06:22.240><c> into</c><00:06:22.479><c> our</c><00:06:22.680><c> code</c><00:06:23.000><c> so</c><00:06:23.160><c> that</c><00:06:23.319><c> we</c><00:06:23.520><c> can</c><00:06:23.720><c> do</c>

00:06:23.909 --> 00:06:23.919 align:start position:0%
that into our code so that we can do
 

00:06:23.919 --> 00:06:28.070 align:start position:0%
that into our code so that we can do
this<00:06:24.160><c> directly</c><00:06:24.639><c> inside</c><00:06:24.960><c> of</c><00:06:25.120><c> assembly</c><00:06:25.599><c> as</c>

00:06:28.070 --> 00:06:28.080 align:start position:0%
 
 

00:06:28.080 --> 00:06:30.870 align:start position:0%
 
well<00:06:29.080><c> so</c><00:06:29.280><c> let's</c><00:06:29.440><c> let's</c><00:06:29.599><c> add</c><00:06:29.800><c> an</c><00:06:29.960><c> extra</c>

00:06:30.870 --> 00:06:30.880 align:start position:0%
well so let's let's add an extra
 

00:06:30.880 --> 00:06:33.990 align:start position:0%
well so let's let's add an extra
line<00:06:31.880><c> I'm</c><00:06:32.000><c> just</c><00:06:32.120><c> going</c><00:06:32.199><c> to</c><00:06:32.360><c> paste</c><00:06:32.599><c> in</c><00:06:32.800><c> my</c><00:06:33.000><c> code</c>

00:06:33.990 --> 00:06:34.000 align:start position:0%
line I'm just going to paste in my code
 

00:06:34.000 --> 00:06:35.970 align:start position:0%
line I'm just going to paste in my code
and<00:06:34.160><c> let's</c><00:06:34.319><c> turn</c><00:06:34.520><c> this</c><00:06:34.680><c> into</c>

00:06:35.970 --> 00:06:35.980 align:start position:0%
and let's turn this into
 

00:06:35.980 --> 00:06:37.309 align:start position:0%
and let's turn this into
[Applause]

00:06:37.309 --> 00:06:37.319 align:start position:0%
[Applause]
 

00:06:37.319 --> 00:06:39.629 align:start position:0%
[Applause]
comments<00:06:38.319><c> so</c><00:06:38.599><c> this</c><00:06:38.840><c> is</c><00:06:39.000><c> going</c><00:06:39.240><c> to</c>

00:06:39.629 --> 00:06:39.639 align:start position:0%
comments so this is going to
 

00:06:39.639 --> 00:06:40.749 align:start position:0%
comments so this is going to
successfully

00:06:40.749 --> 00:06:40.759 align:start position:0%
successfully
 

00:06:40.759 --> 00:06:43.629 align:start position:0%
successfully
compute<00:06:41.759><c> the</c><00:06:41.960><c> modulus</c><00:06:42.520><c> operator</c><00:06:43.080><c> but</c><00:06:43.199><c> doing</c><00:06:43.520><c> a</c>

00:06:43.629 --> 00:06:43.639 align:start position:0%
compute the modulus operator but doing a
 

00:06:43.639 --> 00:06:45.309 align:start position:0%
compute the modulus operator but doing a
lot<00:06:43.759><c> of</c><00:06:43.960><c> extra</c><00:06:44.280><c> steps</c><00:06:44.599><c> in</c><00:06:44.759><c> between</c><00:06:45.160><c> but</c>

00:06:45.309 --> 00:06:45.319 align:start position:0%
lot of extra steps in between but
 

00:06:45.319 --> 00:06:46.870 align:start position:0%
lot of extra steps in between but
unfortunately<00:06:45.919><c> we</c><00:06:46.039><c> have</c><00:06:46.160><c> to</c><00:06:46.280><c> do</c><00:06:46.440><c> that</c><00:06:46.639><c> inside</c>

00:06:46.870 --> 00:06:46.880 align:start position:0%
unfortunately we have to do that inside
 

00:06:46.880 --> 00:06:48.510 align:start position:0%
unfortunately we have to do that inside
of

00:06:48.510 --> 00:06:48.520 align:start position:0%
of
 

00:06:48.520 --> 00:06:53.029 align:start position:0%
of
assembly<00:06:49.520><c> okay</c><00:06:50.160><c> so</c><00:06:50.560><c> this</c><00:06:51.479><c> is</c>

00:06:53.029 --> 00:06:53.039 align:start position:0%
assembly okay so this is
 

00:06:53.039 --> 00:06:55.869 align:start position:0%
assembly okay so this is
effectively<00:06:54.039><c> add</c><00:06:54.280><c> another</c><00:06:54.560><c> comment</c><00:06:54.800><c> in</c><00:06:55.000><c> here</c>

00:06:55.869 --> 00:06:55.879 align:start position:0%
effectively add another comment in here
 

00:06:55.879 --> 00:07:00.230 align:start position:0%
effectively add another comment in here
compute<00:06:56.319><c> a</c><00:06:57.479><c> mod</c><00:06:58.479><c> b</c>

00:07:00.230 --> 00:07:00.240 align:start position:0%
compute a mod b
 

00:07:00.240 --> 00:07:01.830 align:start position:0%
compute a mod b
so<00:07:00.440><c> now</c><00:07:00.599><c> let's</c><00:07:00.800><c> implement</c><00:07:01.240><c> this</c><00:07:01.400><c> inside</c><00:07:01.680><c> of</c>

00:07:01.830 --> 00:07:01.840 align:start position:0%
so now let's implement this inside of
 

00:07:01.840 --> 00:07:04.230 align:start position:0%
so now let's implement this inside of
assembly<00:07:02.360><c> and</c><00:07:02.520><c> this</c><00:07:02.680><c> should</c><00:07:02.919><c> be</c><00:07:03.400><c> kind</c><00:07:03.599><c> of</c><00:07:03.800><c> a</c>

00:07:04.230 --> 00:07:04.240 align:start position:0%
assembly and this should be kind of a
 

00:07:04.240 --> 00:07:07.469 align:start position:0%
assembly and this should be kind of a
better<00:07:04.720><c> view</c><00:07:05.120><c> of</c><00:07:05.360><c> exactly</c><00:07:05.800><c> what</c><00:07:05.960><c> we</c><00:07:06.120><c> want</c><00:07:06.319><c> to</c>

00:07:07.469 --> 00:07:07.479 align:start position:0%
better view of exactly what we want to
 

00:07:07.479 --> 00:07:10.110 align:start position:0%
better view of exactly what we want to
do<00:07:08.479><c> so</c><00:07:08.720><c> first</c><00:07:08.919><c> of</c><00:07:09.039><c> all</c><00:07:09.240><c> we</c><00:07:09.360><c> want</c><00:07:09.560><c> to</c><00:07:09.720><c> do</c><00:07:09.919><c> the</c>

00:07:10.110 --> 00:07:10.120 align:start position:0%
do so first of all we want to do the
 

00:07:10.120 --> 00:07:13.469 align:start position:0%
do so first of all we want to do the
division<00:07:10.840><c> of</c><00:07:11.160><c> a</c><00:07:11.520><c> /</c><00:07:12.280><c> B</c><00:07:12.919><c> and</c><00:07:13.039><c> then</c><00:07:13.160><c> we're</c><00:07:13.319><c> going</c>

00:07:13.469 --> 00:07:13.479 align:start position:0%
division of a / B and then we're going
 

00:07:13.479 --> 00:07:15.469 align:start position:0%
division of a / B and then we're going
to<00:07:13.639><c> have</c><00:07:13.720><c> to</c><00:07:13.919><c> multiply</c><00:07:14.639><c> multiply</c><00:07:15.199><c> that</c>

00:07:15.469 --> 00:07:15.479 align:start position:0%
to have to multiply multiply that
 

00:07:15.479 --> 00:07:18.749 align:start position:0%
to have to multiply multiply that
division<00:07:16.120><c> by</c><00:07:16.440><c> B</c><00:07:16.759><c> itself</c><00:07:17.680><c> then</c><00:07:17.919><c> subtract</c><00:07:18.560><c> that</c>

00:07:18.749 --> 00:07:18.759 align:start position:0%
division by B itself then subtract that
 

00:07:18.759 --> 00:07:21.189 align:start position:0%
division by B itself then subtract that
product<00:07:19.199><c> from</c><00:07:19.479><c> a</c><00:07:19.960><c> so</c><00:07:20.160><c> we</c><00:07:20.240><c> can</c><00:07:20.440><c> compute</c><00:07:20.879><c> the</c>

00:07:21.189 --> 00:07:21.199 align:start position:0%
product from a so we can compute the
 

00:07:21.199 --> 00:07:23.909 align:start position:0%
product from a so we can compute the
remainder<00:07:21.879><c> of</c><00:07:22.199><c> that</c><00:07:23.000><c> so</c><00:07:23.160><c> let's</c><00:07:23.400><c> compute</c><00:07:23.759><c> this</c>

00:07:23.909 --> 00:07:23.919 align:start position:0%
remainder of that so let's compute this
 

00:07:23.919 --> 00:07:26.430 align:start position:0%
remainder of that so let's compute this
inside<00:07:24.199><c> of</c><00:07:24.400><c> assembly</c><00:07:25.039><c> let's</c>

00:07:26.430 --> 00:07:26.440 align:start position:0%
inside of assembly let's
 

00:07:26.440 --> 00:07:30.950 align:start position:0%
inside of assembly let's
do<00:07:27.440><c> s</c><00:07:28.319><c> div</c><00:07:29.680><c> and</c><00:07:29.800><c> then</c><00:07:29.919><c> we're</c><00:07:30.080><c> going</c><00:07:30.160><c> to</c><00:07:30.319><c> store</c>

00:07:30.950 --> 00:07:30.960 align:start position:0%
do s div and then we're going to store
 

00:07:30.960 --> 00:07:33.749 align:start position:0%
do s div and then we're going to store
the<00:07:31.520><c> result</c><00:07:32.080><c> inside</c><00:07:32.520><c> of</c><00:07:32.800><c> let's</c><00:07:33.000><c> say</c><00:07:33.160><c> our</c><00:07:33.319><c> R2</c>

00:07:33.749 --> 00:07:33.759 align:start position:0%
the result inside of let's say our R2
 

00:07:33.759 --> 00:07:35.950 align:start position:0%
the result inside of let's say our R2
register<00:07:34.240><c> we</c><00:07:34.360><c> haven't</c><00:07:34.599><c> had</c><00:07:34.720><c> to</c><00:07:34.840><c> use</c><00:07:35.080><c> that</c>

00:07:35.950 --> 00:07:35.960 align:start position:0%
register we haven't had to use that
 

00:07:35.960 --> 00:07:39.909 align:start position:0%
register we haven't had to use that
yet<00:07:36.960><c> and</c><00:07:37.080><c> then</c><00:07:37.240><c> we're</c><00:07:37.479><c> doing</c><00:07:38.199><c> a</c><00:07:38.560><c> /</c><00:07:39.199><c> B</c><00:07:39.599><c> so</c><00:07:39.759><c> that's</c>

00:07:39.909 --> 00:07:39.919 align:start position:0%
yet and then we're doing a / B so that's
 

00:07:39.919 --> 00:07:41.029 align:start position:0%
yet and then we're doing a / B so that's
going<00:07:40.000><c> to</c><00:07:40.120><c> be</c>

00:07:41.029 --> 00:07:41.039 align:start position:0%
going to be
 

00:07:41.039 --> 00:07:45.110 align:start position:0%
going to be
r0<00:07:42.039><c> /</c>

00:07:45.110 --> 00:07:45.120 align:start position:0%
 
 

00:07:45.120 --> 00:07:47.309 align:start position:0%
 
R1<00:07:46.120><c> and</c><00:07:46.240><c> then</c><00:07:46.400><c> we're</c><00:07:46.560><c> trying</c><00:07:46.759><c> to</c><00:07:46.919><c> get</c><00:07:47.080><c> the</c>

00:07:47.309 --> 00:07:47.319 align:start position:0%
R1 and then we're trying to get the
 

00:07:47.319 --> 00:07:50.670 align:start position:0%
R1 and then we're trying to get the
product<00:07:47.720><c> of</c><00:07:47.960><c> that</c><00:07:48.199><c> division</c><00:07:49.159><c> times</c><00:07:49.680><c> B</c><00:07:50.000><c> itself</c>

00:07:50.670 --> 00:07:50.680 align:start position:0%
product of that division times B itself
 

00:07:50.680 --> 00:07:53.710 align:start position:0%
product of that division times B itself
now<00:07:50.879><c> B</c><00:07:51.199><c> remember</c><00:07:51.520><c> is</c><00:07:51.639><c> our</c><00:07:51.800><c> r0o</c><00:07:52.520><c> register</c><00:07:53.520><c> so</c>

00:07:53.710 --> 00:07:53.720 align:start position:0%
now B remember is our r0o register so
 

00:07:53.720 --> 00:07:55.149 align:start position:0%
now B remember is our r0o register so
let's<00:07:53.879><c> do</c>

00:07:55.149 --> 00:07:55.159 align:start position:0%
let's do
 

00:07:55.159 --> 00:07:58.350 align:start position:0%
let's do
mole<00:07:56.159><c> and</c><00:07:56.360><c> we'll</c><00:07:56.560><c> do</c><00:07:56.960><c> the</c><00:07:57.280><c> product</c><00:07:58.039><c> maybe</c>

00:07:58.350 --> 00:07:58.360 align:start position:0%
mole and we'll do the product maybe
 

00:07:58.360 --> 00:08:00.270 align:start position:0%
mole and we'll do the product maybe
inside<00:07:58.639><c> of</c><00:07:58.720><c> our</c><00:07:58.879><c> R3</c><00:07:59.479><c> register</c><00:08:00.039><c> which</c><00:08:00.159><c> we</c>

00:08:00.270 --> 00:08:00.280 align:start position:0%
inside of our R3 register which we
 

00:08:00.280 --> 00:08:01.430 align:start position:0%
inside of our R3 register which we
haven't<00:08:00.520><c> used</c>

00:08:01.430 --> 00:08:01.440 align:start position:0%
haven't used
 

00:08:01.440 --> 00:08:05.790 align:start position:0%
haven't used
yet<00:08:02.440><c> and</c><00:08:03.159><c> the</c><00:08:03.440><c> current</c><00:08:04.319><c> division</c><00:08:05.319><c> is</c><00:08:05.560><c> inside</c>

00:08:05.790 --> 00:08:05.800 align:start position:0%
yet and the current division is inside
 

00:08:05.800 --> 00:08:08.550 align:start position:0%
yet and the current division is inside
of<00:08:05.960><c> R2</c><00:08:06.560><c> so</c><00:08:06.720><c> let's</c><00:08:06.879><c> do</c>

00:08:08.550 --> 00:08:08.560 align:start position:0%
of R2 so let's do
 

00:08:08.560 --> 00:08:11.909 align:start position:0%
of R2 so let's do
R2<00:08:09.560><c> *</c><00:08:10.199><c> B</c><00:08:10.800><c> which</c><00:08:10.919><c> is</c>

00:08:11.909 --> 00:08:11.919 align:start position:0%
R2 * B which is
 

00:08:11.919 --> 00:08:14.869 align:start position:0%
R2 * B which is
R1<00:08:12.919><c> and</c><00:08:13.039><c> now</c><00:08:13.240><c> the</c><00:08:13.479><c> last</c><00:08:13.879><c> step</c><00:08:14.280><c> that</c><00:08:14.479><c> nicely</c>

00:08:14.869 --> 00:08:14.879 align:start position:0%
R1 and now the last step that nicely
 

00:08:14.879 --> 00:08:16.629 align:start position:0%
R1 and now the last step that nicely
computes<00:08:15.400><c> here</c><00:08:15.520><c> is</c><00:08:15.680><c> going</c><00:08:15.800><c> to</c><00:08:15.919><c> be</c><00:08:16.080><c> finding</c><00:08:16.440><c> the</c>

00:08:16.629 --> 00:08:16.639 align:start position:0%
computes here is going to be finding the
 

00:08:16.639 --> 00:08:19.029 align:start position:0%
computes here is going to be finding the
actual<00:08:17.080><c> remainder</c><00:08:17.960><c> so</c><00:08:18.120><c> we</c><00:08:18.240><c> have</c><00:08:18.319><c> a</c><00:08:18.479><c> simple</c>

00:08:19.029 --> 00:08:19.039 align:start position:0%
actual remainder so we have a simple
 

00:08:19.039 --> 00:08:22.469 align:start position:0%
actual remainder so we have a simple
simple<00:08:19.479><c> sub</c><00:08:19.840><c> instruction</c><00:08:20.479><c> we'll</c><00:08:20.680><c> do</c><00:08:21.319><c> sub</c><00:08:22.319><c> and</c>

00:08:22.469 --> 00:08:22.479 align:start position:0%
simple sub instruction we'll do sub and
 

00:08:22.479 --> 00:08:24.830 align:start position:0%
simple sub instruction we'll do sub and
let's<00:08:22.680><c> just</c><00:08:22.759><c> store</c><00:08:23.080><c> the</c><00:08:23.280><c> result</c><00:08:23.680><c> inside</c><00:08:23.960><c> of</c>

00:08:24.830 --> 00:08:24.840 align:start position:0%
let's just store the result inside of
 

00:08:24.840 --> 00:08:28.189 align:start position:0%
let's just store the result inside of
R4<00:08:25.840><c> and</c><00:08:25.960><c> then</c><00:08:26.159><c> a</c><00:08:26.720><c> minus</c><00:08:27.080><c> the</c><00:08:27.319><c> previous</c><00:08:27.800><c> product</c>

00:08:28.189 --> 00:08:28.199 align:start position:0%
R4 and then a minus the previous product
 

00:08:28.199 --> 00:08:30.629 align:start position:0%
R4 and then a minus the previous product
that<00:08:28.319><c> we</c><00:08:28.479><c> computed</c><00:08:29.319><c> inside</c><00:08:29.560><c> of</c><00:08:29.680><c> our</c><00:08:29.840><c> R3</c>

00:08:30.629 --> 00:08:30.639 align:start position:0%
that we computed inside of our R3
 

00:08:30.639 --> 00:08:34.149 align:start position:0%
that we computed inside of our R3
register<00:08:31.639><c> so</c><00:08:31.879><c> a</c><00:08:32.159><c> remember</c><00:08:32.479><c> is</c><00:08:32.599><c> in</c>

00:08:34.149 --> 00:08:34.159 align:start position:0%
register so a remember is in
 

00:08:34.159 --> 00:08:38.269 align:start position:0%
register so a remember is in
R1<00:08:35.159><c> and</c><00:08:35.320><c> then</c><00:08:35.640><c> the</c><00:08:36.000><c> product</c><00:08:36.719><c> is</c><00:08:36.880><c> inside</c><00:08:37.240><c> of</c>

00:08:38.269 --> 00:08:38.279 align:start position:0%
R1 and then the product is inside of
 

00:08:38.279 --> 00:08:40.709 align:start position:0%
R1 and then the product is inside of
R3<00:08:39.279><c> so</c><00:08:39.479><c> that's</c><00:08:39.680><c> really</c><00:08:39.919><c> nice</c><00:08:40.320><c> now</c><00:08:40.479><c> we</c>

00:08:40.709 --> 00:08:40.719 align:start position:0%
R3 so that's really nice now we
 

00:08:40.719 --> 00:08:44.070 align:start position:0%
R3 so that's really nice now we
successfully<00:08:41.440><c> have</c><00:08:42.120><c> the</c><00:08:42.399><c> aod</c><00:08:43.120><c> B</c><00:08:43.560><c> result</c>

00:08:44.070 --> 00:08:44.080 align:start position:0%
successfully have the aod B result
 

00:08:44.080 --> 00:08:46.750 align:start position:0%
successfully have the aod B result
stored<00:08:44.680><c> inside</c><00:08:45.000><c> of</c><00:08:45.120><c> r</c><00:08:45.279><c> r</c><00:08:45.519><c> for</c><00:08:45.880><c> register</c><00:08:46.600><c> now</c>

00:08:46.750 --> 00:08:46.760 align:start position:0%
stored inside of r r for register now
 

00:08:46.760 --> 00:08:48.509 align:start position:0%
stored inside of r r for register now
the<00:08:46.880><c> final</c><00:08:47.200><c> thing</c><00:08:47.360><c> we</c><00:08:47.480><c> need</c><00:08:47.600><c> to</c><00:08:47.760><c> do</c><00:08:48.040><c> is</c><00:08:48.200><c> simply</c>

00:08:48.509 --> 00:08:48.519 align:start position:0%
the final thing we need to do is simply
 

00:08:48.519 --> 00:08:50.070 align:start position:0%
the final thing we need to do is simply
compute<00:08:48.880><c> the</c><00:08:49.000><c> recursive</c><00:08:49.519><c> case</c><00:08:49.839><c> which</c><00:08:49.959><c> is</c>

00:08:50.070 --> 00:08:50.080 align:start position:0%
compute the recursive case which is
 

00:08:50.080 --> 00:08:53.949 align:start position:0%
compute the recursive case which is
going<00:08:50.240><c> to</c><00:08:50.320><c> be</c><00:08:50.480><c> returning</c><00:08:51.360><c> gcd</c><00:08:52.080><c> of</c><00:08:52.360><c> b</c><00:08:53.040><c> and</c><00:08:53.320><c> a</c><00:08:53.600><c> mod</c>

00:08:53.949 --> 00:08:53.959 align:start position:0%
going to be returning gcd of b and a mod
 

00:08:53.959 --> 00:08:56.750 align:start position:0%
going to be returning gcd of b and a mod
b<00:08:54.959><c> now</c><00:08:55.200><c> remember</c><00:08:55.519><c> we</c><00:08:55.680><c> have</c><00:08:55.800><c> our</c><00:08:55.959><c> B</c><00:08:56.279><c> value</c>

00:08:56.750 --> 00:08:56.760 align:start position:0%
b now remember we have our B value
 

00:08:56.760 --> 00:08:59.389 align:start position:0%
b now remember we have our B value
inside<00:08:57.000><c> of</c><00:08:57.120><c> our</c><00:08:57.279><c> R1</c><00:08:57.720><c> register</c><00:08:58.560><c> and</c><00:08:58.720><c> this</c><00:08:58.920><c> a</c><00:08:59.200><c> a</c>

00:08:59.389 --> 00:08:59.399 align:start position:0%
inside of our R1 register and this a a
 

00:08:59.399 --> 00:09:01.949 align:start position:0%
inside of our R1 register and this a a
mod<00:08:59.720><c> b</c><00:09:00.200><c> is</c><00:09:00.320><c> going</c><00:09:00.399><c> to</c><00:09:00.519><c> be</c><00:09:00.839><c> inside</c><00:09:01.120><c> of</c><00:09:01.240><c> our</c><00:09:01.360><c> R</c><00:09:01.600><c> for</c>

00:09:01.949 --> 00:09:01.959 align:start position:0%
mod b is going to be inside of our R for
 

00:09:01.959 --> 00:09:03.829 align:start position:0%
mod b is going to be inside of our R for
register<00:09:02.560><c> so</c><00:09:02.720><c> now</c><00:09:02.880><c> what</c><00:09:02.959><c> we</c><00:09:03.079><c> need</c><00:09:03.200><c> to</c><00:09:03.360><c> do</c><00:09:03.560><c> is</c><00:09:03.720><c> we</c>

00:09:03.829 --> 00:09:03.839 align:start position:0%
register so now what we need to do is we
 

00:09:03.839 --> 00:09:07.069 align:start position:0%
register so now what we need to do is we
need<00:09:04.040><c> to</c><00:09:04.360><c> call</c><00:09:04.800><c> gcd</c><00:09:05.600><c> which</c><00:09:05.720><c> is</c><00:09:05.920><c> this</c><00:09:06.160><c> function</c>

00:09:07.069 --> 00:09:07.079 align:start position:0%
need to call gcd which is this function
 

00:09:07.079 --> 00:09:10.470 align:start position:0%
need to call gcd which is this function
and<00:09:07.440><c> add</c><00:09:07.800><c> the</c><00:09:08.079><c> new</c><00:09:08.680><c> parameter</c><00:09:09.320><c> values</c><00:09:09.880><c> to</c><00:09:10.279><c> that</c>

00:09:10.470 --> 00:09:10.480 align:start position:0%
and add the new parameter values to that
 

00:09:10.480 --> 00:09:13.069 align:start position:0%
and add the new parameter values to that
recursive<00:09:11.160><c> call</c><00:09:12.160><c> so</c><00:09:12.320><c> let's</c><00:09:12.519><c> go</c><00:09:12.720><c> through</c><00:09:12.920><c> and</c>

00:09:13.069 --> 00:09:13.079 align:start position:0%
recursive call so let's go through and
 

00:09:13.079 --> 00:09:14.710 align:start position:0%
recursive call so let's go through and
let's<00:09:13.320><c> add</c>

00:09:14.710 --> 00:09:14.720 align:start position:0%
let's add
 

00:09:14.720 --> 00:09:17.670 align:start position:0%
let's add
that<00:09:15.720><c> let's</c><00:09:15.959><c> add</c><00:09:16.120><c> one</c><00:09:16.279><c> more</c><00:09:16.519><c> line</c><00:09:17.200><c> now</c><00:09:17.399><c> this</c><00:09:17.519><c> is</c>

00:09:17.670 --> 00:09:17.680 align:start position:0%
that let's add one more line now this is
 

00:09:17.680 --> 00:09:19.949 align:start position:0%
that let's add one more line now this is
going<00:09:17.880><c> to</c><00:09:18.079><c> be</c><00:09:18.480><c> the</c><00:09:18.680><c> recursive</c><00:09:19.279><c> case</c><00:09:19.720><c> we</c><00:09:19.800><c> could</c>

00:09:19.949 --> 00:09:19.959 align:start position:0%
going to be the recursive case we could
 

00:09:19.959 --> 00:09:21.590 align:start position:0%
going to be the recursive case we could
move<00:09:20.120><c> our</c><00:09:20.279><c> comment</c><00:09:20.640><c> down</c><00:09:20.839><c> here</c><00:09:21.040><c> but</c><00:09:21.200><c> I</c><00:09:21.279><c> think</c>

00:09:21.590 --> 00:09:21.600 align:start position:0%
move our comment down here but I think
 

00:09:21.600 --> 00:09:23.829 align:start position:0%
move our comment down here but I think
we<00:09:21.720><c> know</c><00:09:21.920><c> where</c><00:09:22.040><c> we're</c><00:09:22.240><c> going</c><00:09:22.480><c> with</c><00:09:22.680><c> this</c><00:09:23.640><c> so</c>

00:09:23.829 --> 00:09:23.839 align:start position:0%
we know where we're going with this so
 

00:09:23.839 --> 00:09:25.630 align:start position:0%
we know where we're going with this so
let's<00:09:24.120><c> do</c>

00:09:25.630 --> 00:09:25.640 align:start position:0%
let's do
 

00:09:25.640 --> 00:09:29.190 align:start position:0%
let's do
move<00:09:26.640><c> our</c><00:09:26.959><c> old</c><00:09:27.480><c> B</c><00:09:27.839><c> value</c><00:09:28.360><c> which</c><00:09:28.440><c> is</c><00:09:28.600><c> inside</c><00:09:28.839><c> of</c>

00:09:29.190 --> 00:09:29.200 align:start position:0%
move our old B value which is inside of
 

00:09:29.200 --> 00:09:31.670 align:start position:0%
move our old B value which is inside of
R1<00:09:29.680><c> is</c><00:09:29.839><c> now</c><00:09:30.000><c> going</c><00:09:30.120><c> to</c><00:09:30.240><c> be</c><00:09:30.360><c> our</c><00:09:30.519><c> new</c><00:09:30.760><c> a</c><00:09:31.079><c> value</c><00:09:31.560><c> so</c>

00:09:31.670 --> 00:09:31.680 align:start position:0%
R1 is now going to be our new a value so
 

00:09:31.680 --> 00:09:34.069 align:start position:0%
R1 is now going to be our new a value so
it's<00:09:31.800><c> going</c><00:09:31.880><c> to</c><00:09:32.000><c> be</c><00:09:32.120><c> inside</c><00:09:32.399><c> of</c><00:09:32.680><c> r0</c><00:09:33.680><c> so</c><00:09:33.839><c> let's</c>

00:09:34.069 --> 00:09:34.079 align:start position:0%
it's going to be inside of r0 so let's
 

00:09:34.079 --> 00:09:37.550 align:start position:0%
it's going to be inside of r0 so let's
move<00:09:34.640><c> R1</c><00:09:35.440><c> into</c>

00:09:37.550 --> 00:09:37.560 align:start position:0%
move R1 into
 

00:09:37.560 --> 00:09:41.350 align:start position:0%
move R1 into
r0<00:09:38.560><c> and</c><00:09:38.680><c> then</c><00:09:39.160><c> remember</c><00:09:40.160><c> our</c><00:09:40.440><c> second</c><00:09:40.800><c> value</c><00:09:41.240><c> is</c>

00:09:41.350 --> 00:09:41.360 align:start position:0%
r0 and then remember our second value is
 

00:09:41.360 --> 00:09:43.670 align:start position:0%
r0 and then remember our second value is
going<00:09:41.560><c> to</c><00:09:41.680><c> be</c><00:09:41.839><c> a</c><00:09:42.079><c> mod</c><00:09:42.399><c> b</c><00:09:43.120><c> which</c><00:09:43.240><c> is</c><00:09:43.320><c> going</c><00:09:43.399><c> to</c><00:09:43.519><c> be</c>

00:09:43.670 --> 00:09:43.680 align:start position:0%
going to be a mod b which is going to be
 

00:09:43.680 --> 00:09:46.310 align:start position:0%
going to be a mod b which is going to be
inside<00:09:43.920><c> of</c><00:09:44.040><c> this</c><00:09:44.200><c> R4</c><00:09:44.800><c> register</c><00:09:45.360><c> right</c><00:09:45.560><c> here</c><00:09:46.160><c> so</c>

00:09:46.310 --> 00:09:46.320 align:start position:0%
inside of this R4 register right here so
 

00:09:46.320 --> 00:09:50.269 align:start position:0%
inside of this R4 register right here so
let's<00:09:46.519><c> move</c><00:09:46.800><c> that</c><00:09:46.959><c> R4</c><00:09:47.640><c> value</c><00:09:48.160><c> into</c><00:09:48.600><c> our</c><00:09:48.920><c> second</c>

00:09:50.269 --> 00:09:50.279 align:start position:0%
let's move that R4 value into our second
 

00:09:50.279 --> 00:09:53.949 align:start position:0%
let's move that R4 value into our second
argument<00:09:51.279><c> so</c><00:09:51.440><c> let's</c><00:09:51.600><c> do</c><00:09:51.880><c> move</c><00:09:52.640><c> into</c><00:09:52.920><c> R1</c><00:09:53.760><c> which</c>

00:09:53.949 --> 00:09:53.959 align:start position:0%
argument so let's do move into R1 which
 

00:09:53.959 --> 00:09:57.030 align:start position:0%
argument so let's do move into R1 which
is<00:09:54.040><c> our</c><00:09:54.200><c> new</c><00:09:54.440><c> B</c><00:09:55.000><c> value</c>

00:09:57.030 --> 00:09:57.040 align:start position:0%
is our new B value
 

00:09:57.040 --> 00:09:59.670 align:start position:0%
is our new B value
R4<00:09:58.040><c> and</c><00:09:58.200><c> now</c><00:09:58.360><c> all</c><00:09:58.480><c> we</c><00:09:58.600><c> need</c><00:09:58.760><c> to</c><00:09:58.880><c> do</c><00:09:59.240><c> is</c><00:09:59.399><c> actually</c>

00:09:59.670 --> 00:09:59.680 align:start position:0%
R4 and now all we need to do is actually
 

00:09:59.680 --> 00:10:02.150 align:start position:0%
R4 and now all we need to do is actually
make<00:09:59.920><c> our</c><00:10:00.160><c> recursive</c><00:10:00.680><c> call</c><00:10:01.560><c> so</c><00:10:01.680><c> let's</c><00:10:01.880><c> do</c>

00:10:02.150 --> 00:10:02.160 align:start position:0%
make our recursive call so let's do
 

00:10:02.160 --> 00:10:05.550 align:start position:0%
make our recursive call so let's do
Branch<00:10:02.519><c> with</c><00:10:02.760><c> link</c><00:10:03.399><c> and</c><00:10:03.560><c> then</c><00:10:03.800><c> go</c><00:10:04.040><c> over</c><00:10:04.240><c> to</c><00:10:04.560><c> gcd</c>

00:10:05.550 --> 00:10:05.560 align:start position:0%
Branch with link and then go over to gcd
 

00:10:05.560 --> 00:10:09.590 align:start position:0%
Branch with link and then go over to gcd
now<00:10:05.760><c> let's</c><00:10:05.959><c> save</c><00:10:06.160><c> our</c><00:10:06.399><c> file</c><00:10:06.720><c> and</c><00:10:06.959><c> compile</c><00:10:07.360><c> our</c>

00:10:09.590 --> 00:10:09.600 align:start position:0%
 
 

00:10:09.600 --> 00:10:14.630 align:start position:0%
 
code<00:10:10.600><c> all</c><00:10:10.839><c> right</c><00:10:11.120><c> so</c><00:10:11.320><c> let's</c><00:10:11.560><c> do</c><00:10:12.440><c> arm</c>

00:10:14.630 --> 00:10:14.640 align:start position:0%
code all right so let's do arm
 

00:10:14.640 --> 00:10:16.350 align:start position:0%
code all right so let's do arm
Linux

00:10:16.350 --> 00:10:16.360 align:start position:0%
Linux
 

00:10:16.360 --> 00:10:19.790 align:start position:0%
Linux
EAB<00:10:17.360><c> as</c><00:10:17.800><c> for</c><00:10:18.040><c> assemble</c><00:10:19.040><c> then</c><00:10:19.160><c> we're</c><00:10:19.320><c> taking</c><00:10:19.640><c> in</c>

00:10:19.790 --> 00:10:19.800 align:start position:0%
EAB as for assemble then we're taking in
 

00:10:19.800 --> 00:10:22.630 align:start position:0%
EAB as for assemble then we're taking in
our<00:10:20.040><c> fillable</c><00:10:20.600><c> gcd</c><00:10:21.360><c> dos</c><00:10:22.360><c> I'm</c><00:10:22.480><c> going</c><00:10:22.560><c> to</c>

00:10:22.630 --> 00:10:22.640 align:start position:0%
our fillable gcd dos I'm going to
 

00:10:22.640 --> 00:10:25.310 align:start position:0%
our fillable gcd dos I'm going to
generate<00:10:22.920><c> our</c><00:10:23.200><c> object</c><00:10:23.560><c> binary</c><00:10:24.000><c> and</c><00:10:24.160><c> call</c><00:10:24.360><c> it</c>

00:10:25.310 --> 00:10:25.320 align:start position:0%
generate our object binary and call it
 

00:10:25.320 --> 00:10:28.190 align:start position:0%
generate our object binary and call it
gcd<00:10:26.320><c> do</c><00:10:26.560><c> o</c><00:10:27.240><c> now</c><00:10:27.360><c> I'm</c><00:10:27.440><c> going</c><00:10:27.600><c> to</c><00:10:27.680><c> generate</c><00:10:28.040><c> my</c>

00:10:28.190 --> 00:10:28.200 align:start position:0%
gcd do o now I'm going to generate my
 

00:10:28.200 --> 00:10:29.870 align:start position:0%
gcd do o now I'm going to generate my
executable<00:10:28.760><c> so</c><00:10:28.839><c> I'm</c><00:10:28.880><c> going</c><00:10:29.160><c> do</c>

00:10:29.870 --> 00:10:29.880 align:start position:0%
executable so I'm going do
 

00:10:29.880 --> 00:10:31.389 align:start position:0%
executable so I'm going do
arm

00:10:31.389 --> 00:10:31.399 align:start position:0%
arm
 

00:10:31.399 --> 00:10:36.829 align:start position:0%
arm
Linux<00:10:32.399><c> can</c><00:10:32.839><c> e</c><00:10:33.760><c> ABI</c><00:10:35.079><c> GCC</c><00:10:36.079><c> and</c><00:10:36.200><c> we'll</c><00:10:36.440><c> statically</c>

00:10:36.829 --> 00:10:36.839 align:start position:0%
Linux can e ABI GCC and we'll statically
 

00:10:36.839 --> 00:10:38.190 align:start position:0%
Linux can e ABI GCC and we'll statically
link<00:10:37.200><c> this</c><00:10:37.399><c> since</c><00:10:37.560><c> we're</c><00:10:37.720><c> making</c><00:10:38.000><c> some</c>

00:10:38.190 --> 00:10:38.200 align:start position:0%
link this since we're making some
 

00:10:38.200 --> 00:10:40.670 align:start position:0%
link this since we're making some
different<00:10:38.519><c> Library</c><00:10:38.920><c> calls</c><00:10:39.279><c> inside</c><00:10:39.560><c> of</c><00:10:39.760><c> this</c>

00:10:40.670 --> 00:10:40.680 align:start position:0%
different Library calls inside of this
 

00:10:40.680 --> 00:10:43.829 align:start position:0%
different Library calls inside of this
so<00:10:40.839><c> we're</c><00:10:40.959><c> going</c><00:10:41.040><c> to</c><00:10:41.160><c> take</c><00:10:41.320><c> in</c><00:10:41.519><c> that</c><00:10:41.839><c> gcd</c><00:10:42.839><c> Doo</c>

00:10:43.829 --> 00:10:43.839 align:start position:0%
so we're going to take in that gcd Doo
 

00:10:43.839 --> 00:10:48.870 align:start position:0%
so we're going to take in that gcd Doo
and<00:10:44.000><c> output</c><00:10:44.399><c> a</c><00:10:44.480><c> new</c><00:10:44.720><c> executable</c><00:10:45.600><c> called</c>

00:10:48.870 --> 00:10:48.880 align:start position:0%
 
 

00:10:48.880 --> 00:10:52.430 align:start position:0%
 
gcd<00:10:49.880><c> looks</c><00:10:50.440><c> good</c><00:10:51.440><c> all</c><00:10:51.600><c> right</c><00:10:51.839><c> now</c><00:10:52.000><c> we</c><00:10:52.120><c> have</c><00:10:52.240><c> our</c>

00:10:52.430 --> 00:10:52.440 align:start position:0%
gcd looks good all right now we have our
 

00:10:52.440 --> 00:10:54.790 align:start position:0%
gcd looks good all right now we have our
new<00:10:52.680><c> elf</c><00:10:53.079><c> binary</c><00:10:53.519><c> which</c><00:10:53.639><c> we're</c><00:10:53.800><c> going</c><00:10:53.959><c> to</c><00:10:54.120><c> run</c>

00:10:54.790 --> 00:10:54.800 align:start position:0%
new elf binary which we're going to run
 

00:10:54.800 --> 00:10:56.110 align:start position:0%
new elf binary which we're going to run
and<00:10:54.920><c> then</c><00:10:55.120><c> let's</c><00:10:55.320><c> execute</c><00:10:55.720><c> this</c><00:10:55.839><c> on</c><00:10:55.959><c> a</c>

00:10:56.110 --> 00:10:56.120 align:start position:0%
and then let's execute this on a
 

00:10:56.120 --> 00:10:57.790 align:start position:0%
and then let's execute this on a
Raspberry<00:10:56.600><c> Pi</c><00:10:56.880><c> so</c><00:10:57.000><c> we</c><00:10:57.120><c> can</c><00:10:57.240><c> see</c><00:10:57.440><c> if</c><00:10:57.600><c> we</c>

00:10:57.790 --> 00:10:57.800 align:start position:0%
Raspberry Pi so we can see if we
 

00:10:57.800 --> 00:11:00.030 align:start position:0%
Raspberry Pi so we can see if we
successfully<00:10:58.320><c> computed</c><00:10:58.680><c> the</c><00:10:58.800><c> G</c><00:10:59.040><c> gcd</c><00:10:59.720><c> inside</c>

00:11:00.030 --> 00:11:00.040 align:start position:0%
successfully computed the G gcd inside
 

00:11:00.040 --> 00:11:02.470 align:start position:0%
successfully computed the G gcd inside
of<00:11:00.279><c> assembly</c><00:11:01.279><c> now</c><00:11:01.440><c> let's</c><00:11:01.639><c> run</c><00:11:01.800><c> our</c><00:11:01.959><c> gcd</c>

00:11:02.470 --> 00:11:02.480 align:start position:0%
of assembly now let's run our gcd
 

00:11:02.480 --> 00:11:04.350 align:start position:0%
of assembly now let's run our gcd
visualizer<00:11:03.440><c> so</c><00:11:03.560><c> I'm</c><00:11:03.639><c> going</c><00:11:03.720><c> to</c><00:11:03.920><c> call</c><00:11:04.200><c> our</c>

00:11:04.350 --> 00:11:04.360 align:start position:0%
visualizer so I'm going to call our
 

00:11:04.360 --> 00:11:06.190 align:start position:0%
visualizer so I'm going to call our
shell<00:11:04.720><c> script</c>

00:11:06.190 --> 00:11:06.200 align:start position:0%
shell script
 

00:11:06.200 --> 00:11:09.030 align:start position:0%
shell script
slun<00:11:07.200><c> and</c><00:11:07.320><c> we'll</c><00:11:07.560><c> pass</c><00:11:07.720><c> in</c><00:11:07.880><c> our</c><00:11:08.040><c> two</c><00:11:08.279><c> operand</c>

00:11:09.030 --> 00:11:09.040 align:start position:0%
slun and we'll pass in our two operand
 

00:11:09.040 --> 00:11:13.470 align:start position:0%
slun and we'll pass in our two operand
let's<00:11:09.320><c> maybe</c><00:11:09.639><c> try</c><00:11:10.480><c> 7</c><00:11:11.480><c> and</c><00:11:11.800><c> 14</c><00:11:12.800><c> so</c><00:11:12.959><c> we</c><00:11:13.120><c> expect</c>

00:11:13.470 --> 00:11:13.480 align:start position:0%
let's maybe try 7 and 14 so we expect
 

00:11:13.480 --> 00:11:15.150 align:start position:0%
let's maybe try 7 and 14 so we expect
our<00:11:13.639><c> greatest</c><00:11:14.040><c> common</c><00:11:14.320><c> diviser</c><00:11:14.720><c> to</c><00:11:14.839><c> be</c><00:11:15.040><c> the</c>

00:11:15.150 --> 00:11:15.160 align:start position:0%
our greatest common diviser to be the
 

00:11:15.160 --> 00:11:17.710 align:start position:0%
our greatest common diviser to be the
integer<00:11:15.560><c> 7even</c><00:11:16.000><c> inside</c><00:11:16.320><c> of</c><00:11:16.519><c> this</c><00:11:17.320><c> and</c><00:11:17.480><c> this</c><00:11:17.600><c> is</c>

00:11:17.710 --> 00:11:17.720 align:start position:0%
integer 7even inside of this and this is
 

00:11:17.720 --> 00:11:19.550 align:start position:0%
integer 7even inside of this and this is
going<00:11:17.839><c> to</c><00:11:18.040><c> call</c><00:11:18.240><c> our</c><00:11:18.480><c> python</c><00:11:18.800><c> script</c><00:11:19.279><c> as</c><00:11:19.399><c> well</c>

00:11:19.550 --> 00:11:19.560 align:start position:0%
going to call our python script as well
 

00:11:19.560 --> 00:11:21.509 align:start position:0%
going to call our python script as well
as<00:11:19.720><c> the</c><00:11:19.920><c> executable</c><00:11:20.560><c> that</c><00:11:20.639><c> we</c><00:11:20.839><c> just</c>

00:11:21.509 --> 00:11:21.519 align:start position:0%
as the executable that we just
 

00:11:21.519 --> 00:11:25.030 align:start position:0%
as the executable that we just
generated<00:11:22.519><c> so</c><00:11:22.680><c> let's</c><00:11:22.800><c> run</c><00:11:23.519><c> this</c><00:11:24.519><c> and</c><00:11:24.720><c> here</c><00:11:24.839><c> we</c>

00:11:25.030 --> 00:11:25.040 align:start position:0%
generated so let's run this and here we
 

00:11:25.040 --> 00:11:27.990 align:start position:0%
generated so let's run this and here we
go<00:11:25.720><c> our</c><00:11:25.920><c> gcd</c><00:11:26.600><c> is</c><00:11:26.800><c> s</c><00:11:27.320><c> so</c><00:11:27.480><c> thanks</c><00:11:27.639><c> so</c><00:11:27.760><c> much</c><00:11:27.880><c> for</c>

00:11:27.990 --> 00:11:28.000 align:start position:0%
go our gcd is s so thanks so much for
 

00:11:28.000 --> 00:11:29.590 align:start position:0%
go our gcd is s so thanks so much for
watching<00:11:28.200><c> Lor</c><00:11:28.480><c> wired</c><00:11:28.720><c> every</c><00:11:29.160><c> and</c><00:11:29.240><c> I'll</c><00:11:29.440><c> catch</c>

00:11:29.590 --> 00:11:29.600 align:start position:0%
watching Lor wired every and I'll catch
 

00:11:29.600 --> 00:11:32.829 align:start position:0%
watching Lor wired every and I'll catch
you<00:11:29.680><c> in</c><00:11:29.760><c> the</c><00:11:29.920><c> next</c>

00:11:32.829 --> 00:11:32.839 align:start position:0%
 
 

00:11:32.839 --> 00:11:36.670 align:start position:0%
 
video<00:11:33.839><c> oh</c><00:11:34.000><c> I</c><00:11:34.079><c> got</c><00:11:34.160><c> a</c><00:11:34.279><c> boost</c><00:11:34.800><c> okay</c><00:11:35.680><c> okay</c><00:11:36.560><c> I'm</c>

00:11:36.670 --> 00:11:36.680 align:start position:0%
video oh I got a boost okay okay I'm
 

00:11:36.680 --> 00:11:38.310 align:start position:0%
video oh I got a boost okay okay I'm
going<00:11:36.800><c> to</c><00:11:36.920><c> take</c><00:11:37.160><c> this</c><00:11:37.360><c> guy</c><00:11:37.519><c> out</c><00:11:37.760><c> not</c><00:11:37.959><c> go</c><00:11:38.120><c> to</c><00:11:38.240><c> the</c>

00:11:38.310 --> 00:11:38.320 align:start position:0%
going to take this guy out not go to the
 

00:11:38.320 --> 00:11:43.670 align:start position:0%
going to take this guy out not go to the
truck<00:11:38.800><c> oh</c><00:11:39.079><c> my</c>

00:11:43.670 --> 00:11:43.680 align:start position:0%
 
 

00:11:43.680 --> 00:11:46.190 align:start position:0%
 
gosh<00:11:44.680><c> I'm</c><00:11:45.000><c> literally</c><00:11:45.320><c> doing</c><00:11:45.600><c> it</c><00:11:45.760><c> for</c><00:11:45.959><c> 2</c>

00:11:46.190 --> 00:11:46.200 align:start position:0%
gosh I'm literally doing it for 2
 

00:11:46.200 --> 00:11:47.990 align:start position:0%
gosh I'm literally doing it for 2
seconds<00:11:46.600><c> okay</c><00:11:46.720><c> I'm</c><00:11:46.800><c> going</c><00:11:46.920><c> to</c><00:11:47.040><c> go</c>

00:11:47.990 --> 00:11:48.000 align:start position:0%
seconds okay I'm going to go
 

00:11:48.000 --> 00:11:51.240 align:start position:0%
seconds okay I'm going to go
left<00:11:49.000><c> oh</c>

