Bring this over from AdvanceMAME...

This commit is contained in:
Ryan McGrath 2011-02-24 01:46:16 -08:00
parent cfe981f7ff
commit 7028e9aa3b

View file

@ -878,7 +878,7 @@ static int CalcVClock
for (P = 0; P <= P_MAX; P ++)
{
Freq = VClk << P;
if ((Freq >= 128000) && (Freq <= MAXVCLOCK))
if ((Freq >= 128000 || P == P_MAX) && (Freq <= MAXVCLOCK))
{
for (M = M_MIN; M <= M_MAX; M++)
{