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

VERA flag names should be defined in the documentation #175

Open
Yazwh0 opened this issue Mar 16, 2024 · 2 comments
Open

VERA flag names should be defined in the documentation #175

Yazwh0 opened this issue Mar 16, 2024 · 2 comments

Comments

@Yazwh0
Copy link
Contributor

Yazwh0 commented Mar 16, 2024

We have names of the VERA registers CTRL, FX_MULT, etc, but we don't have defined names for the flags.

If we set both masks and values in the documentation we can use these in the various compiler constants files to give a unified set of names and values. These names would directly tie to the names in the docs. (like the register names would)

For example MAP_HEIGHT would be 0b11000000, and MAP_HEIGHT_64 could be 0b01000000, so we could use

lda L0_CONFIG
and #~MAP_HEIGHT
ora #MAP_HEIGHT_64
sta L0_CONFIG
@Yazwh0
Copy link
Contributor Author

Yazwh0 commented Mar 16, 2024

Maybe create an appendix with all these constants, masks and flags with a defined name, from which include files could be generated for all the different compilers/assemblers.

@tomxp411
Copy link
Contributor

I will often do that with a spreadsheet.

column A is the symbol. Column B is the name. Cols C+ are computed values for different languages.

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

2 participants