Finding a Serial Port I/O Address Using Debug

Last reviewed: September 16, 1996
Article ID: Q78604
The information in this article applies to:
  • Microsoft Mouse Driver for MS-DOS, versions 6.x, 7.x, 8.x, and 9.0

SUMMARY

A serial port's I/O address can be determined with Debug.

This information applies to all serial versions of the Microsoft Mouse for MS-DOS based systems.

MORE INFORMATION

To determine a the I/O address for a serial port, do the following:

  1. At the MS-DOS command prompt, type "debug" (without the quotation marks). (It may be necessary to change to the DOS directory for this command to work.) The debug cursor (a hyphen) is displayed.

  2. At the debug prompt, type the following 10 characters:

          D 40:00 09
    

    A single line of text appears, and the debug prompt is again displayed. The screen now resembles the following:

          C:\DOS>debug
          -D 40:00 09
          0040:0000  F8 03 F8 02 00 00 00 00-78 03
          -
    

  3. Press Q, then press ENTER to quit Debug.

The line of interest begins 0040:0000. In this example, the F8 03 and F8 02 indicate two serial ports (COM1 and COM2). Other possibilities include E8 03 (COM3) and E802 (COM4).

A machine with four serial ports should read as follows:

   0040:0000  F8 03 F8 02 E8 03 E8 02-78 03

A machine with no serial ports should read as follows:

   0040:0000  00 00 00 00 00 00 00 00-78 03

A machine with two serial ports (COM2 and COM3) should read as follows:

   0040:0000  F8 02 E8 03 00 00 00 00-78 03

The -78 03 in the above example is the address of the first parallel port.

Note: Windows only recognizes the Mouse on COM1 or COM2. Portables may need their serial ports enabled before the system can recognize them as serial ports.


KBCategory: kbhw
KBSubcategory:
Additional reference words: com communications input output
BallPoint


THE INFORMATION PROVIDED IN THE MICROSOFT KNOWLEDGE BASE IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND. MICROSOFT DISCLAIMS ALL WARRANTIES, EITHER EXPRESS OR IMPLIED, INCLUDING THE WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL MICROSOFT CORPORATION OR ITS SUPPLIERS BE LIABLE FOR ANY DAMAGES WHATSOEVER INCLUDING DIRECT, INDIRECT, INCIDENTAL, CONSEQUENTIAL, LOSS OF BUSINESS PROFITS OR SPECIAL DAMAGES, EVEN IF MICROSOFT CORPORATION OR ITS SUPPLIERS HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. SOME STATES DO NOT ALLOW THE EXCLUSION OR LIMITATION OF LIABILITY FOR CONSEQUENTIAL OR INCIDENTAL DAMAGES SO THE FOREGOING LIMITATION MAY NOT APPLY.

Last reviewed: September 16, 1996
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.