title: Assembly issue with '[' in x86 syntax for GCC
body: <p>to make it short: when I am trying to assemble my code I get this<br>
  <code>Error: invalid char '[' beginning operand 2 '[esp+4]'</code><br>
  and<br>
  <code>Error: invalid char '[' beginning operand 1 '[edx]'</code></p>
  <p>The most relevant code is already in the error, however I got the code from <a href="https://wiki.osdev.org/Interrupts_tutorial" rel="nofollow noreferrer">here</a>. To reproduce the error just use this little pattern in <code>.section .text</code> with the command shown below:</p>
  <pre><code>mov edx, [esp + 4]
  lidt [edx]
  sti
  ret
  </code></pre>
  <p>I'm using <code>gcc -m32 -c -o idtasm.o idtasm.S</code> to assemble.</p>