Mouse program in c
Fundamental knowledge:-
1.Mouserogramming is developed by Dr.Peter the early 1980`s.
- Each device has a unique port which has a hexadecimal value and value is designed to be machine independent .
- Mouse has port attached to it 0X33 .
- We also make use of address registers. These are basically Union of type REGS defined in dos.h .
Ax register
- We can access various mouse functions using different values of AX input Register and passing those values to mouse port using a interrupt .
- The Functions are listed below - Here AX, BX, CX and DX are members of Union REGS .
Post a Comment
If you have any doubts, Please let me know
Thanks!