I want to write 16 bit 8086 assembly code in visual studio 2010 but gives me error: code:
.MODEL small
.STACK 100h
.data
message BYTE \"Hello, world!\",\"$\"
Compile with these commands :
ml.exe /omf filename.asm
link16.exe filename.obj
Info:
when you invoke ml.exe without any specific parameters the type of object file that it generates will be in coff format. coff format name mangling requires that your code should have a "_start" and "end _start". what you have written will work for intel's omf object files.