5 * This work is licensed under the terms of MAME license.
6 * See COPYING file in the top-level directory.
9 #include "../pico_int.h"
13 // check: Heart of the alien, jaguar xj 220
14 PICO_INTERNAL void DmaSlowCell(u32 source, u32 a, int len, unsigned char inc)
20 base = Pico_mcd->word_ram1M[Pico_mcd->s68k_regs[3]&1];
22 switch (Pico.video.type)
28 asrc = cell_map(source >> 2) << 2;
30 // if(a&1) d=(d<<8)|(d>>8); // ??
31 VideoWriteVRAM(a, *(u16 *)(base + asrc));
41 for(a2=a&0x7f; len; len--)
43 asrc = cell_map(source >> 2) << 2;
45 r[a2>>1] = *(u16 *)(base + asrc);
55 case 5: // vsram[a&0x003f]=d;
57 for(a2=a&0x7f; len; len--)
59 asrc = cell_map(source >> 2) << 2;
61 r[a2>>1] = *(u16 *)(base + asrc);
72 Pico.video.addr=(u16)a;