title: Simple x86-64 C++ Inline assembly "Hello World" example
body: <p>I am trying to find a very basic C++ inline x86-64 assembly example, similar to this:</p>
  
  <p><a href="https://stackoverflow.com/questions/2179183/a-simple-hello-world-inline-assembly-language-program-in-c-c">a Simple &quot;Hello World&quot; Inline Assembly language Program in C/C++</a></p>
  
  <pre><code>char msg[] = "Hello, world";
  
  asm {
      mov ax,4       // (I/O Func.)
      mov bx,1       // (Output func)  
      lds cx, msg   // (address of the string)
      mov dx,6       //  (lenght of the string)
      int 0x21       // system call
  }
  </code></pre>
  
  <p>which would work with the Intel Compiler. Could someone please help with this?</p>
  
  <p>EDIT Regarding OS I have the ICC on Windows and Linux- lets say Linux!</p>