![]() |
#2
ydpgz2009-10-22 14:18
|
.386
.model flat,stdcall
option casemap:none
include \masm32\include\windows.inc
include \masm32\include\kerne132.inc
include \masm32\include\user32.inc
includelib \masm32\lib\user32.lib
includelib \masm32\lib\kernel32.lib
.date
MsgCaption db "hi,masm32!",0
MsgBoxText db "win32 assembly is great!",0
.code
start:
invoke MessageBox,NULL,addr MsgBoxText, addr MsgCaption,MB_ok
invoke Exitprocess,NULL
end start
我用MASM32 V10编译如图
只有本站会员才能查看附件,请 登录
还有书上说了个设置环境变量的批处理文件
我MASM32安装在C盘
@echo off
set include=c:\masm32\include
set lib=c:\masm32\lib;c:\masm32\m32lib;d:\program files\microsoft sd\lib
setpath=c:\masm32\lib;c:\masm32\m32lib;d:\program files\microsoft sd\bin
start cmd.exe /k
@echo on
怎么就没有用呢,把这个BAT放入C盘运行提示信息
只有本站会员才能查看附件,请 登录