Hello,
This seems like a pretty basic question, but I haven't been able to find an answer for it: editing assembly, like changing one hardcoded value to another, is easy, but how do you add additional assembly instructions like more advanced romhacks do? It seems like this would mess up all the offsets and pointers and completely ruin the code. My instinct is that you would change one instruction to a branch to unused space, add the additional code there, and then branch back, but am I off? Is there any type of program to help with this, or am I missing something simple?
Thanks for your help.
This seems like a pretty basic question, but I haven't been able to find an answer for it: editing assembly, like changing one hardcoded value to another, is easy, but how do you add additional assembly instructions like more advanced romhacks do? It seems like this would mess up all the offsets and pointers and completely ruin the code. My instinct is that you would change one instruction to a branch to unused space, add the additional code there, and then branch back, but am I off? Is there any type of program to help with this, or am I missing something simple?
Thanks for your help.