removed redundant code; memset == FillRam, bzero == ClearRam with proper return values

git-svn-id: svn://svn.cc65.org/cc65/trunk@2376 b7a2c559-68d2-44c3-8de9-860c34a00d81
This commit is contained in:
izydorst
2003-08-19 22:56:55 +00:00
parent 0ce4187e0e
commit 78908d8421
5 changed files with 34 additions and 50 deletions

View File

@@ -1116,17 +1116,17 @@ compatible with standard CRC routines.
<sect2>FillRam and ClearRam
<p>
<tt/void FillRam (char *dest, char value, unsigned length)/
<tt/void *FillRam (char *dest, char value, unsigned length)/
<p>
<tt/void ClearRam (char *dest, unsigned length)/
<tt/void *ClearRam (char *dest, unsigned length)/
<p>
Both functions are filling given memory range. <tt/ClearRam/ fills with <tt/NULLs/, while
Both functions are filling given memory range. <tt/ClearRam/ fills with <tt/0s/, while
<tt/FillRam/ uses given <tt/value/. Be warned that these functions destroy <tt/r0, r1 and
r2L/ registers. <tt/FillRam/ is an alias for <tt/memset/.
r2L/ registers. These are aliases for <tt/memset/ and <tt/bzero/, respectively.
<sect2>MoveData
<p>
<tt/void MoveData (char *dest, char *src, unsigned length)/
<tt/void *MoveData (char *dest, char *src, unsigned length)/
<p>
This functions copies one memory region to another. There are checks for overlap and the
non-destructive method is chosen. Be warned that this function destroys contents of