Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- Dos Protected Mode Interface - <b>set real mode interrupt vector</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
        Set Real Mode Interrupt Vector


                 This function sets the value of the current task's real
                 mode interrupt vector for the specified interrupt.

            To Call

                 AX = 0201h
                 BL = Interrupt number
                 CX:DX = Segment:Offset of real mode interrupt handler

            Returns

                 If function was successful:
                 Carry flag is clear.

                 If function was not successful:
                 Carry flag is set.

            Programmer's Notes

                 o    The address  passed in  CX must  be  a  real  mode
                      segment, not a selector.
                 o    If  the  interrupt  being  hooked  is  a  hardware
                      interrupt then  you must lock the segment that the
                      interrupt handler  runs in  as well  as any memory
                      the handler may touch at interrupt time.
                 o    The address contained in CX:DX must be a real mode
                      segment:offset, not a selector:offset.  This means
                      that the  code  for  the  interrupt  handler  must
                      either reside  in DOS  addressable memory  or  you
                      must use  a real mode call-back address.

See Also: ^bINTERRUPT SERVICES^b

Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson