summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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 */