Posted By
 Csabo on 2012-01-08 11:51:53
| Re: relocatable prg?
The question might be a bit ambiguous. Could you clarify what it is that you'd like to do?
A piece of code can examine its own location (via the stack). Once that it's done, it could "correct itself" by changing the location of JMP/JSR opcodes. Or, if it's short enough, absolute jumps can be avoided altogether and (chained) branches can be used instead. |