static int EmulateScanBG3(unsigned int scan,unsigned short *sdata) { // BG_GFX is in the form: // ABBBBBGGGGGRRRRR // Works (sort of): for(int i = 0; i < 320; i++) { BG_GFX[(512*scan)+i]=sdata[i]; } // Doesn't: dmaCopy(sdata,(void*)(BG_GFX[512*scan]),320); return 0; }