@ symbol is for replacing ASM ENDASM. It should be first charter on that line, so it will indicate that line is ASM.

So try to write If ... THEN ASM NOP ENDASM