Skip to content

reimplement: SHC_3BB0A8C1_0x0047BF20 register and structure issues#139

Draft
TheRedDaemon wants to merge 3 commits into
mainfrom
reimpl/SHC_3BB0A8C1_0x0047BF20
Draft

reimplement: SHC_3BB0A8C1_0x0047BF20 register and structure issues#139
TheRedDaemon wants to merge 3 commits into
mainfrom
reimpl/SHC_3BB0A8C1_0x0047BF20

Conversation

@TheRedDaemon

Copy link
Copy Markdown
Contributor

No description provided.

namespace MSS {

typedef uint SoundFlagsAndLoopCount;
typedef int SoundFlagsAndLoopCount;

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Are you sure it is int? Some & operations naturally produce negative right-hand-sides if an int.

@TheRedDaemon TheRedDaemon Jun 29, 2026

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

It increased the matching and actually started producing the binary mask instead of just using a mov to a 16bit register.
But this function is another one of these annoying ones. A lot of branch optimization, gotos.
Always in the hope that there is a when: When we manage to match the function, I will try reverting this change and test around a bit.
If this goes through, all other methods need to be tested again, of course.

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.

2 participants