+Andrew Davie Posted November 17, 2020 Share Posted November 17, 2020 Despite Lili Adventure absolutely definitely reading RESET and joystick at the same time (character walks to the right, and background flashes on reset), the PlusCart code does not detect an exit condition. Link to comment Share on other sites More sharing options...
+Al_Nafuur Posted November 17, 2020 Share Posted November 17, 2020 3 minutes ago, Andrew Davie said: Despite Lili Adventure absolutely definitely reading RESET and joystick at the same time (character walks to the right, and background flashes on reset), the PlusCart code does not detect an exit condition. Maybe the ROM reads some of the SWCHB (or SWCHA) mirrors ? Link to comment Share on other sites More sharing options...
+Andrew Davie Posted November 17, 2020 Author Share Posted November 17, 2020 10 minutes ago, Al_Nafuur said: Maybe the ROM reads some of the SWCHB (or SWCHA) mirrors ? That would explain it. In any case, I hope to have an alternate exit working in a week or so. Link to comment Share on other sites More sharing options...
+Al_Nafuur Posted November 17, 2020 Share Posted November 17, 2020 (edited) 49 minutes ago, Andrew Davie said: That would explain it. In any case, I hope to have an alternate exit working in a week or so. We can ignore the address-lines the PIA ignores too, so we would monitor the mirror addresses too. Edited November 17, 2020 by Al_Nafuur Link to comment Share on other sites More sharing options...
Thomas Jentzsch Posted November 18, 2020 Share Posted November 18, 2020 (edited) Lili does lsr SWCHB ; 4e 82 02 You can use "trapread SWCHB" in Stella's debugger to find this code easily. Edited November 18, 2020 by Thomas Jentzsch Link to comment Share on other sites More sharing options...
+Al_Nafuur Posted November 18, 2020 Share Posted November 18, 2020 1 hour ago, Thomas Jentzsch said: Lili does lsr SWCHB ; 4e 82 02 You can use "trapread SWCHB" in Stella's debugger to find this code easily. ? and SWCHA ? Link to comment Share on other sites More sharing options...
Thomas Jentzsch Posted November 18, 2020 Share Posted November 18, 2020 20 minutes ago, Al_Nafuur said: and SWCHA? bit SWCHA ; 2c 80 02 Link to comment Share on other sites More sharing options...
+Al_Nafuur Posted November 18, 2020 Share Posted November 18, 2020 1 minute ago, Thomas Jentzsch said: bit SWCHA ; 2c 80 02 ? These are both (SWCHA and SWCHB) not mirrors, so the exit function should work here. are SWCHA or SWCHB touched (written ??) somewhere else in the ROM. Link to comment Share on other sites More sharing options...
+Andrew Davie Posted November 18, 2020 Author Share Posted November 18, 2020 1 minute ago, Al_Nafuur said: ? These are both (SWCHA and SWCHB) not mirrors, so the exit function should work here. are SWCHA or SWCHB touched (written ??) somewhere else in the ROM. I think there must be a bug in the exit function introduced recently? I've seen a number of games that seem to be failing on the reset combination. Hope it wasn't me. Link to comment Share on other sites More sharing options...
Thomas Jentzsch Posted November 18, 2020 Share Posted November 18, 2020 58 minutes ago, Al_Nafuur said: are SWCHA or SWCHB touched (written ??) somewhere else in the ROM. LSR SWCHB is actually a write too. Link to comment Share on other sites More sharing options...
+Al_Nafuur Posted November 18, 2020 Share Posted November 18, 2020 16 minutes ago, Thomas Jentzsch said: LSR SWCHB is actually a write too. Yes LSR SWCHB (LSR absolute) takes 6 CPU cycles and the addressbus is not changing, so we "read" at the end (right before the addressbus is changing) the shifted value on the databus, which the CPU want's to write (back) to the memory location. And then the RESET bit is in carry, but in this case the exit function works with the select switch Link to comment Share on other sites More sharing options...
+Al_Nafuur Posted November 18, 2020 Share Posted November 18, 2020 1 minute ago, Al_Nafuur said: And then the RESET bit is in carry, but in this case the exit function works with the select switch Just tested, "Select" and joystick right exits this ROM ? Link to comment Share on other sites More sharing options...
+Andrew Davie Posted November 18, 2020 Author Share Posted November 18, 2020 39 minutes ago, Al_Nafuur said: Just tested, "Select" and joystick right exits this ROM ? I will re-test, then. I'll report back if I remember. Link to comment Share on other sites More sharing options...
+Andrew Davie Posted November 20, 2020 Author Share Posted November 20, 2020 On 11/19/2020 at 2:08 AM, Al_Nafuur said: Just tested, "Select" and joystick right exits this ROM ? Ah, yes. Well, this is a problem isn't it. Still have the new exit on the backburner I'll try and get a functional prototype this weekend. Link to comment Share on other sites More sharing options...
Recommended Posts