assembly fatal error LNK1190: invalid fixup found, type 0x0001

前端 未结 2 1833
刺人心
刺人心 2020-12-12 03:34

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!\",\"$\"         


        
2条回答
  •  眼角桃花
    2020-12-12 03:54

    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.

提交回复
热议问题