汇编的入门问题,望大虾指教
我将一段很简单的程序输入后存为test.asm
然后在masm611/bin下执行
masm test.asm 没有问题,
但执行ml test.asm后报错:
Assembling: test.asm
Microsoft (R) Incremental Linker Version 5.12.8181
Copyright (C) Microsoft Corp 1992-1998. All rights reserved.
/z2
"test.obj"
"test.exe"
NUL
LINK : warning LNK4044: unrecognized option "z2"; ignored
LINK : error : Segment reference in fixup record
test.obj : fatal error LNK1123: failure during conversion to COFF: file inva
lid or corrupt
请问怎么解决,另外附上这段简单代码
.model small
.stack
.data
string db 'hello, everybody!' , 0dh,0ah,'$'
.code
.startup
mov dx, offset string
mov ah,9
int 21h
.exit 0
end