Differences
This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
en:docs:dos:api:int21:06 [2020/12/07 05:51] – created prokushev | en:docs:dos:api:int21:06 [2025/01/03 21:09] (current) – external edit 127.0.0.1 | ||
---|---|---|---|
Line 9: | Line 9: | ||
===== Brief ===== | ===== Brief ===== | ||
- | DIRECT CONSOLE OUTPUT | + | DIRECT CONSOLE OUTPUT/INPUT |
===== Family API ===== | ===== Family API ===== | ||
Line 18: | Line 18: | ||
AH = 06h | AH = 06h | ||
- | DL = character (except FFh) | + | DL = output |
+ | DL = FFh - input character | ||
+ | | ||
===== Return ===== | ===== Return ===== | ||
+ | |||
+ | On output: | ||
AL = character output (despite official docs which state nothing is returned) (at least DOS 2.1-7.0) | AL = character output (despite official docs which state nothing is returned) (at least DOS 2.1-7.0) | ||
+ | |||
+ | On input: | ||
+ | |||
+ | ZF set if no character available | ||
+ | AL = 00h | ||
+ | |||
+ | ZF clear if character available | ||
+ | AL = character read | ||
===== Notes ===== | ===== Notes ===== | ||
Line 29: | Line 41: | ||
| | ||
+ | |||
+ | 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 | ||
+ | |||
+ | this function reads from standard input, which is always the keyboard under DOS 1.x, but may be redirected under DOS 2+ | ||
+ | |||
+ | | ||
===== See also ===== | ===== See also ===== | ||
- | AH=02h, | + | AH=[[en: |
===== Note ===== | ===== Note ===== |