Function 24: Set Alternate Subroutine Call Mask and Address

ID: Q35365

The information in this article applies to:

SUMMARY

Function 24 sets the interrupt call mask and user subroutine address for mouse hardware interrupts. Subroutine calls using Function 24 allow the called routine to be reentrant; that is, the subroutine called can itself make interrupt calls.

Input                             Output

AX = 24                           AX = error status (-1 if error
                                       occurred)
CX = user interrupt call mask ES:DX = user subroutine address

Mask Bit                          Condition

0                                 Cursor position changes
1                                 Left button pressed
2                                 Left button released
3                                 Right button pressed
4                                 Right button released
5                                 SHIFT key pressed with button
6                                 CTRL key pressed with button
7                                 ALT key pressed with button
8-15                              Not used

Note: One of at least bits 5,6,7 must be set in order for this function to work properly.

KBCategory: kbhw KBSubcategory: Additional reference words: 7.00 7.04 7.05 8.00 8.10 1.00 8.20 9.00

Last Reviewed: September 16, 1996