|
Are you looking for enlightenment concerning register access in C or ASM?
Unfortunately, under the current Windows regime a lot of 16-bit programming can no longer be performed do to the restrictions Windows places on direct access to the hardware.
In the meantime, the code snippet you've posted portrays a test of whether or not the right mouse button is depressed. When the interrupt returns, the BX register will contain the number of button presses ( between 0 and 32767 ), CX will contain the horizontal position at the last press, DX will contain the vertical position at last press, and AX will contain a bitfield detailing the status which is described like so:
Bit 0 - 1 = left button down, 0 = left button up
Bit 1 - 1 = right button down, 0 = right button up
Bit 2 - Unused
Bit 3 - Unused
Bit 4 - Unused
Bit 5 - Unused
Bit 6 - Unused
Bit 7 - Unused
Regardless, trying to access interrupt 33h under Windows outside of 16-bit DOS mode programs will certainly cause an error.
If you tell me why you need access to the mouse driver, I can probably help you out some, and maybe come up with a way around the problem you're trying to solve.
|