7 static uint32_t coplist[32];
13 REG_INTENA = SETBITS(INTEN_VERTB | INTEN_MASTER);
14 REG_DMACON = CLRBITS(DMA_ALL);
26 uint32_t *copptr = coplist;
27 for(i=0; i<NBPL; i++) {
28 uint32_t addr = (intptr_t)bplptr[i];
29 int reg = REGN_BPL1PTH + i * 4;
30 *copptr++ = COPPER_MOVE(reg, addr >> 16);
31 *copptr++ = COPPER_MOVE(reg + 2, addr);
34 REG32_COP1LC = (uint32_t)coplist;
37 REG_DMACON = SETBITS(DMA_BPL | DMA_COPPER | DMA_BLITTER | DMA_MASTER);