1
00:00:00,060 --> 00:00:01,950
So let us start writing a logic, right?

2
00:00:01,950 --> 00:00:08,490
So if you remember, this step is to add an exception handler for ICP, right?

3
00:00:08,490 --> 00:00:15,040
So by default, the internal exception handler for our CPU is disabled and it is also an initialized

4
00:00:15,040 --> 00:00:15,240
rate.

5
00:00:15,240 --> 00:00:17,680
So we need to also enable it.

6
00:00:17,700 --> 00:00:19,600
We also need to initialize it, right?

7
00:00:19,620 --> 00:00:26,310
So let's just perform this process, and we already know that all the API Zach will be helping out to

8
00:00:26,310 --> 00:00:28,440
handle this situation and are present in it.

9
00:00:28,800 --> 00:00:29,760
The exception?

10
00:00:29,770 --> 00:00:31,370
Not etch haggis.

11
00:00:31,620 --> 00:00:31,830
Right?

12
00:00:32,190 --> 00:00:34,740
So we will be adding the exception.

13
00:00:35,250 --> 00:00:36,080
This is unheard of.

14
00:00:36,540 --> 00:00:37,470
OK, great.

15
00:00:37,470 --> 00:00:40,710
You will be finding various APIs that will be helping us, right?

16
00:00:41,220 --> 00:00:43,650
So first, let's just in the die.

17
00:00:44,640 --> 00:00:50,580
Exception handler, OK, so to do that, we must be having an EPA, so here you could see we have a

18
00:00:50,580 --> 00:00:53,580
delay exception to it, do not return anything.

19
00:00:53,580 --> 00:00:56,460
And in fact, they do not accept anything, Rachel.

20
00:00:56,490 --> 00:01:02,880
Both argument as well as written is white, so it will go ahead to our allowed and this will be adding

21
00:01:02,880 --> 00:01:05,510
in MGC because this is related to it, right?

22
00:01:05,730 --> 00:01:09,750
OK, so both initialization and assignment two are exception.

23
00:01:09,750 --> 00:01:11,820
Handler will be done.

24
00:01:12,720 --> 00:01:13,480
Here, right?

25
00:01:13,500 --> 00:01:17,520
So we'll proceed with first exception and exemption, OK?

26
00:01:17,880 --> 00:01:24,660
The next step is if you remember after you initialize an exception handler, then you need to identify

27
00:01:24,660 --> 00:01:28,250
an interest rate to the type of an interest that we're adding.

28
00:01:28,470 --> 00:01:30,420
And along with that, which is the.

29
00:01:31,440 --> 00:01:32,790
In Handler for us.

30
00:01:33,040 --> 00:01:35,970
So we'll go now to do that.

31
00:01:36,950 --> 00:01:43,370
With the exception, we have a register hanging here, we will be registering the type of fight.

32
00:01:44,630 --> 00:01:45,020
OK.

33
00:01:45,290 --> 00:01:49,070
The tape of an interest that we are a blank and then the look for it, right?

34
00:01:50,310 --> 00:01:53,760
Who will just be copying this will be adding it to here.

35
00:01:54,120 --> 00:01:54,540
OK?

36
00:01:54,570 --> 00:02:01,440
The first argument that did have is the type of an interest rate, so the exception might be so if you

37
00:02:01,440 --> 00:02:04,980
just go above, you'll be finding an exception.

38
00:02:04,980 --> 00:02:05,830
It's OK.

39
00:02:05,850 --> 00:02:07,680
So we are utilizing an IQ.

40
00:02:07,950 --> 00:02:13,160
So, Jill exception, I do before I work with this one, so we'll just copy and paste you.

41
00:02:13,660 --> 00:02:19,240
So this represents the type of an interest we do have and other ideas for different type of an interest.

42
00:02:19,240 --> 00:02:24,120
So we have an if IQ, the software in Japan, you find you said and so on and so forth.

43
00:02:24,190 --> 00:02:24,410
Great.

44
00:02:24,420 --> 00:02:26,750
So type of job that we are utilizing.

45
00:02:27,180 --> 00:02:36,060
And I ask you the next arguing that Mr. Handler have is the exceptional rate.

46
00:02:36,070 --> 00:02:42,170
So here I meet Master Controller is the general in control rate.

47
00:02:42,180 --> 00:02:45,700
So that will serve as an intro handler for us.

48
00:02:45,700 --> 00:02:47,400
So we'll just be typecasting it.

49
00:02:47,700 --> 00:02:53,080
And if you go to a geek that will be finding an interest handler.

50
00:02:53,520 --> 00:02:56,580
So this will be the master handler for us.

51
00:02:56,730 --> 00:02:59,100
So we'll just be specifying Peter Waheed.

52
00:02:59,310 --> 00:02:59,640
OK.

53
00:03:00,210 --> 00:03:06,150
And then we need to specify and GI scenes say so that is CIC.

54
00:03:06,570 --> 00:03:06,860
Right?

55
00:03:07,170 --> 00:03:10,050
So these are the three things that we need to specify.

56
00:03:10,050 --> 00:03:16,230
And once we do this now, this will remain common for almost all the type of an internet will be utilizing

57
00:03:16,530 --> 00:03:17,250
all fired.

58
00:03:17,940 --> 00:03:22,090
So we'll always be working around within GI syndrome handler.

59
00:03:22,140 --> 00:03:26,370
The insurgents will always be engaged and I bet you will be right.

60
00:03:26,520 --> 00:03:26,760
Right.

61
00:03:26,770 --> 00:03:27,780
So we initialize it.

62
00:03:27,780 --> 00:03:29,520
We register the name of an interest.

63
00:03:29,520 --> 00:03:30,880
The next step is to enable it.

64
00:03:31,660 --> 00:03:34,260
If you just go, add to the delay exception.

65
00:03:34,770 --> 00:03:40,390
So there you find a function to enable AI exception.

66
00:03:40,620 --> 00:03:42,170
So that will be at first.

67
00:03:42,540 --> 00:03:42,860
OK.

68
00:03:43,620 --> 00:03:47,010
And just be adding to it here, and it doesn't require any OK.

69
00:03:47,190 --> 00:03:51,540
So this complete all the process that we need to perform it and select option.

70
00:03:51,540 --> 00:03:58,170
Heading to the Steps two is complete, so the internal exception handler for our CPU is both disabled

71
00:03:58,170 --> 00:03:59,580
as well as an initialize.

72
00:03:59,580 --> 00:04:05,660
So we need to initialize it and we also need to enable it by assigning the correct input, right?

73
00:04:05,670 --> 00:04:07,550
So this is the step process.

74
00:04:07,560 --> 00:04:08,160
First, we.

75
00:04:08,910 --> 00:04:12,780
I had an initialization for our audits of Candler exception handler.

76
00:04:13,120 --> 00:04:17,130
Then we identified the type of an interest by utilizing register handler.

77
00:04:17,140 --> 00:04:20,740
Dare we specify the type of an interest and a range of handler?

78
00:04:20,870 --> 00:04:28,540
OK, and last thing is to enable and write to this completed step to the last step is be to work around

79
00:04:28,540 --> 00:04:30,130
retention and drop control.

80
00:04:30,210 --> 00:04:33,520
OK, so we need to specify the in-joke handler.

81
00:04:33,520 --> 00:04:35,510
We need to enable and interrupt.

82
00:04:35,530 --> 00:04:35,890
OK.

83
00:04:36,100 --> 00:04:43,720
We also need to enable Line two by default hide in Japan that could not receive an interview input from

84
00:04:43,720 --> 00:04:44,650
any of the preparer.

85
00:04:44,650 --> 00:04:46,450
So we need to enable it to.

86
00:04:46,450 --> 00:04:53,680
The function to enable it will be finding it that a fight, whereas we also need to enable an output

87
00:04:53,680 --> 00:04:55,480
of an intro from very, very large.

88
00:04:56,020 --> 00:05:04,270
So to the function that will be used to enable the output from a very will be found out from the benefit

89
00:05:04,270 --> 00:05:05,710
of specific tribal fights.

90
00:05:05,950 --> 00:05:13,300
So let me just go first, utilize or specify the drop handler, right, who will just declared one function

91
00:05:13,330 --> 00:05:19,330
that can serve as an interrupt handler for us, which Rachel will just be naming this as which i a.i.

92
00:05:19,390 --> 00:05:19,780
OK.

93
00:05:20,050 --> 00:05:24,310
Remember, intercept handlers never written anything, so there will always be an moit.

94
00:05:24,650 --> 00:05:27,710
OK, and here we'll be writing an entire logic.

95
00:05:27,730 --> 00:05:28,100
OK.

96
00:05:28,120 --> 00:05:29,110
As soon as interrupt.

97
00:05:29,380 --> 00:05:31,760
So go ahead to egusi.

98
00:05:31,810 --> 00:05:36,730
Next will be the logic for sure, right?

99
00:05:37,090 --> 00:05:40,760
You can just go to an ex SC.

100
00:05:40,870 --> 00:05:41,660
UGC.

101
00:05:42,340 --> 00:05:45,910
The first thing that we do is to utilize the connect function, right?

102
00:05:45,910 --> 00:05:53,110
So here we specify the entropy handler, and it only that the specific device rates will be recognized

103
00:05:53,110 --> 00:05:54,760
that it is near due date.

104
00:05:54,790 --> 00:05:58,450
Now we may be having a different type interest rate.

105
00:05:58,690 --> 00:06:04,630
So each and just having unique ID, that will be specifying over here and then for that specific ID,

106
00:06:04,790 --> 00:06:06,730
which will be an intra handler, right?

107
00:06:06,730 --> 00:06:09,670
So let's just go ahead and copy this.

108
00:06:10,090 --> 00:06:11,170
They do it here, right?

109
00:06:11,650 --> 00:06:13,930
First argument for it is.

110
00:06:14,900 --> 00:06:20,660
The instance of magazines, and so for us, it is, gee, I see, OK.

111
00:06:21,990 --> 00:06:23,700
The next one is in jeopardy.

112
00:06:23,730 --> 00:06:30,000
So where do you find an interplay, the experimental detection we had or having an intercept on a switch,

113
00:06:30,000 --> 00:06:30,240
right?

114
00:06:30,240 --> 00:06:35,180
So we'll just be copying this in jeopardy and we will be pasting it over here.

115
00:06:35,280 --> 00:06:35,480
Right.

116
00:06:35,500 --> 00:06:40,380
So this will be wearing four different protective for which it is six.

117
00:06:40,380 --> 00:06:42,080
When, OK?

118
00:06:42,240 --> 00:06:45,120
And it may not be seen for the paper.

119
00:06:45,180 --> 00:06:50,370
So you just need to go to the periphery tab in an experimental detector and they will be finding unique

120
00:06:50,370 --> 00:06:51,410
interest rate.

121
00:06:52,460 --> 00:06:57,320
The next eight required and handled it, OK, so this will be an angle which will be called as soon

122
00:06:57,320 --> 00:07:02,280
as we have an inch up, so we'll just be specifying the function that we have added it.

123
00:07:02,290 --> 00:07:03,830
Just such changer, right?

124
00:07:04,670 --> 00:07:12,920
Remember whenever we have the exception handler or any handler do Typekit, so this will remove an unnecessary

125
00:07:12,920 --> 00:07:13,650
one, right?

126
00:07:13,670 --> 00:07:20,220
So once you do this, the last step that is required is then a callback reference.

127
00:07:20,220 --> 00:07:23,900
So here we do not need to specify anything because we do not want to.

128
00:07:25,090 --> 00:07:30,190
Having access to any data when we entered into and into a function.

129
00:07:31,510 --> 00:07:38,840
OK, so this completes step one now will proceed and we will be enabling entropy.

130
00:07:39,100 --> 00:07:46,090
OK, so our general controller will receive an entrapping from the Pay-To-Play, so it is just required

131
00:07:46,390 --> 00:07:52,030
the instant and the interest rate, so we'll just be adding it.

132
00:07:53,530 --> 00:07:56,300
Here we have both the parameters, right?

133
00:07:56,350 --> 00:08:00,420
So we'll just be copying an instant structure and the entire time.

134
00:08:00,630 --> 00:08:00,830
Right.

135
00:08:00,850 --> 00:08:02,230
So this complete the second step.

136
00:08:02,590 --> 00:08:08,410
And in fact, you'll be noticing, we specify and interestingly, we also enable and encrypt.

137
00:08:08,470 --> 00:08:16,480
OK, now this is related to a normal procedure for enabling an intro output from a benefit.

138
00:08:16,480 --> 00:08:22,570
And so to find out the specific function, you need to go to the benefit of a specific driver.

139
00:08:22,710 --> 00:08:25,540
So we have GPIO.

140
00:08:25,960 --> 00:08:26,350
OK?

141
00:08:26,710 --> 00:08:32,140
And here if we just go ahead to find out the functions that we have.

142
00:08:33,240 --> 00:08:39,390
So we have two functions to enable an interest, so first one is a global interest in everything then

143
00:08:39,460 --> 00:08:41,420
and interpreting the right to let it just go.

144
00:08:42,000 --> 00:08:47,730
This required just an instance pointer so porous switches where we have an interest, so we just be

145
00:08:47,730 --> 00:08:50,190
specifying switch as an instant structure.

146
00:08:50,700 --> 00:08:55,060
The second one is to use and interpret and invalidate.

147
00:08:55,110 --> 00:09:00,210
So whenever you have both the function that is enabling of global interest, as well as the benefit

148
00:09:00,210 --> 00:09:01,080
of specific interest.

149
00:09:01,110 --> 00:09:04,710
So you need to add both of them if you only have a very specific interest.

150
00:09:04,720 --> 00:09:06,300
So you just need to add that one, right?

151
00:09:07,620 --> 00:09:15,390
And here we probably need to specify, again, licensed and muscle mass represent which China you have

152
00:09:15,390 --> 00:09:20,790
an interest rate, so usually you'll be finding data related to masking, then had it by itself.

153
00:09:20,790 --> 00:09:23,040
So we'll just be adding an instance.

154
00:09:23,850 --> 00:09:30,330
So if you go to an AA, tribal fights, OK, so let me just go up and see whether we have any data related

155
00:09:30,330 --> 00:09:31,110
to Musk.

156
00:09:31,260 --> 00:09:31,620
OK.

157
00:09:32,040 --> 00:09:36,870
So if you do not find any data related, you must usually underscore L file will also be there.

158
00:09:36,870 --> 00:09:42,990
So if you just see an outline, so here you could see we have an X GPA, a score l.

159
00:09:43,110 --> 00:09:43,470
OK.

160
00:09:44,040 --> 00:09:50,130
So you can just go in there and you could see that you have a mask so you will be on the squirrel or

161
00:09:50,130 --> 00:09:51,240
in the school or hide of it.

162
00:09:51,240 --> 00:09:57,090
OK, so this to the side where you will be finding an extra information related to and so we'll just

163
00:09:57,090 --> 00:10:01,440
be copying China changeable mask because we have an interest on our China, right?

164
00:10:02,100 --> 00:10:05,370
So this complete our step.

165
00:10:05,370 --> 00:10:12,340
See, OK, so this are all the things that we need to do to use interest right to be initialized.

166
00:10:12,340 --> 00:10:14,820
An exception handler, we enable an exception handler.

167
00:10:14,820 --> 00:10:23,190
We specify the ancient handler, OK, and then we enable both the interrupt input for Agassi, as well

168
00:10:23,190 --> 00:10:29,040
as an enter output from up 80 percent right now, will be writing a code for and switch.

169
00:10:29,070 --> 00:10:33,660
So whenever you are writing an independent as soon as you enter into an hagler's, the first thing that

170
00:10:33,660 --> 00:10:37,860
you do is to disable an intra radiologic clear and interrupt.

171
00:10:37,860 --> 00:10:38,940
And then again, you never do.

172
00:10:39,180 --> 00:10:42,930
So this process will also remain seem for almost all the paper.

173
00:10:43,020 --> 00:10:45,270
So if you go to a GPO again.

174
00:10:45,450 --> 00:10:45,750
Right?

175
00:10:46,110 --> 00:10:51,080
So first thing that we do is to disable and interpret how can this require to argument?

176
00:10:51,090 --> 00:10:54,060
But one is our GPO instance.

177
00:10:54,060 --> 00:10:56,130
We just switch and the channel was great.

178
00:10:56,150 --> 00:11:00,690
So Channel Mask will be seen as we used in it.

179
00:11:01,460 --> 00:11:04,020
It we'll just be adding it here.

180
00:11:05,070 --> 00:11:06,950
Then we will be writing a logic.

181
00:11:06,960 --> 00:11:12,510
So what are we going to do here is we will be reading the reader from a switch, storing it somewhere,

182
00:11:12,780 --> 00:11:14,260
sending it to any LCD.

183
00:11:14,280 --> 00:11:15,830
That is what we're going to write.

184
00:11:16,650 --> 00:11:22,830
So for reading a reader, we have discrete read API, right?

185
00:11:22,830 --> 00:11:24,570
And this basically a new 32.

186
00:11:25,200 --> 00:11:28,530
So it required again an instance pointer and China number.

187
00:11:28,540 --> 00:11:33,230
So we only have a single channel to let it just declare you 32, because that is the detail.

188
00:11:33,250 --> 00:11:42,690
What are discrete read, read and this will be switch data and this will be connecting to discretely.

189
00:11:42,960 --> 00:11:48,390
So first, we need to specify the GPO instance, which is which.

190
00:11:48,810 --> 00:11:49,920
Then we have a channel to.

191
00:11:49,920 --> 00:11:51,690
We are only working with a single channel.

192
00:11:51,720 --> 00:11:53,040
We just need to add one, right?

193
00:11:53,050 --> 00:11:53,910
So this is the logic.

194
00:11:54,270 --> 00:11:57,210
We'll also be sending this data on to work on.

195
00:11:57,220 --> 00:12:01,650
So great does is just for a deeper purpose, so switch.

196
00:12:03,230 --> 00:12:06,730
OK, so we have a time switch, right?

197
00:12:07,250 --> 00:12:13,580
And we also want to write this down to an elderly, so to do that, we have a discreet rate where we

198
00:12:13,580 --> 00:12:17,330
could write go down to a bathing suit.

199
00:12:17,330 --> 00:12:20,690
Aquarians just point to changing Amber and Musk, right?

200
00:12:21,470 --> 00:12:24,830
So if you just go ahead, it requires basically a data.

201
00:12:25,250 --> 00:12:27,290
It is an instance going to change the number.

202
00:12:27,290 --> 00:12:32,900
And so we'll go over here, OK, here and instances.

203
00:12:34,010 --> 00:12:34,400
OK.

204
00:12:35,000 --> 00:12:42,020
The China-Laos one and then the data that we want to send it's switch right now here.

205
00:12:42,020 --> 00:12:48,090
What we are doing is we are considering switch as an input and it is an option, but we haven't specified

206
00:12:48,260 --> 00:12:49,220
action anyway, right?

207
00:12:49,730 --> 00:12:53,060
In the mean program, you are just calling and init function.

208
00:12:53,090 --> 00:12:55,400
Again, we haven't specified that addiction.

209
00:12:55,400 --> 00:12:59,360
So when we initialized UPI itself, we could specify a direction.

210
00:12:59,370 --> 00:13:01,820
So let me just try to add a direction over here.

211
00:13:02,180 --> 00:13:07,910
OK, so to set the direction, we have this API where we need to specify an instance pointer in number

212
00:13:07,910 --> 00:13:10,060
and direction masquerade.

213
00:13:10,080 --> 00:13:16,400
So we'll just be going ahead with this, whereas this is in postures switch, right?

214
00:13:16,400 --> 00:13:21,590
So when we consider Switch, we have a Channel one and we have a forward switch or get to consider any

215
00:13:21,590 --> 00:13:23,360
of the food as an input port.

216
00:13:23,360 --> 00:13:32,450
If you analyze the function, we just need to apply one to bit set to zero output and set to another

217
00:13:32,450 --> 00:13:32,770
input.

218
00:13:33,020 --> 00:13:35,540
So we have a food switch, so will just be.

219
00:13:36,640 --> 00:13:43,040
Adding apparatus to this will consider the list before bed to be one, and that will basically make

220
00:13:43,040 --> 00:13:45,980
the switch as an impact, right?

221
00:13:46,390 --> 00:13:53,740
Similar thing we do need to do with an elderly also, but for an elderly, we need to set it as an output

222
00:13:53,770 --> 00:13:56,470
so far and setting an output what we just need to apply.

223
00:13:56,950 --> 00:13:57,320
See?

224
00:13:57,550 --> 00:13:57,810
Right.

225
00:13:58,810 --> 00:14:03,310
So here we are, setting up our addiction when we complete initialization of UPI.

226
00:14:03,350 --> 00:14:08,000
Right now, we are ready to write and read the data from the switch, right?

227
00:14:09,120 --> 00:14:10,140
Now will proceed.

228
00:14:10,410 --> 00:14:16,920
And this is an algorithm that we want to perform when we reached and in Japan to disable and ensure

229
00:14:17,730 --> 00:14:19,860
we perform a respectable algorithm.

230
00:14:19,890 --> 00:14:24,930
Now we'll proceed for clearing up any interest that we have in the queue.

231
00:14:25,530 --> 00:14:29,680
OK, here the two things that we need to add is this.

232
00:14:30,690 --> 00:14:40,330
And the last thing that we need to do is before we exit and handler is to enable into a right.

233
00:14:40,920 --> 00:14:46,350
These that some of the steps that we need to perform while working with them.

234
00:14:47,670 --> 00:14:48,330
Interesting.

235
00:14:48,810 --> 00:14:55,920
Right, so let me just go there and now try to perform an execution of this, right, so remember the

236
00:14:55,920 --> 00:15:00,730
process, the first step is to initialize medical and take.

237
00:15:01,170 --> 00:15:04,860
The second step is to add an exception, Hala.

238
00:15:04,890 --> 00:15:11,490
So we need to both initialize as well as a saying and exceptionnelle them to work around with each handle

239
00:15:12,330 --> 00:15:12,630
right?

240
00:15:13,610 --> 00:15:15,020
We'll just go and see you.

241
00:15:15,560 --> 00:15:17,580
OK, will program refugee?

242
00:15:19,080 --> 00:15:21,870
We are already going to do dollars to get him in the lower here.

243
00:15:21,960 --> 00:15:22,320
OK.

244
00:15:22,740 --> 00:15:25,810
And then we will be going ahead with.

245
00:15:26,790 --> 00:15:32,160
Execution of my application right to it, just getting a new line character who are here, let they

246
00:15:32,160 --> 00:15:34,170
just proceed and try to execute.

247
00:15:34,650 --> 00:15:41,850
So if everything goes fine and they change the state of Slate, which will be able to get the notification

248
00:15:41,850 --> 00:15:47,400
on Arkansas, right, so I try to change the MSP switch to one right.

249
00:15:47,410 --> 00:15:54,690
So this will make our output to be equal to eight because we now have for at least two MSP switches

250
00:15:54,710 --> 00:15:55,800
change to one.

251
00:15:56,040 --> 00:15:58,050
So we have one zero zero zero.

252
00:15:58,060 --> 00:16:03,180
So that is equivalent to eight if I turn on the next switch, so we'll be getting to it.

253
00:16:04,400 --> 00:16:04,650
Right.

254
00:16:05,120 --> 00:16:10,750
If I turn on the next, which I'll be getting foggy and the last one, it's 50, right?

255
00:16:11,120 --> 00:16:17,180
You could clearly see as I teach the seat of a which we are getting an inch up and then we are painting

256
00:16:17,180 --> 00:16:19,670
the values onto a console line.

257
00:16:19,970 --> 00:16:22,070
We are also seeing the changes on it.
