aboutsummaryrefslogtreecommitdiff
path: root/AT91SAM7S256/armdebug/Debugger/debug_macros.h
diff options
context:
space:
mode:
Diffstat (limited to 'AT91SAM7S256/armdebug/Debugger/debug_macros.h')
-rw-r--r--AT91SAM7S256/armdebug/Debugger/debug_macros.h18
1 files changed, 10 insertions, 8 deletions
diff --git a/AT91SAM7S256/armdebug/Debugger/debug_macros.h b/AT91SAM7S256/armdebug/Debugger/debug_macros.h
index f66e42c..324bcbf 100644
--- a/AT91SAM7S256/armdebug/Debugger/debug_macros.h
+++ b/AT91SAM7S256/armdebug/Debugger/debug_macros.h
@@ -75,13 +75,14 @@
/* _dbg_stpcpy
- * _dbg_stpcpy macro
- * On entry:
- * deststrptr: Destination string [Cannot be R0]
- * sourcestrptr: Source string [Cannot be R0]
- * On exit:
- * deststrptr: Pointer to NULL character in destination string
- * R0: destroyed
+ * _dbg_stpcpy macro
+ * On entry:
+ * deststrptr: Destination string [Cannot be R0]
+ * sourcestrptr: Source string [Cannot be R0]
+ * On exit:
+ * deststrptr: Pointer to NULL character in destination string
+ * sourcestrptr: Pointer to NULL character slot in source string
+ * R0: destroyed
*/
.macro _dbg_stpcpy deststrptr, sourcestrptr
1: ldrb r0, [\sourcestrptr], #1
@@ -98,7 +99,8 @@
* sourcestrptr: Source string [Cannot be R0]
* sizereg: Number of bytes to copy [Cannot be R0]
* On exit:
- * deststrptr: Pointer to NULL character in destination string
+ * deststrptr: Pointer to next character slot in destination string
+ * sourcestrptr: Pointer to next character slot in source string
* R0: destroyed
*/
.macro _dbg_memcpy deststrptr, sourcestrptr, sizereg