如何配置ML.EXE和LINK.EXE才能编译下段代码?
.386.MODEL flat,stacall
.STACK 4096
ExitProcess PROTO,dwExitCode:DWORD
DumpRegs PROTO
.code
main PROC
mov eax,10000h
add eax,40000h
sub eax,20000h
call DumpRegs
INVOKE ExitProcess,0
main endp
end main
编译器,连接器跟原文件都在同一个文件夹中。
D:\MASM32\BIN>ml 1.asm;
Microsoft (R) Macro Assembler Version 6.14.8444
Copyright (C) Microsoft Corp 1981-1997. All rights reserved.
Assembling: 1.asm;
MASM : fatal error A1000: cannot open file : 1.asm;