Hi,
Back again with hopefully one of tha last "simple" questions I have.
I'm currently trying to copy some memory (500kb) from one place to another, doing this immediately freezes my program.
How (without Kos, newlib) can I copy this data? Is it because I'm naively doing? Should I try to keep things memory aligned (32 bit aligned?)?
Thanks for the help to what I assume will be an easy question.
Btw im moving from 0xACC00000 to 0xAC010000, which should just be the uncached version of 0x8C010000 (EIP of 1st_read.bin)
For the people pointing out that I'm overwriting my current program, I'm not running from 0x8C01000, it's from a completely different place in memory.
Back again with hopefully one of tha last "simple" questions I have.
I'm currently trying to copy some memory (500kb) from one place to another, doing this immediately freezes my program.
How (without Kos, newlib) can I copy this data? Is it because I'm naively doing? Should I try to keep things memory aligned (32 bit aligned?)?
Thanks for the help to what I assume will be an easy question.
Btw im moving from 0xACC00000 to 0xAC010000, which should just be the uncached version of 0x8C010000 (EIP of 1st_read.bin)
For the people pointing out that I'm overwriting my current program, I'm not running from 0x8C01000, it's from a completely different place in memory.
Code:
Void memmove(void *dest, void *src, int Len)
{
Char *_dest=(char*)dest;
Char *_src=(char*)src;
Int I;
For(I=0;I<Len;I++)
*(_dest+I) = _src[I];
}