Is this block of code a subroutine ?
Typically it'd be called using the
blinstruction. You should search for pointers pointing to your subroutine, stored in little-endian, and ending with 0x08 (the most significant byte is 0x08 because it's the offset of cartridge ROM). You'll probably find several references, and if you modify them all you'd be able to easily relocate your subroutine.
If that doesn't work, some further analysis with a step-by-step debugger is needed, but there's no general answer and it changes from case to case. I hope this was helpful - but I don't know what I can say for help.