qa.hlp (Table of Contents; Topic list)
Important Notice
The pages on this site contain documentation for very old MS-DOS software, purely for historical purposes. If you're looking for up-to-date documentation, particularly for programming, you should not rely on the information found here, as it will be woefully out of date.
Int 14H Function 02H
   Summary  Back
──────────────────────────────────────────────────────────────────────────────
 
  Description:  Read Character from Communications Port      [PC] [AT] [PS/2]
 
  Reads a character from the specified serial communications port, also
  returning the port's status.
 
  Input                             Output
  ═════════════════════════════     ═════════════════════════════════════════
  AH=02H                            If function successful
  DX=communications port number     AH bit 7=0
     (0=COM1, 1=COM2,   etc.)       AH bits 0-6=status
                                                Bit(s)  Significance (if set)
                                                ══════  ═════════════════════
                                                4       break detected
                                                3       framing error detected
                                                2       parity error detected
                                                1       overrun error detected
                                    AL=character
                                    If function unsuccessful (timed-out)
                                    AH bit 7=1
                                    -♦-