diff --git a/src/hardwareRegistersTiming.c.h b/src/hardwareRegistersTiming.c.h index 7ba5ba5..1f95b2f 100644 --- a/src/hardwareRegistersTiming.c.h +++ b/src/hardwareRegistersTiming.c.h @@ -2,10 +2,13 @@ static inline double dmaclksPerClk32(){ uint16_t pllcr = registerArrayRead16(PLLCR); double dmaclks = palmCrystalCycles; + //prescaler 1 divide is implemented when the PLL clock is set + /* if(pllcr & 0x0080){ //prescaler 1 enabled, divide by 2 dmaclks /= 2.0; } + */ if(pllcr & 0x0020){ //prescaler 2 enabled, divides value from prescaler 1 by 2 diff --git a/tests/HwRegTest20.txt b/tests/oldRegisterTests/HwRegTest20.txt similarity index 100% rename from tests/HwRegTest20.txt rename to tests/oldRegisterTests/HwRegTest20.txt diff --git a/tests/HwRegTest21.txt b/tests/oldRegisterTests/HwRegTest21.txt similarity index 100% rename from tests/HwRegTest21.txt rename to tests/oldRegisterTests/HwRegTest21.txt diff --git a/tests/screenMem.bin b/tests/oldRegisterTests/screenMem.bin similarity index 100% rename from tests/screenMem.bin rename to tests/oldRegisterTests/screenMem.bin diff --git a/tests/screenMem2.bin b/tests/oldRegisterTests/screenMem2.bin similarity index 100% rename from tests/screenMem2.bin rename to tests/oldRegisterTests/screenMem2.bin diff --git a/tests/sedFbDump.bin b/tests/oldRegisterTests/sedFbDump.bin similarity index 100% rename from tests/sedFbDump.bin rename to tests/oldRegisterTests/sedFbDump.bin diff --git a/tests/sedRegDump.bin b/tests/oldRegisterTests/sedRegDump.bin similarity index 100% rename from tests/sedRegDump.bin rename to tests/oldRegisterTests/sedRegDump.bin diff --git a/tests/touchscreenAccessDump.txt b/tests/touchscreenAccessDump.txt new file mode 100644 index 0000000..ce4679e Binary files /dev/null and b/tests/touchscreenAccessDump.txt differ diff --git a/unimplementedFeatures.txt b/unimplementedFeatures.txt index f123cd5..98f3966 100644 --- a/unimplementedFeatures.txt +++ b/unimplementedFeatures.txt @@ -24,6 +24,7 @@ some undocumented I/O might be on port e and port j if a timer triggers more than once per CLK32 it will lose any triggers after the first and get out of sync SPI1, probably the sdcard since sdcards use SPI for data transfer SPITEST SSTATUS is undocumented and therefore unemulated +PCTLR should not divide palmCrystalCycles or dmaclksPerClk32 can't use it Debug tools: missing icons @@ -43,6 +44,7 @@ Had to modify musashi because the damn NDK isn't C compatible, m68kcpu.h, line 5 Fixed: +if PCTLR divides the PLL it may also affect DMACLK, SYSCLK and the timers(it doesnt) timers shouldn't allow comp bits to be cleared until read with a 1 in them and should remain in interrupt state until they are cleared(the interrupt state part is unverified) SED1376 byte and word swap bits qt play pause icon not working for emu control button