mirror of
https://github.com/zeldaret/oot.git
synced 2025-04-13 02:06:37 +00:00
* Restructure files, begin header restructure * Format * us2dex * Fix parallel spelling Co-authored-by: JoshDuMan <40190173+JoshDuMan@users.noreply.github.com> * Use OS_K0_TO_PHYSICAL in place of VIRTUAL_TO_PHYSICAL in osAiSetNextBuffer * Uppercase hex, exception vector address defines * Interrupt flags 1 Co-authored-by: Dragorn421 <Dragorn421@users.noreply.github.com> * Interrupt flags 2 Co-authored-by: Dragorn421 <Dragorn421@users.noreply.github.com> Co-authored-by: JoshDuMan <40190173+JoshDuMan@users.noreply.github.com> Co-authored-by: Dragorn421 <Dragorn421@users.noreply.github.com>
24 lines
504 B
C
24 lines
504 B
C
#include "global.h"
|
|
|
|
// memmove used in __osMalloc.c
|
|
void* func_801068B0(void* dst, void* src, size_t size) {
|
|
u8* spC = dst;
|
|
u8* sp8 = src;
|
|
register s32 a3;
|
|
|
|
if (spC == sp8) {
|
|
return dst;
|
|
}
|
|
if (spC < sp8) {
|
|
for (a3 = size--; a3 != 0; a3 = size--) {
|
|
*spC++ = *sp8++;
|
|
}
|
|
} else {
|
|
spC += size - 1;
|
|
sp8 += size - 1;
|
|
for (a3 = size--; a3 != 0; a3 = size--) {
|
|
*spC-- = *sp8--;
|
|
}
|
|
}
|
|
return dst;
|
|
}
|