home *** CD-ROM | disk | FTP | other *** search
/ DP Tool Club 15 / CD_ASCQ_15_070894.iso / vrac / intlist1.zip / INPUT.TXT < prev    next >
Text File  |  1994-01-01  |  4KB  |  82 lines

  1. --------D-2101-------------------------------
  2. INT 21 - DOS 1+ - READ CHARACTER FROM STANDARD INPUT, WITH ECHO
  3.     AH = 01h
  4. Return: AL = character read
  5. Notes:    ^C/^Break are checked, and INT 23 executed if read
  6.     character is echoed to standard output
  7.     standard input is always the keyboard and standard output the screen
  8.       under DOS 1.x, but they may be redirected under DOS 2+
  9. SeeAlso: AH=06h,AH=07h,AH=08h,AH=0Ah
  10. --------D-2106--DLFF-------------------------
  11. INT 21 - DOS 1+ - DIRECT CONSOLE INPUT
  12.     AH = 06h
  13.     DL = FFh
  14. Return: ZF set if no character available
  15.     ZF clear if character available
  16.         AL = character read
  17. Notes:    ^C/^Break are NOT checked
  18.     if the returned character is 00h, the user pressed a key with an
  19.       extended keycode, which will be returned by the next call of this
  20.       function
  21.     reads from standard input, which is always the keyboard under DOS 1.x,
  22.       but may be redirected under DOS 2+
  23. SeeAlso: AH=0Bh
  24. --------D-2107-------------------------------
  25. INT 21 - DOS 1+ - DIRECT CHARACTER INPUT, WITHOUT ECHO
  26.     AH = 07h
  27. Return: AL = character read from standard input
  28. Notes:    does not check ^C/^Break
  29.     standard input is always the keyboard under DOS 1.x, but may be
  30.       redirected under DOS 2+
  31.     if the interim console flag is set (see AX=6301h), partially-formed
  32.       double-byte characters may be returned
  33. SeeAlso: AH=01h,AH=06h,AH=08h,AH=0Ah
  34. --------D-2108-------------------------------
  35. INT 21 - DOS 1+ - CHARACTER INPUT WITHOUT ECHO
  36.     AH = 08h
  37. Return: AL = character read from standard input
  38. Notes:    ^C/^Break are checked, and INT 23 executed if detected
  39.     standard input is always the keyboard under DOS 1.x, but may be
  40.       redirected under DOS 2+
  41.     if the interim console flag is set (see AX=6301h), partially-formed
  42.       double-byte characters may be returned
  43. SeeAlso: AH=01h,AH=06h,AH=07h,AH=0Ah,AH=64h
  44. --------D-210A-------------------------------
  45. INT 21 - DOS 1+ - BUFFERED INPUT
  46.     AH = 0Ah
  47.     DS:DX -> buffer (see below)
  48. Return: buffer filled with user input
  49. Notes:    ^C/^Break are checked, and INT 23 is called if either detected
  50.     reads from standard input, which may be redirected under DOS 2+
  51.     if the maximum buffer size (see below) is set to 00h, this call returns
  52.       immediately without reading any input
  53. SeeAlso: AH=0Ch,INT 2F/AX=4810h
  54.  
  55. Format of input buffer:
  56. Offset    Size    Description
  57.  00h    BYTE    maximum characters buffer can hold
  58.  01h    BYTE    (input) number of chars from last input which may be recalled
  59.         (return) number of characters actually read, excluding CR
  60.  02h  N BYTEs    actual characters read, including the final carriage return
  61. --------D-210B-------------------------------
  62. INT 21 - DOS 1+ - GET STDIN STATUS
  63.     AH = 0Bh
  64. Return: AL = 00h if no character available
  65.        = FFh if character is available
  66. Notes:    ^C/^Break are checked, and INT 23 is called if either pressed
  67.     standard input is always the keyboard under DOS 1.x, but may be
  68.       redirected under DOS 2+
  69.     if the interim console flag is set (see AX=6301h), this function
  70.       returns AL=FFh if a partially-formed double-byte character is
  71.       available
  72. SeeAlso: AH=06h"INPUT",AX=4406h
  73. --------D-210C-------------------------------
  74. INT 21 - DOS 1+ - FLUSH BUFFER AND READ STANDARD INPUT
  75.     AH = 0Ch
  76.     AL = STDIN input function to execute after flushing buffer
  77.     other registers as appropriate for the input function
  78. Return: as appropriate for the specified input function
  79. Note:    if AL is not one of 01h,06h,07h,08h, or 0Ah, the buffer is flushed but
  80.       no input is attempted
  81. SeeAlso: AH=01h,AH=06h"INPUT",AH=07h,AH=08h,AH=0Ah
  82.