can anyone give me links to good resources on dos interrupts..
i mean tutorials or paper on DOS INT in C, interaction with hardware etc....
anyway thanx in advance :p
Printable View
can anyone give me links to good resources on dos interrupts..
i mean tutorials or paper on DOS INT in C, interaction with hardware etc....
anyway thanx in advance :p
reference and theory r fine but i need some examples to start with ....i dont ve prior experience of programming with intrrupts
some good n easy examples of how to write programms using DOS int
Ralph Brown's Interrupt List known as RBIL
Get the viewer as well.
Google it.
I'm not sure why you want to mess with interrupts since in protected mode programming, drivers have taken the place of low-level access.Quote:
some good n easy examples of how to write programms using DOS int
But when you invoke an interrupt the CPU transfers control to a handler. The address of the handler is stored in memory somewhere. The interrupt handler address list starts at 0000:0000 in real mode and in protected mode it gets much more complex. The IVT or interrupt vector table can be changed directly or via DOS. DOS C has functions in <dos.h> to do just this.
setvect()
getvect()
geninterrupt()
int86()
int86x()
etc.
You will need to understand these in order to work with DOS interrupts.
This will show the mouse cursor in DOS code. The mouse handler is for int 33 hex or 0x33. There are about 12 standard functions for most mouse drivers and about 6 of them for sure are implemented on the default Windows mouse driver.
Show mouse:
Code:void ShowMouse(void)
{
REGS regs;
regs.ax=0x01;
int86(0x33,®s,®s);
}