Function 20 - Swap Interrupt Subroutines (19859)



The information in this article applies to:
    Microsoft Mouse driver for MS-DOS 6.x
    Microsoft Mouse driver for MS-DOS 7.x
    Microsoft Mouse driver for MS-DOS 8.x
    Microsoft Mouse driver for MS-DOS 9.0

This article was previously published under Q19859

SUMMARY

The following is a description of Function 20: - Swap Interrupt Subroutines (Mouse Version 6.0). Function 20 allows you to get the address and call mask for a Mouse Function 12 subroutine or to exchange the vector and mask.
   Inputs:

         AX = 20
         BX = segment of new subroutine
         CX = new call mask
         DX = offset of new subroutine

   Outputs:

         BX = segment of old subroutine
         CX = old call mask
         DX = offset of old subroutine
For more information on mouse function subroutines, refer to the entries on Function 12. A well-coded application returns the old subroutine address (vector) and mask via this function when it terminates. This function is also useful for swapping between a set of Function 12 subroutines within an application.

Modification Type: Major Last Reviewed: 10/3/2003
Keywords: KB19859