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

Cleanup s assembly files #733

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open

Cleanup s assembly files #733

wants to merge 4 commits into from

Conversation

uyjulian
Copy link
Member

@uyjulian uyjulian commented Jan 27, 2025

There were some unused s files, so those have been removed.
There were some s files that have intermixed C preprocessor statements and assembly, so those have been cleaned up and made such that the C preprocessor statements have been more isolated from the assembly code.

Tested wLE can launch itself
Tested OPL can run games from USB

@@ -367,6 +383,36 @@ static volatile unsigned int *func_00000f80(volatile unsigned int *address)

// 0x00001b38
void func_00001b38(unsigned int arg1);
__asm__
Copy link
Member

Choose a reason for hiding this comment

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

Shouldn't be better if we use the asm code directly inside of the function? instead of defining the header and then implementing the "whole" function using ASM?

Copy link
Member Author

Choose a reason for hiding this comment

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

That would be better, but I plan to do that in another pass (not in this PR) because it requires figuring out what registers are read/written/clobbered and that has a higher change of breaking.

@fjtrujy
Copy link
Member

fjtrujy commented Jan 28, 2025

Anyway, as this PR is risky, I would like to split this PR into smaller PRs, to check that the implementation is exactly the same.
Sorry for that, but could you create a PR per ee/iop library involved?

@uyjulian
Copy link
Member Author

Yeah, I can do that

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