vitoco Posted January 11, 2021 Share Posted January 11, 2021 I can start Pitfall II from the Popular ROMs menu, but when I exit the emulation of this game using the right-reset keystroke, I return to an empty menu, and a series of connection errors and weird behaviors in the menu. This does not appen with other ROMs from that folder. Might this be a DPC emulation issue? Something that remains in the emulation at the ROM exit? BTW, in the PlusStore Statistics page, the filesize of this game appears as "10.2490234375 KiB" instead of a rounded value. Link to comment Share on other sites More sharing options...
+Al_Nafuur Posted January 12, 2021 Share Posted January 12, 2021 @Andrew Davie it's even worse Pitfall II is not working with the current DEV version, seems like the wrong bankswitching is used/detected there. Link to comment Share on other sites More sharing options...
+Al_Nafuur Posted January 12, 2021 Share Posted January 12, 2021 13 minutes ago, Al_Nafuur said: @Andrew Davie it's even worse Pitfall II is not working with the current DEV version, seems like the wrong bankswitching is used/detected there. I pushed a fix for the current dev version, but the behavior on exit is the same here. DPC is using the ccm RAM and deletes our menu entries, we have to reload the current path after exiting DPC. Link to comment Share on other sites More sharing options...
vitoco Posted January 12, 2021 Author Share Posted January 12, 2021 29 minutes ago, Al_Nafuur said: we have to reload the current path after exiting DPC. Is this path kept in the cart or stored in the server? If it's in the server, it could be nice to have this feature: https://atariage.com/forums/topic/311210-menu-navigation-improvements/?do=findComment&comment=4722797 Link to comment Share on other sites More sharing options...
+Andrew Davie Posted January 12, 2021 Share Posted January 12, 2021 5 hours ago, Al_Nafuur said: DPC is using the ccm RAM and deletes our menu entries, we have to reload the current path after exiting DPC. Ah, well that explains this code which I had marked as "...?" else if (cart_type.base_type != base_type_None) { emulate_cartridge(cart_type, d); set_menu_status_byte(STATUS_StatusByteReboot, 0); menuStatusMessage = /*main_status = */exit_emulation; // ...? if (d->filesize > (BUFFER_SIZE * 1024) || cart_type.base_type == base_type_DPC) { // reload menu truncate_curPath(); menuStatusMessage = buildMenuFromPath(d); } } I guess it's not working as it should be, then. Link to comment Share on other sites More sharing options...
+Al_Nafuur Posted January 12, 2021 Share Posted January 12, 2021 Additionally to the CCMRAM the DPC emulation fumbles around with our system ticker (SysTick). We have to set this back to 1 KHz after the emulation, because the UART communication with the ESP8266 depends on this.. Link to comment Share on other sites More sharing options...
+Al_Nafuur Posted January 12, 2021 Share Posted January 12, 2021 @Andrew Davie I pushed some more fixes for DPC and exit emulation. btw. the DPC sound was also buggy, because of the compiler warning changes. Link to comment Share on other sites More sharing options...
+Andrew Davie Posted January 12, 2021 Share Posted January 12, 2021 56 minutes ago, Al_Nafuur said: @Andrew Davie I pushed some more fixes for DPC and exit emulation. btw. the DPC sound was also buggy, because of the compiler warning changes. Interesting. What specifically was the problem on the warning change? Link to comment Share on other sites More sharing options...
+Al_Nafuur Posted January 12, 2021 Share Posted January 12, 2021 9 minutes ago, Andrew Davie said: Interesting. What specifically was the problem on the warning change? https://gitlab.com/firmaplus/atari-2600-pluscart/-/commit/c90b4cbe39b43eb77de3486722d4c081cd9eaa38 I reverted your changes to the calculation of "dpctop_music" and "dpcbottom_music" It compiles now with warnings and better sound ? Link to comment Share on other sites More sharing options...
+Andrew Davie Posted January 12, 2021 Share Posted January 12, 2021 2 minutes ago, Al_Nafuur said: https://gitlab.com/firmaplus/atari-2600-pluscart/-/commit/c90b4cbe39b43eb77de3486722d4c081cd9eaa38 I reverted your changes to the calculation of "dpctop_music" and "dpcbottom_music" It compiles now with warnings and better sound ? And yet the code looks OK. The *type* of the shift variable must have been incorrect. Sorry about that - given I changed literally hundreds of lines of code I'm happy to not be perfect. For once. 1 Link to comment Share on other sites More sharing options...
+Andrew Davie Posted January 13, 2021 Share Posted January 13, 2021 I believe it is always possible to write correctly functioning code without warnings. I have modified the code once again - and although I'm just about the last person in the world to ask about sound -- it seems OK. Could you please review/verify. As you know, I am a strong believer in the value/correctness of treating warnings as errors. 1 Link to comment Share on other sites More sharing options...
+Al_Nafuur Posted January 13, 2021 Share Posted January 13, 2021 2 hours ago, Andrew Davie said: I believe it is always possible to write correctly functioning code without warnings. I have modified the code once again - and although I'm just about the last person in the world to ask about sound -- it seems OK. Could you please review/verify. As you know, I am a strong believer in the value/correctness of treating warnings as errors. sounds good ? I will upload this dev version for the dev version test group. Link to comment Share on other sites More sharing options...
Recommended Posts