在数据段里定义: DATA SEGMENT 'CODE' BUF db 'My name is tang wang he bian.$' DATA ENDS 要显示的字符串一定要用$结尾,这是dos功能调用9号功能的规定。