debug
a
mov ah,9
mov dx,200
int 21
int 3
e200
77 65 6c 63 6f 6d 65 20 74 6f 20 6d 61 73 6d 21 24
g=100
楼上的答复存在几个缺陷:
push cs
pop dx 这两句多余,因为进入debug后cs和ds是相同的。
e命令不能直接输入字符串,只能输入字符的16进制ascii码
为了查看运行结果,应该加int 3
>debug
-a100
push cs
pop ds
mov dx,150
mov ah,9
int 21
int 20
-e150 'welcome to masm!$'
-g=100