INTERRUPT HANDLER

Question about which tools to use, bugs, the best way to implement a function, etc should go here. Don't forget to see if your question is answered in the wiki first! When in doubt post here.
Post Reply
hazelnoot

INTERRUPT HANDLER

Post 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
User avatar
Pype.Clicker
Member
Member
Posts: 5964
Joined: Wed Oct 18, 2006 2:31 am
Location: In a galaxy, far, far away
Contact:

Re:INTERRUPT HANDLER

Post 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.
Post Reply