#99216 - psycorpse - Sun Aug 20, 2006 3:12 am
How do you clear a bank of ram? I need to clear BG_BMP_RAM(0).
You don't even have to answer it if you can point me to a place that I can read up on it.
Thanks,
Mike
#99230 - tepples - Sun Aug 20, 2006 5:16 am
memset() works a byte at a time, which is 1. slow and 2. not compatible with DS VRAM.
_________________
-- Where is he?
-- Who?
-- You know, the human.
-- I think he moved to Tilwick.
#99262 - LiraNuna - Sun Aug 20, 2006 10:40 am
That's wrong. It has been proven that memset aligns itself to the size of the memory and it's the second fastest method after stmia clear. (dsboi's testings )
Edit: Oh and, you can use memset() to clear a 16bit rotoscale BG, it does 4byte writes.
_________________
Private property.
Violators will be shot, survivors will be shot again.