From 48df6e9e54f7c11263f5462f960b8cc2ecdc52e4 Mon Sep 17 00:00:00 2001 From: notaz Date: Sat, 1 Mar 2008 17:48:56 +0000 Subject: [PATCH] VR DMA timing hack added. Probably wrong. git-svn-id: file:///home/notaz/opt/svn/PicoDrive@367 be3aeb3a-fb24-0410-a615-afba39da0efa --- Pico/Pico.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Pico/Pico.c b/Pico/Pico.c index b07af08d..c47cf190 100644 --- a/Pico/Pico.c +++ b/Pico/Pico.c @@ -162,15 +162,16 @@ int PicoReset(int hard) // dma2vram settings are just hacks to unglitch Legend of Galahad (needs <= 104 to work) // same for Outrunners (92-121, when active is set to 24) +// 96 is VR hack static const int dma_timings[] = { -83, 167, 166, 83, // vblank: 32cell: dma2vram dma2[vs|c]ram vram_fill vram_copy +96, 167, 166, 83, // vblank: 32cell: dma2vram dma2[vs|c]ram vram_fill vram_copy 102, 205, 204, 102, // vblank: 40cell: 16, 16, 15, 8, // active: 32cell: 24, 18, 17, 9 // ... }; static const int dma_bsycles[] = { -(488<<8)/82, (488<<8)/167, (488<<8)/166, (488<<8)/83, +(488<<8)/96, (488<<8)/167, (488<<8)/166, (488<<8)/83, (488<<8)/102, (488<<8)/205, (488<<8)/204, (488<<8)/102, (488<<8)/16, (488<<8)/16, (488<<8)/15, (488<<8)/8, (488<<8)/24, (488<<8)/18, (488<<8)/17, (488<<8)/9 -- 2.39.5