Posts: 6
Threads: 0
Joined: Nov 2020
Reputation:
0
Thanks, that worked out (not sure what I was doing wrong before).
Is there a way to bl to a specific virtual address? bl 0x8007e088 does not compile for me.
Posts: 4,233
Threads: 898
Joined: Feb 2018
Reputation:
98
11-29-2020, 08:15 PM
(This post was last modified: 11-29-2020, 08:20 PM by Vega.)
I've never seen an 04 codetype use a bl instruction.
It's possible, but you would need to calculate the amount to branch by.
Example:
Address of Code: 0x80530400; You need to branch-link to address 0x80530500
bl 0x100 #(the amount of offset/jump for the branch)
Compiles to 04530400 48000101. Obviously, large jumps or negative/backwards jumps will be a bit tedious to calculate. Also atm PYiiASMH3 requires you to use a signed 32 bit value for negative branching.
Example: You wanna branch -0x4. You can't write b -0x4, you need to write b 0xFFFFFFFC
This bug should be fixed soon when JoshuaMK gets time.
Posts: 1,007
Threads: 95
Joined: Jun 2019
Reputation:
38
you may be able to do either
C6530400 8007E089
or
C6530401 8007E088
afaik most codehandlers will take the added 1 as a bl command
Super Mario Eclipse, what Super Mario Sunshine could've been.
Posts: 6
Threads: 0
Joined: Nov 2020
Reputation:
0
Oh okay thanks a lot, ill try that.
Im wondering regarding the code handler. If I inject it into the dol file, will it clash with dolphins gecko loader?
Posts: 1,007
Threads: 95
Joined: Jun 2019
Reputation:
38
It depends on what method you use to inject it in
Super Mario Eclipse, what Super Mario Sunshine could've been.
Posts: 1,007
Threads: 95
Joined: Jun 2019
Reputation:
38
GeckoLoader has some bugs right now that may make it not work for you, but if it does work it's the best way to patch codes into a game
In order to have GeckoLoader not conflict with dolphins codehandler, just use option ARENA in the GUI
Super Mario Eclipse, what Super Mario Sunshine could've been.
Posts: 1,007
Threads: 95
Joined: Jun 2019
Reputation:
38
Maybe using such an old OS is the issue. Using pip install PyQT5 should be enough to get a proper and functional install for pyiiasmh. If you want to continue to seek help message me privately on discord and the solution can be posted here
Super Mario Eclipse, what Super Mario Sunshine could've been.