diff --git a/bugs/currentBug.txt b/bugs/currentBug.txt index 596c425..41ddd0f 100644 --- a/bugs/currentBug.txt +++ b/bugs/currentBug.txt @@ -1 +1,2 @@ -T3 locks up endlessly checking TSC2101 interrupts \ No newline at end of file +T3 locks up endlessly checking TSC2101 interrupts +Weird stuttering in RetroArch 1.8.1(possible audio desync, need to test other emus in RetroArch) \ No newline at end of file diff --git a/bugs/m500.txt b/bugs/m500.txt deleted file mode 100644 index 4fe5bd6..0000000 --- a/bugs/m500.txt +++ /dev/null @@ -1,148 +0,0 @@ -Cant draw screen, LCD on:false, PLL on:true, power save on:false, forced blank on:false(printed 18 times) -USB unknown command, value:0xF3(printed 1 times) -USB command 0xF3, write not handeled(printed 2 times) -USB unknown command, value:0xFB(printed 1 times) -USB command 0xFB, write not handeled(printed 1 times) -USB unknown command, value:0x00(printed 1 times) -USB command 0x00, read not handeled(printed 1 times) -USB unknown command, value:0xF2(printed 1 times) -USB unknown command, value:0x02(printed 1 times) -USB command 0x02, read not handeled(printed 1 times) -USB unknown command, value:0xF2(printed 1 times) -USB unknown command, value:0x04(printed 1 times) -USB command 0x04, read not handeled(printed 1 times) -USB unknown command, value:0xF2(printed 1 times) -USB unknown command, value:0xF3(printed 1 times) -USB command 0xF3, write not handeled(printed 2 times) -Cant draw screen, LCD on:false, PLL on:true, power save on:false, forced blank on:false(printed 1 times) -USB unknown command, value:0x40(printed 1 times) -USB command 0x40, write not handeled(printed 1 times) -USB unknown command, value:0x40(printed 1 times) -USB command 0x40, read not handeled(printed 1 times) -USB unknown command, value:0x41(printed 1 times) -USB command 0x41, write not handeled(printed 1 times) -USB unknown command, value:0x41(printed 1 times) -USB command 0x41, read not handeled(printed 1 times) -USB unknown command, value:0x42(printed 1 times) -USB command 0x42, write not handeled(printed 1 times) -USB unknown command, value:0x42(printed 1 times) -USB command 0x42, read not handeled(printed 1 times) -USB unknown command, value:0x43(printed 1 times) -USB command 0x43, write not handeled(printed 1 times) -USB unknown command, value:0x43(printed 1 times) -USB command 0x43, read not handeled(printed 1 times) -USB unknown command, value:0x44(printed 1 times) -USB command 0x44, write not handeled(printed 1 times) -USB unknown command, value:0x44(printed 1 times) -USB command 0x44, read not handeled(printed 1 times) -USB unknown command, value:0x45(printed 1 times) -USB command 0x45, write not handeled(printed 1 times) -USB unknown command, value:0x45(printed 1 times) -USB command 0x45, read not handeled(printed 1 times) -Cant draw screen, LCD on:false, PLL on:true, power save on:false, forced blank on:false(printed 1 times) -CPU wrote 16 bits of 0x00000180 to register 0xA36, PC:0x10002F54.(printed 1 times) -CPU wrote 8 bits of 0x0000000A to register 0xA05, PC:0x10002F96.(printed 1 times) -CPU wrote 16 bits of 0x000000A0 to register 0xA08, PC:0x10002FA0.(printed 1 times) -CPU wrote 16 bits of 0x0000009F to register 0xA0A, PC:0x10002FAE.(printed 1 times) -CPU wrote 8 bits of 0x00000000 to register 0xA25, PC:0x10002FB2.(printed 1 times) -CPU wrote 8 bits of 0x00000008 to register 0xA20, PC:0x10002FB8.(printed 1 times) -CPU wrote 8 bits of 0x000000AD to register 0xA23, PC:0x10002FE4.(printed 1 times) -CPU wrote 16 bits of 0x00000194 to register 0xA28, PC:0x10002FEA.(printed 1 times) -CPU wrote 8 bits of 0x00000000 to register 0xA2D, PC:0x10002FEE.(printed 1 times) -CPU wrote 8 bits of 0x00000000 to register 0xA21, PC:0x10002FF2.(printed 1 times) -CPU read 16 bits from register 0xA18, PC:0x100030E2.(printed 1 times) -CPU wrote 16 bits of 0x00000000 to register 0xA18, PC:0x100030EC.(printed 1 times) -CPU wrote 16 bits of 0x00000000 to register 0xA1A, PC:0x100030F8.(printed 1 times) -CPU wrote 16 bits of 0x00000404 to register 0xA1C, PC:0x10003112.(printed 1 times) -CPU wrote 8 bits of 0x000000BF to register 0xA1F, PC:0x1000312E.(printed 1 times) -CPU read 16 bits from register 0xA18, PC:0x1000316E.(printed 1 times) -CPU wrote 16 bits of 0x00000000 to register 0xA18, PC:0x10003176.(printed 1 times) -Cant draw screen, LCD on:false, PLL on:true, power save on:false, forced blank on:false(printed 3 times) -CPU read 16 bits from register 0xA36, PC:0x1000307A.(printed 1 times) -CPU wrote 16 bits of 0x00000100 to register 0xA36, PC:0x1000307A.(printed 1 times) -Cant draw screen, LCD on:false, PLL on:true, power save on:false, forced blank on:false(printed 19 times) -USB unknown command, value:0xF3(printed 1 times) -USB command 0xF3, write not handeled(printed 2 times) -USB unknown command, value:0xFB(printed 1 times) -USB command 0xFB, write not handeled(printed 1 times) -USB unknown command, value:0xF3(printed 1 times) -USB command 0xF3, write not handeled(printed 2 times) -USB unknown command, value:0x40(printed 1 times) -USB command 0x40, write not handeled(printed 1 times) -USB unknown command, value:0x40(printed 1 times) -USB command 0x40, read not handeled(printed 1 times) -USB unknown command, value:0x41(printed 1 times) -USB command 0x41, write not handeled(printed 1 times) -USB unknown command, value:0x41(printed 1 times) -USB command 0x41, read not handeled(printed 1 times) -USB unknown command, value:0x42(printed 1 times) -USB command 0x42, write not handeled(printed 1 times) -USB unknown command, value:0x42(printed 1 times) -USB command 0x42, read not handeled(printed 1 times) -USB unknown command, value:0x43(printed 1 times) -USB command 0x43, write not handeled(printed 1 times) -USB unknown command, value:0x43(printed 1 times) -USB command 0x43, read not handeled(printed 1 times) -USB unknown command, value:0x44(printed 1 times) -USB command 0x44, write not handeled(printed 1 times) -USB unknown command, value:0x44(printed 1 times) -USB command 0x44, read not handeled(printed 1 times) -USB unknown command, value:0x45(printed 1 times) -USB command 0x45, write not handeled(printed 1 times) -USB unknown command, value:0x45(printed 1 times) -USB command 0x45, read not handeled(printed 1 times) -Cant draw screen, LCD on:false, PLL on:true, power save on:false, forced blank on:false(printed 2 times) -CPU wrote 16 bits of 0x00000180 to register 0xA36, PC:0x10084C5A.(printed 1 times) -CPU read 16 bits from register 0xA08, PC:0x10084C6A.(printed 1 times) -CPU read 16 bits from register 0xA0A, PC:0x10084C72.(printed 1 times) -CPU wrote 8 bits of 0x00000000 to register 0xA05, PC:0x10084C9C.(printed 1 times) -CPU wrote 16 bits of 0x00000000 to register 0xA08, PC:0x10084CA6.(printed 1 times) -CPU wrote 16 bits of 0x00000000 to register 0xA0A, PC:0x10084CB4.(printed 1 times) -CPU wrote 8 bits of 0x00000000 to register 0xA25, PC:0x10084CB8.(printed 1 times) -CPU wrote 8 bits of 0x00000008 to register 0xA20, PC:0x10084CBE.(printed 1 times) -CPU wrote 8 bits of 0x000000AD to register 0xA23, PC:0x10084CEA.(printed 1 times) -CPU wrote 16 bits of 0x00000194 to register 0xA28, PC:0x10084CF0.(printed 1 times) -CPU wrote 8 bits of 0x00000000 to register 0xA2D, PC:0x10084CF4.(printed 1 times) -CPU wrote 8 bits of 0x00000000 to register 0xA21, PC:0x10084CF8.(printed 1 times) -CPU read 16 bits from register 0xA18, PC:0x10084DE8.(printed 1 times) -CPU wrote 16 bits of 0x00000000 to register 0xA18, PC:0x10084DF2.(printed 1 times) -CPU wrote 16 bits of 0x00000000 to register 0xA1A, PC:0x10084DFE.(printed 1 times) -CPU wrote 16 bits of 0x00000404 to register 0xA1C, PC:0x10084E18.(printed 1 times) -CPU wrote 8 bits of 0x000000BF to register 0xA1F, PC:0x10084E34.(printed 1 times) -CPU read 16 bits from register 0xA18, PC:0x10084E74.(printed 1 times) -CPU wrote 16 bits of 0x00000000 to register 0xA18, PC:0x10084E7C.(printed 1 times) -Cant draw screen, LCD on:false, PLL on:true, power save on:false, forced blank on:false(printed 2 times) -CPU read 16 bits from register 0xA36, PC:0x10084D80.(printed 1 times) -CPU wrote 16 bits of 0x00000100 to register 0xA36, PC:0x10084D80.(printed 1 times) -CPU wrote 16 bits of 0x00000180 to register 0xA36, PC:0x10084C5A.(printed 1 times) -CPU wrote 8 bits of 0x0000000A to register 0xA05, PC:0x10084C9C.(printed 1 times) -CPU wrote 16 bits of 0x000000A0 to register 0xA08, PC:0x10084CA6.(printed 1 times) -CPU wrote 16 bits of 0x0000009F to register 0xA0A, PC:0x10084CB4.(printed 1 times) -CPU wrote 8 bits of 0x00000000 to register 0xA25, PC:0x10084CB8.(printed 1 times) -CPU wrote 8 bits of 0x00000008 to register 0xA20, PC:0x10084CBE.(printed 1 times) -CPU wrote 8 bits of 0x000000AD to register 0xA23, PC:0x10084CEA.(printed 1 times) -CPU wrote 16 bits of 0x00000194 to register 0xA28, PC:0x10084CF0.(printed 1 times) -CPU wrote 8 bits of 0x00000000 to register 0xA2D, PC:0x10084CF4.(printed 1 times) -CPU wrote 8 bits of 0x00000000 to register 0xA21, PC:0x10084CF8.(printed 1 times) -CPU read 16 bits from register 0xA18, PC:0x10084DE8.(printed 1 times) -CPU wrote 16 bits of 0x00000000 to register 0xA18, PC:0x10084DF2.(printed 1 times) -CPU wrote 16 bits of 0x00000000 to register 0xA1A, PC:0x10084DFE.(printed 1 times) -CPU wrote 16 bits of 0x00000404 to register 0xA1C, PC:0x10084E18.(printed 1 times) -CPU wrote 8 bits of 0x000000BF to register 0xA1F, PC:0x10084E34.(printed 1 times) -CPU read 16 bits from register 0xA18, PC:0x10084E74.(printed 1 times) -CPU wrote 16 bits of 0x00000000 to register 0xA18, PC:0x10084E7C.(printed 1 times) -Cant draw screen, LCD on:false, PLL on:true, power save on:false, forced blank on:false(printed 3 times) -CPU read 16 bits from register 0xA36, PC:0x10084D80.(printed 1 times) -CPU wrote 16 bits of 0x00000100 to register 0xA36, PC:0x10084D80.(printed 1 times) -CPU read 8 bits from register 0xA20, PC:0x100852FC.(printed 1 times) -CPU read 8 bits from register 0xA20, PC:0x1008530A.(printed 1 times) -CPU read 8 bits from register 0xA20, PC:0x100852FC.(printed 1 times) -CPU read 8 bits from register 0xA20, PC:0x1008530A.(printed 1 times) -CPU read 8 bits from register 0xA20, PC:0x100852FC.(printed 1 times) -CPU read 8 bits from register 0xA20, PC:0x1008530A.(printed 1 times) -CPU read 8 bits from register 0xA20, PC:0x100852FC.(printed 1 times) -CPU read 8 bits from register 0xA20, PC:0x1008530A.(printed 1 times) -CPU read 16 bits from register 0xA36, PC:0x10084F92.(printed 1 times) -CPU wrote 16 bits of 0x00000180 to register 0xA36, PC:0x10084FBC.(printed 1 times) -CPU read 8 bits from register 0xA20, PC:0x100852FC.(printed 1 times) -CPU read 8 bits from register 0xA20, PC:0x1008530A.(printed 1 times) diff --git a/bugs/m500_log2.txt b/bugs/m500_log2.txt deleted file mode 100644 index 98d6d3b..0000000 --- a/bugs/m500_log2.txt +++ /dev/null @@ -1,110 +0,0 @@ -USB unknown command, value:0xF3(printed 1 times) -USB command 0xF3, write not handeled(printed 2 times) -USB unknown command, value:0xFB(printed 1 times) -USB command 0xFB, write not handeled(printed 1 times) -USB unknown command, value:0x00(printed 1 times) -USB command 0x00, read not handeled(printed 1 times) -USB unknown command, value:0xF2(printed 1 times) -USB unknown command, value:0x02(printed 1 times) -USB command 0x02, read not handeled(printed 1 times) -USB unknown command, value:0xF2(printed 1 times) -USB unknown command, value:0x04(printed 1 times) -USB command 0x04, read not handeled(printed 1 times) -USB unknown command, value:0xF2(printed 1 times) -USB unknown command, value:0xF3(printed 1 times) -USB command 0xF3, write not handeled(printed 2 times) -USB unknown command, value:0x40(printed 1 times) -USB command 0x40, write not handeled(printed 1 times) -USB unknown command, value:0x40(printed 1 times) -USB command 0x40, read not handeled(printed 1 times) -USB unknown command, value:0x41(printed 1 times) -USB command 0x41, write not handeled(printed 1 times) -USB unknown command, value:0x41(printed 1 times) -USB command 0x41, read not handeled(printed 1 times) -USB unknown command, value:0x42(printed 1 times) -USB command 0x42, write not handeled(printed 1 times) -USB unknown command, value:0x42(printed 1 times) -USB command 0x42, read not handeled(printed 1 times) -USB unknown command, value:0x43(printed 1 times) -USB command 0x43, write not handeled(printed 1 times) -USB unknown command, value:0x43(printed 1 times) -USB command 0x43, read not handeled(printed 1 times) -USB unknown command, value:0x44(printed 1 times) -USB command 0x44, write not handeled(printed 1 times) -USB unknown command, value:0x44(printed 1 times) -USB command 0x44, read not handeled(printed 1 times) -USB unknown command, value:0x45(printed 1 times) -USB command 0x45, write not handeled(printed 1 times) -USB unknown command, value:0x45(printed 1 times) -USB command 0x45, read not handeled(printed 1 times) -CPU read 16 bits from register 0xA18, PC:0x100030E2.(printed 1 times) -CPU read 16 bits from register 0xA18, PC:0x1000316E.(printed 1 times) -CPU read 16 bits from register 0xA36, PC:0x1000307A.(printed 1 times) -USB unknown command, value:0xF3(printed 1 times) -USB command 0xF3, write not handeled(printed 2 times) -USB unknown command, value:0xFB(printed 1 times) -USB command 0xFB, write not handeled(printed 1 times) -USB unknown command, value:0xF3(printed 1 times) -USB command 0xF3, write not handeled(printed 2 times) -USB unknown command, value:0x40(printed 1 times) -USB command 0x40, write not handeled(printed 1 times) -USB unknown command, value:0x40(printed 1 times) -USB command 0x40, read not handeled(printed 1 times) -USB unknown command, value:0x41(printed 1 times) -USB command 0x41, write not handeled(printed 1 times) -USB unknown command, value:0x41(printed 1 times) -USB command 0x41, read not handeled(printed 1 times) -USB unknown command, value:0x42(printed 1 times) -USB command 0x42, write not handeled(printed 1 times) -USB unknown command, value:0x42(printed 1 times) -USB command 0x42, read not handeled(printed 1 times) -USB unknown command, value:0x43(printed 1 times) -USB command 0x43, write not handeled(printed 1 times) -USB unknown command, value:0x43(printed 1 times) -USB command 0x43, read not handeled(printed 1 times) -USB unknown command, value:0x44(printed 1 times) -USB command 0x44, write not handeled(printed 1 times) -USB unknown command, value:0x44(printed 1 times) -USB command 0x44, read not handeled(printed 1 times) -USB unknown command, value:0x45(printed 1 times) -USB command 0x45, write not handeled(printed 1 times) -USB unknown command, value:0x45(printed 1 times) -USB command 0x45, read not handeled(printed 1 times) -CPU read 16 bits from register 0xA08, PC:0x10084C6A.(printed 1 times) -CPU read 16 bits from register 0xA0A, PC:0x10084C72.(printed 1 times) -CPU read 16 bits from register 0xA18, PC:0x10084DE8.(printed 1 times) -CPU read 16 bits from register 0xA18, PC:0x10084E74.(printed 1 times) -CPU read 16 bits from register 0xA36, PC:0x10084D80.(printed 1 times) -CPU read 16 bits from register 0xA18, PC:0x10084DE8.(printed 1 times) -CPU read 16 bits from register 0xA18, PC:0x10084E74.(printed 1 times) -CPU read 16 bits from register 0xA36, PC:0x10084D80.(printed 1 times) -CPU read 8 bits from register 0xA20, PC:0x100852FC.(printed 1 times) -CPU read 8 bits from register 0xA20, PC:0x1008530A.(printed 1 times) -CPU read 8 bits from register 0xA20, PC:0x100852FC.(printed 1 times) -CPU read 8 bits from register 0xA20, PC:0x1008530A.(printed 1 times) -CPU read 8 bits from register 0xA20, PC:0x100852FC.(printed 1 times) -CPU read 8 bits from register 0xA20, PC:0x1008530A.(printed 1 times) -CPU read 8 bits from register 0xA20, PC:0x100852FC.(printed 1 times) -CPU read 8 bits from register 0xA20, PC:0x1008530A.(printed 1 times) -CPU read 16 bits from register 0xA36, PC:0x10084F92.(printed 1 times) -CPU read 8 bits from register 0xA20, PC:0x100852FC.(printed 1 times) -CPU read 8 bits from register 0xA20, PC:0x1008530A.(printed 1 times) -CPU read 8 bits from register 0xA20, PC:0x100852FC.(printed 1 times) -CPU read 8 bits from register 0xA20, PC:0x1008530A.(printed 1 times) -CPU read 8 bits from register 0xA20, PC:0x100852FC.(printed 1 times) -CPU read 8 bits from register 0xA20, PC:0x1008530A.(printed 1 times) -CPU read 8 bits from register 0xA20, PC:0x100852FC.(printed 1 times) -CPU read 8 bits from register 0xA20, PC:0x1008530A.(printed 1 times) -CPU read 8 bits from register 0xA20, PC:0x100852FC.(printed 1 times) -CPU read 8 bits from register 0xA20, PC:0x1008530A.(printed 1 times) -CPU read 8 bits from register 0xA20, PC:0x100852FC.(printed 1 times) -CPU read 8 bits from register 0xA20, PC:0x1008530A.(printed 1 times) -CPU read 16 bits from register 0xA08, PC:0x10085352.(printed 1 times) -CPU read 16 bits from register 0xA0A, PC:0x1008535E.(printed 1 times) -CPU read 16 bits from register 0xA08, PC:0x100853D0.(printed 1 times) -CPU read 8 bits from register 0xA20, PC:0x100852FC.(printed 1 times) -CPU read 8 bits from register 0xA20, PC:0x1008530A.(printed 1 times) -CPU read 8 bits from register 0xA20, PC:0x100852FC.(printed 1 times) -CPU read 8 bits from register 0xA20, PC:0x1008530A.(printed 1 times) -CPU read 8 bits from register 0xA20, PC:0x100852FC.(printed 1 times) -CPU read 8 bits from register 0xA20, PC:0x1008530A.(printed 1 times) diff --git a/libretroBuildSystem/libretro.c b/libretroBuildSystem/libretro.c index a958ba7..31505a8 100644 --- a/libretroBuildSystem/libretro.c +++ b/libretroBuildSystem/libretro.c @@ -162,7 +162,6 @@ static void check_variables(bool booting){ var.key = "palm_emu_os_version"; if(environ_cb(RETRO_ENVIRONMENT_GET_VARIABLE, &var) && var.value){ - //Palm m515/Palm OS 4.1|Tungsten T3/Palm OS 5.2.1|Tungsten T3/Palm OS 6.0|Palm m500/Palm OS 4.0 if(!strcmp(var.value, "Palm m500/Palm OS 4.0")){ deviceModel = EMU_DEVICE_PALM_M500; osVersion = "palmos40-en-m500"; @@ -465,6 +464,7 @@ bool retro_load_game(const struct retro_game_info *info){ //ROM strlcpy(romPath, systemDir, PATH_MAX_LENGTH); + strlcat(romPath, "/", PATH_MAX_LENGTH); strlcat(romPath, osVersion, PATH_MAX_LENGTH); strlcat(romPath, ".rom", PATH_MAX_LENGTH); romFile = filestream_open(romPath, RETRO_VFS_FILE_ACCESS_READ, RETRO_VFS_FILE_ACCESS_HINT_NONE); diff --git a/src/emulator.c b/src/emulator.c index 0b53cd1..d0b5f99 100644 --- a/src/emulator.c +++ b/src/emulator.c @@ -774,7 +774,7 @@ void emulatorRunFrame(void){ if(palmMisc.backlightLevel == 100){ MULTITHREAD_LOOP(index) for(index = 0; index < 160 * 160; index++){ - uint16_t greenChannel = (palmFramebuffer[index] & 0x07E0) + 0x00E0; + uint16_t greenChannel = (palmFramebuffer[index] & 0x07E0) + 0x00C0; palmFramebuffer[index] = palmFramebuffer[index] & 0xF81F | FAST_MIN(greenChannel, 0x07E0); } }