X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=Pico%2FVideoPort.c;h=10656184aca771d28ee900abc3e6fd5cd223f317;hb=f8ef8ff7100baa0ac0ecfcacb47aea3a9e24bc38;hp=5840bc713d6e54f5bc100e51fa58ac11816e2e13;hpb=f53f286a8b48d19c65e83f90d00aa47e8e87c889;p=picodrive.git diff --git a/Pico/VideoPort.c b/Pico/VideoPort.c index 5840bc7..1065618 100644 --- a/Pico/VideoPort.c +++ b/Pico/VideoPort.c @@ -22,6 +22,7 @@ typedef unsigned int u32; #define UTYPES_DEFINED #endif +int (*PicoDmaHook)(unsigned int source, unsigned short **srcp, unsigned short **limitp) = NULL; static __inline void AutoIncrement(void) { @@ -104,7 +105,7 @@ static void DmaSlow(int len) if ((source&0xe00000)==0xe00000) { // Ram pd=(u16 *)(Pico.ram+(source&0xfffe)); pdend=(u16 *)(Pico.ram+0x10000); - } else if(PicoMCD & 1) { + } else if (PicoMCD & 1) { elprintf(EL_VDPDMA, "DmaSlow CD, r3=%02x", Pico_mcd->s68k_regs[3]); if(source<0x20000) { // Bios area pd=(u16 *)(Pico_mcd->bios+(source&~1)); @@ -133,10 +134,12 @@ static void DmaSlow(int len) return; } } else { - if(source%04x: invalid src", Pico.video.type, source, a); return; }