aboutsummaryrefslogtreecommitdiff
path: root/AT91SAM7S256/armdebug/Debugger/debug_macros.h
diff options
context:
space:
mode:
authorTat-Chee Wan (USM)2011-01-12 16:30:33 +0800
committerTat-Chee Wan (USM)2011-01-12 16:30:33 +0800
commitcc6dfb5609d3b6b5fef576146b334c925c0b80d3 (patch)
tree0cfd61459709b69f7b453656829e6ccc3ce948a6 /AT91SAM7S256/armdebug/Debugger/debug_macros.h
parent067403060e4310a730b4ca19cf06aeb101d17af2 (diff)
parenteec175220428b9d63534086fbc05c72b01378acd (diff)
Merge branch 'master' of ssh://svc.cs.usm.my/~/gitrepo-bare/armdebug
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