主题:[讨论]helloworld求助
小弟的第一个汇编程序
我用的是masm6.11
程序如下:
.386
.model flat ,stdcall
option casemap:none
includelib msvcrt.lib
printf PROTO C:ptr sbyte,:vararg
.data
szMsg byte "Hello World!",0ah,0
.code
start:
invoke printf, offset szMsg
ret
end start
我在命令提示符里打:ml/coff hello.asm
然后显示这个:
Object Modules [.obj]: hello.obj
Run File [hello.exe]: "hello.exe"
List File [nul.map]: NUL
Libraries [.lib]:
Definitions File [nul.def]:
hello.obj : fatal error L1101: invalid object module
Object file offset: 1 Record type: 4c
但还是生成了.obj文件 我再打:link/subsystem:concole asm.obj
显示这个:LINK : warning L4017: /subsystem : unrecognized option name; option ignored
Run File [hello.exe]:
请问这是什么情况?
我用的是masm6.11
程序如下:
.386
.model flat ,stdcall
option casemap:none
includelib msvcrt.lib
printf PROTO C:ptr sbyte,:vararg
.data
szMsg byte "Hello World!",0ah,0
.code
start:
invoke printf, offset szMsg
ret
end start
我在命令提示符里打:ml/coff hello.asm
然后显示这个:
Object Modules [.obj]: hello.obj
Run File [hello.exe]: "hello.exe"
List File [nul.map]: NUL
Libraries [.lib]:
Definitions File [nul.def]:
hello.obj : fatal error L1101: invalid object module
Object file offset: 1 Record type: 4c
但还是生成了.obj文件 我再打:link/subsystem:concole asm.obj
显示这个:LINK : warning L4017: /subsystem : unrecognized option name; option ignored
Run File [hello.exe]:
请问这是什么情况?