Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- TASM 2.x / MASM 6.x Assembly Language - <b>int 14h, 02h (2) receive one character</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
INT 14h,  02h (2)        Receive One Character

    Receives one character at the specified serial port.

       On entry:      AH         02h
                      DX         Serial port number (0 - COM1, 1 - COM2, etc.)

       Returns:       AL         Character
                      AH         Line status (See service 03h)

  --------------------------------------------------------------------------

       Notes:         This service waits for a character. If no character
                      is available or an error occurs, no character is
                      returned and bit 7 of AH is set.

                      If an error occurs, bit 7 of AH is set. Since bit 7
                      is used as a general error flag, this service is
                      unable to identify a time-out error. For complete
                      diagnostic information, use Service 03h (Get serial
                      port status).

See Also: INT 14h, 01h INT 14h, 03h

Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson