Maurice Lombardi wrote:
Opie Pecheux a écrit :
Hi,
I want to know if somewerre, ther is a description of how to write interrup procedures (like the interrupt in BP).
Like an interrupt is call by an 16 bits adress, I ask me how it is possible.
djgpp is a rather clever system which switches back and forth between 16 bit real mode and 32 bits protected mode do enable that. elementary functions in C are given in the djgpp libc (see libc.info) some interface to pascal in contained in dos.pas (see this file in the units directory). Do not forget the switch -D__BP_UNPORTABLE_ROUTINES__ to enable these functions.
...and if your needs are not trivial, do not forget to check the DJGPP FAQ (http://www.delorie.com/djgpp/v2faq/). It has some things to say on interrutps etc. (in the chapter `Low-level' and maybe elsewhere)...
Frank