4.20 End Directive

The MPASM END directive indicates the end of the program's source code.

Suggested Replacement

The PIC Assembler's END directive performs the same task.

Use of the END directive is optional. Once encountered, the assembler will assume there are no more lines of input, and even blank lines after an END directive will trigger an error.

The program's start label should be specified as an argument to one of these directives to prevent an assembler warning.

 ...
  return
  END  startMain ;the end of the program, folks