Mouse program in c



Fundamental knowledge:-

   1.Mouserogramming is developed by Dr.Peter     the early 1980`s.
  1. Each device has a unique port which has a hexadecimal value and value is designed to be machine independent . 
  2. Mouse has port attached to it 0X33 .
  3. We also make use of address registers. These are basically Union of type REGS defined in dos.h  .
 4.Just remember we use two register to communicate to a device driver using two registers one for input and one for output . 

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!

Previous Post Next Post