gbadev.org forum archive

This is a read-only mirror of the content originally found on forum.gbadev.org (now offline), salvaged from Wayback machine copies. A new forum can be found here.

Audio > quick help with aas 1.11

#35758 - TheMikaus - Thu Feb 10, 2005 4:47 pm

I think my code for my splash screen is executing, but I don't think the DMA copy is working. What register values(the actual address) should I be using for the dma copy while using AAS?

#35764 - Mucca - Thu Feb 10, 2005 5:14 pm

Use AAS_DoDMA3(...)

whatever it is. Its in the doc for AAS on the general page. You could also define your own macro that calls the AAS function if linking AAS with your project, but implements it in another way if AAS is not linked. (#ifdef __AAS__ #define DMACOPY3(params) AAS_DoDMA3(params) #else #define DMACOPY3(params) {however you normally do it} #endif, obviously replace 'params' with correct stuff ). Sorry Im too lazy to use code tags.

#35765 - TheMikaus - Thu Feb 10, 2005 5:27 pm

Doesn't seem to work :( I went through all my code and replaced every instance of DMACopy with AAS_DoDMA3. Am I doing the call wrong?

AAS_DoDMA3( (void *)font8Palette,(void *)Memory::BackgroundPal ,256 | DMA::DMA_16NOW);

unsigned int DMA::DMA_16 = 0x00000000;

Also the specs say that it uses 1 and 2 and 3 not 0. I have the same problem when I switched my registers to do a dma copy from 0.

It runs the code behind my function it just doesn't copy squat.
Also note that if I don't use AAS, meaning I just compile it without the special crt0.o and the AAS header/lib then it works fine, copies and runs like a charm.