SPRU513Z August 2001 – October 2023 SM320F28335-EP
End Assembly
.end
The .end directive is optional and terminates assembly. The assembler ignores any source statements that follow a .end directive. If you use the .end directive, it must be the last source statement of a program.
This directive has the same effect as an end-of-file character. You can use .end when you are debugging and you want to stop assembling at a specific point in your code.
Do not use the .end directive to terminate a macro; use the .endm macro directive instead.
This example shows how the .end directive terminates assembly. Any source statements that follow the .end directive are ignored by the assembler.
Source file:
START: .space 300
TEMP .set 15
LOC1 .usect ".ebss", 48h
ABS ACC
ADD ACC, #TEMP
MOV @LOC1, ACC
.end
.byte 4
.word CCCh
Listing file:
1 000000 START: .space 300
2 000F TEMP .set 15
3 000000 LOC1 .usect ".ebss", 48h
4 000013 FF56 ABS ACC
5 000014 090F ADD ACC, #TEMP
6 000015 9600- MOV @LOC1, ACC
7 .end