What are the syntax differences between the NASM and MASM assemblers?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Section 2.2 of the NASM documentation is titled Quick Start for MASM Users which lists the important differences between NASM and MASM.
NASM version 2.15 added some MASM compatibility, including a
%use masmmacro package. See section 6.5masm: MASM compatibility. Even without the macro package,?andDUPwork in data directives likedb, anddisplacement[base+index]is allowed instead of the usual[rdi+4]syntax which NASM used to require.Also related, How to know if an assembly code has particular syntax (emu8086, NASM, TASM, …)? discusses some of the syntax differences.