summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTat-Chee Wan (USM)2011-01-12 15:11:40 +0800
committerTat-Chee Wan (USM)2011-01-12 15:11:40 +0800
commit5d29955c46dc49272d7963d978b46b24c89a33de (patch)
treea13d22be878404ba7f2227aa4ee42234e0b17e49
parent130b4775f8ecc0db42a1877f8475c7b762e52563 (diff)
updated comments for macros
-rw-r--r--Debugger/debug_macros.h18
1 files changed, 10 insertions, 8 deletions
diff --git a/Debugger/debug_macros.h b/Debugger/debug_macros.h
index f66e42c..324bcbf 100644
--- a/Debugger/debug_macros.h
+++ b/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