Login
Back to forumSee the full topicGo to last reply

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.



Back to top


Copyright © Plus/4 World Team, 2001-2024