Tells the assembler to generate debugging data for the specified subroutine.
.function "func", label, length
func
Subroutine name, in double quotes.
label
Starting label of the subroutine.
length
Number of bytes in the subroutine.
To ensure that the debugger can display your assembly source code while debugging, you must use the .function directive to identify the NitroMain function.
The following listing shows the identification of NitroMain using the .function directive.
.function "main", main,main_end-main main: and r1, r2, #1 orr r1, r2, #1 tst r1, r2 mov r0, r2 lp: b lp main_end: