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

Popular posts from this blog

linux - Using a Cron Job to check if my mod_wsgi / apache server is running and restart -

actionscript 3 - TweenLite does not work with object -

jQuery Ajax Render Fragments OR Whole Page -