mirror of
https://github.com/RaySollium99/picodrive.git
synced 2025-09-05 07:17:45 -04:00
SVP Tasco's PMC fix
git-svn-id: file:///home/notaz/opt/svn/PicoDrive@351 be3aeb3a-fb24-0410-a615-afba39da0efa
This commit is contained in:
parent
16ebbe9eaa
commit
94fc546caa
3 changed files with 5 additions and 4 deletions
|
@ -653,10 +653,11 @@ static u32 read_PMC(void)
|
|||
// elprintf(EL_ANOMALY|EL_SVP, "prev PMC not used @ %04x", GET_PPC_OFFS());
|
||||
ssp->emu_status |= SSP_PMC_SET;
|
||||
ssp->emu_status &= ~SSP_PMC_HAVE_ADDR;
|
||||
return ((rPMC.h << 4) & 0xfff0) | ((rPMC.h >> 4) & 0xf);
|
||||
} else {
|
||||
ssp->emu_status |= SSP_PMC_HAVE_ADDR;
|
||||
return rPMC.h;
|
||||
}
|
||||
return rPMC.h;
|
||||
}
|
||||
|
||||
static void write_PMC(u32 d)
|
||||
|
|
|
@ -110,14 +110,14 @@ static int DSoundFake()
|
|||
int diff;
|
||||
|
||||
diff = ticks - ticks_old;
|
||||
if (diff >= 0 && diff < 1000000/60)
|
||||
if (diff >= 0 && diff < 1000000/60*4)
|
||||
{
|
||||
while (diff >= 0 && diff < 1000000/60)
|
||||
{
|
||||
Sleep(1);
|
||||
diff = GetTickCount()*1000 - ticks_old;
|
||||
}
|
||||
ticks_old = ticks + 1000000/60;
|
||||
ticks_old += 1000000/60;
|
||||
}
|
||||
else
|
||||
ticks_old = ticks;
|
||||
|
|
|
@ -1,2 +1,2 @@
|
|||
#define VERSION "1.40"
|
||||
#define VERSION "1.40a"
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue