Function 02h Display Character

mov dl, OutputChar ;character to display

mov ah, 02h ;Display Character

int 21h

Display Character (Function 02h) displays a character on the standard output device.

This function has been superseded by Write File or Device (Function 40h).

Parameter

OutputChar

Specifies the ASCII value of the character to be displayed.

Return Value

This function has no return value.

Comment

When the standard output device is the screen, displaying a backspace character (ASCII 08h) moves the cursor back one position but does not erase characters.

See Also

Function 40h Write File or Device