include io32.inc ;IO库文件
.data ;数据定义
msg byte "hello,world!",13,10,0 ;字符串,试过了,单双引号均可
.code ;代码段
start: ;主程序
mov eax,offset msg ;参数移入,offset取址
call dispmsg ;调用
exit 0 ;return 0
;子程序
end start ;汇编结束
【MASM】hello world
最新推荐文章于 2023-01-09 15:26:47 发布