I'm trying to disable offset checks for bia3 but I'm unsure how I should do that. @Alphamatter showed me a mini tut on how to do that. The fact that I am n00b at this, means that I still have many questions. How do I hack the following code?
MOVW R1, #(:lower16:(aDamage - HIDDENOFFSET))
MOV R0, R4
MOVT.W R1, #(:upper16:(aDamage - HIDDENOFFSET))
ADD R1, PC ; "damage"
BLX.W
CMP R0, #0
ITT EQ
MOVEQ R0, #0x13
POPEQ {R4,R7,PC}Here's what I changed it to:
MOVW R1, #(:lower16:(aDamage - HIDDENOFFSET))
MOV R0, R4
MOVT.W R1, #(:upper16:(aDamage - HIDDENOFFSET))
LDR R1, R7 ; "damage"
BLX.W
CMP R0, R0
ITT EQ
MOVEQ R0, #0x13
POPEQ {R4,R7,PC}Note: offsets are hidden to prevent leeching