1;-------------------------------------------------------------------------------
2; Comments here
3
4    .text
5    .arm
6
7;-------------------------------------------------------------------------------
8
9    .ref	ext_sym
10    .def	_test_func
11    .asmfunc
12
13_test_func
14		stmfd	r13!, {r0 - r12, lr}; push registers and link register on to stack
15
16        ldr		r12, sym1			; another comment
17        ldr		r0,  [r12]
18        tst		r0,  #0x8
19        bne		aLabel
20        ldr		r0,  [r12]
21
22aLabel
23		bl		ext_sym		; custom data abort handler required
24
25		ldmfd	r13!, {r0 - r12, lr}; pop registers and link register from stack
26		subs	pc, lr, #8
27
28sym1		.word	0xFFFFF520
29
30
31    .endasmfunc
32
33
34