Skip to content
This repository has been archived by the owner on Oct 4, 2020. It is now read-only.

GB: P1 (FF00) data bus change isn't visible to joypad interrupt for SGB #160

Open
redacted173 opened this issue Jul 25, 2020 · 0 comments
Open

Comments

@redacted173
Copy link

Double Dragon 3 relies on the joypad interrupt for getting button states It makes a 11->00 transition on the control bits which is supposed to capture 1->0 (and 0->1 if there is bounce) transitions on the joypad data to trigger the interrupt. But the following code in Mesen looks like it may not capture any transition due to how button state is written and buffered (in ICD2) per SNES frame by the SGB bios. Both prevInput and newInput may have the same value. The result is it's not possible to get past the menu since no inputs are registered. In-game (outside of menu) button state is also read with the same interrupt code.

The joypad interrupt interrupt isn't very useful for a variety of reasons. This may be the only game that uses it for input processing.

//TODO move this somewhere that makes more sense

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant