KnowledgeBase Archive

An Archive of Early Microsoft KnowledgeBase Articles

View on GitHub

Q49537: The CodeView Port Input Command Example Is Unclear

Article: Q49537
Product(s): See article
Version(s): 2.20 2.30 | 2.20 2.30
Operating System(s): MS-DOS | OS/2
Keyword(s): ENDUSER | H_MASM H_FORTRAN S_Pascal | mspl13_basic
Last Modified: 27-OCT-1989

The CodeView example for port input command is unclear in the
following manuals:

1. Page 150 of Microsoft C 5.10 "CodeView And Utilities, Microsoft
   Editor, Mixed Language Programming Guide"

2. Page 150 of Microsoft Macro Assembler 5.10 CodeView and Utilities

3. Page 150 of Microsoft Pascal 4.00 CodeView and Utilities

4. Page 127 of Microsoft FORTRAN 5.10 CodeView and Utilities

The example assumes the radix is in hexadecimal. To set the radix to
hexadecimal, type in the following command:

   >n16

After setting the radix to hexadecimal, the example works properly.

If the radix is not in hexadecimal, a "0x" must be present for
CodeView to recognize the value as a hex format. The following example
shows how to use the port input command if CodeView is not in
hexadecimal radix:

   >I 0x2f8

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.

Copyright Microsoft Corporation 1986-2002.