1、安装masm32,radasm,配置radasm库路径以及工程路径。
2、新建工程
.386
.model flat,stdcall
option casemap:none
include windows.inc
include user32.inc
include kernel32.inc
includelib user32.lib
includelib kernel32.lib
.data
szTxt db 'hello world',0
szCap db 'hi',0
.code
start:
invoke MessageBox,NULL,addr szTxt,addr szCap,MB_OK
invoke ExitProcess,0
end start
运行成功
网友评论