Japanese
PROGRAMMER'S GUIDEDMA library
■ | Go forward
DMA library

1. guide


1.1 Purpose

DMA performs data transfer processing on behalf of the CPU to reduce the burden on the CPU. This library provides basic functionality for DMA.

1.2 Overview

DMA is provided in two devices: CPU and SCU. The library supports both.
We have prepared high-level and low-level function libraries for CPU and SCU, respectively.

The contents of the high-level and low-level functions are explained below.

The main differences between CPU and SCU applications are explained below (please see the hardware manual for details).

1.3 Precautions for use

1.4 Calling Sequence

The calling sequence for DMA transfer is shown below.

#define SCLA_CFRAME ((void *)0x5e60000) /* VDP2 VRAM scroll factor 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);
/*Transfer data from work RAM to VDP2 VRAM */
     ...
     if(DMA_ScuResult() == DMA_SCU_BUSY){ /* Check completion of DMA_ScuCopyMem() */
     ...
     }
}


■ | Go forward
PROGRAMMER'S GUIDEDMA library
Copyright SEGA ENTERPRISES, LTD., 1997