56
|
1 |
; Copyright (c) 2010 Nokia Corporation and/or its subsidiary(-ies).
|
|
2 |
; All rights reserved.
|
|
3 |
; This component and the accompanying materials are made available
|
|
4 |
; under the terms of "Eclipse Public License v1.0"
|
|
5 |
; which accompanies this distribution, and is available
|
|
6 |
; at the URL "http://www.eclipse.org/legal/epl-v10.html".
|
|
7 |
;
|
|
8 |
; Initial Contributors:
|
|
9 |
; Nokia Corporation - initial contribution.
|
|
10 |
;
|
|
11 |
; Contributors:
|
|
12 |
;
|
|
13 |
; Description:
|
|
14 |
;
|
|
15 |
|
|
16 |
AREA |d-rmdebug-bkpt$$Code|, CODE, READONLY, ALIGN=6
|
|
17 |
|
|
18 |
CODE32
|
|
19 |
|
|
20 |
;
|
|
21 |
; Breakpoints in loop test
|
|
22 |
;
|
|
23 |
; This function initialises some variables and then performs some basic operations
|
|
24 |
; within the for loop. This allows us to set multiple breakpoints within the loop
|
|
25 |
; to test and see whether they are being hit.
|
|
26 |
;
|
|
27 |
|
|
28 |
EXPORT RMDebug_Bkpt_Test_Entry
|
|
29 |
EXPORT RMDebug_Bkpt_Test_Loop_Break_1
|
|
30 |
EXPORT RMDebug_Bkpt_Test_Loop_Break_2
|
|
31 |
|
|
32 |
RMDebug_Bkpt_Test_Entry
|
|
33 |
mov r2,#10
|
|
34 |
mov r0,#20
|
|
35 |
mov r3,#0
|
|
36 |
mov r1,#1
|
|
37 |
b COMPARE
|
|
38 |
LOOP
|
|
39 |
add r3,r2,r0
|
|
40 |
RMDebug_Bkpt_Test_Loop_Break_1
|
|
41 |
mov r2,r0
|
|
42 |
RMDebug_Bkpt_Test_Loop_Break_2
|
|
43 |
mov r0,r3
|
|
44 |
add r1,r1,#1
|
|
45 |
COMPARE
|
|
46 |
cmp r1,#30
|
|
47 |
ble LOOP
|
|
48 |
bx lr
|
|
49 |
|
|
50 |
END
|
|
51 |
|
|
52 |
; End of file - d_rmdebug_bkpt_test.s
|