debugsrv/runmodedebug/rmdebug_test/rm_debug/debug_targets/d_rmdebug_bkpt_test.s
changeset 56 aa2539c91954
parent 54 a151135b0cf9
child 60 e54443a6878c
child 62 1c2bb2fc7c87
equal deleted inserted replaced
54:a151135b0cf9 56:aa2539c91954
     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 the License "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