Search code examples
assemblyfasm

Can not compile fasm file


I'm trying to compile asm-xml. But I'm getting the following error:

error: illegal instruction.

The affected line is:

section '.asmdata' writeable

Anyone could help me to fix this iisue?

Thank you in advance,

Greetings F


Solution

  • You're compiling the wrong file. You should be compiling the assembly file that corresponds to your platform, elf.asm or win32.asm. asm-xml.asm is not in itself a complete assembly program.