Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PCFX: Controller port edge-case investigations #164

Open
dshadoff opened this issue Jul 7, 2024 · 1 comment
Open

PCFX: Controller port edge-case investigations #164

dshadoff opened this issue Jul 7, 2024 · 1 comment

Comments

@dshadoff
Copy link
Member

dshadoff commented Jul 7, 2024

1) When controller scan in in progress (~100usec in length), bit 0 (value 1) is high, and bit 3 (value 8) is low.

Current expectation is that these transition simultaneously (i.e. "value 1 -> value 8", not "1 -> 0 -> 8", and not "1 ->9 -> 8").

This needs to be confiirmed on an actual machine. If there is a transitional value, it would be held only for a brief moment which may be difficult to witness, so current implementation is an adequate representation.

2) Mednafen does not appear to have full-word read/write io-handler implementations for controller ports.

It is not clear whether these operations take place as (multiple) implicit halfword-read/writes, or whether they produce bad results.

Needs to be investigated.

@dshadoff
Copy link
Member Author

Follow-up for item 2) above:
liberis/libpcfx uses "in.w" (input whole word from a port) to read joypads, and both half-words are read fine by mednafen, so it must take certain memory ranges and assume that full-word accesses must be broken into multiple halfword accesses for those ranges.

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

No branches or pull requests

1 participant