[1] Outputs a character to the currently active video display.
[2.0+] Outputs a character to the standard output device. Output can be redirected. (If output is redirected, there is no way to detect disk full.)
Call with:
AH = 02H
DL = 8-bit data for output
Returns:
Nothing
Notes:
If a Ctrl-C is detected at the keyboard after the requested character is output, an Int 23H is executed.
If the standard output has not been redirected, a backspace code (08H) causes the cursor to move left one position. If output has been redirected, the backspace code does not receive any special treatment.
[2.0+] You can also send strings to the display by performing a write (Int 21H Function 40H) using the predefined handle for the standard output (0001H), if output has not been redirected, or a handle obtained by opening the logical device CON.
Example:
Send the character "*" to the standard output device.
.
.
.
mov ah,2 ; function number
mov dl,'*' ; character to output
int 21h ; transfer to MS-DOS
.
.
.