mirror of
https://github.com/libretro/Mu.git
synced 2026-09-24 07:35:55 +00:00
Use new debug functions to take, full register dump
What ever is wrong with the touchscreen, its written here. Prescaler 1 fix.
This commit is contained in:
@@ -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
|
||||
|
||||
BIN
tests/touchscreenAccessDump.txt
Normal file
BIN
tests/touchscreenAccessDump.txt
Normal file
Binary file not shown.
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user