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

Registers "default return values" no longer mentioned #551

Open
Smileynator opened this issue May 20, 2024 · 2 comments
Open

Registers "default return values" no longer mentioned #551

Smileynator opened this issue May 20, 2024 · 2 comments
Labels
content Improvements or additions to documentation enhancement New feature or request

Comments

@Smileynator
Copy link

I remember in the past the go-to advice was that any register not explicitly having a function or any "bits" not used in a register, by default are "tied high" and thus return 1.
In the pandocs i cannot find this mentioned on some random registers with this behavior, nor in general on the I/O ranges chapter.

If the information is still in there, it might be too hard to find as is.

Another question is if that data is accurate, pins might be floating, i am unsure of specific evidence on what those pins should do. If floating is the answer, that should probably be mentioned instead, and then it is up to the emu-dev to resolve.

@ISSOtm
Copy link
Member

ISSOtm commented May 21, 2024

AFAIK they are indeed floating, but the pull-ups on internal busses always make them return 0. cc @LIJI32 and @CasualPokePlayer for confirmation on that point.

Where would it be appropriate to write that down, too?

@LIJI32
Copy link
Member

LIJI32 commented May 21, 2024

Unused register bits (as well as unused register addresses) typically return 1s, not 0s.

@avivace avivace added content Improvements or additions to documentation enhancement New feature or request labels Sep 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
content Improvements or additions to documentation enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

4 participants