Assembly language output string

DATA SEGMENT
     BUF DB 'HOW DO YOU DO?$'
DATA ENDS
CODE SEGMENT
	 mov ax,DATA
	 mov ds,ax
	 
	 mov dx,OFFSET BUF
	 mov ah,09H
	 int 21H
	 mov ah,4CH
	 int 21H
CODE ENDS
END

Screenshot of the result:
stop output when $ symbol is encountered

Please add a picture description

Guess you like

Origin blog.csdn.net/xiatutut/article/details/127479075