-
Notifications
You must be signed in to change notification settings - Fork 138
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
base: master
Are you sure you want to change the base?
Conversation
@@ -367,6 +383,36 @@ static volatile unsigned int *func_00000f80(volatile unsigned int *address) | |||
|
|||
// 0x00001b38 | |||
void func_00001b38(unsigned int arg1); | |||
__asm__ |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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.
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. |
Yeah, I can do that |
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