if (i&GPC_VK_SELECT)
{
redrawopt=1;
switch (gp32_clockfreq)
{
case 133:
gp32_clockfreq=140;
break;
case 140:
gp32_clockfreq=150;
break;
case 150:
gp32_clockfreq=156;
break;
case 156:
gp32_clockfreq=160;
break;
case 160:
gp32_clockfreq=166;
break;
case 166:
gp32_clockfreq=133;
break;
}
}
if (i&(GPC_VK_START|GPC_VK_FA))
{
break;
}
while (GpKeyGet());
}
switch (gp32_clockfreq)
{
case 133:
GpClockSpeedChange(132000000, 0x3a011, 3);
gp32_timermul=(67800*256/132000)*(1+_EMULATEUR_);
break;
case 140:
GpClockSpeedChange(140000000, 0x3e011, 3);
gp32_timermul=(67800*256/140000)*(1+_EMULATEUR_);
break;
case 150:
GpClockSpeedChange(150000000, 0x43011, 3);
gp32_timermul=(67800*256/150000);
break;
case 156:
GpClockSpeedChange(156000000, 0x46011, 3);
gp32_timermul=(67800*256/156000);
break;
case 160:
GpClockSpeedChange(160000000, 0x48011, 3);
gp32_timermul=(67800*256/160000);
break;
case 166:
GpClockSpeedChange (166000000, 0x4b011, 3);
gp32_timermul=(67800*256/166000);
break;
}