summaryrefslogtreecommitdiff
path: root/AT91SAM7S256/armdebug
diff options
context:
space:
mode:
authorTC Wan2011-03-23 16:34:32 +0800
committerTC Wan2011-03-23 16:34:32 +0800
commitf549735edff93df94490567f2aacfc225bafc784 (patch)
treebf1567185fbd7bf3ec2bad01bd0145f94d1cc499 /AT91SAM7S256/armdebug
parent2f91494901e933524a0c6c117c0fa4c984835589 (diff)
parenteb66891b6efa0698faf6b319bd9455569aa3e701 (diff)
Merge branch 'master' of ssh://svc.cs.usm.my/~/gitrepo-bare/armdebug
Diffstat (limited to 'AT91SAM7S256/armdebug')
-rw-r--r--AT91SAM7S256/armdebug/Debugger/debug_comm.S2
1 files changed, 1 insertions, 1 deletions
diff --git a/AT91SAM7S256/armdebug/Debugger/debug_comm.S b/AT91SAM7S256/armdebug/Debugger/debug_comm.S
index b6f9cf5..db9ac16 100644
--- a/AT91SAM7S256/armdebug/Debugger/debug_comm.S
+++ b/AT91SAM7S256/armdebug/Debugger/debug_comm.S
@@ -328,7 +328,7 @@ ascii2hex_varlen_be:
mov r2, #0 /* Initialize Cummulative Results */
2: ldrb r0, [r1], #1 /* Load ASCII char for Hex Value */
bl char2hex /* on return, hex value in R0, -1 for error */
- teq r0, #-1
+ cmp r0, #-1
beq _exit_ascii2hex_varlen
orr r2, r0, r2, lsl #4 /* combined byte value */
subs r3, r3, #1 /* Decrement Counter */