title: error A2008: syntax error :
body: <p>I'm trying to write a bootloader for an OS I'm developing.</p>
  
  <p>I'm getting a syntax error on the first line.</p>
  
  <p>Here is my assembly code:</p>
  
  <pre><code>.286 ; CPU Type
  .model TINY  ; memory of model
  ;---------------------- EXTERNS -----------------------------
  extrn               _BootMain:near     ; prototype of C func
  ;------------------------------------------------------------
  ;------------------------------------------------------------   
  .code 
  org             07c00h         ; for BootSector
  _main:
                  jmp short _start       ; go to main
                  nop
  
  ;----------------------- CODE SEGMENT -----------------------
  _start: 
          cli
          mov ax,cs               ; Setup segment registers
          mov ds,ax               ; Make DS correct
          mov es,ax               ; Make ES correct
          mov ss,ax               ; Make SS correct        
          mov bp,7c00h
          mov sp,7c00h           ; Setup a stack
          sti
                                  ; start the program 
          call           _BootMain
          ret
          END _start
          END _main ; End of program
  </code></pre>
  
  <p>Here's my compile line:</p>
  
  <pre><code>"*location*\14.10.25017\bin\HostX86\x86\ML.EXE"  /c StartPoint.asm
  </code></pre>
  
  <p>The error I'm getting: </p>
  
  <blockquote>
    <p>StartPoint.asm(1): error A2008: syntax error : .</p>
  </blockquote>
  
  <p>As far as I know, this line shouldn't be a problem.</p>
  
  <p>Thanks for the help :)</p>