环境
window10 64位
1 下载地址
http://pic.potens.top/upload/DOSBox.rar

2 挂载masm
双击DOSBox 0.74 Options.bat 拉到最后 新增下面的代码
#替换成你的masm目录
mount c: D:\install\DOSBox\masm
c:

保存文件后关闭
3 运行DOSBox.exe

4 运行文件
在masm目录下新建hello.asm
.model small
.data
strs DB 'hello world',13,10,'$'
.code
start:
mov ax,@data
mov ds,ax
mov dx,offset strs
mov ah,09h
int 21h
mov ah,4ch
int 21h
end start
打开DOSBox
# 编译
masm hello.asm

# 链接
link hello.obj

# 运行
hello.exe

网友评论