en:docs:dos:api:int21:01

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
en:docs:dos:api:int21:01 [2020/12/07 02:28] – created prokusheven:docs:dos:api:int21:01 [2024/04/27 06:50] (current) prokushev
Line 1: Line 1:
-INT 21 - DOS 1+ - READ CHARACTER FROM STANDARD INPUT, WITH ECHO +{{page>en:templates:dosint}} 
-        AH = 01h + 
-ReturnAL = character read +====== Int 21H, AH=01H ====== 
-Notes:  ^C/^Break are checked, and INT 23 executed if read + 
-        ^P toggles the DOS-internal echo-to-printer flag +===== Version ===== 
-        ^Z is not interpreted, thus not causing an EOF if input is redirected + 
-        character is echoed to standard output +and higher 
-        standard input is always the keyboard and standard output the screen + 
-          under DOS 1.x, but they may be redirected under DOS 2+ +===== Brief ===== 
-SeeAlso: AH=06h,AH=07h,AH=08h,AH=0Ah+ 
 +READ CHARACTER FROM STANDARD INPUT, WITH ECHO 
 + 
 +===== Family API ===== 
 + 
 +[[en:docs:fapi:DosRead]] 
 + 
 +===== Input ===== 
 + 
 +  AH = 01h 
 + 
 +===== Return ===== 
 + 
 +  AL = character read 
 + 
 +===== Macro ===== 
 + 
 +<code asm> 
 +INCLUDE DOS.INC 
 + 
 +READ_KBD_AND_ECHO 
 +</code> 
 + 
 +===== Notes ===== 
 + 
 + ^C / ^Break are checked, and INT 23 executed if read 
 + 
 + ^P toggles the DOS-internal echo-to-printer flag 
 + 
 + ^Z is not interpreted, thus not causing an EOF if input is redirected 
 +character is echoed to standard output 
 +standard input is always the keyboard and standard output the screen 
 +under DOS 1.x, but they may be redirected under DOS 2+ 
 + 
 +===== See also ===== 
 + 
 +AH=[[en:docs:dos:api:int21:06|06h]],AH=[[en:docs:dos:api:int21:07|07h]],AH=[[en:docs:dos:api:int21:08|08h]],AH=[[en:docs:dos:api:int21:0a|0Ah]] 
 + 
 +===== Note ===== 
 + 
 +Text based on [[http://www.cs.cmu.edu/~ralf/files.html|Ralf Brown Interrupt List Release 61]] 
 + 
 +{{page>en:templates:int}} 
 + 
 +{{page>en:templates:fapi}} 
 +