From 5d29955c46dc49272d7963d978b46b24c89a33de Mon Sep 17 00:00:00 2001 From: Tat-Chee Wan (USM) Date: Wed, 12 Jan 2011 15:11:40 +0800 Subject: updated comments for macros --- Debugger/debug_macros.h | 18 ++++++++++-------- 1 file 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 -- cgit v1.2.3