#34834 - kareemjg - Wed Jan 26, 2005 11:23 pm
Okay.. I'm a little new to GBADEV so bare with me. Basiclly what I am doing is buidling my own engine for learning puroses by studying the sources and incorprating what I learn into the code.
My question is pertaining to putting text to the screen. I can do it but I'm trying to get a better understand what I am emulating. Studying one of the source programs I see the following functions:
Is this stating that the device has allocated four differnt memory slots to hold indivdual font types? Or is my line of reasoning off.
My question is pertaining to putting text to the screen. I can do it but I'm trying to get a better understand what I am emulating. Studying one of the source programs I see the following functions:
| Code: |
|
void DMACopyCH0(void* source, void* dest, u32 WordCount, u32 mode) { REG_DM0SAD = (u32)source; //Tell the gba our source address REG_DM0DAD = (u32)dest; //Tell the gba where the data should get copied to REG_DM0CNT = WordCount | mode; //Set the mode } void DMACopyCH1(void* source, void* dest, u32 WordCount, u32 mode) { REG_DM1SAD = (u32)source; REG_DM1DAD = (u32)dest; REG_DM1CNT = WordCount | mode; } void DMACopyCH2(void* source, void* dest, u32 WordCount, u32 mode) { REG_DM2SAD = (u32)source; REG_DM2DAD = (u32)dest; REG_DM2CNT = WordCount | mode; } void DMACopyCH3(void* source, void* dest, u32 WordCount, u32 mode) { REG_DM3SAD = (u32)source; REG_DM3DAD = (u32)dest; REG_DM3CNT = WordCount | mode; } |
Is this stating that the device has allocated four differnt memory slots to hold indivdual font types? Or is my line of reasoning off.