Are there any particularly interesting benefits springing from reserving it from ARM7? Isn't the ARM7 core normally responsible for sound, WiFi and other peripheral thigamajigs?
thanks to ichichfly:
Size = 0x02400000 - ((u32)sbrk(0) + 0x5000 + 0x2000);
buffer = (u8 *)(sbrk(0) + 0x2000/*8K for future alloc*/);
Where size gets the (max GBA ROM address - (dinamic block collector + arm stub + 8k (for user) ). sbrk is a handy way of reusing allocated memory by OS so it points to even newer heap pointers as the program flows.
This will be very useful for allocating audio frames on the ARM7 , so timers can interrupt:
65536(timer top) -(ndsclock/wavfrequency or sample rate) per sample. this generates the sample frequency . Given audiowaves use the sine : n samples are known to interrupt at certain speed: (n/speed)*t (digital audio waves require at least amplitude(raw noise), frequency, wave length and speed)