dseg segment 
mov AX,0B800h
mov ES,AX
mov Byte ptr ES:[0],'A'
                mov Byte ptr ES:[2],'B'
                mov Byte ptr ES:[1],17h
dseg ends
end start

the error is as follows...
1>------ Build started: Project: testasm2, Configuration: Debug Win32 ------
1> Assembling: ..\..\..\..\..\..\..\laptop\testaasm1.asm
1>..\..\..\..\..\..\..\masm32\testaasm1.asm(9) : warning A4023: with /coff switch, leading underscore required for start address : start
1>LINK : fatal error LNK1221: a subsystem can't be inferred and must be defined
1>Build log was saved at "file://c:\Users\N1nji\Documents\Visual Studio 2005\Projects\testasm2\testasm2\Debug\BuildLog.htm"
1>testasm2 - 1 error(s), 1 warning(s)
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========

I am using Visual C++ 2005 express edition with MASM 8 addon.
I have no idea why I am recieving this error.  Anyone know what it means? anything I am doing wrong?.
Posted on 2007-03-28 16:00:19 by ninjikiran
if this message is generated by linker, try "/subsystem:console" or "/subsystem:windows".

If this message is from assembler, and you just want to get object file, try "/c" switch
Posted on 2007-03-28 17:10:41 by vid
You're trying to do 16bit assembly? Use the "/omf" switch... also you won't be able to use the visual studio environment (at least not without tweaking), and you'll need to find the 16bit Microsoft linker, since the current versions won't link 16bit code.
Posted on 2007-03-28 17:19:30 by f0dder