Int 33H Function 06H Get button release information

Returns the current status of all mouse buttons, and the number of releases and position of the last release for a specified mouse button since the last call to this function for that button. The release counter for the button is reset to zero.

Call with:

AX = 0006H

BX = button identifier

0 = left button

1 = right button

2 = center button

Returns:

AX = button status

Bit(s) Significance (if set)

0 left button is down

1 right button is down

2 center button is down

3—15 reserved (0)

BX = button release counter

CX = horizontal (X) coordinate of last button release

DX = vertical (Y) coordinate of last button release