VR DMA timing hack added. Probably wrong.

git-svn-id: file:///home/notaz/opt/svn/PicoDrive@367 be3aeb3a-fb24-0410-a615-afba39da0efa
This commit is contained in:
notaz 2008-03-01 17:48:56 +00:00
parent e477f8f74f
commit 48df6e9e54

View file

@ -162,15 +162,16 @@ int PicoReset(int hard)
// dma2vram settings are just hacks to unglitch Legend of Galahad (needs <= 104 to work) // 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) // same for Outrunners (92-121, when active is set to 24)
// 96 is VR hack
static const int dma_timings[] = { 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: 102, 205, 204, 102, // vblank: 40cell:
16, 16, 15, 8, // active: 32cell: 16, 16, 15, 8, // active: 32cell:
24, 18, 17, 9 // ... 24, 18, 17, 9 // ...
}; };
static const int dma_bsycles[] = { 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)/102, (488<<8)/205, (488<<8)/204, (488<<8)/102,
(488<<8)/16, (488<<8)/16, (488<<8)/15, (488<<8)/8, (488<<8)/16, (488<<8)/16, (488<<8)/15, (488<<8)/8,
(488<<8)/24, (488<<8)/18, (488<<8)/17, (488<<8)/9 (488<<8)/24, (488<<8)/18, (488<<8)/17, (488<<8)/9