From c7d4fd94a369b757bebe3ee57512bd535dba3a36 Mon Sep 17 00:00:00 2001 From: Tat-Chee Wan (USM) Date: Tue, 12 Jul 2011 07:20:14 +0800 Subject: modified debug test case for shorter loops to enable single stepping --- Debugger/debug_test.S | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) (limited to 'Debugger/debug_test.S') diff --git a/Debugger/debug_test.S b/Debugger/debug_test.S index e0f3cf0..104e327 100644 --- a/Debugger/debug_test.S +++ b/Debugger/debug_test.S @@ -54,17 +54,16 @@ test_arm_1: test_arm_2: sub r0, r0, #1 - cmp r0, #8 - ldrle pc, =test_arm_1 - bgt test_arm_3 - beq test_arm_2 + cmp r0, #5 + bgt test_arm_1 + ldrle pc, =test_arm_2 ldr pc, =test_arm_1 test_arm_3: /* case for r0 == 9 */ sub r0, r0, #1 - teq r0, #5 - ldreq r2, =test_arm_1 + teq r0, #8 + beq test_arm_1 ldrne r2, =test_arm_3 bx r2 @@ -154,7 +153,7 @@ dbg__test_thumb_instr_sub1: .thumb_func dbg__test_thumb_instr_sub2: push {lr} - mov r0, #FALSE + mov r1, #FALSE pop {pc} -- cgit v1.2.3