Assembly Language Help (alang.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.
@GetChar Macro
                                             Up Contents Index Back
────────────────────────────────────────────────────────────────────────────
 
  Include:   DOS.INC
 
  Syntax:    @GetChar [echo] [,[break] [,clearbuf]]
 
  Summary:   Gets a keystroke from the keyboard
 
  Arguments: <echo>         Nonzero to echo keystroke; default yes.
                            Must be a constant.
 
             <break>        Nonzero to accept CTRL+C; default yes. Must
                            be a constant.
 
             <clearbuf>     Nonzero to clear keyboard buffer; default
                            no. Must be a constant.
 
             NOTE: Arguments can be omitted to get defaults.
 
  Returns:   ASCII code of key in AL
 
  Modifies:  AX, else DL used if echo on and CTRL+C off
 
  See also:  Int 21h Functions 01h, 07h, 08h, and 0Ch, @GetStr
                                    -♦-