Search code examples
assemblyx86nasmmasm

Assembly programming : NASM VS MASM code


I am just started learning Assembly programming. So far I know, NASM is the best assembler for linux. And its 32-bit assembler.

On the other hand, MASM is a DOS assembler and its 16 bit.

Now I want to know how to port from 16-bit x86 DOS assembly code to 32-bit x86 Linux assembly code or 32-bit x86 Windows assembly code

Thanks in Advance.


Solution

  • MASM is not just 16 bit. You can also get 32 bit assember MASM:

    http://masm32.com/

    DOS assembly and Linux Assembly are completely different. There is no automated way to port. You will have to write separate code for each since assembly is most close to the metal.