-
Notifications
You must be signed in to change notification settings - Fork 817
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
Bad comment in RTC-checking code #1059
Comments
please consider making a PR instead |
This is my "I don't want to fork the repo while I'm doing 200 other things, but I don't want to forget about the issue" contribution :P By the way, if you're going to define bit 6 for overflow, you might also want to define bit 7 for on/off. |
Maybe you'll find some use in the Github CLI. I find that the |
This was fixed as part of pret/pokegold#120, which will be ported to pokecrystal after review+merge. |
pokecrystal/engine/menus/main_menu.asm
Line 284 in 1d64bef
This code here checks for the RTC overflow bit, which gets set when the RTC day count exceeds 512. However, since it is bit 6 of the control register, which also contains the upper portion of the day count, someone accidentally documented it as an actual check for $4000. (In actuality, bits 1-5 of that register are unmapped.)
This should just say it is checking whether the RTC overflow bit is set.
The text was updated successfully, but these errors were encountered: