Table des matières

INT 0x21 - 0x06 - Direct console input (Sub Function FFh)

Request/Call:

reg value descr
AH 0x06
DL 0xFF

Return:

if ZF=1 : no character is available

if ZF=0 : character is available in AL

reg descr
AL character read

Notes & Comments

  • does NOT check ^C/^Break
  • if the returned character is 00h, the user pressed a key with an extended keycode, which will be returned by the next call of this function
  • reads from standard input, which is always the keyboard under DOS 1.x, but may be redirected under DOS 2+

SeeAlso: AH=08h

Back