Page 1 of 1

INTERRUPT HANDLER

Posted: Sun May 07, 2006 10:05 am
by hazelnoot
hi!

i have a little question! i am working on a little operating system now i want to execute binarys! now i have the problem i need an interrupt handler to get back into the kernel from my programm...

where i can get goot tutorials about a interrupt handler in the real mode?

thanks!!
hazelnoot

Re:INTERRUPT HANDLER

Posted: Mon May 08, 2006 1:29 am
by Pype.Clicker
what you need is called a "system call". In real mode, that's as easy as writing the code:segment values of your system call in the "Interrupt Vector Table" and terminating your handler with a "iret" instruction.

There are certainly profusion of such tutorials; google for "TSR" programs (Terminate and Stay Resident) -- if you got how they work, you should be ready to face kernel system calls.