Return to previous page Return to menu Go to next page

1.4 Calling sequence

Below is the DMA transfer calling sequence.

#define SCLA_CFRAME ((void *) 0x5e60000) / * VDP2 VRAM scroll coefficient address * /
#define K_NUM (424) / * Scroll coefficient data size * /
Uint32 scl_k_data [512]; / * Scroll coefficient data area of ​​work RAM * /
...
void copyToData()
{
     DMA_ScuCopyMem(SCLA_CFRAME, scl_k_data, K_NUM);
/ * Data transfer from work RAM to VDP2 VRAM * /
     ...
     if (DMA_ScuResult () == DMA_SCU_BUSY) {/ * Completion check of DMA_ScuCopyMem () * /
     ...
     }
}


Return to previous page Return to menu Go to next page