SPRUI03E June 2015 – January 2023
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: .text
ZERO A0
ZERO A1
ZERO A3
.end
ZERO A4
Listing file:
1 00000000 start: .text
2 00000000 000005E0 ZERO A0
3 00000004 008425E0 ZERO A1
4 00000008 018C65E0 ZERO A3
5 .end