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

GBA/agbcc support #283

Open
H-A-M-G-E-R opened this issue Oct 27, 2024 · 4 comments
Open

GBA/agbcc support #283

H-A-M-G-E-R opened this issue Oct 27, 2024 · 4 comments

Comments

@H-A-M-G-E-R
Copy link

right now ghidra make very messy decompiled code for gba, full of gotos, unrecovered jumptables, and return in_lr's, even with structs specified
i'm decomping more functions in metroid fusion https://github.com/H-A-M-G-E-R/mf

@simonlindholm
Copy link
Collaborator

ARM makes a lot of sense to be the next arch added for m2c, but I have had very little time to work on decomp stuff lately so it'll be a long time until it happens. Unless someone else steps up.

@H-A-M-G-E-R
Copy link
Author

One big hurdle to implementing an ARM decompiler is distinguishing between branching bl and calling bl.

@simonlindholm
Copy link
Collaborator

Do you have an example of branching bl? (I don't think this will be a problem, it can based on whether something is annotated as a global or a local label in the asm)

@H-A-M-G-E-R
Copy link
Author

H-A-M-G-E-R commented Dec 14, 2024

some screenshots of my fork of ghidra:
image
image
i made changes to correct the order of switch and if/else statements and formatting

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

No branches or pull requests

2 participants