title: error: unrecognised directive [ORG]
body: <p>I was trying to write a boot-loader to use in dos-box
  I wrote the following code</p>
  
  <pre><code>[BITS 16]   ;tell the assembler that its a 16 bit code
  [ORG 0x7C00]    ;Origin, tell the assembler that where the code will
  ;be in memory after it is been loaded
  
  JMP $       ;infinite loop
  
  TIMES 510 - ($ - $$) db 0   ;fill the rest of sector with 0
  DW 0xAA55           ; add boot signature at the end of bootloader
  </code></pre>
  
  <p>I was trying to assemble it using nasm by the following command</p>
  
  <pre><code>nasm -f elf myfile.asm
  </code></pre>
  
  <p>Then I see that error</p>
  
  <blockquote>
    <p>error: unrecognised directive [ORG]</p>
  </blockquote>
  
  <p>I'm using ubuntu 14.04 LTS and the version of nasm is 2.10.09</p>