[Autogenerated] This module is about interrupts interrupts,
are part of something slightly bigger known as traps
which represent interrupt or exceptions.
In both cases there.
Is some need to divert the normal code execution, to a different location.
This module will deal with interrupts.
The next module will deal with exceptions when an interrupt or exception occur.
The first thing, that has to happen, is to save the current threat state.
So that it, can be resumed later on once the interrupt or exception.
Is properly handled this is known as track dispatching.
What's the difference between an interrupt?
And an exception?
The main difference, is that an interrupt,
is asynchronous, it,
is unrelated to the currently executing code usually
being fired by some hardware device.
On the other hand, an exception, is synchronous in nature it occurs.
Be of some instruction has been executed.
That the CP, says Well, I can't really do that kind of thing.
For example, if we try to divide by zero,
the C P will say, well,
I don't know how to do that and it will raise an exception.
So we'll deal with the interrupt in this module and talk about exceptions,
in the Next, module