en:docs:dos:api:int21:0a

Note: This API call is for DOS and Win16 personality only. Use Family API for portability.

2018/09/07 05:04 · prokushev · 0 Comments

Int 21H, AH=0AH

Version

1 and higher

Brief

BUFFERED INPUT

Family API

Input

AH = 0Ah
DS:DX -> buffer (see #01344)

Return

buffer filled with user input

Notes

^C/^Break are checked, and INT 23 is called if either detected reads from standard input, which may be redirected under DOS 2+

if the maximum buffer size is set to 00h, this call returns immediately without reading any input

Format of DOS input buffer:

Offset Size Description
00h BYTE maximum characters buffer can hold
01h BYTE (call) number of chars from last input which may be recalled (ret) number of characters actually read, excluding CR
02h N BYTEs actual characters read, including the final carriage return

See also

AH=0Ch,INT 2F/AX=4810h

Note

2018/09/04 17:23 · prokushev · 0 Comments