string db 'what are you doing?','$'
mov dl,0dh
mov ah,2
int 21h
mov dl,0ah
mov ah,2
int 21h ;前面的是输出回车换行符(2号功能调用)
mov dx,offset string
mov ah,9
int 21h ;输入字符串(9号功能调用)
.MODEL SMALL
.STACK 100H
.DATA
HW DB 'Hello World','$'
.CODE
START:MOV AX,@DATA
MOV DS,AX
MOV DX,OFFSET HW
MOV AH,9
INT 21H
MOV AH,4CH
INT 21H
END START