home *** CD-ROM | disk | FTP | other *** search
/ ftp.sunet.se/pub/OS2/ / 2014.11.ftp.sunet.se_pub_OS2.tar / ftp.sunet.se / pub / OS2 / hobbes / os2 / info / tips / mousepat.txt < prev    next >
Text File  |  1995-01-29  |  1KB  |  44 lines

  1. Here is a patch that will allow you to move the MOUSE port to some
  2. IRQ other than 3/4, and have it work on ISA machines with
  3. Serial mouse..
  4.  
  5. ----- Cut Here -----
  6. FILE C:\MYMOUSE.SYS
  7. VER 1813   891E890181E3000FFEC7
  8. CHA 1813   891E890181E3000FB7xx
  9. ;                            __ change this to IRQ number required
  10. ;
  11. ;  This patch changes the IRQ for a serial mouse
  12. ;
  13. ;  The standard calculation is as follows
  14. ;
  15. ;  Port addresses = 03F8, 02F8, 3220, etc...
  16. ;
  17. ;  use .x.. nibble of port address +1 as IRQ number
  18. ;
  19. ;  the code above is
  20. ;
  21. ;
  22. ;  Mov BX,port_address
  23. ;  AND BX,0h0F00
  24. ;  INC BH               < we are replacing this instruction with
  25. ;                         MOV BH,xx to force a SPECIFIC IRQ number
  26. ;                         For example below to IRQ 5
  27. ;
  28. ;
  29. ;  CHA 1813   891E890181E3000FB705
  30. ;
  31. ;
  32. ;  Note: this does NOT change the PORT ADDRESS, so these are expected
  33. ;        at their STANDARD location....(whatever bios say at 40:0)
  34. ;
  35. ;  To apply this patch, copy \OS2\MOUSE.SYS to \MYMOUSE.SYS (or whatever)
  36. ;  edit the FILE name above to point to MYMOUSE.SYS (if different)
  37. ;
  38. ;  from an OS/2 command prompt type PATCH MOUSE.PAT /A
  39. ;
  40. ;  Edit config.sys, change the DEVICE=\OS2\MOUSE.SYS SERIAL=1
  41. ;                           to DEVICE=\OS2\MYMOUSE.SYS SERIAL=1
  42. ;
  43. ;  REBOOT
  44.