ms dos - Dos32 Extender help needed -
i want write c apis set/getirqhandler dos32 extender. document of dos32 not updated since long time.
please can me out in writing c apis above mentioned functions.
i found below information dos32 website.
dpmi function 0204h - protected mode interrupt vector returns address of current protected mode interrupt handler specified interrupt. in: ax = 0204h bl = interrupt number out: cf clear cx:edx = selector:offset of exception handler notes: a) value returned in cx valid protected mode selector, not real mode segment address. b) client should use dpmi function 0202h obtain addresses of exception handlers, since interrupt , exception handler's addresses may different interrupts in range int 00-0fh.
and
**dpmi function 0205h - set protected mode interrupt vector sets address of protected mode handler specified interrupt interrupt vector. in: ax = 0205h bl = interrupt number cx:edx = selector:offset of exception handler out: if successful: cf clear if failed: cf set ax = error code 8022h - invalid selector notes: a) value passed in cx should valid protected mode code selector, not real mode segment address.**
can please explain selector mean , how can convert useful c functions :
void* getirqhandler(irq_line); void setirqhandler(irq_line,isr);
Comments
Post a Comment