This directive signals the end of the current source file.
The source line containing the .EN directive will be the last line that is assembled of the current source file, regardless of what ever follows it.
The current source file is closed and in case it was an include file the SB-Assembler will continue to process it's parent file as if the include file ended in a natural way.
In version 2 this will always be the main source file because include files can't be nested there.
In version 3 include files can be nested.
With the SB-Assembler the use of the .EN directive is completely optional. Unlike some other assemblers the SB-Assembler is clever enough to detect the natural end of the source file.
In Version 3 of the SB-Assembler this directive will perform a boundary sync.
The .EN directive can be used to end a source file prematurely.
This could be useful for debugging purposes or if the rest of the source file contains only comments which don't have to be listed in the list file.
The source line containing the .EN directive is always the last line of the current source file that is parsed. The file is immediately closed and all text following the current source line will be ignored completely.
If the .EN directive is encountered in the main source file the current pass will end immediately.
If we were still in pass 1 the assembler will start pass 2 of the assembly process.
If the .EN directive is encountered in an include file then that file will be closed and the assembler continues with the parent source file, the file which has called the include file.