#12143 - yaustar - Fri Oct 31, 2003 8:38 pm
at the moment I have this for loop going on in the main game loop but it slows the game to heck
so I though of using DMA transfer but not sure how to have that I start transfering from OAMData[var_loop]
At the moment I have this
which I know is wrong.
Help
_________________
[Blog] [Portfolio]
Code: |
for(var_loop = 1536; var_loop < 3584; var_loop++) //96 = radar {OAMData[var_loop] = radar[var_loop-1536];} |
so I though of using DMA transfer but not sure how to have that I start transfering from OAMData[var_loop]
At the moment I have this
Code: |
REG_DM3SAD = (u32)radar;//source of data REG_DM3DAD = (u32)OAMData[1536];//target for data REG_DM3CNT = (2048 | DMA_16NOW);//start copying NOW, in 16bit values |
which I know is wrong.
Help
_________________
[Blog] [Portfolio]