Mail Archives: djgpp/1997/11/04/06:27:32
On Mon, 3 Nov 1997, Sam. wrote:
> Is there a tutorial anywhere, explaining step by step what to do, in
> fairly plain C? It doesn't have to be efficient or useful, just a
> minimum to illustrate the point of how to install and deinstall an
> interrupt and how to lock the right memory.
If you write hardware interrupts in C, you will need to lock all of
the memory (with a crt0 flag, see the FAQ). Otherwise, you will risk
crashing, or will need to use tricks which are not guaranteed to work
with all compiler versions.
The DJGPP FAQ list has a step-by-step explanation in section 18.9,
which should get you off the ground. If you have questions about some
of the details, I suggest posting specific questions about specific
issues.
- Raw text -