I’m trying to calculate the correct op codes for a jump, I’ve looked at this in other threads and I still don’t understand:
I thought the formula was desination - (from+5) but its just not working, it’s way off, here’s the addresses that I want to jump to/from:
FROM: 6259326B
TO: 02980000
CORRECT OPCODE: E9 90CD3EA0
FORMULA OPCODE: E9 5FC13266
So I’m having problems with this, any help appreciated.
You are calculating negative jmp! So correct formula is:
what is equal $A03ECD90 (or $90CD3EA0 in little endian).