Fix half speed bug

This commit is contained in:
meepingsnesroms
2018-10-18 16:46:12 -07:00
parent ac74668562
commit 8de8a3ecdd
2 changed files with 4 additions and 3 deletions

View File

@@ -8,6 +8,7 @@ app install hack needs to be removed when SD card works
double pressing power button issue
Fixed:
device runs at around half speed for some reason(the SYSCLK divider was not scaled properly)
Sound(those cute little PWM beeps)
Mac Qt build has no icons
QSettings is broken on Windows(this prevents loading the ROM)

View File

@@ -162,10 +162,10 @@ static double dmaclksPerClk32(){
}
static double sysclksPerClk32(){
uint8_t sysclkSelect = registerArrayRead16(PLLCR) >> 8 & 0x0003;
uint8_t sysclkSelect = registerArrayRead16(PLLCR) >> 8 & 0x0007;
//> 4 means run at full speed, no divider
if(sysclkSelect > 4)
//>= 4 means run at full speed, no divider
if(sysclkSelect >= 4)
return dmaclksPerClk32();
//divide DMACLK by 2 to the power of PLLCR SYSCLKSEL