Is there a way that I use MASM under Linux. Even tough NASM is quite popular under Linux, it still differs for some instruction style on code.
An alternative to MASM is UASM.
UASM is a free MASM-compatible assembler based on JWasm.
It works for creating general Linux binaries. However, shared objects requiring the -fPIC option is not possible with UASM.