SPNU118Z September 1995 – March 2023 66AK2E05 , 66AK2H06 , 66AK2H12 , 66AK2H14 , AM1705 , AM1707 , AM1802 , AM1806 , AM1808 , AM1810 , AM5K2E04 , OMAP-L132 , OMAP-L137 , OMAP-L138 , SM470R1B1M-HT , TMS470R1A288 , TMS470R1A384 , TMS470R1A64 , TMS470R1B1M , TMS470R1B512 , TMS470R1B768
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
.bss LOC1, 48h
LOCL_n .word LOC1
MVN R0, R0
ADD R0, R0, #TEMP
LDR R4, LOCL_n
STR R0, [R4]
.end
.byte 4
.word CCCh
Listing file:
1 00000000 START: .space 300
2 0000000F TEMP .set 15
3 00000000 .bss LOC1, 48h
4 0000012c 00000000- LOCL_n .word LOC1
5 00000130 E1E00000 MVN R0, R0
6 00000134 E280000F ADD R0, R0, #TEMP
7 00000138 E51F4014 LDR R4, LOCL_n
8 0000013c E5840000 STR R0, [R4]
9 .end