mov dx, seg String
mov ds, dx
mov dx, offset String ;ds:dx points to string to display
mov ah, 09h ;Display String
int 21h
Display String (Function 09h) sends a string to standard output. The string must end with a dollar sign (ASCII 24h). MS-DOS displays characters up to but not including the dollar sign.
This function has been superseded by Write File or Device (Function 40h).
String
Points to the buffer containing the string to be displayed.
This function has no return value.
This function cannot send a string containing a dollar sign (ASCII 24h) to standard output. The string may contain any other characters.
Function 40h Write File or Device