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

Attempt d_a_obj_tower_hand_D101 #96

Merged
merged 4 commits into from
Nov 9, 2024

Conversation

robojumper
Copy link
Collaborator

No description provided.

Comment on lines +67 to +70
void transS(const mVec3_c &v) {
PSMTXTrans(*this, v.x, v.y, v.z);
}
void trans(f32 x, f32 y, f32 z) {
void transS(f32 x, f32 y, f32 z) {
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Going with the existing pattern of an S suffix for functions that Set the matrix and M for functions that Modify/Mutate the matrix

src/REL/d/a/obj/d_a_obj_tower_hand_D101.cpp Outdated Show resolved Hide resolved
}
}

if (item == nullptr || !item->isStateWait()) {
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

All code surrounding isStateWait in this file is weird!

Comment on lines +517 to +525
inline u32 getFlags() {
static volatile u32 FLAGS_1 = 0x00000001;
static u32 FLAGS_2 = 0x00100001;
// The remarkable bit here is that this does not use an `andc` instruction,
// but rather `nor`s FLAGS_1, contrary to the other usages so far
u32 f1 = ~FLAGS_1;
u32 f2 = FLAGS_2;
return f2 & f1;
}
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

#70

@robojumper robojumper marked this pull request as ready for review November 9, 2024 14:33
@robojumper
Copy link
Collaborator Author

This is as close as it gets. A lot of unused rodata (floats), and the getItem inline is weird, but it should be pretty much equivalent now.

@elijah-thomas774 elijah-thomas774 merged commit a3472ab into zeldaret:main Nov 9, 2024
1 check passed
@robojumper robojumper deleted the d_a_obj_tower_hand_D101 branch November 9, 2024 16:44
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