PyiiASMH 3 (ASM Compiler + Decompiler)
#12
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.
Reply


Messages In This Thread
RE: pyiiasmh 3 - by Vega - 05-24-2020, 10:12 PM
RE: pyiiasmh 3 - by JoshuaMK - 05-24-2020, 11:57 PM
RE: PyiiASMH 3 (ASM Compiler + Decompiler) - by Vega - 11-29-2020, 08:15 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)