Hi~

I study Assembly Language. beginner...

below test code compile...

CODE SEGMENT
ASSUME CS:CODE, DS:CODE
ORG 100H ;COM MODEL
START:
MOV AX,CS
MOV DS,AX

MOV AH,2
MOV DL, 'T'
INT 21H

MOV AH,2
MOV DL,54H
INT 21H

MOV AH,4CH
INT 21H
CODE ENDS
END START


ml /c test.asm

this obj file link...

link test.obj

test.obj : warning LNK4033: converting object format from OMF to COFF
LINK : fatal error LNK1561: entry point must be defined

occured error message.


Assembly Language : MASM32
under Windows NT 2000

:confused:
Posted on 2002-03-20 07:04:00 by MrM
Your asm code is old 16bit asm - and the linker in masm32 can only
produce win32 PE executables. Get a 16bit linker or start writing
win32 code :)
Posted on 2002-03-20 07:51:20 by f0dder
You can get the older LINK from Iczelion's site. It's near the bottom of this page:

http://spiff.tripnet.se/~iczelion/download.html

You may want to rename it to something like LINKDOS.EXE to avoid confusion.

:)
Posted on 2002-03-22 04:11:17 by S/390