title: invalid instruction suffix for mov?
body: <p>I have this piece of inline assembly code that should print A in text mode:</p>
  
  <pre><code>    void print(){
          asm volatile(
              "mov ax,0xb800\n"
              "mov ds,ax\n" /*&lt;-as complains about this*/
              "movb 0,'A'\n"
      ); 
  } 
  </code></pre>
  
  <p>However when I try to compile it with gcc(with -m32 and -masm=intel):</p>
  
  <pre><code>./source/kernel.c: Assembler messages:
  ./source/kernel.c:4: Error: invalid instruction suffix for `mov'
  </code></pre>
  
  <p>btw this piece of code is from my operating system's kernel, so I can't use stdio.h or something like that.</p>