Write ASM file