To use 'nasm' to assemble the .asm file on linux do:

    nasm -DELF -felf -o elf/yuvammx.o ../yuvammx.asm


To use 'nasm' to assemble the .asm for windows do:

    nasm -DCOFF -fcoff -o coff\yuvammx.obj ..\yuvammx.asm
or

    nasm -DWIN32 -fwin32 -o win32\yuvammx.obj ..\yuvammx.asm


Note: On windows 'nasm' is usually 'nasmw'.


valid output formats for -f are (`*' denotes default):
  * bin       flat-form binary files (e.g. DOS .COM, .SYS)
    aout      Linux a.out object files
    aoutb     NetBSD/FreeBSD a.out object files
    coff      COFF (i386) object files (e.g. DJGPP for DOS)
    elf       ELF32 (i386) object files (e.g. Linux)
    as86      Linux as86 (bin86 version 0.3) object files
    obj       MS-DOS 16-bit/32-bit OMF object files
    win32     Microsoft Win32 (i386) object files
    oldrdf    Relocatable Dynamic Object File Format v1.1
    rdf       Relocatable Dynamic Object File Format v2.0
    ieee      IEEE-695 (LADsoft variant) object file format
