How to set Emacs up for assembly programming and fix indentation?
<blockquote>
  <p>How to set Emacs up for assembly programming and fix indentation? </p>
</blockquote>

<p>Emacs is indenting some directives in an annoying way.</p>

<p>Especially, the <code>global</code>, <code>extern</code> and <code>section</code> keywords below are indented as code.</p>

<p>I want these keywords left-aligned. How can this be done?</p>

<p>In addition, are there any good modes for assembly programming that is worth recommending?</p>

<pre><code>        global _main
        extern _printf
        section .text
_main:
        push msg
        call _printf
        add esp, 4
        ret
msg:
        db 'HelloWorld', 0
</code></pre>

<hr>

<p>Syntax highlighting does work in asm mode, though:</p>

<p><a href="https://i.stack.imgur.com/HyONM.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/HyONM.png" alt="enter image description here"></a></p>