masm的IDE环境

原创
2020/03/29 16:28
阅读数 116

masm有自带IDE环境:qeditor

注意:在include/includelib时要写完整路径

.386  
.model flat,stdcall  
option	casemap:none

;include
include	<E:\masm32/include/windows.inc>
include	<E:\masm32/include/user32.inc>
includelib  <E:\masm32/lib/user32.lib>
include	<E:\masm32/include/kernel32.inc>
includelib  <E:\masm32/lib/kernel32.lib>

; data
.data
szCpation db 'A Messagebox!',0
szText db 'Hello world!',0

; code
.code
start:
	invoke	MessageBox,NULL,offset szText, offset szCpation, MB_OK
	invoke	ExitProcess,NULL
end start

 

展开阅读全文
打赏
0
0 收藏
分享
加载中
更多评论
打赏
0 评论
0 收藏
0
分享
返回顶部
顶部