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

Implement WORD() function #561

Closed
wants to merge 1 commit into from
Closed

Conversation

Rangi42
Copy link
Contributor

@Rangi42 Rangi42 commented Aug 31, 2020

Supersedes #555.

This returns the low 16 bits of a label or constant, as discussed in #rgbds.

make develop does not give any new warnings.

make checkpatch does not give any warnings.

Using WORD(-X) in place of $10000 - X in pokecrystal succeeds to make compare.

This returns the low 16 bits of a label or constant.
@Rangi42
Copy link
Contributor Author

Rangi42 commented Jan 16, 2021

This would be more appropriate as a user-defined function, when those are eventually implemented.

@Rangi42 Rangi42 closed this Jan 16, 2021
@Rangi42 Rangi42 deleted the word-function branch January 16, 2021 01:15
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

Successfully merging this pull request may close these issues.

1 participant