You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
#include "mem.h"
|
|
|
|
void memory_copy(u8 *source, u8 *dest, int nbytes) {
|
|
int i;
|
|
for (i = 0; i < nbytes; i++) {
|
|
*(dest + i) = *(source + i);
|
|
}
|
|
}
|
|
|
|
void memory_set(u8 *dest, u8 val, u32 len) {
|
|
u8 *temp = (u8 *)dest;
|
|
for ( ; len != 0; len--) *temp++ = val;
|
|
}
|