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

Identify more bit flags #465

Merged
merged 2 commits into from
Sep 24, 2024
Merged

Identify more bit flags #465

merged 2 commits into from
Sep 24, 2024

Conversation

Rangi42
Copy link
Member

@Rangi42 Rangi42 commented Sep 24, 2024

After this PR, there are two types of unidentified bit flags remaining: hardware register bits (for which I'm considering how much to edit/refactor hardware_constants.asm based on hardware.inc), and wCurrentMapScriptFlags bits 5, 6, and 7 (which need more case-by-case investigation).

@Rangi42 Rangi42 requested a review from dannye September 24, 2024 06:11
@@ -27,7 +27,7 @@ VictoryRoad2FCheckBoulderEventScript:
call VictoryRoad2FReplaceTileBlockScript
pop af
.not_on_switch
bit 7, a
CheckEventReuseA EVENT_VICTORY_ROAD_2_BOULDER_ON_SWITCH2
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lol

engine/gfx/mon_icons.asm Outdated Show resolved Hide resolved
@Vortyne
Copy link
Contributor

Vortyne commented Sep 24, 2024

wCurrentMapScriptFlags 5 and 6 are both "new map was just loaded" flags used to ensure map scripts only run a function once when the map is loaded. I think the idea was that they could be re-set individually to re-trigger specific map load functions on a map, but I don't think that's ever done in a place where them being separate matters.
bit 7 is used for elevators to indicate to the map scripts that the "shake" animation should start playing.

@Rangi42
Copy link
Member Author

Rangi42 commented Sep 24, 2024

Thanks, Vortyne. Yeah, I had noticed some of that after giving them BIT_CUR_MAP_SCRIPT_5/6/7 constants in a separate ongoing PR.

@Rangi42 Rangi42 merged commit b5d2540 into pret:master Sep 24, 2024
1 check passed
@Rangi42 Rangi42 deleted the more-bit-flags branch September 24, 2024 13:37
PokefanMarcel pushed a commit to PokefanMarcel/yumepokered that referenced this pull request Oct 18, 2024
* Identify more bit flags

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

Successfully merging this pull request may close these issues.

3 participants