刚接触汇编win32位的内容,用radasm进行调试程序前要进行编译得到res等文件,但是没用过masm32的软件,怎么在dos下进行编译啊,大神们能给个详细步骤吗?反正还有175分,弄懂了就全部给你们吧,我的64位机子只能用虚拟机哦
------解决方案--------------------
Var.bat
@echo off
rem 请根据Masm32和VC++软件包的安装目录修改下面的Masm32Dir和VC++Dir环境变量!
set Masm32Dir=C:\masm32
set VC++Dir=C:\Program Files\Microsoft Visual Studio\VC98
set include=%Masm32Dir%\include;%Masm32Dir%\macros;%VC++Dir%\Include;%VC++Dir%\MFC\Include
set lib=%Masm32Dir%\lib
set path=%Masm32Dir%\bin;%Masm32Dir%
set VC++Dir=
set Masm32Dir=
@echo ...Set Environment For MASM32 Success...
@echo on
Makefile
NAME = Dialog
OBJS = $(NAME).obj
RES = $(NAME).res
$(NAME).exe: $(OBJS) $(RES)
link /SUBSYSTEM:WINDOWS $(OBJS) $(RES)
$(RES): $(NAME).rc
rc $(NAME).rc
.asm.obj:
ml /c /coff $(NAME).asm
clean:
@del *.obj
@del *.RES