如何用debug在命令提示符中间显示字符串“welcome to masm!”

如何在debug中用E命令输出‘✀welcome to masm’并显示颜色
2025-02-24 07:22:44
推荐回答(2个)
回答1:

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

回答2:

>debug
-a100
push cs
pop ds
mov dx,150
mov ah,9
int 21
int 20

-e150 'welcome to masm!$'
-g=100