Int 33H Function 0BH (11) Read mouse motion counters

Returns the net mouse displacement since the last call to this function. The returned value is in mickeys; a positive number indicates travel to the right or downwards, a negative number indicates travel to the left or upwards. One mickey represents approximately 1/200 of an inch of mouse movement.

Call with:

AX = 000BH

Returns:

CX = horizontal (X) mickey count

DX = vertical (Y) mickey count